]> 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 3.0.
4 #
5 # Report bugs to <systemtap@sourceware.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: systemtap@sourceware.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='systemtap'
582 PACKAGE_TARNAME='systemtap'
583 PACKAGE_VERSION='3.0'
584 PACKAGE_STRING='systemtap 3.0'
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 HAVE_MONITOR_LIBS_FALSE
647 HAVE_MONITOR_LIBS_TRUE
648 ncurses_LIBS
649 ncurses_CFLAGS
650 jsonc_LIBS
651 jsonc_CFLAGS
652 BUILD_VIRT_FALSE
653 BUILD_VIRT_TRUE
654 HAVE_LIBXML2_FALSE
655 HAVE_LIBXML2_TRUE
656 libxml2_LIBS
657 libxml2_CFLAGS
658 HAVE_LIBVIRT_FALSE
659 HAVE_LIBVIRT_TRUE
660 libvirt_LIBS
661 libvirt_CFLAGS
662 HAVE_DYNINST_FALSE
663 HAVE_DYNINST_TRUE
664 DYNINST_LDFLAGS
665 DYNINST_CXXFLAGS
666 CXXCPP
667 DATE
668 staprun_LIBS
669 stap_LIBS
670 elfutils_abs_srcdir
671 BUILD_ELFUTILS_FALSE
672 BUILD_ELFUTILS_TRUE
673 python
674 HAVE_LIBREADLINE_FALSE
675 HAVE_LIBREADLINE_TRUE
676 READLINE_LIBS
677 HAVE_AVAHI_FALSE
678 HAVE_AVAHI_TRUE
679 avahi_LIBS
680 avahi_CFLAGS
681 BUILD_SERVER_FALSE
682 BUILD_SERVER_TRUE
683 dracutstap
684 HAVE_NSS_FALSE
685 HAVE_NSS_TRUE
686 nss_LIBS
687 nss_CFLAGS
688 PKG_CONFIG_LIBDIR
689 PKG_CONFIG_PATH
690 PKG_CONFIG
691 BUILD_PDFREFDOCS_FALSE
692 BUILD_PDFREFDOCS_TRUE
693 XMLTO_STRINGPARAM_FALSE
694 XMLTO_STRINGPARAM_TRUE
695 HAVE_XMLTO_FALSE
696 HAVE_XMLTO_TRUE
697 HAVE_FOP_FALSE
698 HAVE_FOP_TRUE
699 have_fop
700 BUILD_REFDOCS_FALSE
701 BUILD_REFDOCS_TRUE
702 have_xmlto
703 BUILD_DOCS_FALSE
704 BUILD_DOCS_TRUE
705 have_ps2pdf
706 have_dvips
707 have_latex
708 BUILD_CRASHMOD_FALSE
709 BUILD_CRASHMOD_TRUE
710 staplog_CPPFLAGS
711 BUILD_TRANSLATOR_FALSE
712 BUILD_TRANSLATOR_TRUE
713 sqlite3_LIBS
714 PIECXXFLAGS
715 PIECFLAGS
716 PIELDFLAGS
717 POSUB
718 LTLIBINTL
719 LIBINTL
720 INTLLIBS
721 LTLIBICONV
722 LIBICONV
723 INTL_MACOSX_LIBS
724 XGETTEXT_EXTRA_OPTIONS
725 MSGMERGE
726 XGETTEXT_015
727 XGETTEXT
728 GMSGFMT_015
729 MSGFMT_015
730 GMSGFMT
731 MSGFMT
732 GETTEXT_MACRO_VERSION
733 USE_NLS
734 SED
735 RANLIB
736 am__fastdepCXX_FALSE
737 am__fastdepCXX_TRUE
738 CXXDEPMODE
739 ac_ct_CXX
740 CXXFLAGS
741 CXX
742 LN_S
743 EGREP
744 GREP
745 CPP
746 am__fastdepCC_FALSE
747 am__fastdepCC_TRUE
748 CCDEPMODE
749 am__nodep
750 AMDEPBACKSLASH
751 AMDEP_FALSE
752 AMDEP_TRUE
753 am__quote
754 am__include
755 DEPDIR
756 OBJEXT
757 EXEEXT
758 ac_ct_CC
759 CPPFLAGS
760 LDFLAGS
761 CFLAGS
762 CC
763 MAINT
764 MAINTAINER_MODE_FALSE
765 MAINTAINER_MODE_TRUE
766 AM_BACKSLASH
767 AM_DEFAULT_VERBOSITY
768 AM_DEFAULT_V
769 AM_V
770 am__untar
771 am__tar
772 AMTAR
773 am__leading_dot
774 SET_MAKE
775 AWK
776 mkdir_p
777 MKDIR_P
778 INSTALL_STRIP_PROGRAM
779 STRIP
780 install_sh
781 MAKEINFO
782 AUTOHEADER
783 AUTOMAKE
784 AUTOCONF
785 ACLOCAL
786 VERSION
787 PACKAGE
788 CYGPATH_W
789 am__isrc
790 INSTALL_DATA
791 INSTALL_SCRIPT
792 INSTALL_PROGRAM
793 target_os
794 target_vendor
795 target_cpu
796 target
797 host_os
798 host_vendor
799 host_cpu
800 host
801 build_os
802 build_vendor
803 build_cpu
804 build
805 target_alias
806 host_alias
807 build_alias
808 LIBS
809 ECHO_T
810 ECHO_N
811 ECHO_C
812 DEFS
813 mandir
814 localedir
815 libdir
816 psdir
817 pdfdir
818 dvidir
819 htmldir
820 infodir
821 docdir
822 oldincludedir
823 includedir
824 localstatedir
825 sharedstatedir
826 sysconfdir
827 datadir
828 datarootdir
829 libexecdir
830 sbindir
831 bindir
832 program_transform_name
833 prefix
834 exec_prefix
835 PACKAGE_URL
836 PACKAGE_BUGREPORT
837 PACKAGE_STRING
838 PACKAGE_VERSION
839 PACKAGE_TARNAME
840 PACKAGE_NAME
841 PATH_SEPARATOR
842 SHELL'
843 ac_subst_files=''
844 ac_user_opts='
845 enable_option_checking
846 enable_silent_rules
847 enable_maintainer_mode
848 enable_dependency_tracking
849 enable_largefile
850 enable_nls
851 with_gnu_ld
852 enable_rpath
853 with_libiconv_prefix
854 with_libintl_prefix
855 enable_prologues
856 enable_sdt_probes
857 enable_ssp
858 enable_pie
859 enable_sqlite
860 enable_translator
861 enable_crash
862 enable_docs
863 enable_refdocs
864 with_nss
865 with_dracutstap
866 enable_server
867 with_avahi
868 with_rpm
869 with_python3
870 with_elfutils
871 with_dyninst
872 enable_virt
873 with_selinux
874 with_java
875 with_extra_version
876 '
877 ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 CC
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
885 CPP
886 CXX
887 CXXFLAGS
888 CCC
889 PKG_CONFIG
890 PKG_CONFIG_PATH
891 PKG_CONFIG_LIBDIR
892 nss_CFLAGS
893 nss_LIBS
894 avahi_CFLAGS
895 avahi_LIBS
896 CXXCPP
897 libvirt_CFLAGS
898 libvirt_LIBS
899 libxml2_CFLAGS
900 libxml2_LIBS
901 jsonc_CFLAGS
902 jsonc_LIBS
903 ncurses_CFLAGS
904 ncurses_LIBS
905 selinux_CFLAGS
906 selinux_LIBS'
907 ac_subdirs_all='testsuite'
908
909 # Initialize some variables set by options.
910 ac_init_help=
911 ac_init_version=false
912 ac_unrecognized_opts=
913 ac_unrecognized_sep=
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
916 cache_file=/dev/null
917 exec_prefix=NONE
918 no_create=
919 no_recursion=
920 prefix=NONE
921 program_prefix=NONE
922 program_suffix=NONE
923 program_transform_name=s,x,x,
924 silent=
925 site=
926 srcdir=
927 verbose=
928 x_includes=NONE
929 x_libraries=NONE
930
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
949 htmldir='${docdir}'
950 dvidir='${docdir}'
951 pdfdir='${docdir}'
952 psdir='${docdir}'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
956
957 ac_prev=
958 ac_dashdash=
959 for ac_option
960 do
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
964 ac_prev=
965 continue
966 fi
967
968 case $ac_option in
969 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *=) ac_optarg= ;;
971 *) ac_optarg=yes ;;
972 esac
973
974 # Accept the important Cygnus configure options, so we can diagnose typos.
975
976 case $ac_dashdash$ac_option in
977 --)
978 ac_dashdash=yes ;;
979
980 -bindir | --bindir | --bindi | --bind | --bin | --bi)
981 ac_prev=bindir ;;
982 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
983 bindir=$ac_optarg ;;
984
985 -build | --build | --buil | --bui | --bu)
986 ac_prev=build_alias ;;
987 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
988 build_alias=$ac_optarg ;;
989
990 -cache-file | --cache-file | --cache-fil | --cache-fi \
991 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
992 ac_prev=cache_file ;;
993 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
994 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
995 cache_file=$ac_optarg ;;
996
997 --config-cache | -C)
998 cache_file=config.cache ;;
999
1000 -datadir | --datadir | --datadi | --datad)
1001 ac_prev=datadir ;;
1002 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1003 datadir=$ac_optarg ;;
1004
1005 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006 | --dataroo | --dataro | --datar)
1007 ac_prev=datarootdir ;;
1008 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010 datarootdir=$ac_optarg ;;
1011
1012 -disable-* | --disable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021 "enable_$ac_useropt"
1022 "*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=no ;;
1027
1028 -docdir | --docdir | --docdi | --doc | --do)
1029 ac_prev=docdir ;;
1030 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031 docdir=$ac_optarg ;;
1032
1033 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 ac_prev=dvidir ;;
1035 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036 dvidir=$ac_optarg ;;
1037
1038 -enable-* | --enable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error $? "invalid feature name: $ac_useropt"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047 "enable_$ac_useropt"
1048 "*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval enable_$ac_useropt=\$ac_optarg ;;
1053
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
1061 exec_prefix=$ac_optarg ;;
1062
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1065 with_gas=yes ;;
1066
1067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
1073
1074 -host | --host | --hos | --ho)
1075 ac_prev=host_alias ;;
1076 -host=* | --host=* | --hos=* | --ho=*)
1077 host_alias=$ac_optarg ;;
1078
1079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 ac_prev=htmldir ;;
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 | --ht=*)
1083 htmldir=$ac_optarg ;;
1084
1085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
1090 includedir=$ac_optarg ;;
1091
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 ac_prev=infodir ;;
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095 infodir=$ac_optarg ;;
1096
1097 -libdir | --libdir | --libdi | --libd)
1098 ac_prev=libdir ;;
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100 libdir=$ac_optarg ;;
1101
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
1107 libexecdir=$ac_optarg ;;
1108
1109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1113
1114 -localstatedir | --localstatedir | --localstatedi | --localstated \
1115 | --localstate | --localstat | --localsta | --localst | --locals)
1116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119 localstatedir=$ac_optarg ;;
1120
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 ac_prev=mandir ;;
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124 mandir=$ac_optarg ;;
1125
1126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1128 with_fp=no ;;
1129
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131 | --no-cr | --no-c | -n)
1132 no_create=yes ;;
1133
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136 no_recursion=yes ;;
1137
1138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145 oldincludedir=$ac_optarg ;;
1146
1147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 ac_prev=prefix ;;
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150 prefix=$ac_optarg ;;
1151
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157 program_prefix=$ac_optarg ;;
1158
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164 program_suffix=$ac_optarg ;;
1165
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
1181 program_transform_name=$ac_optarg ;;
1182
1183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 ac_prev=pdfdir ;;
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1187
1188 -psdir | --psdir | --psdi | --psd | --ps)
1189 ac_prev=psdir ;;
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191 psdir=$ac_optarg ;;
1192
1193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1195 silent=yes ;;
1196
1197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 ac_prev=sbindir ;;
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 | --sbi=* | --sb=*)
1201 sbindir=$ac_optarg ;;
1202
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1206 | --sha | --sh)
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 | --sha=* | --sh=*)
1212 sharedstatedir=$ac_optarg ;;
1213
1214 -site | --site | --sit)
1215 ac_prev=site ;;
1216 -site=* | --site=* | --sit=*)
1217 site=$ac_optarg ;;
1218
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 ac_prev=srcdir ;;
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222 srcdir=$ac_optarg ;;
1223
1224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229 sysconfdir=$ac_optarg ;;
1230
1231 -target | --target | --targe | --targ | --tar | --ta | --t)
1232 ac_prev=target_alias ;;
1233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234 target_alias=$ac_optarg ;;
1235
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237 verbose=yes ;;
1238
1239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
1241
1242 -with-* | --with-*)
1243 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 as_fn_error $? "invalid package name: $ac_useropt"
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1250 *"
1251 "with_$ac_useropt"
1252 "*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval with_$ac_useropt=\$ac_optarg ;;
1257
1258 -without-* | --without-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 as_fn_error $? "invalid package name: $ac_useropt"
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267 "with_$ac_useropt"
1268 "*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=no ;;
1273
1274 --x)
1275 # Obsolete; use --with-x.
1276 with_x=yes ;;
1277
1278 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279 | --x-incl | --x-inc | --x-in | --x-i)
1280 ac_prev=x_includes ;;
1281 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1283 x_includes=$ac_optarg ;;
1284
1285 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287 ac_prev=x_libraries ;;
1288 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1290 x_libraries=$ac_optarg ;;
1291
1292 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1293 Try \`$0 --help' for more information"
1294 ;;
1295
1296 *=*)
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 case $ac_envvar in #(
1300 '' | [0-9]* | *[!_$as_cr_alnum]* )
1301 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1302 esac
1303 eval $ac_envvar=\$ac_optarg
1304 export $ac_envvar ;;
1305
1306 *)
1307 # FIXME: should be removed in autoconf 3.0.
1308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1311 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1312 ;;
1313
1314 esac
1315 done
1316
1317 if test -n "$ac_prev"; then
1318 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1319 as_fn_error $? "missing argument to $ac_option"
1320 fi
1321
1322 if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1324 no) ;;
1325 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1326 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327 esac
1328 fi
1329
1330 # Check all directory arguments for consistency.
1331 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
1335 do
1336 eval ac_val=\$$ac_var
1337 # Remove trailing slashes.
1338 case $ac_val in
1339 */ )
1340 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341 eval $ac_var=\$ac_val;;
1342 esac
1343 # Be sure to have absolute directory names.
1344 case $ac_val in
1345 [\\/$]* | ?:[\\/]* ) continue;;
1346 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347 esac
1348 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1349 done
1350
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1354 build=$build_alias
1355 host=$host_alias
1356 target=$target_alias
1357
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
1362 elif test "x$build_alias" != "x$host_alias"; then
1363 cross_compiling=yes
1364 fi
1365 fi
1366
1367 ac_tool_prefix=
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370 test "$silent" = yes && exec 6>/dev/null
1371
1372
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376 as_fn_error $? "working directory cannot be determined"
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 as_fn_error $? "pwd does not report name of working directory"
1379
1380
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
1384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)[^/].*/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\).*/{
1404 s//\1/
1405 q
1406 }
1407 s/.*/./; q'`
1408 srcdir=$ac_confdir
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 srcdir=..
1411 fi
1412 else
1413 ac_srcdir_defaulted=no
1414 fi
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1418 fi
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 ac_abs_confdir=`(
1421 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422 pwd)`
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 srcdir=.
1426 fi
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1430 case $srcdir in
1431 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 esac
1433 for ac_var in $ac_precious_vars; do
1434 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_${ac_var}_value=\$${ac_var}
1436 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438 done
1439
1440 #
1441 # Report the --help message.
1442 #
1443 if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1446 cat <<_ACEOF
1447 \`configure' configures systemtap 3.0 to adapt to many kinds of systems.
1448
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE. See below for descriptions of some of the useful variables.
1453
1454 Defaults for the options are specified in brackets.
1455
1456 Configuration:
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
1461 -q, --quiet, --silent do not print \`checking ...' messages
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466
1467 Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
1469 [$ac_default_prefix]
1470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1471 [PREFIX]
1472
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1477
1478 For better control, use the options below.
1479
1480 Fine tuning of the installation directories:
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
1484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
1500 _ACEOF
1501
1502 cat <<\_ACEOF
1503
1504 Program names:
1505 --program-prefix=PREFIX prepend PREFIX to installed program names
1506 --program-suffix=SUFFIX append SUFFIX to installed program names
1507 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1508
1509 System types:
1510 --build=BUILD configure for building on BUILD [guessed]
1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1512 --target=TARGET configure for building compilers for TARGET [HOST]
1513 _ACEOF
1514 fi
1515
1516 if test -n "$ac_init_help"; then
1517 case $ac_init_help in
1518 short | recursive ) echo "Configuration of systemtap 3.0:";;
1519 esac
1520 cat <<\_ACEOF
1521
1522 Optional Features:
1523 --disable-option-checking ignore unrecognized --enable/--with options
1524 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1525 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1526 --enable-silent-rules less verbose build output (undo: "make V=1")
1527 --disable-silent-rules verbose build output (undo: "make V=0")
1528 --enable-maintainer-mode
1529 enable make rules and dependencies not useful (and
1530 sometimes confusing) to the casual installer
1531 --enable-dependency-tracking
1532 do not reject slow dependency extractors
1533 --disable-dependency-tracking
1534 speeds up one-time build
1535 --disable-largefile omit support for large files
1536 --disable-nls do not use Native Language Support
1537 --disable-rpath do not hardcode runtime library paths
1538 --enable-prologues make -P prologue-searching default
1539 --disable-sdt-probes disable process.mark probes in stap, staprun, stapio
1540 --disable-ssp disable gcc stack-protector
1541 --enable-pie enable position-independent-executable
1542 --enable-sqlite build with sqlite support
1543 --disable-translator build only runtime utilities
1544 --enable-crash[=DIRECTORY]
1545 enable crash extension (default is disabled).
1546 Optional DIRECTORY is the path to the crash header
1547 file (needed if installed in a non-standard
1548 location).
1549 --enable-docs enable building documentation (default on if latex
1550 etc. found).
1551 --enable-refdocs enable building reference documentation (default on
1552 if xmlto etc. found and other documentation built).
1553 --enable-server enable building of stap-server (default on if nss
1554 etc. found).
1555 --enable-virt enable building of stapvirt support (default on if
1556 libvirt etc. found).
1557
1558 Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1562 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1563 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1564 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1565 --without-libintl-prefix don't search for libintl in includedir and libdir
1566 --without-nss Do not use NSS even if present
1567 --with-dracutstap=DIR Install dracut module files in DIR
1568 --without-avahi Do not use Avahi even if present
1569 --with-rpm query rpm database for missing debuginfos
1570 --with-python3 prefer /usr/bin/python3
1571 --with-elfutils=DIRECTORY
1572 find elfutils source code in DIRECTORY
1573 --with-dyninst=DIRECTORY
1574 find dyninst headers/libraries in DIRECTORY
1575 --without-selinux Do not use libselinux even if present
1576 --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so
1577 against (default is /usr/lib/jvm/java)
1578 --with-extra-version=STRING
1579 Add STRING to stap -V version
1580
1581 Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 LIBS libraries to pass to the linker, e.g. -l<library>
1587 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
1589 CPP C preprocessor
1590 CXX C++ compiler command
1591 CXXFLAGS C++ compiler flags
1592 PKG_CONFIG path to pkg-config utility
1593 PKG_CONFIG_PATH
1594 directories to add to pkg-config's search path
1595 PKG_CONFIG_LIBDIR
1596 path overriding pkg-config's built-in search path
1597 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1598 nss_LIBS linker flags for nss, overriding pkg-config
1599 avahi_CFLAGS
1600 C compiler flags for avahi, overriding pkg-config
1601 avahi_LIBS linker flags for avahi, overriding pkg-config
1602 CXXCPP C++ preprocessor
1603 libvirt_CFLAGS
1604 C compiler flags for libvirt, overriding pkg-config
1605 libvirt_LIBS
1606 linker flags for libvirt, overriding pkg-config
1607 libxml2_CFLAGS
1608 C compiler flags for libxml2, overriding pkg-config
1609 libxml2_LIBS
1610 linker flags for libxml2, overriding pkg-config
1611 jsonc_CFLAGS
1612 C compiler flags for jsonc, overriding pkg-config
1613 jsonc_LIBS linker flags for jsonc, overriding pkg-config
1614 ncurses_CFLAGS
1615 C compiler flags for ncurses, overriding pkg-config
1616 ncurses_LIBS
1617 linker flags for ncurses, overriding pkg-config
1618 selinux_CFLAGS
1619 C compiler flags for selinux, overriding pkg-config
1620 selinux_LIBS
1621 linker flags for selinux, overriding pkg-config
1622
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1625
1626 Report bugs to <systemtap@sourceware.org>.
1627 _ACEOF
1628 ac_status=$?
1629 fi
1630
1631 if test "$ac_init_help" = "recursive"; then
1632 # If there are subdirs, report their specific --help.
1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634 test -d "$ac_dir" ||
1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636 continue
1637 ac_builddir=.
1638
1639 case "$ac_dir" in
1640 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *)
1642 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1643 # A ".." for each directory in $ac_dir_suffix.
1644 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1645 case $ac_top_builddir_sub in
1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1648 esac ;;
1649 esac
1650 ac_abs_top_builddir=$ac_pwd
1651 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1652 # for backward compatibility:
1653 ac_top_builddir=$ac_top_build_prefix
1654
1655 case $srcdir in
1656 .) # We are building in place.
1657 ac_srcdir=.
1658 ac_top_srcdir=$ac_top_builddir_sub
1659 ac_abs_top_srcdir=$ac_pwd ;;
1660 [\\/]* | ?:[\\/]* ) # Absolute name.
1661 ac_srcdir=$srcdir$ac_dir_suffix;
1662 ac_top_srcdir=$srcdir
1663 ac_abs_top_srcdir=$srcdir ;;
1664 *) # Relative name.
1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1666 ac_top_srcdir=$ac_top_build_prefix$srcdir
1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1668 esac
1669 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1670
1671 cd "$ac_dir" || { ac_status=$?; continue; }
1672 # Check for guested configure.
1673 if test -f "$ac_srcdir/configure.gnu"; then
1674 echo &&
1675 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1676 elif test -f "$ac_srcdir/configure"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure" --help=recursive
1679 else
1680 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681 fi || ac_status=$?
1682 cd "$ac_pwd" || { ac_status=$?; break; }
1683 done
1684 fi
1685
1686 test -n "$ac_init_help" && exit $ac_status
1687 if $ac_init_version; then
1688 cat <<\_ACEOF
1689 systemtap configure 3.0
1690 generated by GNU Autoconf 2.69
1691
1692 Copyright (C) 2012 Free Software Foundation, Inc.
1693 This configure script is free software; the Free Software Foundation
1694 gives unlimited permission to copy, distribute and modify it.
1695 _ACEOF
1696 exit
1697 fi
1698
1699 ## ------------------------ ##
1700 ## Autoconf initialization. ##
1701 ## ------------------------ ##
1702
1703 # ac_fn_c_try_compile LINENO
1704 # --------------------------
1705 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_compile ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext
1710 if { { ac_try="$ac_compile"
1711 case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_compile") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest.$ac_objext; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1
1735 fi
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_compile
1740
1741 # ac_fn_c_try_cpp LINENO
1742 # ----------------------
1743 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_c_try_cpp ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_cpp conftest.$ac_ext"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } > conftest.i && {
1763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 }; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1
1772 fi
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1775
1776 } # ac_fn_c_try_cpp
1777
1778 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1779 # -------------------------------------------------------
1780 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1781 # the include files in INCLUDES and setting the cache variable VAR
1782 # accordingly.
1783 ac_fn_c_check_header_mongrel ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if eval \${$3+:} false; then :
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791 fi
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 else
1796 # Is the header compilable?
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1798 $as_echo_n "checking $2 usability... " >&6; }
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 $4
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_compile "$LINENO"; then :
1805 ac_header_compiler=yes
1806 else
1807 ac_header_compiler=no
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1811 $as_echo "$ac_header_compiler" >&6; }
1812
1813 # Is the header present?
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1815 $as_echo_n "checking $2 presence... " >&6; }
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_cpp "$LINENO"; then :
1821 ac_header_preproc=yes
1822 else
1823 ac_header_preproc=no
1824 fi
1825 rm -f conftest.err conftest.i conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1827 $as_echo "$ac_header_preproc" >&6; }
1828
1829 # So? What about this header?
1830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1831 yes:no: )
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1833 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836 ;;
1837 no:yes:* )
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1839 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1841 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1843 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1845 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 ( $as_echo "## --------------------------------------- ##
1849 ## Report this to systemtap@sourceware.org ##
1850 ## --------------------------------------- ##"
1851 ) | sed "s/^/$as_me: WARNING: /" >&2
1852 ;;
1853 esac
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1858 else
1859 eval "$3=\$ac_header_compiler"
1860 fi
1861 eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 fi
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867 } # ac_fn_c_check_header_mongrel
1868
1869 # ac_fn_c_try_run LINENO
1870 # ----------------------
1871 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1872 # that executables *can* be run.
1873 ac_fn_c_try_run ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 if { { ac_try="$ac_link"
1877 case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_link") 2>&5
1884 ac_status=$?
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1887 { { case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_try") 2>&5
1894 ac_status=$?
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; }; }; then :
1897 ac_retval=0
1898 else
1899 $as_echo "$as_me: program exited with status $ac_status" >&5
1900 $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_retval=$ac_status
1904 fi
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1908
1909 } # ac_fn_c_try_run
1910
1911 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1912 # -------------------------------------------------------
1913 # Tests whether HEADER exists and can be compiled using the include files in
1914 # INCLUDES, setting the cache variable VAR accordingly.
1915 ac_fn_c_check_header_compile ()
1916 {
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1922 else
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 $4
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929 eval "$3=yes"
1930 else
1931 eval "$3=no"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 fi
1935 eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940 } # ac_fn_c_check_header_compile
1941
1942 # ac_fn_cxx_try_compile LINENO
1943 # ----------------------------
1944 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1945 ac_fn_cxx_try_compile ()
1946 {
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 rm -f conftest.$ac_objext
1949 if { { ac_try="$ac_compile"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_compile") 2>conftest.err
1957 ac_status=$?
1958 if test -s conftest.err; then
1959 grep -v '^ *+' conftest.err >conftest.er1
1960 cat conftest.er1 >&5
1961 mv -f conftest.er1 conftest.err
1962 fi
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } && {
1965 test -z "$ac_cxx_werror_flag" ||
1966 test ! -s conftest.err
1967 } && test -s conftest.$ac_objext; then :
1968 ac_retval=0
1969 else
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973 ac_retval=1
1974 fi
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 as_fn_set_status $ac_retval
1977
1978 } # ac_fn_cxx_try_compile
1979
1980 # ac_fn_c_try_link LINENO
1981 # -----------------------
1982 # Try to link conftest.$ac_ext, and return whether this succeeded.
1983 ac_fn_c_try_link ()
1984 {
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 rm -f conftest.$ac_objext conftest$ac_exeext
1987 if { { ac_try="$ac_link"
1988 case "(($ac_try" in
1989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990 *) ac_try_echo=$ac_try;;
1991 esac
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993 $as_echo "$ac_try_echo"; } >&5
1994 (eval "$ac_link") 2>conftest.err
1995 ac_status=$?
1996 if test -s conftest.err; then
1997 grep -v '^ *+' conftest.err >conftest.er1
1998 cat conftest.er1 >&5
1999 mv -f conftest.er1 conftest.err
2000 fi
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; } && {
2003 test -z "$ac_c_werror_flag" ||
2004 test ! -s conftest.err
2005 } && test -s conftest$ac_exeext && {
2006 test "$cross_compiling" = yes ||
2007 test -x conftest$ac_exeext
2008 }; then :
2009 ac_retval=0
2010 else
2011 $as_echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014 ac_retval=1
2015 fi
2016 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2017 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2018 # interfere with the next link command; also delete a directory that is
2019 # left behind by Apple's compiler. We do this before executing the actions.
2020 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status $ac_retval
2023
2024 } # ac_fn_c_try_link
2025
2026 # ac_fn_c_check_func LINENO FUNC VAR
2027 # ----------------------------------
2028 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2029 ac_fn_c_check_func ()
2030 {
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2039 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2041 #define $2 innocuous_$2
2042
2043 /* System header to define __stub macros and hopefully few prototypes,
2044 which can conflict with char $2 (); below.
2045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2046 <limits.h> exists even on freestanding compilers. */
2047
2048 #ifdef __STDC__
2049 # include <limits.h>
2050 #else
2051 # include <assert.h>
2052 #endif
2053
2054 #undef $2
2055
2056 /* Override any GCC internal prototype to avoid an error.
2057 Use char because int might match the return type of a GCC
2058 builtin and then its argument prototype would still apply. */
2059 #ifdef __cplusplus
2060 extern "C"
2061 #endif
2062 char $2 ();
2063 /* The GNU C library defines this for functions which it implements
2064 to always fail with ENOSYS. Some functions are actually named
2065 something starting with __ and the normal name is an alias. */
2066 #if defined __stub_$2 || defined __stub___$2
2067 choke me
2068 #endif
2069
2070 int
2071 main ()
2072 {
2073 return $2 ();
2074 ;
2075 return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_link "$LINENO"; then :
2079 eval "$3=yes"
2080 else
2081 eval "$3=no"
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext \
2084 conftest$ac_exeext conftest.$ac_ext
2085 fi
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090
2091 } # ac_fn_c_check_func
2092
2093 # ac_fn_cxx_try_cpp LINENO
2094 # ------------------------
2095 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2096 ac_fn_cxx_try_cpp ()
2097 {
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 if { { ac_try="$ac_cpp conftest.$ac_ext"
2100 case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103 esac
2104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105 $as_echo "$ac_try_echo"; } >&5
2106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2107 ac_status=$?
2108 if test -s conftest.err; then
2109 grep -v '^ *+' conftest.err >conftest.er1
2110 cat conftest.er1 >&5
2111 mv -f conftest.er1 conftest.err
2112 fi
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; } > conftest.i && {
2115 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2116 test ! -s conftest.err
2117 }; then :
2118 ac_retval=0
2119 else
2120 $as_echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2122
2123 ac_retval=1
2124 fi
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 as_fn_set_status $ac_retval
2127
2128 } # ac_fn_cxx_try_cpp
2129
2130 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2131 # ---------------------------------------------------------
2132 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2133 # the include files in INCLUDES and setting the cache variable VAR
2134 # accordingly.
2135 ac_fn_cxx_check_header_mongrel ()
2136 {
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 if eval \${$3+:} false; then :
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2143 fi
2144 eval ac_res=\$$3
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147 else
2148 # Is the header compilable?
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2150 $as_echo_n "checking $2 usability... " >&6; }
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2153 $4
2154 #include <$2>
2155 _ACEOF
2156 if ac_fn_cxx_try_compile "$LINENO"; then :
2157 ac_header_compiler=yes
2158 else
2159 ac_header_compiler=no
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2163 $as_echo "$ac_header_compiler" >&6; }
2164
2165 # Is the header present?
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2167 $as_echo_n "checking $2 presence... " >&6; }
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2170 #include <$2>
2171 _ACEOF
2172 if ac_fn_cxx_try_cpp "$LINENO"; then :
2173 ac_header_preproc=yes
2174 else
2175 ac_header_preproc=no
2176 fi
2177 rm -f conftest.err conftest.i conftest.$ac_ext
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2179 $as_echo "$ac_header_preproc" >&6; }
2180
2181 # So? What about this header?
2182 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2183 yes:no: )
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2185 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2187 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2188 ;;
2189 no:yes:* )
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2191 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2193 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2195 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2197 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2199 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2200 ( $as_echo "## --------------------------------------- ##
2201 ## Report this to systemtap@sourceware.org ##
2202 ## --------------------------------------- ##"
2203 ) | sed "s/^/$as_me: WARNING: /" >&2
2204 ;;
2205 esac
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207 $as_echo_n "checking for $2... " >&6; }
2208 if eval \${$3+:} false; then :
2209 $as_echo_n "(cached) " >&6
2210 else
2211 eval "$3=\$ac_header_compiler"
2212 fi
2213 eval ac_res=\$$3
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216 fi
2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218
2219 } # ac_fn_cxx_check_header_mongrel
2220 cat >config.log <<_ACEOF
2221 This file contains any messages produced by compilers while
2222 running configure, to aid debugging if configure makes a mistake.
2223
2224 It was created by systemtap $as_me 3.0, which was
2225 generated by GNU Autoconf 2.69. Invocation command line was
2226
2227 $ $0 $@
2228
2229 _ACEOF
2230 exec 5>>config.log
2231 {
2232 cat <<_ASUNAME
2233 ## --------- ##
2234 ## Platform. ##
2235 ## --------- ##
2236
2237 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2238 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2239 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2240 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2241 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2242
2243 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2244 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2245
2246 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2247 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2248 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2249 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2250 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2251 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2252 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2253
2254 _ASUNAME
2255
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259 IFS=$as_save_IFS
2260 test -z "$as_dir" && as_dir=.
2261 $as_echo "PATH: $as_dir"
2262 done
2263 IFS=$as_save_IFS
2264
2265 } >&5
2266
2267 cat >&5 <<_ACEOF
2268
2269
2270 ## ----------- ##
2271 ## Core tests. ##
2272 ## ----------- ##
2273
2274 _ACEOF
2275
2276
2277 # Keep a trace of the command line.
2278 # Strip out --no-create and --no-recursion so they do not pile up.
2279 # Strip out --silent because we don't want to record it for future runs.
2280 # Also quote any args containing shell meta-characters.
2281 # Make two passes to allow for proper duplicate-argument suppression.
2282 ac_configure_args=
2283 ac_configure_args0=
2284 ac_configure_args1=
2285 ac_must_keep_next=false
2286 for ac_pass in 1 2
2287 do
2288 for ac_arg
2289 do
2290 case $ac_arg in
2291 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2293 | -silent | --silent | --silen | --sile | --sil)
2294 continue ;;
2295 *\'*)
2296 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 esac
2298 case $ac_pass in
2299 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2300 2)
2301 as_fn_append ac_configure_args1 " '$ac_arg'"
2302 if test $ac_must_keep_next = true; then
2303 ac_must_keep_next=false # Got value, back to normal.
2304 else
2305 case $ac_arg in
2306 *=* | --config-cache | -C | -disable-* | --disable-* \
2307 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2308 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2309 | -with-* | --with-* | -without-* | --without-* | --x)
2310 case "$ac_configure_args0 " in
2311 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2312 esac
2313 ;;
2314 -* ) ac_must_keep_next=true ;;
2315 esac
2316 fi
2317 as_fn_append ac_configure_args " '$ac_arg'"
2318 ;;
2319 esac
2320 done
2321 done
2322 { ac_configure_args0=; unset ac_configure_args0;}
2323 { ac_configure_args1=; unset ac_configure_args1;}
2324
2325 # When interrupted or exit'd, cleanup temporary files, and complete
2326 # config.log. We remove comments because anyway the quotes in there
2327 # would cause problems or look ugly.
2328 # WARNING: Use '\'' to represent an apostrophe within the trap.
2329 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2330 trap 'exit_status=$?
2331 # Save into config.log some information that might help in debugging.
2332 {
2333 echo
2334
2335 $as_echo "## ---------------- ##
2336 ## Cache variables. ##
2337 ## ---------------- ##"
2338 echo
2339 # The following way of writing the cache mishandles newlines in values,
2340 (
2341 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2342 eval ac_val=\$$ac_var
2343 case $ac_val in #(
2344 *${as_nl}*)
2345 case $ac_var in #(
2346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2347 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2348 esac
2349 case $ac_var in #(
2350 _ | IFS | as_nl) ;; #(
2351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2352 *) { eval $ac_var=; unset $ac_var;} ;;
2353 esac ;;
2354 esac
2355 done
2356 (set) 2>&1 |
2357 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2358 *${as_nl}ac_space=\ *)
2359 sed -n \
2360 "s/'\''/'\''\\\\'\'''\''/g;
2361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2362 ;; #(
2363 *)
2364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2365 ;;
2366 esac |
2367 sort
2368 )
2369 echo
2370
2371 $as_echo "## ----------------- ##
2372 ## Output variables. ##
2373 ## ----------------- ##"
2374 echo
2375 for ac_var in $ac_subst_vars
2376 do
2377 eval ac_val=\$$ac_var
2378 case $ac_val in
2379 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2380 esac
2381 $as_echo "$ac_var='\''$ac_val'\''"
2382 done | sort
2383 echo
2384
2385 if test -n "$ac_subst_files"; then
2386 $as_echo "## ------------------- ##
2387 ## File substitutions. ##
2388 ## ------------------- ##"
2389 echo
2390 for ac_var in $ac_subst_files
2391 do
2392 eval ac_val=\$$ac_var
2393 case $ac_val in
2394 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395 esac
2396 $as_echo "$ac_var='\''$ac_val'\''"
2397 done | sort
2398 echo
2399 fi
2400
2401 if test -s confdefs.h; then
2402 $as_echo "## ----------- ##
2403 ## confdefs.h. ##
2404 ## ----------- ##"
2405 echo
2406 cat confdefs.h
2407 echo
2408 fi
2409 test "$ac_signal" != 0 &&
2410 $as_echo "$as_me: caught signal $ac_signal"
2411 $as_echo "$as_me: exit $exit_status"
2412 } >&5
2413 rm -f core *.core core.conftest.* &&
2414 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2415 exit $exit_status
2416 ' 0
2417 for ac_signal in 1 2 13 15; do
2418 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2419 done
2420 ac_signal=0
2421
2422 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2423 rm -f -r conftest* confdefs.h
2424
2425 $as_echo "/* confdefs.h */" > confdefs.h
2426
2427 # Predefined preprocessor variables.
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_NAME "$PACKAGE_NAME"
2431 _ACEOF
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2435 _ACEOF
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2439 _ACEOF
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_STRING "$PACKAGE_STRING"
2443 _ACEOF
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2447 _ACEOF
2448
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_URL "$PACKAGE_URL"
2451 _ACEOF
2452
2453
2454 # Let the site file select an alternate cache file if it wants to.
2455 # Prefer an explicitly selected file to automatically selected ones.
2456 ac_site_file1=NONE
2457 ac_site_file2=NONE
2458 if test -n "$CONFIG_SITE"; then
2459 # We do not want a PATH search for config.site.
2460 case $CONFIG_SITE in #((
2461 -*) ac_site_file1=./$CONFIG_SITE;;
2462 */*) ac_site_file1=$CONFIG_SITE;;
2463 *) ac_site_file1=./$CONFIG_SITE;;
2464 esac
2465 elif test "x$prefix" != xNONE; then
2466 ac_site_file1=$prefix/share/config.site
2467 ac_site_file2=$prefix/etc/config.site
2468 else
2469 ac_site_file1=$ac_default_prefix/share/config.site
2470 ac_site_file2=$ac_default_prefix/etc/config.site
2471 fi
2472 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2473 do
2474 test "x$ac_site_file" = xNONE && continue
2475 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2477 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2478 sed 's/^/| /' "$ac_site_file" >&5
2479 . "$ac_site_file" \
2480 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2482 as_fn_error $? "failed to load site script $ac_site_file
2483 See \`config.log' for more details" "$LINENO" 5; }
2484 fi
2485 done
2486
2487 if test -r "$cache_file"; then
2488 # Some versions of bash will fail to source /dev/null (special files
2489 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2490 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2492 $as_echo "$as_me: loading cache $cache_file" >&6;}
2493 case $cache_file in
2494 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2495 *) . "./$cache_file";;
2496 esac
2497 fi
2498 else
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2500 $as_echo "$as_me: creating cache $cache_file" >&6;}
2501 >$cache_file
2502 fi
2503
2504 gt_needs="$gt_needs "
2505 # Check that the precious variables saved in the cache have kept the same
2506 # value.
2507 ac_cache_corrupted=false
2508 for ac_var in $ac_precious_vars; do
2509 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2510 eval ac_new_set=\$ac_env_${ac_var}_set
2511 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2512 eval ac_new_val=\$ac_env_${ac_var}_value
2513 case $ac_old_set,$ac_new_set in
2514 set,)
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2516 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2517 ac_cache_corrupted=: ;;
2518 ,set)
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2520 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2522 ,);;
2523 *)
2524 if test "x$ac_old_val" != "x$ac_new_val"; then
2525 # differences in whitespace do not lead to failure.
2526 ac_old_val_w=`echo x $ac_old_val`
2527 ac_new_val_w=`echo x $ac_new_val`
2528 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2530 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2531 ac_cache_corrupted=:
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2534 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2535 eval $ac_var=\$ac_old_val
2536 fi
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2538 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2540 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2541 fi;;
2542 esac
2543 # Pass precious variables to config.status.
2544 if test "$ac_new_set" = set; then
2545 case $ac_new_val in
2546 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2547 *) ac_arg=$ac_var=$ac_new_val ;;
2548 esac
2549 case " $ac_configure_args " in
2550 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2551 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2552 esac
2553 fi
2554 done
2555 if $ac_cache_corrupted; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2559 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2560 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2561 fi
2562 ## -------------------- ##
2563 ## Main body of script. ##
2564 ## -------------------- ##
2565
2566 ac_ext=c
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571
2572
2573
2574 ac_aux_dir=
2575 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2576 if test -f "$ac_dir/install-sh"; then
2577 ac_aux_dir=$ac_dir
2578 ac_install_sh="$ac_aux_dir/install-sh -c"
2579 break
2580 elif test -f "$ac_dir/install.sh"; then
2581 ac_aux_dir=$ac_dir
2582 ac_install_sh="$ac_aux_dir/install.sh -c"
2583 break
2584 elif test -f "$ac_dir/shtool"; then
2585 ac_aux_dir=$ac_dir
2586 ac_install_sh="$ac_aux_dir/shtool install -c"
2587 break
2588 fi
2589 done
2590 if test -z "$ac_aux_dir"; then
2591 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2592 fi
2593
2594 # These three variables are undocumented and unsupported,
2595 # and are intended to be withdrawn in a future Autoconf release.
2596 # They can cause serious problems if a builder's source tree is in a directory
2597 # whose full name contains unusual characters.
2598 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2599 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2600 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2601
2602
2603 # Make sure we can run config.sub.
2604 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2605 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2606
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2608 $as_echo_n "checking build system type... " >&6; }
2609 if ${ac_cv_build+:} false; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 ac_build_alias=$build_alias
2613 test "x$ac_build_alias" = x &&
2614 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2615 test "x$ac_build_alias" = x &&
2616 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2617 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2618 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2619
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2622 $as_echo "$ac_cv_build" >&6; }
2623 case $ac_cv_build in
2624 *-*-*) ;;
2625 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2626 esac
2627 build=$ac_cv_build
2628 ac_save_IFS=$IFS; IFS='-'
2629 set x $ac_cv_build
2630 shift
2631 build_cpu=$1
2632 build_vendor=$2
2633 shift; shift
2634 # Remember, the first character of IFS is used to create $*,
2635 # except with old shells:
2636 build_os=$*
2637 IFS=$ac_save_IFS
2638 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2639
2640
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2642 $as_echo_n "checking host system type... " >&6; }
2643 if ${ac_cv_host+:} false; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 if test "x$host_alias" = x; then
2647 ac_cv_host=$ac_cv_build
2648 else
2649 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2650 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2651 fi
2652
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2655 $as_echo "$ac_cv_host" >&6; }
2656 case $ac_cv_host in
2657 *-*-*) ;;
2658 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2659 esac
2660 host=$ac_cv_host
2661 ac_save_IFS=$IFS; IFS='-'
2662 set x $ac_cv_host
2663 shift
2664 host_cpu=$1
2665 host_vendor=$2
2666 shift; shift
2667 # Remember, the first character of IFS is used to create $*,
2668 # except with old shells:
2669 host_os=$*
2670 IFS=$ac_save_IFS
2671 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2672
2673
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2675 $as_echo_n "checking target system type... " >&6; }
2676 if ${ac_cv_target+:} false; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test "x$target_alias" = x; then
2680 ac_cv_target=$ac_cv_host
2681 else
2682 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2683 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2684 fi
2685
2686 fi
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2688 $as_echo "$ac_cv_target" >&6; }
2689 case $ac_cv_target in
2690 *-*-*) ;;
2691 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2692 esac
2693 target=$ac_cv_target
2694 ac_save_IFS=$IFS; IFS='-'
2695 set x $ac_cv_target
2696 shift
2697 target_cpu=$1
2698 target_vendor=$2
2699 shift; shift
2700 # Remember, the first character of IFS is used to create $*,
2701 # except with old shells:
2702 target_os=$*
2703 IFS=$ac_save_IFS
2704 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2705
2706
2707 # The aliases save the names the user supplied, while $host etc.
2708 # will get canonicalized.
2709 test -n "$target_alias" &&
2710 test "$program_prefix$program_suffix$program_transform_name" = \
2711 NONENONEs,x,x, &&
2712 program_prefix=${target_alias}-
2713
2714
2715 am__api_version='1.15'
2716
2717 # Find a good install program. We prefer a C program (faster),
2718 # so one script is as good as another. But avoid the broken or
2719 # incompatible versions:
2720 # SysV /etc/install, /usr/sbin/install
2721 # SunOS /usr/etc/install
2722 # IRIX /sbin/install
2723 # AIX /bin/install
2724 # AmigaOS /C/install, which installs bootblocks on floppy discs
2725 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2726 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2727 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2728 # OS/2's system install, which has a completely different semantic
2729 # ./install, which can be erroneously created by make from ./install.sh.
2730 # Reject install programs that cannot install multiple files.
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2732 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2733 if test -z "$INSTALL"; then
2734 if ${ac_cv_path_install+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 # Account for people who put trailing slashes in PATH elements.
2743 case $as_dir/ in #((
2744 ./ | .// | /[cC]/* | \
2745 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2746 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2747 /usr/ucb/* ) ;;
2748 *)
2749 # OSF1 and SCO ODT 3.0 have their own names for install.
2750 # Don't use installbsd from OSF since it installs stuff as root
2751 # by default.
2752 for ac_prog in ginstall scoinst install; do
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2755 if test $ac_prog = install &&
2756 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2757 # AIX install. It has an incompatible calling convention.
2758 :
2759 elif test $ac_prog = install &&
2760 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2761 # program-specific install script used by HP pwplus--don't use.
2762 :
2763 else
2764 rm -rf conftest.one conftest.two conftest.dir
2765 echo one > conftest.one
2766 echo two > conftest.two
2767 mkdir conftest.dir
2768 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2769 test -s conftest.one && test -s conftest.two &&
2770 test -s conftest.dir/conftest.one &&
2771 test -s conftest.dir/conftest.two
2772 then
2773 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2774 break 3
2775 fi
2776 fi
2777 fi
2778 done
2779 done
2780 ;;
2781 esac
2782
2783 done
2784 IFS=$as_save_IFS
2785
2786 rm -rf conftest.one conftest.two conftest.dir
2787
2788 fi
2789 if test "${ac_cv_path_install+set}" = set; then
2790 INSTALL=$ac_cv_path_install
2791 else
2792 # As a last resort, use the slow shell script. Don't cache a
2793 # value for INSTALL within a source directory, because that will
2794 # break other packages using the cache if that directory is
2795 # removed, or if the value is a relative name.
2796 INSTALL=$ac_install_sh
2797 fi
2798 fi
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2800 $as_echo "$INSTALL" >&6; }
2801
2802 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2803 # It thinks the first close brace ends the variable substitution.
2804 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2805
2806 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2807
2808 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2809
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2811 $as_echo_n "checking whether build environment is sane... " >&6; }
2812 # Reject unsafe characters in $srcdir or the absolute working directory
2813 # name. Accept space and tab only in the latter.
2814 am_lf='
2815 '
2816 case `pwd` in
2817 *[\\\"\#\$\&\'\`$am_lf]*)
2818 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2819 esac
2820 case $srcdir in
2821 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2822 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2823 esac
2824
2825 # Do 'set' in a subshell so we don't clobber the current shell's
2826 # arguments. Must try -L first in case configure is actually a
2827 # symlink; some systems play weird games with the mod time of symlinks
2828 # (eg FreeBSD returns the mod time of the symlink's containing
2829 # directory).
2830 if (
2831 am_has_slept=no
2832 for am_try in 1 2; do
2833 echo "timestamp, slept: $am_has_slept" > conftest.file
2834 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2835 if test "$*" = "X"; then
2836 # -L didn't work.
2837 set X `ls -t "$srcdir/configure" conftest.file`
2838 fi
2839 if test "$*" != "X $srcdir/configure conftest.file" \
2840 && test "$*" != "X conftest.file $srcdir/configure"; then
2841
2842 # If neither matched, then we have a broken ls. This can happen
2843 # if, for instance, CONFIG_SHELL is bash and it inherits a
2844 # broken ls alias from the environment. This has actually
2845 # happened. Such a system could not be considered "sane".
2846 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2847 alias in your environment" "$LINENO" 5
2848 fi
2849 if test "$2" = conftest.file || test $am_try -eq 2; then
2850 break
2851 fi
2852 # Just in case.
2853 sleep 1
2854 am_has_slept=yes
2855 done
2856 test "$2" = conftest.file
2857 )
2858 then
2859 # Ok.
2860 :
2861 else
2862 as_fn_error $? "newly created file is older than distributed files!
2863 Check your system clock" "$LINENO" 5
2864 fi
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2866 $as_echo "yes" >&6; }
2867 # If we didn't sleep, we still need to ensure time stamps of config.status and
2868 # generated files are strictly newer.
2869 am_sleep_pid=
2870 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2871 ( sleep 1 ) &
2872 am_sleep_pid=$!
2873 fi
2874
2875 rm -f conftest.file
2876
2877 test "$program_prefix" != NONE &&
2878 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2879 # Use a double $ so make ignores it.
2880 test "$program_suffix" != NONE &&
2881 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2882 # Double any \ or $.
2883 # By default was `s,x,x', remove it if useless.
2884 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2885 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2886
2887 # Expand $ac_aux_dir to an absolute path.
2888 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2889
2890 if test x"${MISSING+set}" != xset; then
2891 case $am_aux_dir in
2892 *\ * | *\ *)
2893 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2894 *)
2895 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2896 esac
2897 fi
2898 # Use eval to expand $SHELL
2899 if eval "$MISSING --is-lightweight"; then
2900 am_missing_run="$MISSING "
2901 else
2902 am_missing_run=
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2904 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2905 fi
2906
2907 if test x"${install_sh+set}" != xset; then
2908 case $am_aux_dir in
2909 *\ * | *\ *)
2910 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2911 *)
2912 install_sh="\${SHELL} $am_aux_dir/install-sh"
2913 esac
2914 fi
2915
2916 # Installed binaries are usually stripped using 'strip' when the user
2917 # run "make install-strip". However 'strip' might not be the right
2918 # tool to use in cross-compilation environments, therefore Automake
2919 # will honor the 'STRIP' environment variable to overrule this program.
2920 if test "$cross_compiling" != no; then
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}strip; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_STRIP+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$STRIP"; then
2930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 STRIP=$ac_cv_prog_STRIP
2950 if test -n "$STRIP"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2952 $as_echo "$STRIP" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958
2959 fi
2960 if test -z "$ac_cv_prog_STRIP"; then
2961 ac_ct_STRIP=$STRIP
2962 # Extract the first word of "strip", so it can be a program name with args.
2963 set dummy strip; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$ac_ct_STRIP"; then
2970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_ac_ct_STRIP="strip"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2982 fi
2983 done
2984 done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2990 if test -n "$ac_ct_STRIP"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2992 $as_echo "$ac_ct_STRIP" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998 if test "x$ac_ct_STRIP" = x; then
2999 STRIP=":"
3000 else
3001 case $cross_compiling:$ac_tool_warned in
3002 yes:)
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3006 esac
3007 STRIP=$ac_ct_STRIP
3008 fi
3009 else
3010 STRIP="$ac_cv_prog_STRIP"
3011 fi
3012
3013 fi
3014 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3015
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3017 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3018 if test -z "$MKDIR_P"; then
3019 if ${ac_cv_path_mkdir+:} false; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3024 do
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_prog in mkdir gmkdir; do
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3030 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3031 'mkdir (GNU coreutils) '* | \
3032 'mkdir (coreutils) '* | \
3033 'mkdir (fileutils) '4.1*)
3034 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3035 break 3;;
3036 esac
3037 done
3038 done
3039 done
3040 IFS=$as_save_IFS
3041
3042 fi
3043
3044 test -d ./--version && rmdir ./--version
3045 if test "${ac_cv_path_mkdir+set}" = set; then
3046 MKDIR_P="$ac_cv_path_mkdir -p"
3047 else
3048 # As a last resort, use the slow shell script. Don't cache a
3049 # value for MKDIR_P within a source directory, because that will
3050 # break other packages using the cache if that directory is
3051 # removed, or if the value is a relative name.
3052 MKDIR_P="$ac_install_sh -d"
3053 fi
3054 fi
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3056 $as_echo "$MKDIR_P" >&6; }
3057
3058 for ac_prog in gawk mawk nawk awk
3059 do
3060 # Extract the first word of "$ac_prog", so it can be a program name with args.
3061 set dummy $ac_prog; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_AWK+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$AWK"; then
3068 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_AWK="$ac_prog"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi
3086 fi
3087 AWK=$ac_cv_prog_AWK
3088 if test -n "$AWK"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3090 $as_echo "$AWK" >&6; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 fi
3095
3096
3097 test -n "$AWK" && break
3098 done
3099
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3101 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3102 set x ${MAKE-make}
3103 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3104 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 cat >conftest.make <<\_ACEOF
3108 SHELL = /bin/sh
3109 all:
3110 @echo '@@@%%%=$(MAKE)=@@@%%%'
3111 _ACEOF
3112 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3113 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3114 *@@@%%%=?*=@@@%%%*)
3115 eval ac_cv_prog_make_${ac_make}_set=yes;;
3116 *)
3117 eval ac_cv_prog_make_${ac_make}_set=no;;
3118 esac
3119 rm -f conftest.make
3120 fi
3121 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3123 $as_echo "yes" >&6; }
3124 SET_MAKE=
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 SET_MAKE="MAKE=${MAKE-make}"
3129 fi
3130
3131 rm -rf .tst 2>/dev/null
3132 mkdir .tst 2>/dev/null
3133 if test -d .tst; then
3134 am__leading_dot=.
3135 else
3136 am__leading_dot=_
3137 fi
3138 rmdir .tst 2>/dev/null
3139
3140 # Check whether --enable-silent-rules was given.
3141 if test "${enable_silent_rules+set}" = set; then :
3142 enableval=$enable_silent_rules;
3143 fi
3144
3145 case $enable_silent_rules in # (((
3146 yes) AM_DEFAULT_VERBOSITY=0;;
3147 no) AM_DEFAULT_VERBOSITY=1;;
3148 *) AM_DEFAULT_VERBOSITY=1;;
3149 esac
3150 am_make=${MAKE-make}
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3152 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3153 if ${am_cv_make_support_nested_variables+:} false; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if $as_echo 'TRUE=$(BAR$(V))
3157 BAR0=false
3158 BAR1=true
3159 V=1
3160 am__doit:
3161 @$(TRUE)
3162 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3163 am_cv_make_support_nested_variables=yes
3164 else
3165 am_cv_make_support_nested_variables=no
3166 fi
3167 fi
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3169 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3170 if test $am_cv_make_support_nested_variables = yes; then
3171 AM_V='$(V)'
3172 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3173 else
3174 AM_V=$AM_DEFAULT_VERBOSITY
3175 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3176 fi
3177 AM_BACKSLASH='\'
3178
3179 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3180 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3181 # is not polluted with repeated "-I."
3182 am__isrc=' -I$(srcdir)'
3183 # test to see if srcdir already configured
3184 if test -f $srcdir/config.status; then
3185 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3186 fi
3187 fi
3188
3189 # test whether we have cygpath
3190 if test -z "$CYGPATH_W"; then
3191 if (cygpath --version) >/dev/null 2>/dev/null; then
3192 CYGPATH_W='cygpath -w'
3193 else
3194 CYGPATH_W=echo
3195 fi
3196 fi
3197
3198
3199 # Define the identity of the package.
3200 PACKAGE='systemtap'
3201 VERSION='3.0'
3202
3203
3204 cat >>confdefs.h <<_ACEOF
3205 #define PACKAGE "$PACKAGE"
3206 _ACEOF
3207
3208
3209 cat >>confdefs.h <<_ACEOF
3210 #define VERSION "$VERSION"
3211 _ACEOF
3212
3213 # Some tools Automake needs.
3214
3215 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3216
3217
3218 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3219
3220
3221 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3222
3223
3224 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3225
3226
3227 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3228
3229 # For better backward compatibility. To be removed once Automake 1.9.x
3230 # dies out for good. For more background, see:
3231 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3232 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3233 mkdir_p='$(MKDIR_P)'
3234
3235 # We need awk for the "check" target (and possibly the TAP driver). The
3236 # system "awk" is bad on some platforms.
3237 # Always define AMTAR for backward compatibility. Yes, it's still used
3238 # in the wild :-( We should find a proper way to deprecate it ...
3239 AMTAR='$${TAR-tar}'
3240
3241
3242 # We'll loop over all known methods to create a tar archive until one works.
3243 _am_tools='gnutar pax cpio none'
3244
3245 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3246
3247
3248
3249
3250
3251
3252 # POSIX will say in a future version that running "rm -f" with no argument
3253 # is OK; and we want to be able to make that assumption in our Makefile
3254 # recipes. So use an aggressive probe to check that the usage we want is
3255 # actually supported "in the wild" to an acceptable degree.
3256 # See automake bug#10828.
3257 # To make any issue more visible, cause the running configure to be aborted
3258 # by default if the 'rm' program in use doesn't match our expectations; the
3259 # user can still override this though.
3260 if rm -f && rm -fr && rm -rf; then : OK; else
3261 cat >&2 <<'END'
3262 Oops!
3263
3264 Your 'rm' program seems unable to run without file operands specified
3265 on the command line, even when the '-f' option is present. This is contrary
3266 to the behaviour of most rm programs out there, and not conforming with
3267 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3268
3269 Please tell bug-automake@gnu.org about your system, including the value
3270 of your $PATH and any error possibly output before this message. This
3271 can help us improve future automake versions.
3272
3273 END
3274 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3275 echo 'Configuration will proceed anyway, since you have set the' >&2
3276 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3277 echo >&2
3278 else
3279 cat >&2 <<'END'
3280 Aborting the configuration process, to ensure you take notice of the issue.
3281
3282 You can download and install GNU coreutils to get an 'rm' implementation
3283 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3284
3285 If you want to complete the configuration process using your problematic
3286 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3287 to "yes", and re-run configure.
3288
3289 END
3290 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3291 fi
3292 fi
3293
3294
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3296 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3297 # Check whether --enable-maintainer-mode was given.
3298 if test "${enable_maintainer_mode+set}" = set; then :
3299 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3300 else
3301 USE_MAINTAINER_MODE=no
3302 fi
3303
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3305 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3306 if test $USE_MAINTAINER_MODE = yes; then
3307 MAINTAINER_MODE_TRUE=
3308 MAINTAINER_MODE_FALSE='#'
3309 else
3310 MAINTAINER_MODE_TRUE='#'
3311 MAINTAINER_MODE_FALSE=
3312 fi
3313
3314 MAINT=$MAINTAINER_MODE_TRUE
3315
3316
3317
3318 # Check whether --enable-silent-rules was given.
3319 if test "${enable_silent_rules+set}" = set; then :
3320 enableval=$enable_silent_rules;
3321 fi
3322
3323 case $enable_silent_rules in # (((
3324 yes) AM_DEFAULT_VERBOSITY=0;;
3325 no) AM_DEFAULT_VERBOSITY=1;;
3326 *) AM_DEFAULT_VERBOSITY=0;;
3327 esac
3328 am_make=${MAKE-make}
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3330 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3331 if ${am_cv_make_support_nested_variables+:} false; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 if $as_echo 'TRUE=$(BAR$(V))
3335 BAR0=false
3336 BAR1=true
3337 V=1
3338 am__doit:
3339 @$(TRUE)
3340 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3341 am_cv_make_support_nested_variables=yes
3342 else
3343 am_cv_make_support_nested_variables=no
3344 fi
3345 fi
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3347 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3348 if test $am_cv_make_support_nested_variables = yes; then
3349 AM_V='$(V)'
3350 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3351 else
3352 AM_V=$AM_DEFAULT_VERBOSITY
3353 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3354 fi
3355 AM_BACKSLASH='\'
3356
3357
3358 DEPDIR="${am__leading_dot}deps"
3359
3360 ac_config_commands="$ac_config_commands depfiles"
3361
3362
3363 am_make=${MAKE-make}
3364 cat > confinc << 'END'
3365 am__doit:
3366 @echo this is the am__doit target
3367 .PHONY: am__doit
3368 END
3369 # If we don't find an include directive, just comment out the code.
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3371 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3372 am__include="#"
3373 am__quote=
3374 _am_result=none
3375 # First try GNU make style include.
3376 echo "include confinc" > confmf
3377 # Ignore all kinds of additional output from 'make'.
3378 case `$am_make -s -f confmf 2> /dev/null` in #(
3379 *the\ am__doit\ target*)
3380 am__include=include
3381 am__quote=
3382 _am_result=GNU
3383 ;;
3384 esac
3385 # Now try BSD make style include.
3386 if test "$am__include" = "#"; then
3387 echo '.include "confinc"' > confmf
3388 case `$am_make -s -f confmf 2> /dev/null` in #(
3389 *the\ am__doit\ target*)
3390 am__include=.include
3391 am__quote="\""
3392 _am_result=BSD
3393 ;;
3394 esac
3395 fi
3396
3397
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3399 $as_echo "$_am_result" >&6; }
3400 rm -f confinc confmf
3401
3402 # Check whether --enable-dependency-tracking was given.
3403 if test "${enable_dependency_tracking+set}" = set; then :
3404 enableval=$enable_dependency_tracking;
3405 fi
3406
3407 if test "x$enable_dependency_tracking" != xno; then
3408 am_depcomp="$ac_aux_dir/depcomp"
3409 AMDEPBACKSLASH='\'
3410 am__nodep='_no'
3411 fi
3412 if test "x$enable_dependency_tracking" != xno; then
3413 AMDEP_TRUE=
3414 AMDEP_FALSE='#'
3415 else
3416 AMDEP_TRUE='#'
3417 AMDEP_FALSE=
3418 fi
3419
3420
3421 ac_ext=c
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426 if test -n "$ac_tool_prefix"; then
3427 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3428 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_prog_CC+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 if test -n "$CC"; then
3435 ac_cv_prog_CC="$CC" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3447 fi
3448 done
3449 done
3450 IFS=$as_save_IFS
3451
3452 fi
3453 fi
3454 CC=$ac_cv_prog_CC
3455 if test -n "$CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3461 fi
3462
3463
3464 fi
3465 if test -z "$ac_cv_prog_CC"; then
3466 ac_ct_CC=$CC
3467 # Extract the first word of "gcc", so it can be a program name with args.
3468 set dummy gcc; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 if test -n "$ac_ct_CC"; then
3475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3476 else
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484 ac_cv_prog_ac_ct_CC="gcc"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 break 2
3487 fi
3488 done
3489 done
3490 IFS=$as_save_IFS
3491
3492 fi
3493 fi
3494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3495 if test -n "$ac_ct_CC"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3497 $as_echo "$ac_ct_CC" >&6; }
3498 else
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3501 fi
3502
3503 if test "x$ac_ct_CC" = x; then
3504 CC=""
3505 else
3506 case $cross_compiling:$ac_tool_warned in
3507 yes:)
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510 ac_tool_warned=yes ;;
3511 esac
3512 CC=$ac_ct_CC
3513 fi
3514 else
3515 CC="$ac_cv_prog_CC"
3516 fi
3517
3518 if test -z "$CC"; then
3519 if test -n "$ac_tool_prefix"; then
3520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3521 set dummy ${ac_tool_prefix}cc; ac_word=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if ${ac_cv_prog_CC+:} false; then :
3525 $as_echo_n "(cached) " >&6
3526 else
3527 if test -n "$CC"; then
3528 ac_cv_prog_CC="$CC" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537 ac_cv_prog_CC="${ac_tool_prefix}cc"
3538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 break 2
3540 fi
3541 done
3542 done
3543 IFS=$as_save_IFS
3544
3545 fi
3546 fi
3547 CC=$ac_cv_prog_CC
3548 if test -n "$CC"; then
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550 $as_echo "$CC" >&6; }
3551 else
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3554 fi
3555
3556
3557 fi
3558 fi
3559 if test -z "$CC"; then
3560 # Extract the first word of "cc", so it can be a program name with args.
3561 set dummy cc; ac_word=$2
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if ${ac_cv_prog_CC+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 if test -n "$CC"; then
3568 ac_cv_prog_CC="$CC" # Let the user override the test.
3569 else
3570 ac_prog_rejected=no
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3579 ac_prog_rejected=yes
3580 continue
3581 fi
3582 ac_cv_prog_CC="cc"
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 break 2
3585 fi
3586 done
3587 done
3588 IFS=$as_save_IFS
3589
3590 if test $ac_prog_rejected = yes; then
3591 # We found a bogon in the path, so make sure we never use it.
3592 set dummy $ac_cv_prog_CC
3593 shift
3594 if test $# != 0; then
3595 # We chose a different compiler from the bogus one.
3596 # However, it has the same basename, so the bogon will be chosen
3597 # first if we set CC to just the basename; use the full file name.
3598 shift
3599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3600 fi
3601 fi
3602 fi
3603 fi
3604 CC=$ac_cv_prog_CC
3605 if test -n "$CC"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3607 $as_echo "$CC" >&6; }
3608 else
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3611 fi
3612
3613
3614 fi
3615 if test -z "$CC"; then
3616 if test -n "$ac_tool_prefix"; then
3617 for ac_prog in cl.exe
3618 do
3619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622 $as_echo_n "checking for $ac_word... " >&6; }
3623 if ${ac_cv_prog_CC+:} false; then :
3624 $as_echo_n "(cached) " >&6
3625 else
3626 if test -n "$CC"; then
3627 ac_cv_prog_CC="$CC" # Let the user override the test.
3628 else
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH
3631 do
3632 IFS=$as_save_IFS
3633 test -z "$as_dir" && as_dir=.
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 break 2
3639 fi
3640 done
3641 done
3642 IFS=$as_save_IFS
3643
3644 fi
3645 fi
3646 CC=$ac_cv_prog_CC
3647 if test -n "$CC"; then
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649 $as_echo "$CC" >&6; }
3650 else
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 $as_echo "no" >&6; }
3653 fi
3654
3655
3656 test -n "$CC" && break
3657 done
3658 fi
3659 if test -z "$CC"; then
3660 ac_ct_CC=$CC
3661 for ac_prog in cl.exe
3662 do
3663 # Extract the first word of "$ac_prog", so it can be a program name with args.
3664 set dummy $ac_prog; ac_word=$2
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666 $as_echo_n "checking for $ac_word... " >&6; }
3667 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 if test -n "$ac_ct_CC"; then
3671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3672 else
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3675 do
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680 ac_cv_prog_ac_ct_CC="$ac_prog"
3681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 break 2
3683 fi
3684 done
3685 done
3686 IFS=$as_save_IFS
3687
3688 fi
3689 fi
3690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3691 if test -n "$ac_ct_CC"; then
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3693 $as_echo "$ac_ct_CC" >&6; }
3694 else
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3697 fi
3698
3699
3700 test -n "$ac_ct_CC" && break
3701 done
3702
3703 if test "x$ac_ct_CC" = x; then
3704 CC=""
3705 else
3706 case $cross_compiling:$ac_tool_warned in
3707 yes:)
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710 ac_tool_warned=yes ;;
3711 esac
3712 CC=$ac_ct_CC
3713 fi
3714 fi
3715
3716 fi
3717
3718
3719 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "no acceptable C compiler found in \$PATH
3722 See \`config.log' for more details" "$LINENO" 5; }
3723
3724 # Provide some information about the compiler.
3725 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3726 set X $ac_compile
3727 ac_compiler=$2
3728 for ac_option in --version -v -V -qversion; do
3729 { { ac_try="$ac_compiler $ac_option >&5"
3730 case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3737 ac_status=$?
3738 if test -s conftest.err; then
3739 sed '10a\
3740 ... rest of stderr output deleted ...
3741 10q' conftest.err >conftest.er1
3742 cat conftest.er1 >&5
3743 fi
3744 rm -f conftest.er1 conftest.err
3745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746 test $ac_status = 0; }
3747 done
3748
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751
3752 int
3753 main ()
3754 {
3755
3756 ;
3757 return 0;
3758 }
3759 _ACEOF
3760 ac_clean_files_save=$ac_clean_files
3761 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3762 # Try to create an executable without -o first, disregard a.out.
3763 # It will help us diagnose broken compilers, and finding out an intuition
3764 # of exeext.
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3766 $as_echo_n "checking whether the C compiler works... " >&6; }
3767 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3768
3769 # The possible output files:
3770 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3771
3772 ac_rmfiles=
3773 for ac_file in $ac_files
3774 do
3775 case $ac_file in
3776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3777 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3778 esac
3779 done
3780 rm -f $ac_rmfiles
3781
3782 if { { ac_try="$ac_link_default"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789 (eval "$ac_link_default") 2>&5
3790 ac_status=$?
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }; then :
3793 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3794 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3795 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3796 # so that the user can short-circuit this test for compilers unknown to
3797 # Autoconf.
3798 for ac_file in $ac_files ''
3799 do
3800 test -f "$ac_file" || continue
3801 case $ac_file in
3802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3803 ;;
3804 [ab].out )
3805 # We found the default executable, but exeext='' is most
3806 # certainly right.
3807 break;;
3808 *.* )
3809 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3810 then :; else
3811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3812 fi
3813 # We set ac_cv_exeext here because the later test for it is not
3814 # safe: cross compilers may not add the suffix if given an `-o'
3815 # argument, so we may need to know it at that point already.
3816 # Even if this section looks crufty: it has the advantage of
3817 # actually working.
3818 break;;
3819 * )
3820 break;;
3821 esac
3822 done
3823 test "$ac_cv_exeext" = no && ac_cv_exeext=
3824
3825 else
3826 ac_file=''
3827 fi
3828 if test -z "$ac_file"; then :
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3831 $as_echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error 77 "C compiler cannot create executables
3837 See \`config.log' for more details" "$LINENO" 5; }
3838 else
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3840 $as_echo "yes" >&6; }
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3843 $as_echo_n "checking for C compiler default output file name... " >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3845 $as_echo "$ac_file" >&6; }
3846 ac_exeext=$ac_cv_exeext
3847
3848 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3849 ac_clean_files=$ac_clean_files_save
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3851 $as_echo_n "checking for suffix of executables... " >&6; }
3852 if { { ac_try="$ac_link"
3853 case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856 esac
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 $as_echo "$ac_try_echo"; } >&5
3859 (eval "$ac_link") 2>&5
3860 ac_status=$?
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }; then :
3863 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3864 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3865 # work properly (i.e., refer to `conftest.exe'), while it won't with
3866 # `rm'.
3867 for ac_file in conftest.exe conftest conftest.*; do
3868 test -f "$ac_file" || continue
3869 case $ac_file in
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3871 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3872 break;;
3873 * ) break;;
3874 esac
3875 done
3876 else
3877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3880 See \`config.log' for more details" "$LINENO" 5; }
3881 fi
3882 rm -f conftest conftest$ac_cv_exeext
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3884 $as_echo "$ac_cv_exeext" >&6; }
3885
3886 rm -f conftest.$ac_ext
3887 EXEEXT=$ac_cv_exeext
3888 ac_exeext=$EXEEXT
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3891 #include <stdio.h>
3892 int
3893 main ()
3894 {
3895 FILE *f = fopen ("conftest.out", "w");
3896 return ferror (f) || fclose (f) != 0;
3897
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 ac_clean_files="$ac_clean_files conftest.out"
3903 # Check that the compiler produces executables we can run. If not, either
3904 # the compiler is broken, or we cross compile.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3906 $as_echo_n "checking whether we are cross compiling... " >&6; }
3907 if test "$cross_compiling" != yes; then
3908 { { ac_try="$ac_link"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 $as_echo "$ac_try_echo"; } >&5
3915 (eval "$ac_link") 2>&5
3916 ac_status=$?
3917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918 test $ac_status = 0; }
3919 if { ac_try='./conftest$ac_cv_exeext'
3920 { { case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_try") 2>&5
3927 ac_status=$?
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; }; then
3930 cross_compiling=no
3931 else
3932 if test "$cross_compiling" = maybe; then
3933 cross_compiling=yes
3934 else
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error $? "cannot run C compiled programs.
3938 If you meant to cross compile, use \`--host'.
3939 See \`config.log' for more details" "$LINENO" 5; }
3940 fi
3941 fi
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3944 $as_echo "$cross_compiling" >&6; }
3945
3946 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3947 ac_clean_files=$ac_clean_files_save
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3949 $as_echo_n "checking for suffix of object files... " >&6; }
3950 if ${ac_cv_objext+:} false; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955
3956 int
3957 main ()
3958 {
3959
3960 ;
3961 return 0;
3962 }
3963 _ACEOF
3964 rm -f conftest.o conftest.obj
3965 if { { ac_try="$ac_compile"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_compile") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 for ac_file in conftest.o conftest.obj conftest.*; do
3977 test -f "$ac_file" || continue;
3978 case $ac_file in
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3981 break;;
3982 esac
3983 done
3984 else
3985 $as_echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error $? "cannot compute suffix of object files: cannot compile
3991 See \`config.log' for more details" "$LINENO" 5; }
3992 fi
3993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3996 $as_echo "$ac_cv_objext" >&6; }
3997 OBJEXT=$ac_cv_objext
3998 ac_objext=$OBJEXT
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4001 if ${ac_cv_c_compiler_gnu+:} false; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006
4007 int
4008 main ()
4009 {
4010 #ifndef __GNUC__
4011 choke me
4012 #endif
4013
4014 ;
4015 return 0;
4016 }
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_compiler_gnu=yes
4020 else
4021 ac_compiler_gnu=no
4022 fi
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025
4026 fi
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4029 if test $ac_compiler_gnu = yes; then
4030 GCC=yes
4031 else
4032 GCC=
4033 fi
4034 ac_test_CFLAGS=${CFLAGS+set}
4035 ac_save_CFLAGS=$CFLAGS
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4038 if ${ac_cv_prog_cc_g+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 ac_save_c_werror_flag=$ac_c_werror_flag
4042 ac_c_werror_flag=yes
4043 ac_cv_prog_cc_g=no
4044 CFLAGS="-g"
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main ()
4050 {
4051
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_prog_cc_g=yes
4058 else
4059 CFLAGS=""
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062
4063 int
4064 main ()
4065 {
4066
4067 ;
4068 return 0;
4069 }
4070 _ACEOF
4071 if ac_fn_c_try_compile "$LINENO"; then :
4072
4073 else
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4075 CFLAGS="-g"
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4078
4079 int
4080 main ()
4081 {
4082
4083 ;
4084 return 0;
4085 }
4086 _ACEOF
4087 if ac_fn_c_try_compile "$LINENO"; then :
4088 ac_cv_prog_cc_g=yes
4089 fi
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 fi
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 fi
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_c_werror_flag=$ac_save_c_werror_flag
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4098 $as_echo "$ac_cv_prog_cc_g" >&6; }
4099 if test "$ac_test_CFLAGS" = set; then
4100 CFLAGS=$ac_save_CFLAGS
4101 elif test $ac_cv_prog_cc_g = yes; then
4102 if test "$GCC" = yes; then
4103 CFLAGS="-g -O2"
4104 else
4105 CFLAGS="-g"
4106 fi
4107 else
4108 if test "$GCC" = yes; then
4109 CFLAGS="-O2"
4110 else
4111 CFLAGS=
4112 fi
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4116 if ${ac_cv_prog_cc_c89+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 ac_cv_prog_cc_c89=no
4120 ac_save_CC=$CC
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 #include <stdarg.h>
4124 #include <stdio.h>
4125 struct stat;
4126 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4127 struct buf { int x; };
4128 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4129 static char *e (p, i)
4130 char **p;
4131 int i;
4132 {
4133 return p[i];
4134 }
4135 static char *f (char * (*g) (char **, int), char **p, ...)
4136 {
4137 char *s;
4138 va_list v;
4139 va_start (v,p);
4140 s = g (p, va_arg (v,int));
4141 va_end (v);
4142 return s;
4143 }
4144
4145 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4146 function prototypes and stuff, but not '\xHH' hex character constants.
4147 These don't provoke an error unfortunately, instead are silently treated
4148 as 'x'. The following induces an error, until -std is added to get
4149 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4150 array size at least. It's necessary to write '\x00'==0 to get something
4151 that's true only with -std. */
4152 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4153
4154 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4155 inside strings and character constants. */
4156 #define FOO(x) 'x'
4157 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4158
4159 int test (int i, double x);
4160 struct s1 {int (*f) (int a);};
4161 struct s2 {int (*f) (double a);};
4162 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4163 int argc;
4164 char **argv;
4165 int
4166 main ()
4167 {
4168 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4169 ;
4170 return 0;
4171 }
4172 _ACEOF
4173 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4174 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4175 do
4176 CC="$ac_save_CC $ac_arg"
4177 if ac_fn_c_try_compile "$LINENO"; then :
4178 ac_cv_prog_cc_c89=$ac_arg
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext
4181 test "x$ac_cv_prog_cc_c89" != "xno" && break
4182 done
4183 rm -f conftest.$ac_ext
4184 CC=$ac_save_CC
4185
4186 fi
4187 # AC_CACHE_VAL
4188 case "x$ac_cv_prog_cc_c89" in
4189 x)
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4191 $as_echo "none needed" >&6; } ;;
4192 xno)
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4194 $as_echo "unsupported" >&6; } ;;
4195 *)
4196 CC="$CC $ac_cv_prog_cc_c89"
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4198 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4199 esac
4200 if test "x$ac_cv_prog_cc_c89" != xno; then :
4201
4202 fi
4203
4204 ac_ext=c
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209
4210 ac_ext=c
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4216 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4217 if ${am_cv_prog_cc_c_o+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222
4223 int
4224 main ()
4225 {
4226
4227 ;
4228 return 0;
4229 }
4230 _ACEOF
4231 # Make sure it works both with $CC and with simple cc.
4232 # Following AC_PROG_CC_C_O, we do the test twice because some
4233 # compilers refuse to overwrite an existing .o file with -o,
4234 # though they will create one.
4235 am_cv_prog_cc_c_o=yes
4236 for am_i in 1 2; do
4237 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4238 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } \
4242 && test -f conftest2.$ac_objext; then
4243 : OK
4244 else
4245 am_cv_prog_cc_c_o=no
4246 break
4247 fi
4248 done
4249 rm -f core conftest*
4250 unset am_i
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4253 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4254 if test "$am_cv_prog_cc_c_o" != yes; then
4255 # Losing compiler, so override with the script.
4256 # FIXME: It is wrong to rewrite CC.
4257 # But if we don't then we get into trouble of one sort or another.
4258 # A longer-term fix would be to have automake use am__CC in this case,
4259 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4260 CC="$am_aux_dir/compile $CC"
4261 fi
4262 ac_ext=c
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268
4269 depcc="$CC" am_compiler_list=
4270
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4272 $as_echo_n "checking dependency style of $depcc... " >&6; }
4273 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4277 # We make a subdir and do the tests there. Otherwise we can end up
4278 # making bogus files that we don't know about and never remove. For
4279 # instance it was reported that on HP-UX the gcc test will end up
4280 # making a dummy file named 'D' -- because '-MD' means "put the output
4281 # in D".
4282 rm -rf conftest.dir
4283 mkdir conftest.dir
4284 # Copy depcomp to subdir because otherwise we won't find it if we're
4285 # using a relative directory.
4286 cp "$am_depcomp" conftest.dir
4287 cd conftest.dir
4288 # We will build objects and dependencies in a subdirectory because
4289 # it helps to detect inapplicable dependency modes. For instance
4290 # both Tru64's cc and ICC support -MD to output dependencies as a
4291 # side effect of compilation, but ICC will put the dependencies in
4292 # the current directory while Tru64 will put them in the object
4293 # directory.
4294 mkdir sub
4295
4296 am_cv_CC_dependencies_compiler_type=none
4297 if test "$am_compiler_list" = ""; then
4298 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4299 fi
4300 am__universal=false
4301 case " $depcc " in #(
4302 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4303 esac
4304
4305 for depmode in $am_compiler_list; do
4306 # Setup a source with many dependencies, because some compilers
4307 # like to wrap large dependency lists on column 80 (with \), and
4308 # we should not choose a depcomp mode which is confused by this.
4309 #
4310 # We need to recreate these files for each test, as the compiler may
4311 # overwrite some of them when testing with obscure command lines.
4312 # This happens at least with the AIX C compiler.
4313 : > sub/conftest.c
4314 for i in 1 2 3 4 5 6; do
4315 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4316 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4317 # Solaris 10 /bin/sh.
4318 echo '/* dummy */' > sub/conftst$i.h
4319 done
4320 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4321
4322 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4323 # mode. It turns out that the SunPro C++ compiler does not properly
4324 # handle '-M -o', and we need to detect this. Also, some Intel
4325 # versions had trouble with output in subdirs.
4326 am__obj=sub/conftest.${OBJEXT-o}
4327 am__minus_obj="-o $am__obj"
4328 case $depmode in
4329 gcc)
4330 # This depmode causes a compiler race in universal mode.
4331 test "$am__universal" = false || continue
4332 ;;
4333 nosideeffect)
4334 # After this tag, mechanisms are not by side-effect, so they'll
4335 # only be used when explicitly requested.
4336 if test "x$enable_dependency_tracking" = xyes; then
4337 continue
4338 else
4339 break
4340 fi
4341 ;;
4342 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4343 # This compiler won't grok '-c -o', but also, the minuso test has
4344 # not run yet. These depmodes are late enough in the game, and
4345 # so weak that their functioning should not be impacted.
4346 am__obj=conftest.${OBJEXT-o}
4347 am__minus_obj=
4348 ;;
4349 none) break ;;
4350 esac
4351 if depmode=$depmode \
4352 source=sub/conftest.c object=$am__obj \
4353 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4354 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4355 >/dev/null 2>conftest.err &&
4356 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4357 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4358 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4359 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4360 # icc doesn't choke on unknown options, it will just issue warnings
4361 # or remarks (even with -Werror). So we grep stderr for any message
4362 # that says an option was ignored or not supported.
4363 # When given -MP, icc 7.0 and 7.1 complain thusly:
4364 # icc: Command line warning: ignoring option '-M'; no argument required
4365 # The diagnosis changed in icc 8.0:
4366 # icc: Command line remark: option '-MP' not supported
4367 if (grep 'ignoring option' conftest.err ||
4368 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4369 am_cv_CC_dependencies_compiler_type=$depmode
4370 break
4371 fi
4372 fi
4373 done
4374
4375 cd ..
4376 rm -rf conftest.dir
4377 else
4378 am_cv_CC_dependencies_compiler_type=none
4379 fi
4380
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4383 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4384 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4385
4386 if
4387 test "x$enable_dependency_tracking" != xno \
4388 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4389 am__fastdepCC_TRUE=
4390 am__fastdepCC_FALSE='#'
4391 else
4392 am__fastdepCC_TRUE='#'
4393 am__fastdepCC_FALSE=
4394 fi
4395
4396
4397
4398 ac_ext=c
4399 ac_cpp='$CPP $CPPFLAGS'
4400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4404 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4405 # On Suns, sometimes $CPP names a directory.
4406 if test -n "$CPP" && test -d "$CPP"; then
4407 CPP=
4408 fi
4409 if test -z "$CPP"; then
4410 if ${ac_cv_prog_CPP+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 # Double quotes because CPP needs to be expanded
4414 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4415 do
4416 ac_preproc_ok=false
4417 for ac_c_preproc_warn_flag in '' yes
4418 do
4419 # Use a header file that comes with gcc, so configuring glibc
4420 # with a fresh cross-compiler works.
4421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4422 # <limits.h> exists even on freestanding compilers.
4423 # On the NeXT, cc -E runs the code through the compiler's parser,
4424 # not just through cpp. "Syntax error" is here to catch this case.
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427 #ifdef __STDC__
4428 # include <limits.h>
4429 #else
4430 # include <assert.h>
4431 #endif
4432 Syntax error
4433 _ACEOF
4434 if ac_fn_c_try_cpp "$LINENO"; then :
4435
4436 else
4437 # Broken: fails on valid input.
4438 continue
4439 fi
4440 rm -f conftest.err conftest.i conftest.$ac_ext
4441
4442 # OK, works on sane cases. Now check whether nonexistent headers
4443 # can be detected and how.
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <ac_nonexistent.h>
4447 _ACEOF
4448 if ac_fn_c_try_cpp "$LINENO"; then :
4449 # Broken: success on invalid input.
4450 continue
4451 else
4452 # Passes both tests.
4453 ac_preproc_ok=:
4454 break
4455 fi
4456 rm -f conftest.err conftest.i conftest.$ac_ext
4457
4458 done
4459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4460 rm -f conftest.i conftest.err conftest.$ac_ext
4461 if $ac_preproc_ok; then :
4462 break
4463 fi
4464
4465 done
4466 ac_cv_prog_CPP=$CPP
4467
4468 fi
4469 CPP=$ac_cv_prog_CPP
4470 else
4471 ac_cv_prog_CPP=$CPP
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4474 $as_echo "$CPP" >&6; }
4475 ac_preproc_ok=false
4476 for ac_c_preproc_warn_flag in '' yes
4477 do
4478 # Use a header file that comes with gcc, so configuring glibc
4479 # with a fresh cross-compiler works.
4480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4481 # <limits.h> exists even on freestanding compilers.
4482 # On the NeXT, cc -E runs the code through the compiler's parser,
4483 # not just through cpp. "Syntax error" is here to catch this case.
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486 #ifdef __STDC__
4487 # include <limits.h>
4488 #else
4489 # include <assert.h>
4490 #endif
4491 Syntax error
4492 _ACEOF
4493 if ac_fn_c_try_cpp "$LINENO"; then :
4494
4495 else
4496 # Broken: fails on valid input.
4497 continue
4498 fi
4499 rm -f conftest.err conftest.i conftest.$ac_ext
4500
4501 # OK, works on sane cases. Now check whether nonexistent headers
4502 # can be detected and how.
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505 #include <ac_nonexistent.h>
4506 _ACEOF
4507 if ac_fn_c_try_cpp "$LINENO"; then :
4508 # Broken: success on invalid input.
4509 continue
4510 else
4511 # Passes both tests.
4512 ac_preproc_ok=:
4513 break
4514 fi
4515 rm -f conftest.err conftest.i conftest.$ac_ext
4516
4517 done
4518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4519 rm -f conftest.i conftest.err conftest.$ac_ext
4520 if $ac_preproc_ok; then :
4521
4522 else
4523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4525 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4526 See \`config.log' for more details" "$LINENO" 5; }
4527 fi
4528
4529 ac_ext=c
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4537 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4538 if ${ac_cv_path_GREP+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -z "$GREP"; then
4542 ac_path_GREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4546 do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in grep ggrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4552 as_fn_executable_p "$ac_path_GREP" || continue
4553 # Check for GNU ac_path_GREP and select it if it is found.
4554 # Check for GNU $ac_path_GREP
4555 case `"$ac_path_GREP" --version 2>&1` in
4556 *GNU*)
4557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4558 *)
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4562 do
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo 'GREP' >> "conftest.nl"
4567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_GREP="$ac_path_GREP"
4573 ac_path_GREP_max=$ac_count
4574 fi
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4580
4581 $ac_path_GREP_found && break 3
4582 done
4583 done
4584 done
4585 IFS=$as_save_IFS
4586 if test -z "$ac_cv_path_GREP"; then
4587 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4588 fi
4589 else
4590 ac_cv_path_GREP=$GREP
4591 fi
4592
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4595 $as_echo "$ac_cv_path_GREP" >&6; }
4596 GREP="$ac_cv_path_GREP"
4597
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4600 $as_echo_n "checking for egrep... " >&6; }
4601 if ${ac_cv_path_EGREP+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4605 then ac_cv_path_EGREP="$GREP -E"
4606 else
4607 if test -z "$EGREP"; then
4608 ac_path_EGREP_found=false
4609 # Loop through the user's path and test for each of PROGNAME-LIST
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4612 do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_prog in egrep; do
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4618 as_fn_executable_p "$ac_path_EGREP" || continue
4619 # Check for GNU ac_path_EGREP and select it if it is found.
4620 # Check for GNU $ac_path_EGREP
4621 case `"$ac_path_EGREP" --version 2>&1` in
4622 *GNU*)
4623 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4624 *)
4625 ac_count=0
4626 $as_echo_n 0123456789 >"conftest.in"
4627 while :
4628 do
4629 cat "conftest.in" "conftest.in" >"conftest.tmp"
4630 mv "conftest.tmp" "conftest.in"
4631 cp "conftest.in" "conftest.nl"
4632 $as_echo 'EGREP' >> "conftest.nl"
4633 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635 as_fn_arith $ac_count + 1 && ac_count=$as_val
4636 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4637 # Best one so far, save it but keep looking for a better one
4638 ac_cv_path_EGREP="$ac_path_EGREP"
4639 ac_path_EGREP_max=$ac_count
4640 fi
4641 # 10*(2^10) chars as input seems more than enough
4642 test $ac_count -gt 10 && break
4643 done
4644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4645 esac
4646
4647 $ac_path_EGREP_found && break 3
4648 done
4649 done
4650 done
4651 IFS=$as_save_IFS
4652 if test -z "$ac_cv_path_EGREP"; then
4653 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4654 fi
4655 else
4656 ac_cv_path_EGREP=$EGREP
4657 fi
4658
4659 fi
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4662 $as_echo "$ac_cv_path_EGREP" >&6; }
4663 EGREP="$ac_cv_path_EGREP"
4664
4665
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4667 $as_echo_n "checking for ANSI C header files... " >&6; }
4668 if ${ac_cv_header_stdc+:} false; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673 #include <stdlib.h>
4674 #include <stdarg.h>
4675 #include <string.h>
4676 #include <float.h>
4677
4678 int
4679 main ()
4680 {
4681
4682 ;
4683 return 0;
4684 }
4685 _ACEOF
4686 if ac_fn_c_try_compile "$LINENO"; then :
4687 ac_cv_header_stdc=yes
4688 else
4689 ac_cv_header_stdc=no
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692
4693 if test $ac_cv_header_stdc = yes; then
4694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <string.h>
4698
4699 _ACEOF
4700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4701 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714 #include <stdlib.h>
4715
4716 _ACEOF
4717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4718 $EGREP "free" >/dev/null 2>&1; then :
4719
4720 else
4721 ac_cv_header_stdc=no
4722 fi
4723 rm -f conftest*
4724
4725 fi
4726
4727 if test $ac_cv_header_stdc = yes; then
4728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4729 if test "$cross_compiling" = yes; then :
4730 :
4731 else
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4734 #include <ctype.h>
4735 #include <stdlib.h>
4736 #if ((' ' & 0x0FF) == 0x020)
4737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4739 #else
4740 # define ISLOWER(c) \
4741 (('a' <= (c) && (c) <= 'i') \
4742 || ('j' <= (c) && (c) <= 'r') \
4743 || ('s' <= (c) && (c) <= 'z'))
4744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4745 #endif
4746
4747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4748 int
4749 main ()
4750 {
4751 int i;
4752 for (i = 0; i < 256; i++)
4753 if (XOR (islower (i), ISLOWER (i))
4754 || toupper (i) != TOUPPER (i))
4755 return 2;
4756 return 0;
4757 }
4758 _ACEOF
4759 if ac_fn_c_try_run "$LINENO"; then :
4760
4761 else
4762 ac_cv_header_stdc=no
4763 fi
4764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4765 conftest.$ac_objext conftest.beam conftest.$ac_ext
4766 fi
4767
4768 fi
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4771 $as_echo "$ac_cv_header_stdc" >&6; }
4772 if test $ac_cv_header_stdc = yes; then
4773
4774 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4775
4776 fi
4777
4778 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4779 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4780 inttypes.h stdint.h unistd.h
4781 do :
4782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4783 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4784 "
4785 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4786 cat >>confdefs.h <<_ACEOF
4787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4788 _ACEOF
4789
4790 fi
4791
4792 done
4793
4794
4795
4796 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4797 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4798 MINIX=yes
4799 else
4800 MINIX=
4801 fi
4802
4803
4804 if test "$MINIX" = yes; then
4805
4806 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4807
4808
4809 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4810
4811
4812 $as_echo "#define _MINIX 1" >>confdefs.h
4813
4814 fi
4815
4816
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4818 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4819 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4824
4825 # define __EXTENSIONS__ 1
4826 $ac_includes_default
4827 int
4828 main ()
4829 {
4830
4831 ;
4832 return 0;
4833 }
4834 _ACEOF
4835 if ac_fn_c_try_compile "$LINENO"; then :
4836 ac_cv_safe_to_define___extensions__=yes
4837 else
4838 ac_cv_safe_to_define___extensions__=no
4839 fi
4840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4843 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4844 test $ac_cv_safe_to_define___extensions__ = yes &&
4845 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4846
4847 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4848
4849 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4850
4851 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4852
4853 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4854
4855
4856
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4859 $as_echo_n "checking whether ln -s works... " >&6; }
4860 LN_S=$as_ln_s
4861 if test "$LN_S" = "ln -s"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4863 $as_echo "yes" >&6; }
4864 else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4866 $as_echo "no, using $LN_S" >&6; }
4867 fi
4868
4869 ac_ext=c
4870 ac_cpp='$CPP $CPPFLAGS'
4871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4874 if test -n "$ac_tool_prefix"; then
4875 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4876 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if ${ac_cv_prog_CC+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 if test -n "$CC"; then
4883 ac_cv_prog_CC="$CC" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4895 fi
4896 done
4897 done
4898 IFS=$as_save_IFS
4899
4900 fi
4901 fi
4902 CC=$ac_cv_prog_CC
4903 if test -n "$CC"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4905 $as_echo "$CC" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909 fi
4910
4911
4912 fi
4913 if test -z "$ac_cv_prog_CC"; then
4914 ac_ct_CC=$CC
4915 # Extract the first word of "gcc", so it can be a program name with args.
4916 set dummy gcc; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$ac_ct_CC"; then
4923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4927 do
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4932 ac_cv_prog_ac_ct_CC="gcc"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4935 fi
4936 done
4937 done
4938 IFS=$as_save_IFS
4939
4940 fi
4941 fi
4942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4943 if test -n "$ac_ct_CC"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4945 $as_echo "$ac_ct_CC" >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4949 fi
4950
4951 if test "x$ac_ct_CC" = x; then
4952 CC=""
4953 else
4954 case $cross_compiling:$ac_tool_warned in
4955 yes:)
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4958 ac_tool_warned=yes ;;
4959 esac
4960 CC=$ac_ct_CC
4961 fi
4962 else
4963 CC="$ac_cv_prog_CC"
4964 fi
4965
4966 if test -z "$CC"; then
4967 if test -n "$ac_tool_prefix"; then
4968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4969 set dummy ${ac_tool_prefix}cc; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if ${ac_cv_prog_CC+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 if test -n "$CC"; then
4976 ac_cv_prog_CC="$CC" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_CC="${ac_tool_prefix}cc"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4988 fi
4989 done
4990 done
4991 IFS=$as_save_IFS
4992
4993 fi
4994 fi
4995 CC=$ac_cv_prog_CC
4996 if test -n "$CC"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4998 $as_echo "$CC" >&6; }
4999 else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5002 fi
5003
5004
5005 fi
5006 fi
5007 if test -z "$CC"; then
5008 # Extract the first word of "cc", so it can be a program name with args.
5009 set dummy cc; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_prog_CC+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 if test -n "$CC"; then
5016 ac_cv_prog_CC="$CC" # Let the user override the test.
5017 else
5018 ac_prog_rejected=no
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5027 ac_prog_rejected=yes
5028 continue
5029 fi
5030 ac_cv_prog_CC="cc"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034 done
5035 done
5036 IFS=$as_save_IFS
5037
5038 if test $ac_prog_rejected = yes; then
5039 # We found a bogon in the path, so make sure we never use it.
5040 set dummy $ac_cv_prog_CC
5041 shift
5042 if test $# != 0; then
5043 # We chose a different compiler from the bogus one.
5044 # However, it has the same basename, so the bogon will be chosen
5045 # first if we set CC to just the basename; use the full file name.
5046 shift
5047 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5048 fi
5049 fi
5050 fi
5051 fi
5052 CC=$ac_cv_prog_CC
5053 if test -n "$CC"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5055 $as_echo "$CC" >&6; }
5056 else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5059 fi
5060
5061
5062 fi
5063 if test -z "$CC"; then
5064 if test -n "$ac_tool_prefix"; then
5065 for ac_prog in cl.exe
5066 do
5067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if ${ac_cv_prog_CC+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 if test -n "$CC"; then
5075 ac_cv_prog_CC="$CC" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5087 fi
5088 done
5089 done
5090 IFS=$as_save_IFS
5091
5092 fi
5093 fi
5094 CC=$ac_cv_prog_CC
5095 if test -n "$CC"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5097 $as_echo "$CC" >&6; }
5098 else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101 fi
5102
5103
5104 test -n "$CC" && break
5105 done
5106 fi
5107 if test -z "$CC"; then
5108 ac_ct_CC=$CC
5109 for ac_prog in cl.exe
5110 do
5111 # Extract the first word of "$ac_prog", so it can be a program name with args.
5112 set dummy $ac_prog; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if test -n "$ac_ct_CC"; then
5119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_ac_ct_CC="$ac_prog"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132 done
5133 done
5134 IFS=$as_save_IFS
5135
5136 fi
5137 fi
5138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5139 if test -n "$ac_ct_CC"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5141 $as_echo "$ac_ct_CC" >&6; }
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147
5148 test -n "$ac_ct_CC" && break
5149 done
5150
5151 if test "x$ac_ct_CC" = x; then
5152 CC=""
5153 else
5154 case $cross_compiling:$ac_tool_warned in
5155 yes:)
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158 ac_tool_warned=yes ;;
5159 esac
5160 CC=$ac_ct_CC
5161 fi
5162 fi
5163
5164 fi
5165
5166
5167 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5169 as_fn_error $? "no acceptable C compiler found in \$PATH
5170 See \`config.log' for more details" "$LINENO" 5; }
5171
5172 # Provide some information about the compiler.
5173 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5174 set X $ac_compile
5175 ac_compiler=$2
5176 for ac_option in --version -v -V -qversion; do
5177 { { ac_try="$ac_compiler $ac_option >&5"
5178 case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5181 esac
5182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5183 $as_echo "$ac_try_echo"; } >&5
5184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5185 ac_status=$?
5186 if test -s conftest.err; then
5187 sed '10a\
5188 ... rest of stderr output deleted ...
5189 10q' conftest.err >conftest.er1
5190 cat conftest.er1 >&5
5191 fi
5192 rm -f conftest.er1 conftest.err
5193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5194 test $ac_status = 0; }
5195 done
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5198 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5199 if ${ac_cv_c_compiler_gnu+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204
5205 int
5206 main ()
5207 {
5208 #ifndef __GNUC__
5209 choke me
5210 #endif
5211
5212 ;
5213 return 0;
5214 }
5215 _ACEOF
5216 if ac_fn_c_try_compile "$LINENO"; then :
5217 ac_compiler_gnu=yes
5218 else
5219 ac_compiler_gnu=no
5220 fi
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5223
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5226 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5227 if test $ac_compiler_gnu = yes; then
5228 GCC=yes
5229 else
5230 GCC=
5231 fi
5232 ac_test_CFLAGS=${CFLAGS+set}
5233 ac_save_CFLAGS=$CFLAGS
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5235 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5236 if ${ac_cv_prog_cc_g+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 ac_save_c_werror_flag=$ac_c_werror_flag
5240 ac_c_werror_flag=yes
5241 ac_cv_prog_cc_g=no
5242 CFLAGS="-g"
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245
5246 int
5247 main ()
5248 {
5249
5250 ;
5251 return 0;
5252 }
5253 _ACEOF
5254 if ac_fn_c_try_compile "$LINENO"; then :
5255 ac_cv_prog_cc_g=yes
5256 else
5257 CFLAGS=""
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5260
5261 int
5262 main ()
5263 {
5264
5265 ;
5266 return 0;
5267 }
5268 _ACEOF
5269 if ac_fn_c_try_compile "$LINENO"; then :
5270
5271 else
5272 ac_c_werror_flag=$ac_save_c_werror_flag
5273 CFLAGS="-g"
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276
5277 int
5278 main ()
5279 {
5280
5281 ;
5282 return 0;
5283 }
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"; then :
5286 ac_cv_prog_cc_g=yes
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 fi
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 fi
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 ac_c_werror_flag=$ac_save_c_werror_flag
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5296 $as_echo "$ac_cv_prog_cc_g" >&6; }
5297 if test "$ac_test_CFLAGS" = set; then
5298 CFLAGS=$ac_save_CFLAGS
5299 elif test $ac_cv_prog_cc_g = yes; then
5300 if test "$GCC" = yes; then
5301 CFLAGS="-g -O2"
5302 else
5303 CFLAGS="-g"
5304 fi
5305 else
5306 if test "$GCC" = yes; then
5307 CFLAGS="-O2"
5308 else
5309 CFLAGS=
5310 fi
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5313 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5314 if ${ac_cv_prog_cc_c89+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 ac_cv_prog_cc_c89=no
5318 ac_save_CC=$CC
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321 #include <stdarg.h>
5322 #include <stdio.h>
5323 struct stat;
5324 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5325 struct buf { int x; };
5326 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5327 static char *e (p, i)
5328 char **p;
5329 int i;
5330 {
5331 return p[i];
5332 }
5333 static char *f (char * (*g) (char **, int), char **p, ...)
5334 {
5335 char *s;
5336 va_list v;
5337 va_start (v,p);
5338 s = g (p, va_arg (v,int));
5339 va_end (v);
5340 return s;
5341 }
5342
5343 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5344 function prototypes and stuff, but not '\xHH' hex character constants.
5345 These don't provoke an error unfortunately, instead are silently treated
5346 as 'x'. The following induces an error, until -std is added to get
5347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5348 array size at least. It's necessary to write '\x00'==0 to get something
5349 that's true only with -std. */
5350 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5351
5352 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5353 inside strings and character constants. */
5354 #define FOO(x) 'x'
5355 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5356
5357 int test (int i, double x);
5358 struct s1 {int (*f) (int a);};
5359 struct s2 {int (*f) (double a);};
5360 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5361 int argc;
5362 char **argv;
5363 int
5364 main ()
5365 {
5366 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5367 ;
5368 return 0;
5369 }
5370 _ACEOF
5371 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5373 do
5374 CC="$ac_save_CC $ac_arg"
5375 if ac_fn_c_try_compile "$LINENO"; then :
5376 ac_cv_prog_cc_c89=$ac_arg
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext
5379 test "x$ac_cv_prog_cc_c89" != "xno" && break
5380 done
5381 rm -f conftest.$ac_ext
5382 CC=$ac_save_CC
5383
5384 fi
5385 # AC_CACHE_VAL
5386 case "x$ac_cv_prog_cc_c89" in
5387 x)
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5389 $as_echo "none needed" >&6; } ;;
5390 xno)
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5392 $as_echo "unsupported" >&6; } ;;
5393 *)
5394 CC="$CC $ac_cv_prog_cc_c89"
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5396 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5397 esac
5398 if test "x$ac_cv_prog_cc_c89" != xno; then :
5399
5400 fi
5401
5402 ac_ext=c
5403 ac_cpp='$CPP $CPPFLAGS'
5404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5407
5408 ac_ext=c
5409 ac_cpp='$CPP $CPPFLAGS'
5410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5414 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5415 if ${am_cv_prog_cc_c_o+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420
5421 int
5422 main ()
5423 {
5424
5425 ;
5426 return 0;
5427 }
5428 _ACEOF
5429 # Make sure it works both with $CC and with simple cc.
5430 # Following AC_PROG_CC_C_O, we do the test twice because some
5431 # compilers refuse to overwrite an existing .o file with -o,
5432 # though they will create one.
5433 am_cv_prog_cc_c_o=yes
5434 for am_i in 1 2; do
5435 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5436 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } \
5440 && test -f conftest2.$ac_objext; then
5441 : OK
5442 else
5443 am_cv_prog_cc_c_o=no
5444 break
5445 fi
5446 done
5447 rm -f core conftest*
5448 unset am_i
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5451 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5452 if test "$am_cv_prog_cc_c_o" != yes; then
5453 # Losing compiler, so override with the script.
5454 # FIXME: It is wrong to rewrite CC.
5455 # But if we don't then we get into trouble of one sort or another.
5456 # A longer-term fix would be to have automake use am__CC in this case,
5457 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5458 CC="$am_aux_dir/compile $CC"
5459 fi
5460 ac_ext=c
5461 ac_cpp='$CPP $CPPFLAGS'
5462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5465
5466
5467 depcc="$CC" am_compiler_list=
5468
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5470 $as_echo_n "checking dependency style of $depcc... " >&6; }
5471 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5475 # We make a subdir and do the tests there. Otherwise we can end up
5476 # making bogus files that we don't know about and never remove. For
5477 # instance it was reported that on HP-UX the gcc test will end up
5478 # making a dummy file named 'D' -- because '-MD' means "put the output
5479 # in D".
5480 rm -rf conftest.dir
5481 mkdir conftest.dir
5482 # Copy depcomp to subdir because otherwise we won't find it if we're
5483 # using a relative directory.
5484 cp "$am_depcomp" conftest.dir
5485 cd conftest.dir
5486 # We will build objects and dependencies in a subdirectory because
5487 # it helps to detect inapplicable dependency modes. For instance
5488 # both Tru64's cc and ICC support -MD to output dependencies as a
5489 # side effect of compilation, but ICC will put the dependencies in
5490 # the current directory while Tru64 will put them in the object
5491 # directory.
5492 mkdir sub
5493
5494 am_cv_CC_dependencies_compiler_type=none
5495 if test "$am_compiler_list" = ""; then
5496 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5497 fi
5498 am__universal=false
5499 case " $depcc " in #(
5500 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5501 esac
5502
5503 for depmode in $am_compiler_list; do
5504 # Setup a source with many dependencies, because some compilers
5505 # like to wrap large dependency lists on column 80 (with \), and
5506 # we should not choose a depcomp mode which is confused by this.
5507 #
5508 # We need to recreate these files for each test, as the compiler may
5509 # overwrite some of them when testing with obscure command lines.
5510 # This happens at least with the AIX C compiler.
5511 : > sub/conftest.c
5512 for i in 1 2 3 4 5 6; do
5513 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5514 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5515 # Solaris 10 /bin/sh.
5516 echo '/* dummy */' > sub/conftst$i.h
5517 done
5518 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5519
5520 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5521 # mode. It turns out that the SunPro C++ compiler does not properly
5522 # handle '-M -o', and we need to detect this. Also, some Intel
5523 # versions had trouble with output in subdirs.
5524 am__obj=sub/conftest.${OBJEXT-o}
5525 am__minus_obj="-o $am__obj"
5526 case $depmode in
5527 gcc)
5528 # This depmode causes a compiler race in universal mode.
5529 test "$am__universal" = false || continue
5530 ;;
5531 nosideeffect)
5532 # After this tag, mechanisms are not by side-effect, so they'll
5533 # only be used when explicitly requested.
5534 if test "x$enable_dependency_tracking" = xyes; then
5535 continue
5536 else
5537 break
5538 fi
5539 ;;
5540 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5541 # This compiler won't grok '-c -o', but also, the minuso test has
5542 # not run yet. These depmodes are late enough in the game, and
5543 # so weak that their functioning should not be impacted.
5544 am__obj=conftest.${OBJEXT-o}
5545 am__minus_obj=
5546 ;;
5547 none) break ;;
5548 esac
5549 if depmode=$depmode \
5550 source=sub/conftest.c object=$am__obj \
5551 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5552 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5553 >/dev/null 2>conftest.err &&
5554 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5555 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5556 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5557 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5558 # icc doesn't choke on unknown options, it will just issue warnings
5559 # or remarks (even with -Werror). So we grep stderr for any message
5560 # that says an option was ignored or not supported.
5561 # When given -MP, icc 7.0 and 7.1 complain thusly:
5562 # icc: Command line warning: ignoring option '-M'; no argument required
5563 # The diagnosis changed in icc 8.0:
5564 # icc: Command line remark: option '-MP' not supported
5565 if (grep 'ignoring option' conftest.err ||
5566 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5567 am_cv_CC_dependencies_compiler_type=$depmode
5568 break
5569 fi
5570 fi
5571 done
5572
5573 cd ..
5574 rm -rf conftest.dir
5575 else
5576 am_cv_CC_dependencies_compiler_type=none
5577 fi
5578
5579 fi
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5581 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5582 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5583
5584 if
5585 test "x$enable_dependency_tracking" != xno \
5586 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5587 am__fastdepCC_TRUE=
5588 am__fastdepCC_FALSE='#'
5589 else
5590 am__fastdepCC_TRUE='#'
5591 am__fastdepCC_FALSE=
5592 fi
5593
5594
5595 ac_ext=cpp
5596 ac_cpp='$CXXCPP $CPPFLAGS'
5597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5600 if test -z "$CXX"; then
5601 if test -n "$CCC"; then
5602 CXX=$CCC
5603 else
5604 if test -n "$ac_tool_prefix"; then
5605 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5606 do
5607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if ${ac_cv_prog_CXX+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if test -n "$CXX"; then
5615 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5627 fi
5628 done
5629 done
5630 IFS=$as_save_IFS
5631
5632 fi
5633 fi
5634 CXX=$ac_cv_prog_CXX
5635 if test -n "$CXX"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5637 $as_echo "$CXX" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5641 fi
5642
5643
5644 test -n "$CXX" && break
5645 done
5646 fi
5647 if test -z "$CXX"; then
5648 ac_ct_CXX=$CXX
5649 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5650 do
5651 # Extract the first word of "$ac_prog", so it can be a program name with args.
5652 set dummy $ac_prog; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$ac_ct_CXX"; then
5659 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_ac_ct_CXX="$ac_prog"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672 done
5673 done
5674 IFS=$as_save_IFS
5675
5676 fi
5677 fi
5678 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5679 if test -n "$ac_ct_CXX"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5681 $as_echo "$ac_ct_CXX" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5685 fi
5686
5687
5688 test -n "$ac_ct_CXX" && break
5689 done
5690
5691 if test "x$ac_ct_CXX" = x; then
5692 CXX="g++"
5693 else
5694 case $cross_compiling:$ac_tool_warned in
5695 yes:)
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5698 ac_tool_warned=yes ;;
5699 esac
5700 CXX=$ac_ct_CXX
5701 fi
5702 fi
5703
5704 fi
5705 fi
5706 # Provide some information about the compiler.
5707 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5708 set X $ac_compile
5709 ac_compiler=$2
5710 for ac_option in --version -v -V -qversion; do
5711 { { ac_try="$ac_compiler $ac_option >&5"
5712 case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715 esac
5716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5717 $as_echo "$ac_try_echo"; } >&5
5718 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5719 ac_status=$?
5720 if test -s conftest.err; then
5721 sed '10a\
5722 ... rest of stderr output deleted ...
5723 10q' conftest.err >conftest.er1
5724 cat conftest.er1 >&5
5725 fi
5726 rm -f conftest.er1 conftest.err
5727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5728 test $ac_status = 0; }
5729 done
5730
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5732 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5733 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738
5739 int
5740 main ()
5741 {
5742 #ifndef __GNUC__
5743 choke me
5744 #endif
5745
5746 ;
5747 return 0;
5748 }
5749 _ACEOF
5750 if ac_fn_cxx_try_compile "$LINENO"; then :
5751 ac_compiler_gnu=yes
5752 else
5753 ac_compiler_gnu=no
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5757
5758 fi
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5760 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5761 if test $ac_compiler_gnu = yes; then
5762 GXX=yes
5763 else
5764 GXX=
5765 fi
5766 ac_test_CXXFLAGS=${CXXFLAGS+set}
5767 ac_save_CXXFLAGS=$CXXFLAGS
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5769 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5770 if ${ac_cv_prog_cxx_g+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5774 ac_cxx_werror_flag=yes
5775 ac_cv_prog_cxx_g=no
5776 CXXFLAGS="-g"
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779
5780 int
5781 main ()
5782 {
5783
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 if ac_fn_cxx_try_compile "$LINENO"; then :
5789 ac_cv_prog_cxx_g=yes
5790 else
5791 CXXFLAGS=""
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794
5795 int
5796 main ()
5797 {
5798
5799 ;
5800 return 0;
5801 }
5802 _ACEOF
5803 if ac_fn_cxx_try_compile "$LINENO"; then :
5804
5805 else
5806 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5807 CXXFLAGS="-g"
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810
5811 int
5812 main ()
5813 {
5814
5815 ;
5816 return 0;
5817 }
5818 _ACEOF
5819 if ac_fn_cxx_try_compile "$LINENO"; then :
5820 ac_cv_prog_cxx_g=yes
5821 fi
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825 fi
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5828 fi
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5830 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5831 if test "$ac_test_CXXFLAGS" = set; then
5832 CXXFLAGS=$ac_save_CXXFLAGS
5833 elif test $ac_cv_prog_cxx_g = yes; then
5834 if test "$GXX" = yes; then
5835 CXXFLAGS="-g -O2"
5836 else
5837 CXXFLAGS="-g"
5838 fi
5839 else
5840 if test "$GXX" = yes; then
5841 CXXFLAGS="-O2"
5842 else
5843 CXXFLAGS=
5844 fi
5845 fi
5846 ac_ext=c
5847 ac_cpp='$CPP $CPPFLAGS'
5848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5851
5852 depcc="$CXX" am_compiler_list=
5853
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5855 $as_echo_n "checking dependency style of $depcc... " >&6; }
5856 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5860 # We make a subdir and do the tests there. Otherwise we can end up
5861 # making bogus files that we don't know about and never remove. For
5862 # instance it was reported that on HP-UX the gcc test will end up
5863 # making a dummy file named 'D' -- because '-MD' means "put the output
5864 # in D".
5865 rm -rf conftest.dir
5866 mkdir conftest.dir
5867 # Copy depcomp to subdir because otherwise we won't find it if we're
5868 # using a relative directory.
5869 cp "$am_depcomp" conftest.dir
5870 cd conftest.dir
5871 # We will build objects and dependencies in a subdirectory because
5872 # it helps to detect inapplicable dependency modes. For instance
5873 # both Tru64's cc and ICC support -MD to output dependencies as a
5874 # side effect of compilation, but ICC will put the dependencies in
5875 # the current directory while Tru64 will put them in the object
5876 # directory.
5877 mkdir sub
5878
5879 am_cv_CXX_dependencies_compiler_type=none
5880 if test "$am_compiler_list" = ""; then
5881 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5882 fi
5883 am__universal=false
5884 case " $depcc " in #(
5885 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5886 esac
5887
5888 for depmode in $am_compiler_list; do
5889 # Setup a source with many dependencies, because some compilers
5890 # like to wrap large dependency lists on column 80 (with \), and
5891 # we should not choose a depcomp mode which is confused by this.
5892 #
5893 # We need to recreate these files for each test, as the compiler may
5894 # overwrite some of them when testing with obscure command lines.
5895 # This happens at least with the AIX C compiler.
5896 : > sub/conftest.c
5897 for i in 1 2 3 4 5 6; do
5898 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5899 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5900 # Solaris 10 /bin/sh.
5901 echo '/* dummy */' > sub/conftst$i.h
5902 done
5903 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5904
5905 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5906 # mode. It turns out that the SunPro C++ compiler does not properly
5907 # handle '-M -o', and we need to detect this. Also, some Intel
5908 # versions had trouble with output in subdirs.
5909 am__obj=sub/conftest.${OBJEXT-o}
5910 am__minus_obj="-o $am__obj"
5911 case $depmode in
5912 gcc)
5913 # This depmode causes a compiler race in universal mode.
5914 test "$am__universal" = false || continue
5915 ;;
5916 nosideeffect)
5917 # After this tag, mechanisms are not by side-effect, so they'll
5918 # only be used when explicitly requested.
5919 if test "x$enable_dependency_tracking" = xyes; then
5920 continue
5921 else
5922 break
5923 fi
5924 ;;
5925 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5926 # This compiler won't grok '-c -o', but also, the minuso test has
5927 # not run yet. These depmodes are late enough in the game, and
5928 # so weak that their functioning should not be impacted.
5929 am__obj=conftest.${OBJEXT-o}
5930 am__minus_obj=
5931 ;;
5932 none) break ;;
5933 esac
5934 if depmode=$depmode \
5935 source=sub/conftest.c object=$am__obj \
5936 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5937 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5938 >/dev/null 2>conftest.err &&
5939 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5940 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5941 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5942 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5943 # icc doesn't choke on unknown options, it will just issue warnings
5944 # or remarks (even with -Werror). So we grep stderr for any message
5945 # that says an option was ignored or not supported.
5946 # When given -MP, icc 7.0 and 7.1 complain thusly:
5947 # icc: Command line warning: ignoring option '-M'; no argument required
5948 # The diagnosis changed in icc 8.0:
5949 # icc: Command line remark: option '-MP' not supported
5950 if (grep 'ignoring option' conftest.err ||
5951 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5952 am_cv_CXX_dependencies_compiler_type=$depmode
5953 break
5954 fi
5955 fi
5956 done
5957
5958 cd ..
5959 rm -rf conftest.dir
5960 else
5961 am_cv_CXX_dependencies_compiler_type=none
5962 fi
5963
5964 fi
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5966 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5967 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5968
5969 if
5970 test "x$enable_dependency_tracking" != xno \
5971 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5972 am__fastdepCXX_TRUE=
5973 am__fastdepCXX_FALSE='#'
5974 else
5975 am__fastdepCXX_TRUE='#'
5976 am__fastdepCXX_FALSE=
5977 fi
5978
5979
5980 ac_ext=c
5981 ac_cpp='$CPP $CPPFLAGS'
5982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5986 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5987 # On Suns, sometimes $CPP names a directory.
5988 if test -n "$CPP" && test -d "$CPP"; then
5989 CPP=
5990 fi
5991 if test -z "$CPP"; then
5992 if ${ac_cv_prog_CPP+:} false; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 # Double quotes because CPP needs to be expanded
5996 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5997 do
5998 ac_preproc_ok=false
5999 for ac_c_preproc_warn_flag in '' yes
6000 do
6001 # Use a header file that comes with gcc, so configuring glibc
6002 # with a fresh cross-compiler works.
6003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 # <limits.h> exists even on freestanding compilers.
6005 # On the NeXT, cc -E runs the code through the compiler's parser,
6006 # not just through cpp. "Syntax error" is here to catch this case.
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #ifdef __STDC__
6010 # include <limits.h>
6011 #else
6012 # include <assert.h>
6013 #endif
6014 Syntax error
6015 _ACEOF
6016 if ac_fn_c_try_cpp "$LINENO"; then :
6017
6018 else
6019 # Broken: fails on valid input.
6020 continue
6021 fi
6022 rm -f conftest.err conftest.i conftest.$ac_ext
6023
6024 # OK, works on sane cases. Now check whether nonexistent headers
6025 # can be detected and how.
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028 #include <ac_nonexistent.h>
6029 _ACEOF
6030 if ac_fn_c_try_cpp "$LINENO"; then :
6031 # Broken: success on invalid input.
6032 continue
6033 else
6034 # Passes both tests.
6035 ac_preproc_ok=:
6036 break
6037 fi
6038 rm -f conftest.err conftest.i conftest.$ac_ext
6039
6040 done
6041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6042 rm -f conftest.i conftest.err conftest.$ac_ext
6043 if $ac_preproc_ok; then :
6044 break
6045 fi
6046
6047 done
6048 ac_cv_prog_CPP=$CPP
6049
6050 fi
6051 CPP=$ac_cv_prog_CPP
6052 else
6053 ac_cv_prog_CPP=$CPP
6054 fi
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6056 $as_echo "$CPP" >&6; }
6057 ac_preproc_ok=false
6058 for ac_c_preproc_warn_flag in '' yes
6059 do
6060 # Use a header file that comes with gcc, so configuring glibc
6061 # with a fresh cross-compiler works.
6062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6063 # <limits.h> exists even on freestanding compilers.
6064 # On the NeXT, cc -E runs the code through the compiler's parser,
6065 # not just through cpp. "Syntax error" is here to catch this case.
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 #ifdef __STDC__
6069 # include <limits.h>
6070 #else
6071 # include <assert.h>
6072 #endif
6073 Syntax error
6074 _ACEOF
6075 if ac_fn_c_try_cpp "$LINENO"; then :
6076
6077 else
6078 # Broken: fails on valid input.
6079 continue
6080 fi
6081 rm -f conftest.err conftest.i conftest.$ac_ext
6082
6083 # OK, works on sane cases. Now check whether nonexistent headers
6084 # can be detected and how.
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087 #include <ac_nonexistent.h>
6088 _ACEOF
6089 if ac_fn_c_try_cpp "$LINENO"; then :
6090 # Broken: success on invalid input.
6091 continue
6092 else
6093 # Passes both tests.
6094 ac_preproc_ok=:
6095 break
6096 fi
6097 rm -f conftest.err conftest.i conftest.$ac_ext
6098
6099 done
6100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6101 rm -f conftest.i conftest.err conftest.$ac_ext
6102 if $ac_preproc_ok; then :
6103
6104 else
6105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6107 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6108 See \`config.log' for more details" "$LINENO" 5; }
6109 fi
6110
6111 ac_ext=c
6112 ac_cpp='$CPP $CPPFLAGS'
6113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6116
6117 ac_ext=c
6118 ac_cpp='$CPP $CPPFLAGS'
6119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6122 if test -n "$ac_tool_prefix"; then
6123 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6124 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if ${ac_cv_prog_CC+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 if test -n "$CC"; then
6131 ac_cv_prog_CC="$CC" # Let the user override the test.
6132 else
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 break 2
6143 fi
6144 done
6145 done
6146 IFS=$as_save_IFS
6147
6148 fi
6149 fi
6150 CC=$ac_cv_prog_CC
6151 if test -n "$CC"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6153 $as_echo "$CC" >&6; }
6154 else
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6157 fi
6158
6159
6160 fi
6161 if test -z "$ac_cv_prog_CC"; then
6162 ac_ct_CC=$CC
6163 # Extract the first word of "gcc", so it can be a program name with args.
6164 set dummy gcc; ac_word=$2
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166 $as_echo_n "checking for $ac_word... " >&6; }
6167 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 if test -n "$ac_ct_CC"; then
6171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180 ac_cv_prog_ac_ct_CC="gcc"
6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184 done
6185 done
6186 IFS=$as_save_IFS
6187
6188 fi
6189 fi
6190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6191 if test -n "$ac_ct_CC"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6193 $as_echo "$ac_ct_CC" >&6; }
6194 else
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196 $as_echo "no" >&6; }
6197 fi
6198
6199 if test "x$ac_ct_CC" = x; then
6200 CC=""
6201 else
6202 case $cross_compiling:$ac_tool_warned in
6203 yes:)
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6206 ac_tool_warned=yes ;;
6207 esac
6208 CC=$ac_ct_CC
6209 fi
6210 else
6211 CC="$ac_cv_prog_CC"
6212 fi
6213
6214 if test -z "$CC"; then
6215 if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}cc; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if ${ac_cv_prog_CC+:} false; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 if test -n "$CC"; then
6224 ac_cv_prog_CC="$CC" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6228 do
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_CC="${ac_tool_prefix}cc"
6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 break 2
6236 fi
6237 done
6238 done
6239 IFS=$as_save_IFS
6240
6241 fi
6242 fi
6243 CC=$ac_cv_prog_CC
6244 if test -n "$CC"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6246 $as_echo "$CC" >&6; }
6247 else
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6250 fi
6251
6252
6253 fi
6254 fi
6255 if test -z "$CC"; then
6256 # Extract the first word of "cc", so it can be a program name with args.
6257 set dummy cc; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if ${ac_cv_prog_CC+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 if test -n "$CC"; then
6264 ac_cv_prog_CC="$CC" # Let the user override the test.
6265 else
6266 ac_prog_rejected=no
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6275 ac_prog_rejected=yes
6276 continue
6277 fi
6278 ac_cv_prog_CC="cc"
6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6281 fi
6282 done
6283 done
6284 IFS=$as_save_IFS
6285
6286 if test $ac_prog_rejected = yes; then
6287 # We found a bogon in the path, so make sure we never use it.
6288 set dummy $ac_cv_prog_CC
6289 shift
6290 if test $# != 0; then
6291 # We chose a different compiler from the bogus one.
6292 # However, it has the same basename, so the bogon will be chosen
6293 # first if we set CC to just the basename; use the full file name.
6294 shift
6295 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6296 fi
6297 fi
6298 fi
6299 fi
6300 CC=$ac_cv_prog_CC
6301 if test -n "$CC"; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6303 $as_echo "$CC" >&6; }
6304 else
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6307 fi
6308
6309
6310 fi
6311 if test -z "$CC"; then
6312 if test -n "$ac_tool_prefix"; then
6313 for ac_prog in cl.exe
6314 do
6315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_CC+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test -n "$CC"; then
6323 ac_cv_prog_CC="$CC" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6327 do
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6335 fi
6336 done
6337 done
6338 IFS=$as_save_IFS
6339
6340 fi
6341 fi
6342 CC=$ac_cv_prog_CC
6343 if test -n "$CC"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6345 $as_echo "$CC" >&6; }
6346 else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6349 fi
6350
6351
6352 test -n "$CC" && break
6353 done
6354 fi
6355 if test -z "$CC"; then
6356 ac_ct_CC=$CC
6357 for ac_prog in cl.exe
6358 do
6359 # Extract the first word of "$ac_prog", so it can be a program name with args.
6360 set dummy $ac_prog; ac_word=$2
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 $as_echo_n "checking for $ac_word... " >&6; }
6363 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 if test -n "$ac_ct_CC"; then
6367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6371 do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376 ac_cv_prog_ac_ct_CC="$ac_prog"
6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6379 fi
6380 done
6381 done
6382 IFS=$as_save_IFS
6383
6384 fi
6385 fi
6386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6387 if test -n "$ac_ct_CC"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6389 $as_echo "$ac_ct_CC" >&6; }
6390 else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6393 fi
6394
6395
6396 test -n "$ac_ct_CC" && break
6397 done
6398
6399 if test "x$ac_ct_CC" = x; then
6400 CC=""
6401 else
6402 case $cross_compiling:$ac_tool_warned in
6403 yes:)
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6406 ac_tool_warned=yes ;;
6407 esac
6408 CC=$ac_ct_CC
6409 fi
6410 fi
6411
6412 fi
6413
6414
6415 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6417 as_fn_error $? "no acceptable C compiler found in \$PATH
6418 See \`config.log' for more details" "$LINENO" 5; }
6419
6420 # Provide some information about the compiler.
6421 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6422 set X $ac_compile
6423 ac_compiler=$2
6424 for ac_option in --version -v -V -qversion; do
6425 { { ac_try="$ac_compiler $ac_option >&5"
6426 case "(($ac_try" in
6427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428 *) ac_try_echo=$ac_try;;
6429 esac
6430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6431 $as_echo "$ac_try_echo"; } >&5
6432 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6433 ac_status=$?
6434 if test -s conftest.err; then
6435 sed '10a\
6436 ... rest of stderr output deleted ...
6437 10q' conftest.err >conftest.er1
6438 cat conftest.er1 >&5
6439 fi
6440 rm -f conftest.er1 conftest.err
6441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6442 test $ac_status = 0; }
6443 done
6444
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6446 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6447 if ${ac_cv_c_compiler_gnu+:} false; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452
6453 int
6454 main ()
6455 {
6456 #ifndef __GNUC__
6457 choke me
6458 #endif
6459
6460 ;
6461 return 0;
6462 }
6463 _ACEOF
6464 if ac_fn_c_try_compile "$LINENO"; then :
6465 ac_compiler_gnu=yes
6466 else
6467 ac_compiler_gnu=no
6468 fi
6469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6471
6472 fi
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6474 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6475 if test $ac_compiler_gnu = yes; then
6476 GCC=yes
6477 else
6478 GCC=
6479 fi
6480 ac_test_CFLAGS=${CFLAGS+set}
6481 ac_save_CFLAGS=$CFLAGS
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6483 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6484 if ${ac_cv_prog_cc_g+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 ac_save_c_werror_flag=$ac_c_werror_flag
6488 ac_c_werror_flag=yes
6489 ac_cv_prog_cc_g=no
6490 CFLAGS="-g"
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6493
6494 int
6495 main ()
6496 {
6497
6498 ;
6499 return 0;
6500 }
6501 _ACEOF
6502 if ac_fn_c_try_compile "$LINENO"; then :
6503 ac_cv_prog_cc_g=yes
6504 else
6505 CFLAGS=""
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508
6509 int
6510 main ()
6511 {
6512
6513 ;
6514 return 0;
6515 }
6516 _ACEOF
6517 if ac_fn_c_try_compile "$LINENO"; then :
6518
6519 else
6520 ac_c_werror_flag=$ac_save_c_werror_flag
6521 CFLAGS="-g"
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524
6525 int
6526 main ()
6527 {
6528
6529 ;
6530 return 0;
6531 }
6532 _ACEOF
6533 if ac_fn_c_try_compile "$LINENO"; then :
6534 ac_cv_prog_cc_g=yes
6535 fi
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 fi
6540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 ac_c_werror_flag=$ac_save_c_werror_flag
6542 fi
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6544 $as_echo "$ac_cv_prog_cc_g" >&6; }
6545 if test "$ac_test_CFLAGS" = set; then
6546 CFLAGS=$ac_save_CFLAGS
6547 elif test $ac_cv_prog_cc_g = yes; then
6548 if test "$GCC" = yes; then
6549 CFLAGS="-g -O2"
6550 else
6551 CFLAGS="-g"
6552 fi
6553 else
6554 if test "$GCC" = yes; then
6555 CFLAGS="-O2"
6556 else
6557 CFLAGS=
6558 fi
6559 fi
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6561 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6562 if ${ac_cv_prog_cc_c89+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 ac_cv_prog_cc_c89=no
6566 ac_save_CC=$CC
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569 #include <stdarg.h>
6570 #include <stdio.h>
6571 struct stat;
6572 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6573 struct buf { int x; };
6574 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6575 static char *e (p, i)
6576 char **p;
6577 int i;
6578 {
6579 return p[i];
6580 }
6581 static char *f (char * (*g) (char **, int), char **p, ...)
6582 {
6583 char *s;
6584 va_list v;
6585 va_start (v,p);
6586 s = g (p, va_arg (v,int));
6587 va_end (v);
6588 return s;
6589 }
6590
6591 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6592 function prototypes and stuff, but not '\xHH' hex character constants.
6593 These don't provoke an error unfortunately, instead are silently treated
6594 as 'x'. The following induces an error, until -std is added to get
6595 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6596 array size at least. It's necessary to write '\x00'==0 to get something
6597 that's true only with -std. */
6598 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6599
6600 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6601 inside strings and character constants. */
6602 #define FOO(x) 'x'
6603 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6604
6605 int test (int i, double x);
6606 struct s1 {int (*f) (int a);};
6607 struct s2 {int (*f) (double a);};
6608 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6609 int argc;
6610 char **argv;
6611 int
6612 main ()
6613 {
6614 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6620 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6621 do
6622 CC="$ac_save_CC $ac_arg"
6623 if ac_fn_c_try_compile "$LINENO"; then :
6624 ac_cv_prog_cc_c89=$ac_arg
6625 fi
6626 rm -f core conftest.err conftest.$ac_objext
6627 test "x$ac_cv_prog_cc_c89" != "xno" && break
6628 done
6629 rm -f conftest.$ac_ext
6630 CC=$ac_save_CC
6631
6632 fi
6633 # AC_CACHE_VAL
6634 case "x$ac_cv_prog_cc_c89" in
6635 x)
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6637 $as_echo "none needed" >&6; } ;;
6638 xno)
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6640 $as_echo "unsupported" >&6; } ;;
6641 *)
6642 CC="$CC $ac_cv_prog_cc_c89"
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6644 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6645 esac
6646 if test "x$ac_cv_prog_cc_c89" != xno; then :
6647
6648 fi
6649
6650 ac_ext=c
6651 ac_cpp='$CPP $CPPFLAGS'
6652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6655
6656 ac_ext=c
6657 ac_cpp='$CPP $CPPFLAGS'
6658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6662 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6663 if ${am_cv_prog_cc_c_o+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668
6669 int
6670 main ()
6671 {
6672
6673 ;
6674 return 0;
6675 }
6676 _ACEOF
6677 # Make sure it works both with $CC and with simple cc.
6678 # Following AC_PROG_CC_C_O, we do the test twice because some
6679 # compilers refuse to overwrite an existing .o file with -o,
6680 # though they will create one.
6681 am_cv_prog_cc_c_o=yes
6682 for am_i in 1 2; do
6683 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6684 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } \
6688 && test -f conftest2.$ac_objext; then
6689 : OK
6690 else
6691 am_cv_prog_cc_c_o=no
6692 break
6693 fi
6694 done
6695 rm -f core conftest*
6696 unset am_i
6697 fi
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6699 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6700 if test "$am_cv_prog_cc_c_o" != yes; then
6701 # Losing compiler, so override with the script.
6702 # FIXME: It is wrong to rewrite CC.
6703 # But if we don't then we get into trouble of one sort or another.
6704 # A longer-term fix would be to have automake use am__CC in this case,
6705 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6706 CC="$am_aux_dir/compile $CC"
6707 fi
6708 ac_ext=c
6709 ac_cpp='$CPP $CPPFLAGS'
6710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6713
6714
6715 depcc="$CC" am_compiler_list=
6716
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6718 $as_echo_n "checking dependency style of $depcc... " >&6; }
6719 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6723 # We make a subdir and do the tests there. Otherwise we can end up
6724 # making bogus files that we don't know about and never remove. For
6725 # instance it was reported that on HP-UX the gcc test will end up
6726 # making a dummy file named 'D' -- because '-MD' means "put the output
6727 # in D".
6728 rm -rf conftest.dir
6729 mkdir conftest.dir
6730 # Copy depcomp to subdir because otherwise we won't find it if we're
6731 # using a relative directory.
6732 cp "$am_depcomp" conftest.dir
6733 cd conftest.dir
6734 # We will build objects and dependencies in a subdirectory because
6735 # it helps to detect inapplicable dependency modes. For instance
6736 # both Tru64's cc and ICC support -MD to output dependencies as a
6737 # side effect of compilation, but ICC will put the dependencies in
6738 # the current directory while Tru64 will put them in the object
6739 # directory.
6740 mkdir sub
6741
6742 am_cv_CC_dependencies_compiler_type=none
6743 if test "$am_compiler_list" = ""; then
6744 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6745 fi
6746 am__universal=false
6747 case " $depcc " in #(
6748 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6749 esac
6750
6751 for depmode in $am_compiler_list; do
6752 # Setup a source with many dependencies, because some compilers
6753 # like to wrap large dependency lists on column 80 (with \), and
6754 # we should not choose a depcomp mode which is confused by this.
6755 #
6756 # We need to recreate these files for each test, as the compiler may
6757 # overwrite some of them when testing with obscure command lines.
6758 # This happens at least with the AIX C compiler.
6759 : > sub/conftest.c
6760 for i in 1 2 3 4 5 6; do
6761 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6762 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6763 # Solaris 10 /bin/sh.
6764 echo '/* dummy */' > sub/conftst$i.h
6765 done
6766 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6767
6768 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6769 # mode. It turns out that the SunPro C++ compiler does not properly
6770 # handle '-M -o', and we need to detect this. Also, some Intel
6771 # versions had trouble with output in subdirs.
6772 am__obj=sub/conftest.${OBJEXT-o}
6773 am__minus_obj="-o $am__obj"
6774 case $depmode in
6775 gcc)
6776 # This depmode causes a compiler race in universal mode.
6777 test "$am__universal" = false || continue
6778 ;;
6779 nosideeffect)
6780 # After this tag, mechanisms are not by side-effect, so they'll
6781 # only be used when explicitly requested.
6782 if test "x$enable_dependency_tracking" = xyes; then
6783 continue
6784 else
6785 break
6786 fi
6787 ;;
6788 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6789 # This compiler won't grok '-c -o', but also, the minuso test has
6790 # not run yet. These depmodes are late enough in the game, and
6791 # so weak that their functioning should not be impacted.
6792 am__obj=conftest.${OBJEXT-o}
6793 am__minus_obj=
6794 ;;
6795 none) break ;;
6796 esac
6797 if depmode=$depmode \
6798 source=sub/conftest.c object=$am__obj \
6799 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6800 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6801 >/dev/null 2>conftest.err &&
6802 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6803 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6804 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6805 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6806 # icc doesn't choke on unknown options, it will just issue warnings
6807 # or remarks (even with -Werror). So we grep stderr for any message
6808 # that says an option was ignored or not supported.
6809 # When given -MP, icc 7.0 and 7.1 complain thusly:
6810 # icc: Command line warning: ignoring option '-M'; no argument required
6811 # The diagnosis changed in icc 8.0:
6812 # icc: Command line remark: option '-MP' not supported
6813 if (grep 'ignoring option' conftest.err ||
6814 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6815 am_cv_CC_dependencies_compiler_type=$depmode
6816 break
6817 fi
6818 fi
6819 done
6820
6821 cd ..
6822 rm -rf conftest.dir
6823 else
6824 am_cv_CC_dependencies_compiler_type=none
6825 fi
6826
6827 fi
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6829 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6830 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6831
6832 if
6833 test "x$enable_dependency_tracking" != xno \
6834 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6835 am__fastdepCC_TRUE=
6836 am__fastdepCC_FALSE='#'
6837 else
6838 am__fastdepCC_TRUE='#'
6839 am__fastdepCC_FALSE=
6840 fi
6841
6842
6843 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6844
6845
6846 if test -n "$ac_tool_prefix"; then
6847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6848 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_prog_RANLIB+:} false; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 if test -n "$RANLIB"; then
6855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868 done
6869 done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 RANLIB=$ac_cv_prog_RANLIB
6875 if test -n "$RANLIB"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6877 $as_echo "$RANLIB" >&6; }
6878 else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882
6883
6884 fi
6885 if test -z "$ac_cv_prog_RANLIB"; then
6886 ac_ct_RANLIB=$RANLIB
6887 # Extract the first word of "ranlib", so it can be a program name with args.
6888 set dummy ranlib; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 if test -n "$ac_ct_RANLIB"; then
6895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904 ac_cv_prog_ac_ct_RANLIB="ranlib"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908 done
6909 done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6915 if test -n "$ac_ct_RANLIB"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6917 $as_echo "$ac_ct_RANLIB" >&6; }
6918 else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6921 fi
6922
6923 if test "x$ac_ct_RANLIB" = x; then
6924 RANLIB=":"
6925 else
6926 case $cross_compiling:$ac_tool_warned in
6927 yes:)
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6930 ac_tool_warned=yes ;;
6931 esac
6932 RANLIB=$ac_ct_RANLIB
6933 fi
6934 else
6935 RANLIB="$ac_cv_prog_RANLIB"
6936 fi
6937
6938
6939
6940
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6942 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6943 set x ${MAKE-make}
6944 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6945 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 cat >conftest.make <<\_ACEOF
6949 SHELL = /bin/sh
6950 all:
6951 @echo '@@@%%%=$(MAKE)=@@@%%%'
6952 _ACEOF
6953 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6954 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6955 *@@@%%%=?*=@@@%%%*)
6956 eval ac_cv_prog_make_${ac_make}_set=yes;;
6957 *)
6958 eval ac_cv_prog_make_${ac_make}_set=no;;
6959 esac
6960 rm -f conftest.make
6961 fi
6962 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6964 $as_echo "yes" >&6; }
6965 SET_MAKE=
6966 else
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6969 SET_MAKE="MAKE=${MAKE-make}"
6970 fi
6971
6972
6973
6974 # Check whether --enable-largefile was given.
6975 if test "${enable_largefile+set}" = set; then :
6976 enableval=$enable_largefile;
6977 fi
6978
6979 if test "$enable_largefile" != no; then
6980
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6982 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6983 if ${ac_cv_sys_largefile_CC+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 ac_cv_sys_largefile_CC=no
6987 if test "$GCC" != yes; then
6988 ac_save_CC=$CC
6989 while :; do
6990 # IRIX 6.2 and later do not support large files by default,
6991 # so use the C compiler's -n32 option if that helps.
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6994 #include <sys/types.h>
6995 /* Check that off_t can represent 2**63 - 1 correctly.
6996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6997 since some C++ compilers masquerading as C compilers
6998 incorrectly reject 9223372036854775807. */
6999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7001 && LARGE_OFF_T % 2147483647 == 1)
7002 ? 1 : -1];
7003 int
7004 main ()
7005 {
7006
7007 ;
7008 return 0;
7009 }
7010 _ACEOF
7011 if ac_fn_c_try_compile "$LINENO"; then :
7012 break
7013 fi
7014 rm -f core conftest.err conftest.$ac_objext
7015 CC="$CC -n32"
7016 if ac_fn_c_try_compile "$LINENO"; then :
7017 ac_cv_sys_largefile_CC=' -n32'; break
7018 fi
7019 rm -f core conftest.err conftest.$ac_objext
7020 break
7021 done
7022 CC=$ac_save_CC
7023 rm -f conftest.$ac_ext
7024 fi
7025 fi
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7027 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7028 if test "$ac_cv_sys_largefile_CC" != no; then
7029 CC=$CC$ac_cv_sys_largefile_CC
7030 fi
7031
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7033 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7034 if ${ac_cv_sys_file_offset_bits+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 while :; do
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7040 #include <sys/types.h>
7041 /* Check that off_t can represent 2**63 - 1 correctly.
7042 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7043 since some C++ compilers masquerading as C compilers
7044 incorrectly reject 9223372036854775807. */
7045 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7046 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7047 && LARGE_OFF_T % 2147483647 == 1)
7048 ? 1 : -1];
7049 int
7050 main ()
7051 {
7052
7053 ;
7054 return 0;
7055 }
7056 _ACEOF
7057 if ac_fn_c_try_compile "$LINENO"; then :
7058 ac_cv_sys_file_offset_bits=no; break
7059 fi
7060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 #define _FILE_OFFSET_BITS 64
7064 #include <sys/types.h>
7065 /* Check that off_t can represent 2**63 - 1 correctly.
7066 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7067 since some C++ compilers masquerading as C compilers
7068 incorrectly reject 9223372036854775807. */
7069 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7071 && LARGE_OFF_T % 2147483647 == 1)
7072 ? 1 : -1];
7073 int
7074 main ()
7075 {
7076
7077 ;
7078 return 0;
7079 }
7080 _ACEOF
7081 if ac_fn_c_try_compile "$LINENO"; then :
7082 ac_cv_sys_file_offset_bits=64; break
7083 fi
7084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7085 ac_cv_sys_file_offset_bits=unknown
7086 break
7087 done
7088 fi
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7090 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7091 case $ac_cv_sys_file_offset_bits in #(
7092 no | unknown) ;;
7093 *)
7094 cat >>confdefs.h <<_ACEOF
7095 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7096 _ACEOF
7097 ;;
7098 esac
7099 rm -rf conftest*
7100 if test $ac_cv_sys_file_offset_bits = unknown; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7102 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7103 if ${ac_cv_sys_large_files+:} false; then :
7104 $as_echo_n "(cached) " >&6
7105 else
7106 while :; do
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 #include <sys/types.h>
7110 /* Check that off_t can represent 2**63 - 1 correctly.
7111 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7112 since some C++ compilers masquerading as C compilers
7113 incorrectly reject 9223372036854775807. */
7114 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7115 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7116 && LARGE_OFF_T % 2147483647 == 1)
7117 ? 1 : -1];
7118 int
7119 main ()
7120 {
7121
7122 ;
7123 return 0;
7124 }
7125 _ACEOF
7126 if ac_fn_c_try_compile "$LINENO"; then :
7127 ac_cv_sys_large_files=no; break
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131 /* end confdefs.h. */
7132 #define _LARGE_FILES 1
7133 #include <sys/types.h>
7134 /* Check that off_t can represent 2**63 - 1 correctly.
7135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7136 since some C++ compilers masquerading as C compilers
7137 incorrectly reject 9223372036854775807. */
7138 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7140 && LARGE_OFF_T % 2147483647 == 1)
7141 ? 1 : -1];
7142 int
7143 main ()
7144 {
7145
7146 ;
7147 return 0;
7148 }
7149 _ACEOF
7150 if ac_fn_c_try_compile "$LINENO"; then :
7151 ac_cv_sys_large_files=1; break
7152 fi
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 ac_cv_sys_large_files=unknown
7155 break
7156 done
7157 fi
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7159 $as_echo "$ac_cv_sys_large_files" >&6; }
7160 case $ac_cv_sys_large_files in #(
7161 no | unknown) ;;
7162 *)
7163 cat >>confdefs.h <<_ACEOF
7164 #define _LARGE_FILES $ac_cv_sys_large_files
7165 _ACEOF
7166 ;;
7167 esac
7168 rm -rf conftest*
7169 fi
7170
7171
7172 fi
7173
7174 for ac_func in ppoll
7175 do :
7176 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
7177 if test "x$ac_cv_func_ppoll" = xyes; then :
7178 cat >>confdefs.h <<_ACEOF
7179 #define HAVE_PPOLL 1
7180 _ACEOF
7181
7182 fi
7183 done
7184
7185 for ac_func in openat
7186 do :
7187 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
7188 if test "x$ac_cv_func_openat" = xyes; then :
7189 cat >>confdefs.h <<_ACEOF
7190 #define HAVE_OPENAT 1
7191 _ACEOF
7192
7193 fi
7194 done
7195
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7197 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7198 if ${ac_cv_path_SED+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7202 for ac_i in 1 2 3 4 5 6 7; do
7203 ac_script="$ac_script$as_nl$ac_script"
7204 done
7205 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7206 { ac_script=; unset ac_script;}
7207 if test -z "$SED"; then
7208 ac_path_SED_found=false
7209 # Loop through the user's path and test for each of PROGNAME-LIST
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_prog in sed gsed; do
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7218 as_fn_executable_p "$ac_path_SED" || continue
7219 # Check for GNU ac_path_SED and select it if it is found.
7220 # Check for GNU $ac_path_SED
7221 case `"$ac_path_SED" --version 2>&1` in
7222 *GNU*)
7223 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7224 *)
7225 ac_count=0
7226 $as_echo_n 0123456789 >"conftest.in"
7227 while :
7228 do
7229 cat "conftest.in" "conftest.in" >"conftest.tmp"
7230 mv "conftest.tmp" "conftest.in"
7231 cp "conftest.in" "conftest.nl"
7232 $as_echo '' >> "conftest.nl"
7233 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7235 as_fn_arith $ac_count + 1 && ac_count=$as_val
7236 if test $ac_count -gt ${ac_path_SED_max-0}; then
7237 # Best one so far, save it but keep looking for a better one
7238 ac_cv_path_SED="$ac_path_SED"
7239 ac_path_SED_max=$ac_count
7240 fi
7241 # 10*(2^10) chars as input seems more than enough
7242 test $ac_count -gt 10 && break
7243 done
7244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7245 esac
7246
7247 $ac_path_SED_found && break 3
7248 done
7249 done
7250 done
7251 IFS=$as_save_IFS
7252 if test -z "$ac_cv_path_SED"; then
7253 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7254 fi
7255 else
7256 ac_cv_path_SED=$SED
7257 fi
7258
7259 fi
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7261 $as_echo "$ac_cv_path_SED" >&6; }
7262 SED="$ac_cv_path_SED"
7263 rm -f conftest.sed
7264
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7267 $as_echo_n "checking whether NLS is requested... " >&6; }
7268 # Check whether --enable-nls was given.
7269 if test "${enable_nls+set}" = set; then :
7270 enableval=$enable_nls; USE_NLS=$enableval
7271 else
7272 USE_NLS=yes
7273 fi
7274
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7276 $as_echo "$USE_NLS" >&6; }
7277
7278
7279
7280
7281 GETTEXT_MACRO_VERSION=0.19
7282
7283
7284
7285
7286 # Prepare PATH_SEPARATOR.
7287 # The user is always right.
7288 if test "${PATH_SEPARATOR+set}" != set; then
7289 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7290 # contains only /bin. Note that ksh looks also at the FPATH variable,
7291 # so we have to set that as well for the test.
7292 PATH_SEPARATOR=:
7293 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7294 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7295 || PATH_SEPARATOR=';'
7296 }
7297 fi
7298
7299 # Find out how to test for executable files. Don't use a zero-byte file,
7300 # as systems may use methods other than mode bits to determine executability.
7301 cat >conf$$.file <<_ASEOF
7302 #! /bin/sh
7303 exit 0
7304 _ASEOF
7305 chmod +x conf$$.file
7306 if test -x conf$$.file >/dev/null 2>&1; then
7307 ac_executable_p="test -x"
7308 else
7309 ac_executable_p="test -f"
7310 fi
7311 rm -f conf$$.file
7312
7313 # Extract the first word of "msgfmt", so it can be a program name with args.
7314 set dummy msgfmt; ac_word=$2
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if ${ac_cv_path_MSGFMT+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 case "$MSGFMT" in
7321 [\\/]* | ?:[\\/]*)
7322 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7323 ;;
7324 *)
7325 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7326 for ac_dir in $PATH; do
7327 IFS="$ac_save_IFS"
7328 test -z "$ac_dir" && ac_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7331 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7332 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7333 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7334 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7335 break 2
7336 fi
7337 fi
7338 done
7339 done
7340 IFS="$ac_save_IFS"
7341 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7342 ;;
7343 esac
7344 fi
7345 MSGFMT="$ac_cv_path_MSGFMT"
7346 if test "$MSGFMT" != ":"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7348 $as_echo "$MSGFMT" >&6; }
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353
7354 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7355 set dummy gmsgfmt; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_path_GMSGFMT+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 case $GMSGFMT in
7362 [\\/]* | ?:[\\/]*)
7363 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7364 ;;
7365 *)
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7376 fi
7377 done
7378 done
7379 IFS=$as_save_IFS
7380
7381 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7382 ;;
7383 esac
7384 fi
7385 GMSGFMT=$ac_cv_path_GMSGFMT
7386 if test -n "$GMSGFMT"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7388 $as_echo "$GMSGFMT" >&6; }
7389 else
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7392 fi
7393
7394
7395
7396 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7397 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7398 *) MSGFMT_015=$MSGFMT ;;
7399 esac
7400
7401 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7402 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7403 *) GMSGFMT_015=$GMSGFMT ;;
7404 esac
7405
7406
7407
7408 # Prepare PATH_SEPARATOR.
7409 # The user is always right.
7410 if test "${PATH_SEPARATOR+set}" != set; then
7411 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7412 # contains only /bin. Note that ksh looks also at the FPATH variable,
7413 # so we have to set that as well for the test.
7414 PATH_SEPARATOR=:
7415 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7416 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7417 || PATH_SEPARATOR=';'
7418 }
7419 fi
7420
7421 # Find out how to test for executable files. Don't use a zero-byte file,
7422 # as systems may use methods other than mode bits to determine executability.
7423 cat >conf$$.file <<_ASEOF
7424 #! /bin/sh
7425 exit 0
7426 _ASEOF
7427 chmod +x conf$$.file
7428 if test -x conf$$.file >/dev/null 2>&1; then
7429 ac_executable_p="test -x"
7430 else
7431 ac_executable_p="test -f"
7432 fi
7433 rm -f conf$$.file
7434
7435 # Extract the first word of "xgettext", so it can be a program name with args.
7436 set dummy xgettext; ac_word=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if ${ac_cv_path_XGETTEXT+:} false; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442 case "$XGETTEXT" in
7443 [\\/]* | ?:[\\/]*)
7444 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7445 ;;
7446 *)
7447 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7448 for ac_dir in $PATH; do
7449 IFS="$ac_save_IFS"
7450 test -z "$ac_dir" && ac_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7453 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7454 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7455 (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
7456 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7457 break 2
7458 fi
7459 fi
7460 done
7461 done
7462 IFS="$ac_save_IFS"
7463 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7464 ;;
7465 esac
7466 fi
7467 XGETTEXT="$ac_cv_path_XGETTEXT"
7468 if test "$XGETTEXT" != ":"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7470 $as_echo "$XGETTEXT" >&6; }
7471 else
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7474 fi
7475
7476 rm -f messages.po
7477
7478 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7479 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7480 *) XGETTEXT_015=$XGETTEXT ;;
7481 esac
7482
7483
7484
7485 # Prepare PATH_SEPARATOR.
7486 # The user is always right.
7487 if test "${PATH_SEPARATOR+set}" != set; then
7488 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7489 # contains only /bin. Note that ksh looks also at the FPATH variable,
7490 # so we have to set that as well for the test.
7491 PATH_SEPARATOR=:
7492 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7493 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7494 || PATH_SEPARATOR=';'
7495 }
7496 fi
7497
7498 # Find out how to test for executable files. Don't use a zero-byte file,
7499 # as systems may use methods other than mode bits to determine executability.
7500 cat >conf$$.file <<_ASEOF
7501 #! /bin/sh
7502 exit 0
7503 _ASEOF
7504 chmod +x conf$$.file
7505 if test -x conf$$.file >/dev/null 2>&1; then
7506 ac_executable_p="test -x"
7507 else
7508 ac_executable_p="test -f"
7509 fi
7510 rm -f conf$$.file
7511
7512 # Extract the first word of "msgmerge", so it can be a program name with args.
7513 set dummy msgmerge; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_path_MSGMERGE+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 case "$MSGMERGE" in
7520 [\\/]* | ?:[\\/]*)
7521 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7522 ;;
7523 *)
7524 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7525 for ac_dir in $PATH; do
7526 IFS="$ac_save_IFS"
7527 test -z "$ac_dir" && ac_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7530 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7531 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7532 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7533 break 2
7534 fi
7535 fi
7536 done
7537 done
7538 IFS="$ac_save_IFS"
7539 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7540 ;;
7541 esac
7542 fi
7543 MSGMERGE="$ac_cv_path_MSGMERGE"
7544 if test "$MSGMERGE" != ":"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7546 $as_echo "$MSGMERGE" >&6; }
7547 else
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552
7553 test -n "$localedir" || localedir='${datadir}/locale'
7554
7555
7556 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7557
7558
7559 ac_config_commands="$ac_config_commands po-directories"
7560
7561
7562
7563 if test "X$prefix" = "XNONE"; then
7564 acl_final_prefix="$ac_default_prefix"
7565 else
7566 acl_final_prefix="$prefix"
7567 fi
7568 if test "X$exec_prefix" = "XNONE"; then
7569 acl_final_exec_prefix='${prefix}'
7570 else
7571 acl_final_exec_prefix="$exec_prefix"
7572 fi
7573 acl_save_prefix="$prefix"
7574 prefix="$acl_final_prefix"
7575 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7576 prefix="$acl_save_prefix"
7577
7578
7579
7580 # Check whether --with-gnu-ld was given.
7581 if test "${with_gnu_ld+set}" = set; then :
7582 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7583 else
7584 with_gnu_ld=no
7585 fi
7586
7587 # Prepare PATH_SEPARATOR.
7588 # The user is always right.
7589 if test "${PATH_SEPARATOR+set}" != set; then
7590 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7591 # contains only /bin. Note that ksh looks also at the FPATH variable,
7592 # so we have to set that as well for the test.
7593 PATH_SEPARATOR=:
7594 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7595 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7596 || PATH_SEPARATOR=';'
7597 }
7598 fi
7599
7600 ac_prog=ld
7601 if test "$GCC" = yes; then
7602 # Check if gcc -print-prog-name=ld gives a path.
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7604 $as_echo_n "checking for ld used by $CC... " >&6; }
7605 case $host in
7606 *-*-mingw*)
7607 # gcc leaves a trailing carriage return which upsets mingw
7608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7609 *)
7610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7611 esac
7612 case $ac_prog in
7613 # Accept absolute paths.
7614 [\\/]* | ?:[\\/]*)
7615 re_direlt='/[^/][^/]*/\.\./'
7616 # Canonicalize the pathname of ld
7617 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7618 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7619 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7620 done
7621 test -z "$LD" && LD="$ac_prog"
7622 ;;
7623 "")
7624 # If it fails, then pretend we aren't using GCC.
7625 ac_prog=ld
7626 ;;
7627 *)
7628 # If it is relative, then search for the first ld in PATH.
7629 with_gnu_ld=unknown
7630 ;;
7631 esac
7632 elif test "$with_gnu_ld" = yes; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7634 $as_echo_n "checking for GNU ld... " >&6; }
7635 else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7637 $as_echo_n "checking for non-GNU ld... " >&6; }
7638 fi
7639 if ${acl_cv_path_LD+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 if test -z "$LD"; then
7643 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7644 for ac_dir in $PATH; do
7645 IFS="$acl_save_ifs"
7646 test -z "$ac_dir" && ac_dir=.
7647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7648 acl_cv_path_LD="$ac_dir/$ac_prog"
7649 # Check to see if the program is GNU ld. I'd rather use --version,
7650 # but apparently some variants of GNU ld only accept -v.
7651 # Break only if it was the GNU/non-GNU ld that we prefer.
7652 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7653 *GNU* | *'with BFD'*)
7654 test "$with_gnu_ld" != no && break
7655 ;;
7656 *)
7657 test "$with_gnu_ld" != yes && break
7658 ;;
7659 esac
7660 fi
7661 done
7662 IFS="$acl_save_ifs"
7663 else
7664 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7665 fi
7666 fi
7667
7668 LD="$acl_cv_path_LD"
7669 if test -n "$LD"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7671 $as_echo "$LD" >&6; }
7672 else
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7675 fi
7676 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7678 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7679 if ${acl_cv_prog_gnu_ld+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7683 case `$LD -v 2>&1 </dev/null` in
7684 *GNU* | *'with BFD'*)
7685 acl_cv_prog_gnu_ld=yes
7686 ;;
7687 *)
7688 acl_cv_prog_gnu_ld=no
7689 ;;
7690 esac
7691 fi
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7693 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7694 with_gnu_ld=$acl_cv_prog_gnu_ld
7695
7696
7697
7698
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7700 $as_echo_n "checking for shared library run path origin... " >&6; }
7701 if ${acl_cv_rpath+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704
7705 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7706 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7707 . ./conftest.sh
7708 rm -f ./conftest.sh
7709 acl_cv_rpath=done
7710
7711 fi
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7713 $as_echo "$acl_cv_rpath" >&6; }
7714 wl="$acl_cv_wl"
7715 acl_libext="$acl_cv_libext"
7716 acl_shlibext="$acl_cv_shlibext"
7717 acl_libname_spec="$acl_cv_libname_spec"
7718 acl_library_names_spec="$acl_cv_library_names_spec"
7719 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7720 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7721 acl_hardcode_direct="$acl_cv_hardcode_direct"
7722 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7723 # Check whether --enable-rpath was given.
7724 if test "${enable_rpath+set}" = set; then :
7725 enableval=$enable_rpath; :
7726 else
7727 enable_rpath=yes
7728 fi
7729
7730
7731
7732
7733 acl_libdirstem=lib
7734 acl_libdirstem2=
7735 case "$host_os" in
7736 solaris*)
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7738 $as_echo_n "checking for 64-bit host... " >&6; }
7739 if ${gl_cv_solaris_64bit+:} false; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744
7745 #ifdef _LP64
7746 sixtyfour bits
7747 #endif
7748
7749 _ACEOF
7750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7751 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7752 gl_cv_solaris_64bit=yes
7753 else
7754 gl_cv_solaris_64bit=no
7755 fi
7756 rm -f conftest*
7757
7758
7759 fi
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7761 $as_echo "$gl_cv_solaris_64bit" >&6; }
7762 if test $gl_cv_solaris_64bit = yes; then
7763 acl_libdirstem=lib/64
7764 case "$host_cpu" in
7765 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7766 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7767 esac
7768 fi
7769 ;;
7770 *)
7771 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7772 if test -n "$searchpath"; then
7773 acl_save_IFS="${IFS= }"; IFS=":"
7774 for searchdir in $searchpath; do
7775 if test -d "$searchdir"; then
7776 case "$searchdir" in
7777 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7778 */../ | */.. )
7779 # Better ignore directories of this form. They are misleading.
7780 ;;
7781 *) searchdir=`cd "$searchdir" && pwd`
7782 case "$searchdir" in
7783 */lib64 ) acl_libdirstem=lib64 ;;
7784 esac ;;
7785 esac
7786 fi
7787 done
7788 IFS="$acl_save_IFS"
7789 fi
7790 ;;
7791 esac
7792 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805 use_additional=yes
7806
7807 acl_save_prefix="$prefix"
7808 prefix="$acl_final_prefix"
7809 acl_save_exec_prefix="$exec_prefix"
7810 exec_prefix="$acl_final_exec_prefix"
7811
7812 eval additional_includedir=\"$includedir\"
7813 eval additional_libdir=\"$libdir\"
7814
7815 exec_prefix="$acl_save_exec_prefix"
7816 prefix="$acl_save_prefix"
7817
7818
7819 # Check whether --with-libiconv-prefix was given.
7820 if test "${with_libiconv_prefix+set}" = set; then :
7821 withval=$with_libiconv_prefix;
7822 if test "X$withval" = "Xno"; then
7823 use_additional=no
7824 else
7825 if test "X$withval" = "X"; then
7826
7827 acl_save_prefix="$prefix"
7828 prefix="$acl_final_prefix"
7829 acl_save_exec_prefix="$exec_prefix"
7830 exec_prefix="$acl_final_exec_prefix"
7831
7832 eval additional_includedir=\"$includedir\"
7833 eval additional_libdir=\"$libdir\"
7834
7835 exec_prefix="$acl_save_exec_prefix"
7836 prefix="$acl_save_prefix"
7837
7838 else
7839 additional_includedir="$withval/include"
7840 additional_libdir="$withval/$acl_libdirstem"
7841 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7842 && ! test -d "$withval/$acl_libdirstem"; then
7843 additional_libdir="$withval/$acl_libdirstem2"
7844 fi
7845 fi
7846 fi
7847
7848 fi
7849
7850 LIBICONV=
7851 LTLIBICONV=
7852 INCICONV=
7853 LIBICONV_PREFIX=
7854 HAVE_LIBICONV=
7855 rpathdirs=
7856 ltrpathdirs=
7857 names_already_handled=
7858 names_next_round='iconv '
7859 while test -n "$names_next_round"; do
7860 names_this_round="$names_next_round"
7861 names_next_round=
7862 for name in $names_this_round; do
7863 already_handled=
7864 for n in $names_already_handled; do
7865 if test "$n" = "$name"; then
7866 already_handled=yes
7867 break
7868 fi
7869 done
7870 if test -z "$already_handled"; then
7871 names_already_handled="$names_already_handled $name"
7872 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7873 eval value=\"\$HAVE_LIB$uppername\"
7874 if test -n "$value"; then
7875 if test "$value" = yes; then
7876 eval value=\"\$LIB$uppername\"
7877 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7878 eval value=\"\$LTLIB$uppername\"
7879 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7880 else
7881 :
7882 fi
7883 else
7884 found_dir=
7885 found_la=
7886 found_so=
7887 found_a=
7888 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7889 if test -n "$acl_shlibext"; then
7890 shrext=".$acl_shlibext" # typically: shrext=.so
7891 else
7892 shrext=
7893 fi
7894 if test $use_additional = yes; then
7895 dir="$additional_libdir"
7896 if test -n "$acl_shlibext"; then
7897 if test -f "$dir/$libname$shrext"; then
7898 found_dir="$dir"
7899 found_so="$dir/$libname$shrext"
7900 else
7901 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7902 ver=`(cd "$dir" && \
7903 for f in "$libname$shrext".*; do echo "$f"; done \
7904 | sed -e "s,^$libname$shrext\\\\.,," \
7905 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7906 | sed 1q ) 2>/dev/null`
7907 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7908 found_dir="$dir"
7909 found_so="$dir/$libname$shrext.$ver"
7910 fi
7911 else
7912 eval library_names=\"$acl_library_names_spec\"
7913 for f in $library_names; do
7914 if test -f "$dir/$f"; then
7915 found_dir="$dir"
7916 found_so="$dir/$f"
7917 break
7918 fi
7919 done
7920 fi
7921 fi
7922 fi
7923 if test "X$found_dir" = "X"; then
7924 if test -f "$dir/$libname.$acl_libext"; then
7925 found_dir="$dir"
7926 found_a="$dir/$libname.$acl_libext"
7927 fi
7928 fi
7929 if test "X$found_dir" != "X"; then
7930 if test -f "$dir/$libname.la"; then
7931 found_la="$dir/$libname.la"
7932 fi
7933 fi
7934 fi
7935 if test "X$found_dir" = "X"; then
7936 for x in $LDFLAGS $LTLIBICONV; do
7937
7938 acl_save_prefix="$prefix"
7939 prefix="$acl_final_prefix"
7940 acl_save_exec_prefix="$exec_prefix"
7941 exec_prefix="$acl_final_exec_prefix"
7942 eval x=\"$x\"
7943 exec_prefix="$acl_save_exec_prefix"
7944 prefix="$acl_save_prefix"
7945
7946 case "$x" in
7947 -L*)
7948 dir=`echo "X$x" | sed -e 's/^X-L//'`
7949 if test -n "$acl_shlibext"; then
7950 if test -f "$dir/$libname$shrext"; then
7951 found_dir="$dir"
7952 found_so="$dir/$libname$shrext"
7953 else
7954 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7955 ver=`(cd "$dir" && \
7956 for f in "$libname$shrext".*; do echo "$f"; done \
7957 | sed -e "s,^$libname$shrext\\\\.,," \
7958 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7959 | sed 1q ) 2>/dev/null`
7960 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7961 found_dir="$dir"
7962 found_so="$dir/$libname$shrext.$ver"
7963 fi
7964 else
7965 eval library_names=\"$acl_library_names_spec\"
7966 for f in $library_names; do
7967 if test -f "$dir/$f"; then
7968 found_dir="$dir"
7969 found_so="$dir/$f"
7970 break
7971 fi
7972 done
7973 fi
7974 fi
7975 fi
7976 if test "X$found_dir" = "X"; then
7977 if test -f "$dir/$libname.$acl_libext"; then
7978 found_dir="$dir"
7979 found_a="$dir/$libname.$acl_libext"
7980 fi
7981 fi
7982 if test "X$found_dir" != "X"; then
7983 if test -f "$dir/$libname.la"; then
7984 found_la="$dir/$libname.la"
7985 fi
7986 fi
7987 ;;
7988 esac
7989 if test "X$found_dir" != "X"; then
7990 break
7991 fi
7992 done
7993 fi
7994 if test "X$found_dir" != "X"; then
7995 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7996 if test "X$found_so" != "X"; then
7997 if test "$enable_rpath" = no \
7998 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7999 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8000 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8001 else
8002 haveit=
8003 for x in $ltrpathdirs; do
8004 if test "X$x" = "X$found_dir"; then
8005 haveit=yes
8006 break
8007 fi
8008 done
8009 if test -z "$haveit"; then
8010 ltrpathdirs="$ltrpathdirs $found_dir"
8011 fi
8012 if test "$acl_hardcode_direct" = yes; then
8013 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8014 else
8015 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8016 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8017 haveit=
8018 for x in $rpathdirs; do
8019 if test "X$x" = "X$found_dir"; then
8020 haveit=yes
8021 break
8022 fi
8023 done
8024 if test -z "$haveit"; then
8025 rpathdirs="$rpathdirs $found_dir"
8026 fi
8027 else
8028 haveit=
8029 for x in $LDFLAGS $LIBICONV; do
8030
8031 acl_save_prefix="$prefix"
8032 prefix="$acl_final_prefix"
8033 acl_save_exec_prefix="$exec_prefix"
8034 exec_prefix="$acl_final_exec_prefix"
8035 eval x=\"$x\"
8036 exec_prefix="$acl_save_exec_prefix"
8037 prefix="$acl_save_prefix"
8038
8039 if test "X$x" = "X-L$found_dir"; then
8040 haveit=yes
8041 break
8042 fi
8043 done
8044 if test -z "$haveit"; then
8045 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8046 fi
8047 if test "$acl_hardcode_minus_L" != no; then
8048 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8049 else
8050 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8051 fi
8052 fi
8053 fi
8054 fi
8055 else
8056 if test "X$found_a" != "X"; then
8057 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8058 else
8059 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8060 fi
8061 fi
8062 additional_includedir=
8063 case "$found_dir" in
8064 */$acl_libdirstem | */$acl_libdirstem/)
8065 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8066 if test "$name" = 'iconv'; then
8067 LIBICONV_PREFIX="$basedir"
8068 fi
8069 additional_includedir="$basedir/include"
8070 ;;
8071 */$acl_libdirstem2 | */$acl_libdirstem2/)
8072 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8073 if test "$name" = 'iconv'; then
8074 LIBICONV_PREFIX="$basedir"
8075 fi
8076 additional_includedir="$basedir/include"
8077 ;;
8078 esac
8079 if test "X$additional_includedir" != "X"; then
8080 if test "X$additional_includedir" != "X/usr/include"; then
8081 haveit=
8082 if test "X$additional_includedir" = "X/usr/local/include"; then
8083 if test -n "$GCC"; then
8084 case $host_os in
8085 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8086 esac
8087 fi
8088 fi
8089 if test -z "$haveit"; then
8090 for x in $CPPFLAGS $INCICONV; do
8091
8092 acl_save_prefix="$prefix"
8093 prefix="$acl_final_prefix"
8094 acl_save_exec_prefix="$exec_prefix"
8095 exec_prefix="$acl_final_exec_prefix"
8096 eval x=\"$x\"
8097 exec_prefix="$acl_save_exec_prefix"
8098 prefix="$acl_save_prefix"
8099
8100 if test "X$x" = "X-I$additional_includedir"; then
8101 haveit=yes
8102 break
8103 fi
8104 done
8105 if test -z "$haveit"; then
8106 if test -d "$additional_includedir"; then
8107 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8108 fi
8109 fi
8110 fi
8111 fi
8112 fi
8113 if test -n "$found_la"; then
8114 save_libdir="$libdir"
8115 case "$found_la" in
8116 */* | *\\*) . "$found_la" ;;
8117 *) . "./$found_la" ;;
8118 esac
8119 libdir="$save_libdir"
8120 for dep in $dependency_libs; do
8121 case "$dep" in
8122 -L*)
8123 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8124 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8125 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8126 haveit=
8127 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8128 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8129 if test -n "$GCC"; then
8130 case $host_os in
8131 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8132 esac
8133 fi
8134 fi
8135 if test -z "$haveit"; then
8136 haveit=
8137 for x in $LDFLAGS $LIBICONV; do
8138
8139 acl_save_prefix="$prefix"
8140 prefix="$acl_final_prefix"
8141 acl_save_exec_prefix="$exec_prefix"
8142 exec_prefix="$acl_final_exec_prefix"
8143 eval x=\"$x\"
8144 exec_prefix="$acl_save_exec_prefix"
8145 prefix="$acl_save_prefix"
8146
8147 if test "X$x" = "X-L$additional_libdir"; then
8148 haveit=yes
8149 break
8150 fi
8151 done
8152 if test -z "$haveit"; then
8153 if test -d "$additional_libdir"; then
8154 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8155 fi
8156 fi
8157 haveit=
8158 for x in $LDFLAGS $LTLIBICONV; do
8159
8160 acl_save_prefix="$prefix"
8161 prefix="$acl_final_prefix"
8162 acl_save_exec_prefix="$exec_prefix"
8163 exec_prefix="$acl_final_exec_prefix"
8164 eval x=\"$x\"
8165 exec_prefix="$acl_save_exec_prefix"
8166 prefix="$acl_save_prefix"
8167
8168 if test "X$x" = "X-L$additional_libdir"; then
8169 haveit=yes
8170 break
8171 fi
8172 done
8173 if test -z "$haveit"; then
8174 if test -d "$additional_libdir"; then
8175 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8176 fi
8177 fi
8178 fi
8179 fi
8180 ;;
8181 -R*)
8182 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8183 if test "$enable_rpath" != no; then
8184 haveit=
8185 for x in $rpathdirs; do
8186 if test "X$x" = "X$dir"; then
8187 haveit=yes
8188 break
8189 fi
8190 done
8191 if test -z "$haveit"; then
8192 rpathdirs="$rpathdirs $dir"
8193 fi
8194 haveit=
8195 for x in $ltrpathdirs; do
8196 if test "X$x" = "X$dir"; then
8197 haveit=yes
8198 break
8199 fi
8200 done
8201 if test -z "$haveit"; then
8202 ltrpathdirs="$ltrpathdirs $dir"
8203 fi
8204 fi
8205 ;;
8206 -l*)
8207 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8208 ;;
8209 *.la)
8210 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8211 ;;
8212 *)
8213 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8214 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8215 ;;
8216 esac
8217 done
8218 fi
8219 else
8220 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8221 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8222 fi
8223 fi
8224 fi
8225 done
8226 done
8227 if test "X$rpathdirs" != "X"; then
8228 if test -n "$acl_hardcode_libdir_separator"; then
8229 alldirs=
8230 for found_dir in $rpathdirs; do
8231 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8232 done
8233 acl_save_libdir="$libdir"
8234 libdir="$alldirs"
8235 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8236 libdir="$acl_save_libdir"
8237 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8238 else
8239 for found_dir in $rpathdirs; do
8240 acl_save_libdir="$libdir"
8241 libdir="$found_dir"
8242 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8243 libdir="$acl_save_libdir"
8244 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8245 done
8246 fi
8247 fi
8248 if test "X$ltrpathdirs" != "X"; then
8249 for found_dir in $ltrpathdirs; do
8250 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8251 done
8252 fi
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8285 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8286 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 gt_save_LIBS="$LIBS"
8290 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8293 #include <CoreFoundation/CFPreferences.h>
8294 int
8295 main ()
8296 {
8297 CFPreferencesCopyAppValue(NULL, NULL)
8298 ;
8299 return 0;
8300 }
8301 _ACEOF
8302 if ac_fn_c_try_link "$LINENO"; then :
8303 gt_cv_func_CFPreferencesCopyAppValue=yes
8304 else
8305 gt_cv_func_CFPreferencesCopyAppValue=no
8306 fi
8307 rm -f core conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8309 LIBS="$gt_save_LIBS"
8310 fi
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8312 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8313 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8314
8315 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8316
8317 fi
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8319 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8320 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 gt_save_LIBS="$LIBS"
8324 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327 #include <CoreFoundation/CFLocale.h>
8328 int
8329 main ()
8330 {
8331 CFLocaleCopyCurrent();
8332 ;
8333 return 0;
8334 }
8335 _ACEOF
8336 if ac_fn_c_try_link "$LINENO"; then :
8337 gt_cv_func_CFLocaleCopyCurrent=yes
8338 else
8339 gt_cv_func_CFLocaleCopyCurrent=no
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
8343 LIBS="$gt_save_LIBS"
8344 fi
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8346 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8347 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8348
8349 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8350
8351 fi
8352 INTL_MACOSX_LIBS=
8353 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8354 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8355 fi
8356
8357
8358
8359
8360
8361
8362 LIBINTL=
8363 LTLIBINTL=
8364 POSUB=
8365
8366 case " $gt_needs " in
8367 *" need-formatstring-macros "*) gt_api_version=3 ;;
8368 *" need-ngettext "*) gt_api_version=2 ;;
8369 *) gt_api_version=1 ;;
8370 esac
8371 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8372 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8373
8374 if test "$USE_NLS" = "yes"; then
8375 gt_use_preinstalled_gnugettext=no
8376
8377
8378 if test $gt_api_version -ge 3; then
8379 gt_revision_test_code='
8380 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8381 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8382 #endif
8383 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8384 '
8385 else
8386 gt_revision_test_code=
8387 fi
8388 if test $gt_api_version -ge 2; then
8389 gt_expression_test_code=' + * ngettext ("", "", 0)'
8390 else
8391 gt_expression_test_code=
8392 fi
8393
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8395 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8396 if eval \${$gt_func_gnugettext_libc+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8401
8402 #include <libintl.h>
8403 $gt_revision_test_code
8404 extern int _nl_msg_cat_cntr;
8405 extern int *_nl_domain_bindings;
8406
8407 int
8408 main ()
8409 {
8410
8411 bindtextdomain ("", "");
8412 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
8413
8414 ;
8415 return 0;
8416 }
8417 _ACEOF
8418 if ac_fn_c_try_link "$LINENO"; then :
8419 eval "$gt_func_gnugettext_libc=yes"
8420 else
8421 eval "$gt_func_gnugettext_libc=no"
8422 fi
8423 rm -f core conftest.err conftest.$ac_objext \
8424 conftest$ac_exeext conftest.$ac_ext
8425 fi
8426 eval ac_res=\$$gt_func_gnugettext_libc
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8428 $as_echo "$ac_res" >&6; }
8429
8430 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8431
8432
8433
8434
8435
8436 am_save_CPPFLAGS="$CPPFLAGS"
8437
8438 for element in $INCICONV; do
8439 haveit=
8440 for x in $CPPFLAGS; do
8441
8442 acl_save_prefix="$prefix"
8443 prefix="$acl_final_prefix"
8444 acl_save_exec_prefix="$exec_prefix"
8445 exec_prefix="$acl_final_exec_prefix"
8446 eval x=\"$x\"
8447 exec_prefix="$acl_save_exec_prefix"
8448 prefix="$acl_save_prefix"
8449
8450 if test "X$x" = "X$element"; then
8451 haveit=yes
8452 break
8453 fi
8454 done
8455 if test -z "$haveit"; then
8456 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8457 fi
8458 done
8459
8460
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8462 $as_echo_n "checking for iconv... " >&6; }
8463 if ${am_cv_func_iconv+:} false; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466
8467 am_cv_func_iconv="no, consider installing GNU libiconv"
8468 am_cv_lib_iconv=no
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h. */
8471
8472 #include <stdlib.h>
8473 #include <iconv.h>
8474
8475 int
8476 main ()
8477 {
8478 iconv_t cd = iconv_open("","");
8479 iconv(cd,NULL,NULL,NULL,NULL);
8480 iconv_close(cd);
8481 ;
8482 return 0;
8483 }
8484 _ACEOF
8485 if ac_fn_c_try_link "$LINENO"; then :
8486 am_cv_func_iconv=yes
8487 fi
8488 rm -f core conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
8490 if test "$am_cv_func_iconv" != yes; then
8491 am_save_LIBS="$LIBS"
8492 LIBS="$LIBS $LIBICONV"
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495
8496 #include <stdlib.h>
8497 #include <iconv.h>
8498
8499 int
8500 main ()
8501 {
8502 iconv_t cd = iconv_open("","");
8503 iconv(cd,NULL,NULL,NULL,NULL);
8504 iconv_close(cd);
8505 ;
8506 return 0;
8507 }
8508 _ACEOF
8509 if ac_fn_c_try_link "$LINENO"; then :
8510 am_cv_lib_iconv=yes
8511 am_cv_func_iconv=yes
8512 fi
8513 rm -f core conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
8515 LIBS="$am_save_LIBS"
8516 fi
8517
8518 fi
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8520 $as_echo "$am_cv_func_iconv" >&6; }
8521 if test "$am_cv_func_iconv" = yes; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8523 $as_echo_n "checking for working iconv... " >&6; }
8524 if ${am_cv_func_iconv_works+:} false; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527
8528 am_save_LIBS="$LIBS"
8529 if test $am_cv_lib_iconv = yes; then
8530 LIBS="$LIBS $LIBICONV"
8531 fi
8532 am_cv_func_iconv_works=no
8533 for ac_iconv_const in '' 'const'; do
8534 if test "$cross_compiling" = yes; then :
8535 case "$host_os" in
8536 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8537 *) am_cv_func_iconv_works="guessing yes" ;;
8538 esac
8539 else
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542
8543 #include <iconv.h>
8544 #include <string.h>
8545
8546 #ifndef ICONV_CONST
8547 # define ICONV_CONST $ac_iconv_const
8548 #endif
8549
8550 int
8551 main ()
8552 {
8553 int result = 0;
8554 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8555 returns. */
8556 {
8557 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8558 if (cd_utf8_to_88591 != (iconv_t)(-1))
8559 {
8560 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8561 char buf[10];
8562 ICONV_CONST char *inptr = input;
8563 size_t inbytesleft = strlen (input);
8564 char *outptr = buf;
8565 size_t outbytesleft = sizeof (buf);
8566 size_t res = iconv (cd_utf8_to_88591,
8567 &inptr, &inbytesleft,
8568 &outptr, &outbytesleft);
8569 if (res == 0)
8570 result |= 1;
8571 iconv_close (cd_utf8_to_88591);
8572 }
8573 }
8574 /* Test against Solaris 10 bug: Failures are not distinguishable from
8575 successful returns. */
8576 {
8577 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8578 if (cd_ascii_to_88591 != (iconv_t)(-1))
8579 {
8580 static ICONV_CONST char input[] = "\263";
8581 char buf[10];
8582 ICONV_CONST char *inptr = input;
8583 size_t inbytesleft = strlen (input);
8584 char *outptr = buf;
8585 size_t outbytesleft = sizeof (buf);
8586 size_t res = iconv (cd_ascii_to_88591,
8587 &inptr, &inbytesleft,
8588 &outptr, &outbytesleft);
8589 if (res == 0)
8590 result |= 2;
8591 iconv_close (cd_ascii_to_88591);
8592 }
8593 }
8594 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8595 {
8596 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8597 if (cd_88591_to_utf8 != (iconv_t)(-1))
8598 {
8599 static ICONV_CONST char input[] = "\304";
8600 static char buf[2] = { (char)0xDE, (char)0xAD };
8601 ICONV_CONST char *inptr = input;
8602 size_t inbytesleft = 1;
8603 char *outptr = buf;
8604 size_t outbytesleft = 1;
8605 size_t res = iconv (cd_88591_to_utf8,
8606 &inptr, &inbytesleft,
8607 &outptr, &outbytesleft);
8608 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8609 result |= 4;
8610 iconv_close (cd_88591_to_utf8);
8611 }
8612 }
8613 #if 0 /* This bug could be worked around by the caller. */
8614 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8615 {
8616 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8617 if (cd_88591_to_utf8 != (iconv_t)(-1))
8618 {
8619 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8620 char buf[50];
8621 ICONV_CONST char *inptr = input;
8622 size_t inbytesleft = strlen (input);
8623 char *outptr = buf;
8624 size_t outbytesleft = sizeof (buf);
8625 size_t res = iconv (cd_88591_to_utf8,
8626 &inptr, &inbytesleft,
8627 &outptr, &outbytesleft);
8628 if ((int)res > 0)
8629 result |= 8;
8630 iconv_close (cd_88591_to_utf8);
8631 }
8632 }
8633 #endif
8634 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8635 provided. */
8636 if (/* Try standardized names. */
8637 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8638 /* Try IRIX, OSF/1 names. */
8639 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8640 /* Try AIX names. */
8641 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8642 /* Try HP-UX names. */
8643 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8644 result |= 16;
8645 return result;
8646
8647 ;
8648 return 0;
8649 }
8650 _ACEOF
8651 if ac_fn_c_try_run "$LINENO"; then :
8652 am_cv_func_iconv_works=yes
8653 fi
8654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8655 conftest.$ac_objext conftest.beam conftest.$ac_ext
8656 fi
8657
8658 test "$am_cv_func_iconv_works" = no || break
8659 done
8660 LIBS="$am_save_LIBS"
8661
8662 fi
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8664 $as_echo "$am_cv_func_iconv_works" >&6; }
8665 case "$am_cv_func_iconv_works" in
8666 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8667 *) am_func_iconv=yes ;;
8668 esac
8669 else
8670 am_func_iconv=no am_cv_lib_iconv=no
8671 fi
8672 if test "$am_func_iconv" = yes; then
8673
8674 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8675
8676 fi
8677 if test "$am_cv_lib_iconv" = yes; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8679 $as_echo_n "checking how to link with libiconv... " >&6; }
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8681 $as_echo "$LIBICONV" >&6; }
8682 else
8683 CPPFLAGS="$am_save_CPPFLAGS"
8684 LIBICONV=
8685 LTLIBICONV=
8686 fi
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698 use_additional=yes
8699
8700 acl_save_prefix="$prefix"
8701 prefix="$acl_final_prefix"
8702 acl_save_exec_prefix="$exec_prefix"
8703 exec_prefix="$acl_final_exec_prefix"
8704
8705 eval additional_includedir=\"$includedir\"
8706 eval additional_libdir=\"$libdir\"
8707
8708 exec_prefix="$acl_save_exec_prefix"
8709 prefix="$acl_save_prefix"
8710
8711
8712 # Check whether --with-libintl-prefix was given.
8713 if test "${with_libintl_prefix+set}" = set; then :
8714 withval=$with_libintl_prefix;
8715 if test "X$withval" = "Xno"; then
8716 use_additional=no
8717 else
8718 if test "X$withval" = "X"; then
8719
8720 acl_save_prefix="$prefix"
8721 prefix="$acl_final_prefix"
8722 acl_save_exec_prefix="$exec_prefix"
8723 exec_prefix="$acl_final_exec_prefix"
8724
8725 eval additional_includedir=\"$includedir\"
8726 eval additional_libdir=\"$libdir\"
8727
8728 exec_prefix="$acl_save_exec_prefix"
8729 prefix="$acl_save_prefix"
8730
8731 else
8732 additional_includedir="$withval/include"
8733 additional_libdir="$withval/$acl_libdirstem"
8734 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8735 && ! test -d "$withval/$acl_libdirstem"; then
8736 additional_libdir="$withval/$acl_libdirstem2"
8737 fi
8738 fi
8739 fi
8740
8741 fi
8742
8743 LIBINTL=
8744 LTLIBINTL=
8745 INCINTL=
8746 LIBINTL_PREFIX=
8747 HAVE_LIBINTL=
8748 rpathdirs=
8749 ltrpathdirs=
8750 names_already_handled=
8751 names_next_round='intl '
8752 while test -n "$names_next_round"; do
8753 names_this_round="$names_next_round"
8754 names_next_round=
8755 for name in $names_this_round; do
8756 already_handled=
8757 for n in $names_already_handled; do
8758 if test "$n" = "$name"; then
8759 already_handled=yes
8760 break
8761 fi
8762 done
8763 if test -z "$already_handled"; then
8764 names_already_handled="$names_already_handled $name"
8765 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8766 eval value=\"\$HAVE_LIB$uppername\"
8767 if test -n "$value"; then
8768 if test "$value" = yes; then
8769 eval value=\"\$LIB$uppername\"
8770 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8771 eval value=\"\$LTLIB$uppername\"
8772 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8773 else
8774 :
8775 fi
8776 else
8777 found_dir=
8778 found_la=
8779 found_so=
8780 found_a=
8781 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8782 if test -n "$acl_shlibext"; then
8783 shrext=".$acl_shlibext" # typically: shrext=.so
8784 else
8785 shrext=
8786 fi
8787 if test $use_additional = yes; then
8788 dir="$additional_libdir"
8789 if test -n "$acl_shlibext"; then
8790 if test -f "$dir/$libname$shrext"; then
8791 found_dir="$dir"
8792 found_so="$dir/$libname$shrext"
8793 else
8794 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8795 ver=`(cd "$dir" && \
8796 for f in "$libname$shrext".*; do echo "$f"; done \
8797 | sed -e "s,^$libname$shrext\\\\.,," \
8798 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8799 | sed 1q ) 2>/dev/null`
8800 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8801 found_dir="$dir"
8802 found_so="$dir/$libname$shrext.$ver"
8803 fi
8804 else
8805 eval library_names=\"$acl_library_names_spec\"
8806 for f in $library_names; do
8807 if test -f "$dir/$f"; then
8808 found_dir="$dir"
8809 found_so="$dir/$f"
8810 break
8811 fi
8812 done
8813 fi
8814 fi
8815 fi
8816 if test "X$found_dir" = "X"; then
8817 if test -f "$dir/$libname.$acl_libext"; then
8818 found_dir="$dir"
8819 found_a="$dir/$libname.$acl_libext"
8820 fi
8821 fi
8822 if test "X$found_dir" != "X"; then
8823 if test -f "$dir/$libname.la"; then
8824 found_la="$dir/$libname.la"
8825 fi
8826 fi
8827 fi
8828 if test "X$found_dir" = "X"; then
8829 for x in $LDFLAGS $LTLIBINTL; do
8830
8831 acl_save_prefix="$prefix"
8832 prefix="$acl_final_prefix"
8833 acl_save_exec_prefix="$exec_prefix"
8834 exec_prefix="$acl_final_exec_prefix"
8835 eval x=\"$x\"
8836 exec_prefix="$acl_save_exec_prefix"
8837 prefix="$acl_save_prefix"
8838
8839 case "$x" in
8840 -L*)
8841 dir=`echo "X$x" | sed -e 's/^X-L//'`
8842 if test -n "$acl_shlibext"; then
8843 if test -f "$dir/$libname$shrext"; then
8844 found_dir="$dir"
8845 found_so="$dir/$libname$shrext"
8846 else
8847 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8848 ver=`(cd "$dir" && \
8849 for f in "$libname$shrext".*; do echo "$f"; done \
8850 | sed -e "s,^$libname$shrext\\\\.,," \
8851 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8852 | sed 1q ) 2>/dev/null`
8853 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8854 found_dir="$dir"
8855 found_so="$dir/$libname$shrext.$ver"
8856 fi
8857 else
8858 eval library_names=\"$acl_library_names_spec\"
8859 for f in $library_names; do
8860 if test -f "$dir/$f"; then
8861 found_dir="$dir"
8862 found_so="$dir/$f"
8863 break
8864 fi
8865 done
8866 fi
8867 fi
8868 fi
8869 if test "X$found_dir" = "X"; then
8870 if test -f "$dir/$libname.$acl_libext"; then
8871 found_dir="$dir"
8872 found_a="$dir/$libname.$acl_libext"
8873 fi
8874 fi
8875 if test "X$found_dir" != "X"; then
8876 if test -f "$dir/$libname.la"; then
8877 found_la="$dir/$libname.la"
8878 fi
8879 fi
8880 ;;
8881 esac
8882 if test "X$found_dir" != "X"; then
8883 break
8884 fi
8885 done
8886 fi
8887 if test "X$found_dir" != "X"; then
8888 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8889 if test "X$found_so" != "X"; then
8890 if test "$enable_rpath" = no \
8891 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8892 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8893 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8894 else
8895 haveit=
8896 for x in $ltrpathdirs; do
8897 if test "X$x" = "X$found_dir"; then
8898 haveit=yes
8899 break
8900 fi
8901 done
8902 if test -z "$haveit"; then
8903 ltrpathdirs="$ltrpathdirs $found_dir"
8904 fi
8905 if test "$acl_hardcode_direct" = yes; then
8906 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8907 else
8908 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8909 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8910 haveit=
8911 for x in $rpathdirs; do
8912 if test "X$x" = "X$found_dir"; then
8913 haveit=yes
8914 break
8915 fi
8916 done
8917 if test -z "$haveit"; then
8918 rpathdirs="$rpathdirs $found_dir"
8919 fi
8920 else
8921 haveit=
8922 for x in $LDFLAGS $LIBINTL; do
8923
8924 acl_save_prefix="$prefix"
8925 prefix="$acl_final_prefix"
8926 acl_save_exec_prefix="$exec_prefix"
8927 exec_prefix="$acl_final_exec_prefix"
8928 eval x=\"$x\"
8929 exec_prefix="$acl_save_exec_prefix"
8930 prefix="$acl_save_prefix"
8931
8932 if test "X$x" = "X-L$found_dir"; then
8933 haveit=yes
8934 break
8935 fi
8936 done
8937 if test -z "$haveit"; then
8938 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8939 fi
8940 if test "$acl_hardcode_minus_L" != no; then
8941 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8942 else
8943 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8944 fi
8945 fi
8946 fi
8947 fi
8948 else
8949 if test "X$found_a" != "X"; then
8950 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8951 else
8952 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8953 fi
8954 fi
8955 additional_includedir=
8956 case "$found_dir" in
8957 */$acl_libdirstem | */$acl_libdirstem/)
8958 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8959 if test "$name" = 'intl'; then
8960 LIBINTL_PREFIX="$basedir"
8961 fi
8962 additional_includedir="$basedir/include"
8963 ;;
8964 */$acl_libdirstem2 | */$acl_libdirstem2/)
8965 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8966 if test "$name" = 'intl'; then
8967 LIBINTL_PREFIX="$basedir"
8968 fi
8969 additional_includedir="$basedir/include"
8970 ;;
8971 esac
8972 if test "X$additional_includedir" != "X"; then
8973 if test "X$additional_includedir" != "X/usr/include"; then
8974 haveit=
8975 if test "X$additional_includedir" = "X/usr/local/include"; then
8976 if test -n "$GCC"; then
8977 case $host_os in
8978 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8979 esac
8980 fi
8981 fi
8982 if test -z "$haveit"; then
8983 for x in $CPPFLAGS $INCINTL; do
8984
8985 acl_save_prefix="$prefix"
8986 prefix="$acl_final_prefix"
8987 acl_save_exec_prefix="$exec_prefix"
8988 exec_prefix="$acl_final_exec_prefix"
8989 eval x=\"$x\"
8990 exec_prefix="$acl_save_exec_prefix"
8991 prefix="$acl_save_prefix"
8992
8993 if test "X$x" = "X-I$additional_includedir"; then
8994 haveit=yes
8995 break
8996 fi
8997 done
8998 if test -z "$haveit"; then
8999 if test -d "$additional_includedir"; then
9000 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9001 fi
9002 fi
9003 fi
9004 fi
9005 fi
9006 if test -n "$found_la"; then
9007 save_libdir="$libdir"
9008 case "$found_la" in
9009 */* | *\\*) . "$found_la" ;;
9010 *) . "./$found_la" ;;
9011 esac
9012 libdir="$save_libdir"
9013 for dep in $dependency_libs; do
9014 case "$dep" in
9015 -L*)
9016 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9017 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9018 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9019 haveit=
9020 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9021 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9022 if test -n "$GCC"; then
9023 case $host_os in
9024 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9025 esac
9026 fi
9027 fi
9028 if test -z "$haveit"; then
9029 haveit=
9030 for x in $LDFLAGS $LIBINTL; do
9031
9032 acl_save_prefix="$prefix"
9033 prefix="$acl_final_prefix"
9034 acl_save_exec_prefix="$exec_prefix"
9035 exec_prefix="$acl_final_exec_prefix"
9036 eval x=\"$x\"
9037 exec_prefix="$acl_save_exec_prefix"
9038 prefix="$acl_save_prefix"
9039
9040 if test "X$x" = "X-L$additional_libdir"; then
9041 haveit=yes
9042 break
9043 fi
9044 done
9045 if test -z "$haveit"; then
9046 if test -d "$additional_libdir"; then
9047 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9048 fi
9049 fi
9050 haveit=
9051 for x in $LDFLAGS $LTLIBINTL; do
9052
9053 acl_save_prefix="$prefix"
9054 prefix="$acl_final_prefix"
9055 acl_save_exec_prefix="$exec_prefix"
9056 exec_prefix="$acl_final_exec_prefix"
9057 eval x=\"$x\"
9058 exec_prefix="$acl_save_exec_prefix"
9059 prefix="$acl_save_prefix"
9060
9061 if test "X$x" = "X-L$additional_libdir"; then
9062 haveit=yes
9063 break
9064 fi
9065 done
9066 if test -z "$haveit"; then
9067 if test -d "$additional_libdir"; then
9068 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9069 fi
9070 fi
9071 fi
9072 fi
9073 ;;
9074 -R*)
9075 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9076 if test "$enable_rpath" != no; then
9077 haveit=
9078 for x in $rpathdirs; do
9079 if test "X$x" = "X$dir"; then
9080 haveit=yes
9081 break
9082 fi
9083 done
9084 if test -z "$haveit"; then
9085 rpathdirs="$rpathdirs $dir"
9086 fi
9087 haveit=
9088 for x in $ltrpathdirs; do
9089 if test "X$x" = "X$dir"; then
9090 haveit=yes
9091 break
9092 fi
9093 done
9094 if test -z "$haveit"; then
9095 ltrpathdirs="$ltrpathdirs $dir"
9096 fi
9097 fi
9098 ;;
9099 -l*)
9100 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9101 ;;
9102 *.la)
9103 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9104 ;;
9105 *)
9106 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9107 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9108 ;;
9109 esac
9110 done
9111 fi
9112 else
9113 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9114 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9115 fi
9116 fi
9117 fi
9118 done
9119 done
9120 if test "X$rpathdirs" != "X"; then
9121 if test -n "$acl_hardcode_libdir_separator"; then
9122 alldirs=
9123 for found_dir in $rpathdirs; do
9124 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9125 done
9126 acl_save_libdir="$libdir"
9127 libdir="$alldirs"
9128 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9129 libdir="$acl_save_libdir"
9130 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9131 else
9132 for found_dir in $rpathdirs; do
9133 acl_save_libdir="$libdir"
9134 libdir="$found_dir"
9135 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9136 libdir="$acl_save_libdir"
9137 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9138 done
9139 fi
9140 fi
9141 if test "X$ltrpathdirs" != "X"; then
9142 for found_dir in $ltrpathdirs; do
9143 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9144 done
9145 fi
9146
9147
9148
9149
9150
9151
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9153 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9154 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 gt_save_CPPFLAGS="$CPPFLAGS"
9158 CPPFLAGS="$CPPFLAGS $INCINTL"
9159 gt_save_LIBS="$LIBS"
9160 LIBS="$LIBS $LIBINTL"
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163
9164 #include <libintl.h>
9165 $gt_revision_test_code
9166 extern int _nl_msg_cat_cntr;
9167 extern
9168 #ifdef __cplusplus
9169 "C"
9170 #endif
9171 const char *_nl_expand_alias (const char *);
9172
9173 int
9174 main ()
9175 {
9176
9177 bindtextdomain ("", "");
9178 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9179
9180 ;
9181 return 0;
9182 }
9183 _ACEOF
9184 if ac_fn_c_try_link "$LINENO"; then :
9185 eval "$gt_func_gnugettext_libintl=yes"
9186 else
9187 eval "$gt_func_gnugettext_libintl=no"
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9192 LIBS="$LIBS $LIBICONV"
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9195
9196 #include <libintl.h>
9197 $gt_revision_test_code
9198 extern int _nl_msg_cat_cntr;
9199 extern
9200 #ifdef __cplusplus
9201 "C"
9202 #endif
9203 const char *_nl_expand_alias (const char *);
9204
9205 int
9206 main ()
9207 {
9208
9209 bindtextdomain ("", "");
9210 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9211
9212 ;
9213 return 0;
9214 }
9215 _ACEOF
9216 if ac_fn_c_try_link "$LINENO"; then :
9217 LIBINTL="$LIBINTL $LIBICONV"
9218 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9219 eval "$gt_func_gnugettext_libintl=yes"
9220
9221 fi
9222 rm -f core conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9224 fi
9225 CPPFLAGS="$gt_save_CPPFLAGS"
9226 LIBS="$gt_save_LIBS"
9227 fi
9228 eval ac_res=\$$gt_func_gnugettext_libintl
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9230 $as_echo "$ac_res" >&6; }
9231 fi
9232
9233 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9234 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9235 && test "$PACKAGE" != gettext-runtime \
9236 && test "$PACKAGE" != gettext-tools; }; then
9237 gt_use_preinstalled_gnugettext=yes
9238 else
9239 LIBINTL=
9240 LTLIBINTL=
9241 INCINTL=
9242 fi
9243
9244
9245
9246 if test -n "$INTL_MACOSX_LIBS"; then
9247 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9248 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9249 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9250 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9251 fi
9252 fi
9253
9254 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9255 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9256
9257 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9258
9259 else
9260 USE_NLS=no
9261 fi
9262 fi
9263
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9265 $as_echo_n "checking whether to use NLS... " >&6; }
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9267 $as_echo "$USE_NLS" >&6; }
9268 if test "$USE_NLS" = "yes"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9270 $as_echo_n "checking where the gettext function comes from... " >&6; }
9271 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9272 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9273 gt_source="external libintl"
9274 else
9275 gt_source="libc"
9276 fi
9277 else
9278 gt_source="included intl directory"
9279 fi
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9281 $as_echo "$gt_source" >&6; }
9282 fi
9283
9284 if test "$USE_NLS" = "yes"; then
9285
9286 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9287 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9289 $as_echo_n "checking how to link with libintl... " >&6; }
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9291 $as_echo "$LIBINTL" >&6; }
9292
9293 for element in $INCINTL; do
9294 haveit=
9295 for x in $CPPFLAGS; do
9296
9297 acl_save_prefix="$prefix"
9298 prefix="$acl_final_prefix"
9299 acl_save_exec_prefix="$exec_prefix"
9300 exec_prefix="$acl_final_exec_prefix"
9301 eval x=\"$x\"
9302 exec_prefix="$acl_save_exec_prefix"
9303 prefix="$acl_save_prefix"
9304
9305 if test "X$x" = "X$element"; then
9306 haveit=yes
9307 break
9308 fi
9309 done
9310 if test -z "$haveit"; then
9311 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9312 fi
9313 done
9314
9315 fi
9316
9317
9318 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9319
9320
9321 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9322
9323 fi
9324
9325 POSUB=po
9326 fi
9327
9328
9329
9330 INTLLIBS="$LIBINTL"
9331
9332
9333
9334
9335
9336
9337
9338
9339 if test "x$GMSGFMT" = "x:"; then
9340 as_fn_error $? "missing gnu /usr/bin/msgfmt" "$LINENO" 5
9341 fi
9342
9343 if test "${enable_prologues+set}" != set; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5
9345 $as_echo_n "checking to see if prologue searching should be the default... " >&6; }
9346 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
9347 echo ' yes '
9348 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9349 enable_prologues=yes
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9351 $as_echo "yes" >&6; }
9352 else
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354 $as_echo "no" >&6; }
9355 fi
9356 fi
9357 # Check whether --enable-prologues was given.
9358 if test "${enable_prologues+set}" = set; then :
9359 enableval=$enable_prologues;
9360 if test "$enable_prologues" = yes; then
9361
9362 $as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h
9363
9364 fi
9365 fi
9366
9367
9368
9369 if test "${enable_sdt_probes+set}" != set; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5
9371 $as_echo_n "checking to see if sdt probes should be the default... " >&6; }
9372 if { echo '#if __GNUC__ < 4'
9373 echo ' yes '
9374 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9375 enable_sdt_probes=no
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377 $as_echo "no" >&6; }
9378 else
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9380 $as_echo "yes" >&6; }
9381 fi
9382 fi
9383 # Check whether --enable-sdt-probes was given.
9384 if test "${enable_sdt_probes+set}" = set; then :
9385 enableval=$enable_sdt_probes;
9386 fi
9387
9388 if test "x$enable_sdt_probes" != xno; then :
9389
9390
9391 $as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h
9392
9393
9394 fi
9395
9396 # Check whether --enable-ssp was given.
9397 if test "${enable_ssp+set}" = set; then :
9398 enableval=$enable_ssp;
9399 fi
9400
9401 if test "x$enable_ssp" != xno; then :
9402
9403 save_CFLAGS="$CFLAGS"
9404 save_CXXFLAGS="$CXXFLAGS"
9405 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
9406 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 int something ();
9410 _ACEOF
9411 if ac_fn_c_try_compile "$LINENO"; then :
9412
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
9414 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
9415 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
9416 CXXFLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
9417 else
9418
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
9420 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
9421 CFLAGS="$save_CFLAGS"
9422 CXXFLAGS="$save_CXXFLAGS"
9423 fi
9424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425 fi
9426
9427
9428
9429
9430 # Compiling without fPIE by default (see PR 9922)
9431 # Check whether --enable-pie was given.
9432 if test "${enable_pie+set}" = set; then :
9433 enableval=$enable_pie;
9434 fi
9435
9436 if test "x$enable_pie" == xyes; then :
9437
9438 PIECFLAGS='-fPIE'
9439 PIECXXFLAGS='-fPIE'
9440 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
9441 save_CFLAGS="$CFLAGS"
9442 save_CXXFLAGS="$CXXFLAGS"
9443 save_LDFLAGS="$LDFLAGS"
9444 CFLAGS="$CFLAGS $PIECFLAGS"
9445 CXXFLAGS="$CXXFLAGS $PIECXXFLAGS"
9446 LDFLAGS="$LDFLAGS $PIELDFLAGS"
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9449 void main () {}
9450 _ACEOF
9451 if ac_fn_c_try_link "$LINENO"; then :
9452
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
9454 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
9455
9456 else
9457
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
9459 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
9460 PIECFLAGS=""
9461 PIECXXFLAGS=""
9462 PIELDFLAGS=""
9463
9464 fi
9465 rm -f core conftest.err conftest.$ac_objext \
9466 conftest$ac_exeext conftest.$ac_ext
9467 CFLAGS="$save_CFLAGS"
9468 CXXFLAGS="$save_CXXFLAGS"
9469 LDFLAGS="$save_LDFLAGS"
9470
9471 fi
9472
9473
9474
9475
9476 # Check whether --enable-sqlite was given.
9477 if test "${enable_sqlite+set}" = set; then :
9478 enableval=$enable_sqlite;
9479 else
9480 enable_sqlite=check
9481 fi
9482 sqlite3_LIBS=
9483 if test "x$enable_sqlite" != xno; then :
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
9485 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
9486 if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 ac_check_lib_save_LIBS=$LIBS
9490 LIBS="-lsqlite3 $LIBS"
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493
9494 /* Override any GCC internal prototype to avoid an error.
9495 Use char because int might match the return type of a GCC
9496 builtin and then its argument prototype would still apply. */
9497 #ifdef __cplusplus
9498 extern "C"
9499 #endif
9500 char sqlite3_open ();
9501 int
9502 main ()
9503 {
9504 return sqlite3_open ();
9505 ;
9506 return 0;
9507 }
9508 _ACEOF
9509 if ac_fn_c_try_link "$LINENO"; then :
9510 ac_cv_lib_sqlite3_sqlite3_open=yes
9511 else
9512 ac_cv_lib_sqlite3_sqlite3_open=no
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9516 LIBS=$ac_check_lib_save_LIBS
9517 fi
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
9519 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
9520 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
9521 sqlite3_LIBS=-lsqlite3
9522
9523
9524 $as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h
9525
9526 else
9527 if test "x$enable_sqlite" != xcheck; then
9528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9530 as_fn_error $? "--enable-sqlite was given, but test for sqlite failed
9531 See \`config.log' for more details" "$LINENO" 5; }
9532 fi
9533 fi
9534
9535 fi
9536
9537 # Check whether --enable-translator was given.
9538 if test "${enable_translator+set}" = set; then :
9539 enableval=$enable_translator;
9540 else
9541 enable_translator="yes"
9542 fi
9543
9544 if test "$enable_translator" == "yes"; then
9545 BUILD_TRANSLATOR_TRUE=
9546 BUILD_TRANSLATOR_FALSE='#'
9547 else
9548 BUILD_TRANSLATOR_TRUE='#'
9549 BUILD_TRANSLATOR_FALSE=
9550 fi
9551
9552
9553 # Check whether --enable-crash was given.
9554 if test "${enable_crash+set}" = set; then :
9555 enableval=$enable_crash; if test "$enable_crash" != "no"; then
9556 save_CPPFLAGS="$CPPFLAGS"
9557 if test "$enable_crash" != "yes"; then
9558 staplog_CPPFLAGS=-I$enable_crash
9559 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
9560
9561 fi
9562 for ac_header in crash/defs.h
9563 do :
9564 ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" "
9565 #define NR_CPUS 256
9566
9567 "
9568 if test "x$ac_cv_header_crash_defs_h" = xyes; then :
9569 cat >>confdefs.h <<_ACEOF
9570 #define HAVE_CRASH_DEFS_H 1
9571 _ACEOF
9572
9573 else
9574 as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5
9575 fi
9576
9577 done
9578
9579 CPPFLAGS="$save_CPPFLAGS"
9580 fi
9581 else
9582 enable_crash="no"
9583 fi
9584
9585 if test "$enable_crash" != "no"; then
9586 BUILD_CRASHMOD_TRUE=
9587 BUILD_CRASHMOD_FALSE='#'
9588 else
9589 BUILD_CRASHMOD_TRUE='#'
9590 BUILD_CRASHMOD_FALSE=
9591 fi
9592
9593
9594 building_docs="no"
9595 # Check whether --enable-docs was given.
9596 if test "${enable_docs+set}" = set; then :
9597 enableval=$enable_docs; enable_docs=$enableval
9598 else
9599 enable_docs="check"
9600 fi
9601
9602 # Extract the first word of "latex", so it can be a program name with args.
9603 set dummy latex; ac_word=$2
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9605 $as_echo_n "checking for $ac_word... " >&6; }
9606 if ${ac_cv_prog_have_latex+:} false; then :
9607 $as_echo_n "(cached) " >&6
9608 else
9609 if test -n "$have_latex"; then
9610 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
9611 else
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613 for as_dir in $PATH
9614 do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9619 ac_cv_prog_have_latex="yes"
9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9622 fi
9623 done
9624 done
9625 IFS=$as_save_IFS
9626
9627 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
9628 fi
9629 fi
9630 have_latex=$ac_cv_prog_have_latex
9631 if test -n "$have_latex"; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5
9633 $as_echo "$have_latex" >&6; }
9634 else
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9637 fi
9638
9639
9640 # Extract the first word of "dvips", so it can be a program name with args.
9641 set dummy dvips; ac_word=$2
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9643 $as_echo_n "checking for $ac_word... " >&6; }
9644 if ${ac_cv_prog_have_dvips+:} false; then :
9645 $as_echo_n "(cached) " >&6
9646 else
9647 if test -n "$have_dvips"; then
9648 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
9649 else
9650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 for as_dir in $PATH
9652 do
9653 IFS=$as_save_IFS
9654 test -z "$as_dir" && as_dir=.
9655 for ac_exec_ext in '' $ac_executable_extensions; do
9656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9657 ac_cv_prog_have_dvips="yes"
9658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9659 break 2
9660 fi
9661 done
9662 done
9663 IFS=$as_save_IFS
9664
9665 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
9666 fi
9667 fi
9668 have_dvips=$ac_cv_prog_have_dvips
9669 if test -n "$have_dvips"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
9671 $as_echo "$have_dvips" >&6; }
9672 else
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9675 fi
9676
9677
9678 # Extract the first word of "ps2pdf", so it can be a program name with args.
9679 set dummy ps2pdf; ac_word=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if ${ac_cv_prog_have_ps2pdf+:} false; then :
9683 $as_echo_n "(cached) " >&6
9684 else
9685 if test -n "$have_ps2pdf"; then
9686 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
9687 else
9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 for as_dir in $PATH
9690 do
9691 IFS=$as_save_IFS
9692 test -z "$as_dir" && as_dir=.
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9695 ac_cv_prog_have_ps2pdf="yes"
9696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9697 break 2
9698 fi
9699 done
9700 done
9701 IFS=$as_save_IFS
9702
9703 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
9704 fi
9705 fi
9706 have_ps2pdf=$ac_cv_prog_have_ps2pdf
9707 if test -n "$have_ps2pdf"; then
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5
9709 $as_echo "$have_ps2pdf" >&6; }
9710 else
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712 $as_echo "no" >&6; }
9713 fi
9714
9715
9716 if test "x${have_latex}${have_dvips}${have_ps2pdf}" != "xyesyesyes"; then
9717 if test "$enable_docs" == "yes"; then
9718 as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5
9719 fi
9720 if test "$enable_docs" == "check"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5
9722 $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
9723 fi
9724 fi
9725 if test "x${have_latex}${have_dvips}${have_ps2pdf}" == "xyesyesyes" -a "$enable_docs" != "no"; then
9726 building_docs="yes"
9727 fi
9728 if test "$building_docs" == "yes"; then
9729 BUILD_DOCS_TRUE=
9730 BUILD_DOCS_FALSE='#'
9731 else
9732 BUILD_DOCS_TRUE='#'
9733 BUILD_DOCS_FALSE=
9734 fi
9735
9736
9737
9738 building_refdocs="no"
9739 # Check whether --enable-refdocs was given.
9740 if test "${enable_refdocs+set}" = set; then :
9741 enableval=$enable_refdocs; enable_refdocs=$enableval
9742 else
9743 enable_refdocs="check"
9744 fi
9745
9746 if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
9747 as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5
9748 fi
9749 # Extract the first word of "xmlto", so it can be a program name with args.
9750 set dummy xmlto; ac_word=$2
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9752 $as_echo_n "checking for $ac_word... " >&6; }
9753 if ${ac_cv_prog_have_xmlto+:} false; then :
9754 $as_echo_n "(cached) " >&6
9755 else
9756 if test -n "$have_xmlto"; then
9757 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
9758 else
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760 for as_dir in $PATH
9761 do
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9766 ac_cv_prog_have_xmlto="yes"
9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 break 2
9769 fi
9770 done
9771 done
9772 IFS=$as_save_IFS
9773
9774 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
9775 fi
9776 fi
9777 have_xmlto=$ac_cv_prog_have_xmlto
9778 if test -n "$have_xmlto"; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
9780 $as_echo "$have_xmlto" >&6; }
9781 else
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9784 fi
9785
9786
9787 if test "$enable_refdocs" == "yes"; then
9788 if test "x${have_xmlto}" != "xyes"; then
9789 as_fn_error $? "cannot find xmlto for building reference documentation" "$LINENO" 5
9790 fi
9791 fi
9792 if test "x${have_xmlto}" == "xyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
9793 building_refdocs="yes"
9794 fi
9795 if test "$building_refdocs" == "yes"; then
9796 BUILD_REFDOCS_TRUE=
9797 BUILD_REFDOCS_FALSE='#'
9798 else
9799 BUILD_REFDOCS_TRUE='#'
9800 BUILD_REFDOCS_FALSE=
9801 fi
9802
9803
9804 # Extract the first word of "fop", so it can be a program name with args.
9805 set dummy fop; ac_word=$2
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807 $as_echo_n "checking for $ac_word... " >&6; }
9808 if ${ac_cv_prog_have_fop+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 if test -n "$have_fop"; then
9812 ac_cv_prog_have_fop="$have_fop" # Let the user override the test.
9813 else
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9816 do
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9821 ac_cv_prog_have_fop="yes"
9822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 break 2
9824 fi
9825 done
9826 done
9827 IFS=$as_save_IFS
9828
9829 test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no"
9830 fi
9831 fi
9832 have_fop=$ac_cv_prog_have_fop
9833 if test -n "$have_fop"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5
9835 $as_echo "$have_fop" >&6; }
9836 else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9839 fi
9840
9841
9842 if test "x${have_fop}" == "xyes"; then
9843 # Due to rhbz505364 / 830266, we must actually test-run fop, not just
9844 # hope that it works.
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5
9846 $as_echo_n "checking to see if xmlto --with-fop actually works... " >&6; }
9847 if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9849 $as_echo "yes" >&6; }
9850 else
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5
9852 $as_echo "it's dead, Jim" >&6; }
9853 have_fop="broken"
9854 fi
9855 rm -f dummy-tapsets.pdf
9856 fi
9857 if test "$have_fop" == "yes"; then
9858 HAVE_FOP_TRUE=
9859 HAVE_FOP_FALSE='#'
9860 else
9861 HAVE_FOP_TRUE='#'
9862 HAVE_FOP_FALSE=
9863 fi
9864
9865 if test "$have_xmlto" == "yes"; then
9866 HAVE_XMLTO_TRUE=
9867 HAVE_XMLTO_FALSE='#'
9868 else
9869 HAVE_XMLTO_TRUE='#'
9870 HAVE_XMLTO_FALSE=
9871 fi
9872
9873
9874 cat > conftest.xml << 'EOF'
9875 <?xml version="1.0" encoding="UTF-8"?>
9876 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
9877 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
9878 <book lang="en">
9879 <bookinfo><title>foo</title></bookinfo>
9880 <chapter id="logging.stp"><title>Logging Tapset</title>
9881 <refentry id="API-log"><refnamediv><refname>log</refname>
9882 <refpurpose>logging</refpurpose></refnamediv>
9883 <refsect1><title>Description</title>
9884 <para>baz</para></refsect1></refentry></chapter>
9885 </book>
9886 EOF
9887
9888 if test "x${have_xmlto}" == "xyes"; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5
9890 $as_echo_n "checking for xmlto --stringparam support... " >&6; }
9891 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
9892 if test $? == 0; then
9893 have_xmlto_stringparam="yes"
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9895 $as_echo "yes" >&6; }
9896 else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898 $as_echo "no" >&6; }
9899 fi
9900 rm -f conftest.html
9901 fi
9902 if test "$have_xmlto_stringparam" == "yes"; then
9903 XMLTO_STRINGPARAM_TRUE=
9904 XMLTO_STRINGPARAM_FALSE='#'
9905 else
9906 XMLTO_STRINGPARAM_TRUE='#'
9907 XMLTO_STRINGPARAM_FALSE=
9908 fi
9909
9910
9911 if test "x${building_refdocs}" == "xyes"; then
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto pdf support" >&5
9913 $as_echo_n "checking for xmlto pdf support... " >&6; }
9914 # xmlto pdf may work *only* with --with-fop
9915 # XXX: To an extent this test is redundant in that the --with-fop test
9916 # already ran xmlto --with-fop pdf ....
9917 if test "x$have_fop" == "xyes"; then
9918 XMLTOPDF_FOP=--with-fop
9919 else
9920 XMLTOPDF_FOP=
9921 fi
9922 xmlto $XMLTOPDF_FOP pdf conftest.xml >& /dev/null
9923 if test $? == 0; then
9924 have_xmlto_pdf="yes"
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9926 $as_echo "yes" >&6; }
9927 else
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929 $as_echo "no" >&6; }
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building reference documentation in PDF format" >&5
9931 $as_echo "$as_me: WARNING: Not building reference documentation in PDF format" >&2;}
9932 fi
9933 rm -f conftest.pdf
9934 fi
9935 if test "$have_xmlto_pdf" == "yes"; then
9936 BUILD_PDFREFDOCS_TRUE=
9937 BUILD_PDFREFDOCS_FALSE='#'
9938 else
9939 BUILD_PDFREFDOCS_TRUE='#'
9940 BUILD_PDFREFDOCS_FALSE=
9941 fi
9942
9943
9944 rm -f conftest.xml
9945
9946
9947 # Check whether --with-nss was given.
9948 if test "${with_nss+set}" = set; then :
9949 withval=$with_nss;
9950 fi
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9961 if test -n "$ac_tool_prefix"; then
9962 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9963 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9965 $as_echo_n "checking for $ac_word... " >&6; }
9966 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9967 $as_echo_n "(cached) " >&6
9968 else
9969 case $PKG_CONFIG in
9970 [\\/]* | ?:[\\/]*)
9971 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9972 ;;
9973 *)
9974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975 for as_dir in $PATH
9976 do
9977 IFS=$as_save_IFS
9978 test -z "$as_dir" && as_dir=.
9979 for ac_exec_ext in '' $ac_executable_extensions; do
9980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9981 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9983 break 2
9984 fi
9985 done
9986 done
9987 IFS=$as_save_IFS
9988
9989 ;;
9990 esac
9991 fi
9992 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9993 if test -n "$PKG_CONFIG"; then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9995 $as_echo "$PKG_CONFIG" >&6; }
9996 else
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 $as_echo "no" >&6; }
9999 fi
10000
10001
10002 fi
10003 if test -z "$ac_cv_path_PKG_CONFIG"; then
10004 ac_pt_PKG_CONFIG=$PKG_CONFIG
10005 # Extract the first word of "pkg-config", so it can be a program name with args.
10006 set dummy pkg-config; ac_word=$2
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10008 $as_echo_n "checking for $ac_word... " >&6; }
10009 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10010 $as_echo_n "(cached) " >&6
10011 else
10012 case $ac_pt_PKG_CONFIG in
10013 [\\/]* | ?:[\\/]*)
10014 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10015 ;;
10016 *)
10017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018 for as_dir in $PATH
10019 do
10020 IFS=$as_save_IFS
10021 test -z "$as_dir" && as_dir=.
10022 for ac_exec_ext in '' $ac_executable_extensions; do
10023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10024 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10026 break 2
10027 fi
10028 done
10029 done
10030 IFS=$as_save_IFS
10031
10032 ;;
10033 esac
10034 fi
10035 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10036 if test -n "$ac_pt_PKG_CONFIG"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10038 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10039 else
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10042 fi
10043
10044 if test "x$ac_pt_PKG_CONFIG" = x; then
10045 PKG_CONFIG=""
10046 else
10047 case $cross_compiling:$ac_tool_warned in
10048 yes:)
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10051 ac_tool_warned=yes ;;
10052 esac
10053 PKG_CONFIG=$ac_pt_PKG_CONFIG
10054 fi
10055 else
10056 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10057 fi
10058
10059 fi
10060 if test -n "$PKG_CONFIG"; then
10061 _pkg_min_version=0.9.0
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10063 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10064 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10066 $as_echo "yes" >&6; }
10067 else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10070 PKG_CONFIG=""
10071 fi
10072 fi
10073 if test "x$with_nss" != "xno"; then :
10074
10075
10076 pkg_failed=no
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
10078 $as_echo_n "checking for nss... " >&6; }
10079
10080 if test -n "$nss_CFLAGS"; then
10081 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
10082 elif test -n "$PKG_CONFIG"; then
10083 if test -n "$PKG_CONFIG" && \
10084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10085 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10086 ac_status=$?
10087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10088 test $ac_status = 0; }; then
10089 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null`
10090 test "x$?" != "x0" && pkg_failed=yes
10091 else
10092 pkg_failed=yes
10093 fi
10094 else
10095 pkg_failed=untried
10096 fi
10097 if test -n "$nss_LIBS"; then
10098 pkg_cv_nss_LIBS="$nss_LIBS"
10099 elif test -n "$PKG_CONFIG"; then
10100 if test -n "$PKG_CONFIG" && \
10101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
10102 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
10103 ac_status=$?
10104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10105 test $ac_status = 0; }; then
10106 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null`
10107 test "x$?" != "x0" && pkg_failed=yes
10108 else
10109 pkg_failed=yes
10110 fi
10111 else
10112 pkg_failed=untried
10113 fi
10114
10115
10116
10117 if test $pkg_failed = yes; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10120
10121 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10122 _pkg_short_errors_supported=yes
10123 else
10124 _pkg_short_errors_supported=no
10125 fi
10126 if test $_pkg_short_errors_supported = yes; then
10127 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1`
10128 else
10129 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1`
10130 fi
10131 # Put the nasty error message in config.log where it belongs
10132 echo "$nss_PKG_ERRORS" >&5
10133
10134 have_nss=no
10135 elif test $pkg_failed = untried; then
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138 have_nss=no
10139 else
10140 nss_CFLAGS=$pkg_cv_nss_CFLAGS
10141 nss_LIBS=$pkg_cv_nss_LIBS
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10143 $as_echo "yes" >&6; }
10144 have_nss=yes
10145
10146 $as_echo "#define HAVE_NSS 1" >>confdefs.h
10147
10148
10149 fi
10150
10151 else
10152 have_nss=no
10153 fi
10154
10155 if test "${have_nss}" = "yes"; then
10156 HAVE_NSS_TRUE=
10157 HAVE_NSS_FALSE='#'
10158 else
10159 HAVE_NSS_TRUE='#'
10160 HAVE_NSS_FALSE=
10161 fi
10162
10163
10164
10165 # Check whether --with-dracutstap was given.
10166 if test "${with_dracutstap+set}" = set; then :
10167 withval=$with_dracutstap;
10168 fi
10169
10170 if test "x$with_dracutstap" != "x"; then :
10171 dracutstap="$with_dracutstap"
10172 else
10173 dracutstap=/usr/lib/dracut/modules.d/99stap
10174 fi
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut module directory $dracutstap" >&5
10176 $as_echo "$as_me: using dracut module directory $dracutstap" >&6;}
10177
10178
10179 # Check whether --enable-server was given.
10180 if test "${enable_server+set}" = set; then :
10181 enableval=$enable_server; enable_server=$enableval
10182 else
10183 enable_server="check"
10184 fi
10185
10186
10187 if test "$enable_server" != "no"; then
10188 if test "x${have_nss}" != "xyes"; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5
10190 $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;}
10191 fi
10192 fi
10193 if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then
10194 BUILD_SERVER_TRUE=
10195 BUILD_SERVER_FALSE='#'
10196 else
10197 BUILD_SERVER_TRUE='#'
10198 BUILD_SERVER_FALSE=
10199 fi
10200
10201
10202 if test "${have_nss}" != "yes"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5
10204 $as_echo "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;}
10205 fi
10206
10207
10208 # Check whether --with-avahi was given.
10209 if test "${with_avahi+set}" = set; then :
10210 withval=$with_avahi;
10211 fi
10212
10213
10214 if test "x$with_avahi" != "xno"; then :
10215
10216
10217 pkg_failed=no
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
10219 $as_echo_n "checking for avahi... " >&6; }
10220
10221 if test -n "$avahi_CFLAGS"; then
10222 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
10223 elif test -n "$PKG_CONFIG"; then
10224 if test -n "$PKG_CONFIG" && \
10225 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
10226 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
10227 ac_status=$?
10228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10229 test $ac_status = 0; }; then
10230 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
10231 test "x$?" != "x0" && pkg_failed=yes
10232 else
10233 pkg_failed=yes
10234 fi
10235 else
10236 pkg_failed=untried
10237 fi
10238 if test -n "$avahi_LIBS"; then
10239 pkg_cv_avahi_LIBS="$avahi_LIBS"
10240 elif test -n "$PKG_CONFIG"; then
10241 if test -n "$PKG_CONFIG" && \
10242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
10243 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
10244 ac_status=$?
10245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10246 test $ac_status = 0; }; then
10247 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
10248 test "x$?" != "x0" && pkg_failed=yes
10249 else
10250 pkg_failed=yes
10251 fi
10252 else
10253 pkg_failed=untried
10254 fi
10255
10256
10257
10258 if test $pkg_failed = yes; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260 $as_echo "no" >&6; }
10261
10262 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10263 _pkg_short_errors_supported=yes
10264 else
10265 _pkg_short_errors_supported=no
10266 fi
10267 if test $_pkg_short_errors_supported = yes; then
10268 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
10269 else
10270 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
10271 fi
10272 # Put the nasty error message in config.log where it belongs
10273 echo "$avahi_PKG_ERRORS" >&5
10274
10275 have_avahi=no
10276 elif test $pkg_failed = untried; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10279 have_avahi=no
10280 else
10281 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
10282 avahi_LIBS=$pkg_cv_avahi_LIBS
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10284 $as_echo "yes" >&6; }
10285 have_avahi=yes
10286
10287 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
10288
10289
10290 fi
10291
10292 else
10293 have_avahi=no
10294 fi
10295
10296 if test "${have_avahi}" = "yes"; then
10297 HAVE_AVAHI_TRUE=
10298 HAVE_AVAHI_FALSE='#'
10299 else
10300 HAVE_AVAHI_TRUE='#'
10301 HAVE_AVAHI_FALSE=
10302 fi
10303
10304
10305 if test "${have_avahi}" != "yes"; then
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5
10307 $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;}
10308 fi
10309
10310
10311
10312 # Check whether --with-rpm was given.
10313 if test "${with_rpm+set}" = set; then :
10314 withval=$with_rpm;
10315 else
10316 with_rpm="auto"
10317 fi
10318
10319 if test "$with_rpm" != "no"; then
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5
10321 $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; }
10322 if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 ac_check_lib_save_LIBS=$LIBS
10326 LIBS="-lrpm $LIBS"
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329
10330 /* Override any GCC internal prototype to avoid an error.
10331 Use char because int might match the return type of a GCC
10332 builtin and then its argument prototype would still apply. */
10333 #ifdef __cplusplus
10334 extern "C"
10335 #endif
10336 char rpmtsInitIterator ();
10337 int
10338 main ()
10339 {
10340 return rpmtsInitIterator ();
10341 ;
10342 return 0;
10343 }
10344 _ACEOF
10345 if ac_fn_c_try_link "$LINENO"; then :
10346 ac_cv_lib_rpm_rpmtsInitIterator=yes
10347 else
10348 ac_cv_lib_rpm_rpmtsInitIterator=no
10349 fi
10350 rm -f core conftest.err conftest.$ac_objext \
10351 conftest$ac_exeext conftest.$ac_ext
10352 LIBS=$ac_check_lib_save_LIBS
10353 fi
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
10355 $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
10356 if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then :
10357
10358
10359 $as_echo "#define HAVE_LIBRPM 1" >>confdefs.h
10360
10361 stap_LIBS="$stap_LIBS -lc -lrpm"
10362 have_librpm="yes"
10363 else
10364 have_librpm="no"
10365 fi
10366
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5
10368 $as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; }
10369 if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then :
10370 $as_echo_n "(cached) " >&6
10371 else
10372 ac_check_lib_save_LIBS=$LIBS
10373 LIBS="-lrpmio $LIBS"
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376
10377 /* Override any GCC internal prototype to avoid an error.
10378 Use char because int might match the return type of a GCC
10379 builtin and then its argument prototype would still apply. */
10380 #ifdef __cplusplus
10381 extern "C"
10382 #endif
10383 char rpmFreeCrypto ();
10384 int
10385 main ()
10386 {
10387 return rpmFreeCrypto ();
10388 ;
10389 return 0;
10390 }
10391 _ACEOF
10392 if ac_fn_c_try_link "$LINENO"; then :
10393 ac_cv_lib_rpmio_rpmFreeCrypto=yes
10394 else
10395 ac_cv_lib_rpmio_rpmFreeCrypto=no
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10399 LIBS=$ac_check_lib_save_LIBS
10400 fi
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5
10402 $as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; }
10403 if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then :
10404
10405
10406 $as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h
10407
10408 stap_LIBS="$stap_LIBS -lc -lrpmio"
10409 have_librpmio="yes"
10410 else
10411 have_librpmio="no"
10412 fi
10413
10414 if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then
10415 as_fn_error $? "cannot find librpm" "$LINENO" 5
10416 fi
10417 if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5
10419 $as_echo "$as_me: WARNING: cannot find librpmio" >&2;}
10420 fi
10421 fi
10422
10423 LIBS_no_readline=$LIBS
10424
10425 have_libreadline="no"
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
10427 $as_echo_n "checking how to link readline libs... " >&6; }
10428 for libtermcap in "" tinfo ncursesw ncurses curses termcap; do
10429 if test -z "$libtermcap"; then
10430 READLINE_LIBS="-lreadline"
10431 else
10432 READLINE_LIBS="-lreadline -l$libtermcap"
10433 fi
10434 LIBS="$READLINE_LIBS $LIBS_no_readline"
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10437
10438 /* Override any GCC internal prototype to avoid an error.
10439 Use char because int might match the return type of a GCC
10440 builtin and then its argument prototype would still apply. */
10441 #ifdef __cplusplus
10442 extern "C"
10443 #endif
10444 char readline ();
10445 int
10446 main ()
10447 {
10448 return readline ();
10449 ;
10450 return 0;
10451 }
10452 _ACEOF
10453 if ac_fn_c_try_link "$LINENO"; then :
10454 have_libreadline="yes"
10455 fi
10456 rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 if test "$have_libreadline" = "yes"; then
10459 break
10460 fi
10461 done
10462 if test "$have_libreadline" = "no"; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10464 $as_echo "none" >&6; }
10465 READLINE_LIBS=""
10466 else
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
10468 $as_echo "$READLINE_LIBS" >&6; }
10469
10470 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
10471
10472 fi
10473
10474 if test "$have_libreadline" == "yes"; then
10475 HAVE_LIBREADLINE_TRUE=
10476 HAVE_LIBREADLINE_FALSE='#'
10477 else
10478 HAVE_LIBREADLINE_TRUE='#'
10479 HAVE_LIBREADLINE_FALSE=
10480 fi
10481
10482
10483 LIBS=$LIBS_no_readline
10484
10485
10486 # Check whether --with-python3 was given.
10487 if test "${with_python3+set}" = set; then :
10488 withval=$with_python3;
10489 fi
10490
10491 if test "x$with_python3" = "xyes"; then :
10492 python=python3
10493
10494 else
10495 python=python
10496
10497 fi
10498
10499 build_elfutils=no
10500
10501 # Check whether --with-elfutils was given.
10502 if test "${with_elfutils+set}" = set; then :
10503 withval=$with_elfutils;
10504 case "$with_elfutils" in
10505 yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;;
10506 ''|no) ;;
10507 *) build_elfutils=yes ;;
10508 esac
10509 fi
10510
10511 if test $build_elfutils = yes; then
10512 BUILD_ELFUTILS_TRUE=
10513 BUILD_ELFUTILS_FALSE='#'
10514 else
10515 BUILD_ELFUTILS_TRUE='#'
10516 BUILD_ELFUTILS_FALSE=
10517 fi
10518
10519 elfutils_abs_srcdir=`if test $build_elfutils = yes; then :
10520 cd $with_elfutils && pwd
10521 fi`
10522
10523
10524 if test $enable_translator = yes; then
10525 if test $build_elfutils = no; then
10526 # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/
10527
10528 # On modern debian/ubuntu, libebl has been merged into libdw
10529 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
10530 save_LIBS="$LIBS"
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5
10532 $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; }
10533 if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 ac_check_lib_save_LIBS=$LIBS
10537 LIBS="-lebl $LIBS"
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10544 #ifdef __cplusplus
10545 extern "C"
10546 #endif
10547 char ebl_get_elfmachine ();
10548 int
10549 main ()
10550 {
10551 return ebl_get_elfmachine ();
10552 ;
10553 return 0;
10554 }
10555 _ACEOF
10556 if ac_fn_c_try_link "$LINENO"; then :
10557 ac_cv_lib_ebl_ebl_get_elfmachine=yes
10558 else
10559 ac_cv_lib_ebl_ebl_get_elfmachine=no
10560 fi
10561 rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10564 fi
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5
10566 $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; }
10567 if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then :
10568 ebl_LIBS=-lebl
10569 else
10570 ebl_LIBS=
10571 fi
10572
10573 LIBS="$save_LIBS"
10574
10575 save_LIBS="$LIBS"
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
10577 $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
10578 if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then :
10579 $as_echo_n "(cached) " >&6
10580 else
10581 ac_check_lib_save_LIBS=$LIBS
10582 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585
10586 /* Override any GCC internal prototype to avoid an error.
10587 Use char because int might match the return type of a GCC
10588 builtin and then its argument prototype would still apply. */
10589 #ifdef __cplusplus
10590 extern "C"
10591 #endif
10592 char dwfl_module_getsym ();
10593 int
10594 main ()
10595 {
10596 return dwfl_module_getsym ();
10597 ;
10598 return 0;
10599 }
10600 _ACEOF
10601 if ac_fn_c_try_link "$LINENO"; then :
10602 ac_cv_lib_dw_dwfl_module_getsym=yes
10603 else
10604 ac_cv_lib_dw_dwfl_module_getsym=no
10605 fi
10606 rm -f core conftest.err conftest.$ac_objext \
10607 conftest$ac_exeext conftest.$ac_ext
10608 LIBS=$ac_check_lib_save_LIBS
10609 fi
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
10611 $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
10612 if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then :
10613 cat >>confdefs.h <<_ACEOF
10614 #define HAVE_LIBDW 1
10615 _ACEOF
10616
10617 LIBS="-ldw $LIBS"
10618
10619 else
10620
10621 as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5
10622 fi
10623
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5
10625 $as_echo_n "checking for dwarf_next_unit in -ldw... " >&6; }
10626 if ${ac_cv_lib_dw_dwarf_next_unit+:} false; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 ac_check_lib_save_LIBS=$LIBS
10630 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h. */
10633
10634 /* Override any GCC internal prototype to avoid an error.
10635 Use char because int might match the return type of a GCC
10636 builtin and then its argument prototype would still apply. */
10637 #ifdef __cplusplus
10638 extern "C"
10639 #endif
10640 char dwarf_next_unit ();
10641 int
10642 main ()
10643 {
10644 return dwarf_next_unit ();
10645 ;
10646 return 0;
10647 }
10648 _ACEOF
10649 if ac_fn_c_try_link "$LINENO"; then :
10650 ac_cv_lib_dw_dwarf_next_unit=yes
10651 else
10652 ac_cv_lib_dw_dwarf_next_unit=no
10653 fi
10654 rm -f core conftest.err conftest.$ac_objext \
10655 conftest$ac_exeext conftest.$ac_ext
10656 LIBS=$ac_check_lib_save_LIBS
10657 fi
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5
10659 $as_echo "$ac_cv_lib_dw_dwarf_next_unit" >&6; }
10660 if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes; then :
10661 cat >>confdefs.h <<_ACEOF
10662 #define HAVE_LIBDW 1
10663 _ACEOF
10664
10665 LIBS="-ldw $LIBS"
10666
10667 else
10668
10669 as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5
10670 fi
10671
10672 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
10673 LIBS="$save_LIBS"
10674 else
10675 # We built our own and stap_LDFLAGS points at the install.
10676 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
10677 fi
10678 fi
10679
10680
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
10682 $as_echo "$as_me: stap will link $stap_LIBS" >&6;}
10683
10684 # staprun has more modest libelf needs
10685 if test $build_elfutils = no; then
10686 save_LIBS="$LIBS"
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
10688 $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; }
10689 if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-lelf $LIBS"
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10696
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 char elf_getshdrstrndx ();
10704 int
10705 main ()
10706 {
10707 return elf_getshdrstrndx ();
10708 ;
10709 return 0;
10710 }
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 ac_cv_lib_elf_elf_getshdrstrndx=yes
10714 else
10715 ac_cv_lib_elf_elf_getshdrstrndx=no
10716 fi
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10720 fi
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
10722 $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
10723 if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then :
10724 cat >>confdefs.h <<_ACEOF
10725 #define HAVE_LIBELF 1
10726 _ACEOF
10727
10728 LIBS="-lelf $LIBS"
10729
10730 else
10731
10732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10734 as_fn_error $? "libelf too old, need 0.142+
10735 See \`config.log' for more details" "$LINENO" 5; }
10736 fi
10737
10738 staprun_LIBS="$staprun_LIBS -lelf"
10739 LIBS="$save_LIBS"
10740 else
10741 # We built our own and staprun_LDFLAGS points at the install.
10742 staprun_LIBS="$staprun_LIBS -lelf"
10743 fi
10744
10745
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5
10747 $as_echo "$as_me: staprun will link $staprun_LIBS" >&6;}
10748
10749
10750 date=`date +%Y-%m-%d`
10751
10752 cat >>confdefs.h <<_ACEOF
10753 #define DATE "$date"
10754 _ACEOF
10755
10756 DATE="$date"
10757
10758
10759 # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
10760 # being compiled on 32-bit userspace but running against 64-bit kernels.
10761 # This is no longer necessary.
10762
10763 # Use tr1/unordered_map if available
10764 ac_ext=cpp
10765 ac_cpp='$CXXCPP $CPPFLAGS'
10766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10769
10770
10771 ac_ext=cpp
10772 ac_cpp='$CXXCPP $CPPFLAGS'
10773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10777 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10778 if test -z "$CXXCPP"; then
10779 if ${ac_cv_prog_CXXCPP+:} false; then :
10780 $as_echo_n "(cached) " >&6
10781 else
10782 # Double quotes because CXXCPP needs to be expanded
10783 for CXXCPP in "$CXX -E" "/lib/cpp"
10784 do
10785 ac_preproc_ok=false
10786 for ac_cxx_preproc_warn_flag in '' yes
10787 do
10788 # Use a header file that comes with gcc, so configuring glibc
10789 # with a fresh cross-compiler works.
10790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791 # <limits.h> exists even on freestanding compilers.
10792 # On the NeXT, cc -E runs the code through the compiler's parser,
10793 # not just through cpp. "Syntax error" is here to catch this case.
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10796 #ifdef __STDC__
10797 # include <limits.h>
10798 #else
10799 # include <assert.h>
10800 #endif
10801 Syntax error
10802 _ACEOF
10803 if ac_fn_cxx_try_cpp "$LINENO"; then :
10804
10805 else
10806 # Broken: fails on valid input.
10807 continue
10808 fi
10809 rm -f conftest.err conftest.i conftest.$ac_ext
10810
10811 # OK, works on sane cases. Now check whether nonexistent headers
10812 # can be detected and how.
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10815 #include <ac_nonexistent.h>
10816 _ACEOF
10817 if ac_fn_cxx_try_cpp "$LINENO"; then :
10818 # Broken: success on invalid input.
10819 continue
10820 else
10821 # Passes both tests.
10822 ac_preproc_ok=:
10823 break
10824 fi
10825 rm -f conftest.err conftest.i conftest.$ac_ext
10826
10827 done
10828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10829 rm -f conftest.i conftest.err conftest.$ac_ext
10830 if $ac_preproc_ok; then :
10831 break
10832 fi
10833
10834 done
10835 ac_cv_prog_CXXCPP=$CXXCPP
10836
10837 fi
10838 CXXCPP=$ac_cv_prog_CXXCPP
10839 else
10840 ac_cv_prog_CXXCPP=$CXXCPP
10841 fi
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10843 $as_echo "$CXXCPP" >&6; }
10844 ac_preproc_ok=false
10845 for ac_cxx_preproc_warn_flag in '' yes
10846 do
10847 # Use a header file that comes with gcc, so configuring glibc
10848 # with a fresh cross-compiler works.
10849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10850 # <limits.h> exists even on freestanding compilers.
10851 # On the NeXT, cc -E runs the code through the compiler's parser,
10852 # not just through cpp. "Syntax error" is here to catch this case.
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10855 #ifdef __STDC__
10856 # include <limits.h>
10857 #else
10858 # include <assert.h>
10859 #endif
10860 Syntax error
10861 _ACEOF
10862 if ac_fn_cxx_try_cpp "$LINENO"; then :
10863
10864 else
10865 # Broken: fails on valid input.
10866 continue
10867 fi
10868 rm -f conftest.err conftest.i conftest.$ac_ext
10869
10870 # OK, works on sane cases. Now check whether nonexistent headers
10871 # can be detected and how.
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10874 #include <ac_nonexistent.h>
10875 _ACEOF
10876 if ac_fn_cxx_try_cpp "$LINENO"; then :
10877 # Broken: success on invalid input.
10878 continue
10879 else
10880 # Passes both tests.
10881 ac_preproc_ok=:
10882 break
10883 fi
10884 rm -f conftest.err conftest.i conftest.$ac_ext
10885
10886 done
10887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10888 rm -f conftest.i conftest.err conftest.$ac_ext
10889 if $ac_preproc_ok; then :
10890
10891 else
10892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10894 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
10895 See \`config.log' for more details" "$LINENO" 5; }
10896 fi
10897
10898 ac_ext=cpp
10899 ac_cpp='$CXXCPP $CPPFLAGS'
10900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10903
10904
10905 for ac_header in tr1/unordered_map
10906 do :
10907 ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" "$ac_includes_default"
10908 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
10909 cat >>confdefs.h <<_ACEOF
10910 #define HAVE_TR1_UNORDERED_MAP 1
10911 _ACEOF
10912
10913 fi
10914
10915 done
10916
10917 for ac_header in tr1/memory
10918 do :
10919 ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/memory" "ac_cv_header_tr1_memory" "$ac_includes_default"
10920 if test "x$ac_cv_header_tr1_memory" = xyes; then :
10921 cat >>confdefs.h <<_ACEOF
10922 #define HAVE_TR1_MEMORY 1
10923 _ACEOF
10924
10925 fi
10926
10927 done
10928
10929 for ac_header in boost/shared_ptr.hpp
10930 do :
10931 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default"
10932 if test "x$ac_cv_header_boost_shared_ptr_hpp" = xyes; then :
10933 cat >>confdefs.h <<_ACEOF
10934 #define HAVE_BOOST_SHARED_PTR_HPP 1
10935 _ACEOF
10936
10937 fi
10938
10939 done
10940
10941 for ac_header in boost/utility/string_ref.hpp
10942 do :
10943 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/utility/string_ref.hpp" "ac_cv_header_boost_utility_string_ref_hpp" "$ac_includes_default"
10944 if test "x$ac_cv_header_boost_utility_string_ref_hpp" = xyes; then :
10945 cat >>confdefs.h <<_ACEOF
10946 #define HAVE_BOOST_UTILITY_STRING_REF_HPP 1
10947 _ACEOF
10948
10949 fi
10950
10951 done
10952
10953 ac_ext=c
10954 ac_cpp='$CPP $CPPFLAGS'
10955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10958
10959
10960
10961 # Check for Dyninst headers and libraries
10962
10963 # Check whether --with-dyninst was given.
10964 if test "${with_dyninst+set}" = set; then :
10965 withval=$with_dyninst;
10966 fi
10967
10968
10969 case "$with_dyninst" in
10970 no) ;;
10971 ''|yes) # Try a simple-minded distro search
10972 DYNINST_CXXFLAGS="-I/usr/include/dyninst"
10973 DYNINST_LDFLAGS="-L/usr/lib64/dyninst -L/usr/lib/dyninst" # XXX both lib paths!?!
10974 ;;
10975 *) # Use paths in the user-specified prefix
10976 DYNINST_CXXFLAGS="-I$with_dyninst/include"
10977 DYNINST_LDFLAGS="-L$with_dyninst/lib/" # XXX need lib64 too?
10978 ;;
10979 esac
10980 if test "$with_dyninst" != "no"; then
10981 ac_ext=cpp
10982 ac_cpp='$CXXCPP $CPPFLAGS'
10983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10986
10987 old_CPPFLAGS="$CPPFLAGS"
10988 CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS"
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5
10990 $as_echo "$as_me: checking dyninst support" >&6;}
10991 for ac_header in BPatch_object.h
10992 do :
10993 ac_fn_cxx_check_header_mongrel "$LINENO" "BPatch_object.h" "ac_cv_header_BPatch_object_h" "$ac_includes_default"
10994 if test "x$ac_cv_header_BPatch_object_h" = xyes; then :
10995 cat >>confdefs.h <<_ACEOF
10996 #define HAVE_BPATCH_OBJECT_H 1
10997 _ACEOF
10998
10999
11000
11001
11002 $as_echo "#define HAVE_DYNINST 1" >>confdefs.h
11003
11004 have_dyninst=yes
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5
11006 $as_echo "$as_me: dyninst support available" >&6;}
11007 fi
11008
11009 done
11010
11011 if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then
11012 as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5
11013 fi
11014 CPPFLAGS="$old_CPPFLAGS"
11015 ac_ext=c
11016 ac_cpp='$CPP $CPPFLAGS'
11017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11020
11021 fi
11022 if test "${have_dyninst}" = "yes"; then
11023 HAVE_DYNINST_TRUE=
11024 HAVE_DYNINST_FALSE='#'
11025 else
11026 HAVE_DYNINST_TRUE='#'
11027 HAVE_DYNINST_FALSE=
11028 fi
11029
11030
11031
11032
11033 # Check whether --enable-virt was given.
11034 if test "${enable_virt+set}" = set; then :
11035 enableval=$enable_virt; enable_virt=$enableval
11036 else
11037 enable_virt="check"
11038 fi
11039
11040
11041
11042 pkg_failed=no
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5
11044 $as_echo_n "checking for libvirt... " >&6; }
11045
11046 if test -n "$libvirt_CFLAGS"; then
11047 pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS"
11048 elif test -n "$PKG_CONFIG"; then
11049 if test -n "$PKG_CONFIG" && \
11050 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11051 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11052 ac_status=$?
11053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11054 test $ac_status = 0; }; then
11055 pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null`
11056 test "x$?" != "x0" && pkg_failed=yes
11057 else
11058 pkg_failed=yes
11059 fi
11060 else
11061 pkg_failed=untried
11062 fi
11063 if test -n "$libvirt_LIBS"; then
11064 pkg_cv_libvirt_LIBS="$libvirt_LIBS"
11065 elif test -n "$PKG_CONFIG"; then
11066 if test -n "$PKG_CONFIG" && \
11067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
11068 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
11069 ac_status=$?
11070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11071 test $ac_status = 0; }; then
11072 pkg_cv_libvirt_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null`
11073 test "x$?" != "x0" && pkg_failed=yes
11074 else
11075 pkg_failed=yes
11076 fi
11077 else
11078 pkg_failed=untried
11079 fi
11080
11081
11082
11083 if test $pkg_failed = yes; then
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11086
11087 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11088 _pkg_short_errors_supported=yes
11089 else
11090 _pkg_short_errors_supported=no
11091 fi
11092 if test $_pkg_short_errors_supported = yes; then
11093 libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11094 else
11095 libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
11096 fi
11097 # Put the nasty error message in config.log where it belongs
11098 echo "$libvirt_PKG_ERRORS" >&5
11099
11100 have_libvirt=no
11101 elif test $pkg_failed = untried; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11104 have_libvirt=no
11105 else
11106 libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS
11107 libvirt_LIBS=$pkg_cv_libvirt_LIBS
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11109 $as_echo "yes" >&6; }
11110
11111 have_libvirt=yes
11112
11113 $as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h
11114
11115
11116 fi
11117 if test "${have_libvirt}" = "yes"; then
11118 HAVE_LIBVIRT_TRUE=
11119 HAVE_LIBVIRT_FALSE='#'
11120 else
11121 HAVE_LIBVIRT_TRUE='#'
11122 HAVE_LIBVIRT_FALSE=
11123 fi
11124
11125
11126 pkg_failed=no
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
11128 $as_echo_n "checking for libxml2... " >&6; }
11129
11130 if test -n "$libxml2_CFLAGS"; then
11131 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
11132 elif test -n "$PKG_CONFIG"; then
11133 if test -n "$PKG_CONFIG" && \
11134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
11135 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
11136 ac_status=$?
11137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11138 test $ac_status = 0; }; then
11139 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
11140 test "x$?" != "x0" && pkg_failed=yes
11141 else
11142 pkg_failed=yes
11143 fi
11144 else
11145 pkg_failed=untried
11146 fi
11147 if test -n "$libxml2_LIBS"; then
11148 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
11149 elif test -n "$PKG_CONFIG"; then
11150 if test -n "$PKG_CONFIG" && \
11151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
11152 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
11153 ac_status=$?
11154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11155 test $ac_status = 0; }; then
11156 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
11157 test "x$?" != "x0" && pkg_failed=yes
11158 else
11159 pkg_failed=yes
11160 fi
11161 else
11162 pkg_failed=untried
11163 fi
11164
11165
11166
11167 if test $pkg_failed = yes; then
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11170
11171 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11172 _pkg_short_errors_supported=yes
11173 else
11174 _pkg_short_errors_supported=no
11175 fi
11176 if test $_pkg_short_errors_supported = yes; then
11177 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
11178 else
11179 libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
11180 fi
11181 # Put the nasty error message in config.log where it belongs
11182 echo "$libxml2_PKG_ERRORS" >&5
11183
11184 have_libxml2=no
11185 elif test $pkg_failed = untried; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11188 have_libxml2=no
11189 else
11190 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
11191 libxml2_LIBS=$pkg_cv_libxml2_LIBS
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11193 $as_echo "yes" >&6; }
11194
11195 have_libxml2=yes
11196
11197 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11198
11199
11200 fi
11201 if test "${have_libxml2}" = "yes"; then
11202 HAVE_LIBXML2_TRUE=
11203 HAVE_LIBXML2_FALSE='#'
11204 else
11205 HAVE_LIBXML2_TRUE='#'
11206 HAVE_LIBXML2_FALSE=
11207 fi
11208
11209
11210 if test "$enable_virt" != "no"; then
11211 if test "x${have_libvirt}" != "xyes"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5
11213 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;}
11214 fi
11215 if test "x${have_libxml2}" != "xyes"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5
11217 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;}
11218 fi
11219 fi
11220 if test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"; then
11221 BUILD_VIRT_TRUE=
11222 BUILD_VIRT_FALSE='#'
11223 else
11224 BUILD_VIRT_TRUE='#'
11225 BUILD_VIRT_FALSE=
11226 fi
11227
11228
11229
11230 pkg_failed=no
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jsonc" >&5
11232 $as_echo_n "checking for jsonc... " >&6; }
11233
11234 if test -n "$jsonc_CFLAGS"; then
11235 pkg_cv_jsonc_CFLAGS="$jsonc_CFLAGS"
11236 elif test -n "$PKG_CONFIG"; then
11237 if test -n "$PKG_CONFIG" && \
11238 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
11239 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
11240 ac_status=$?
11241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11242 test $ac_status = 0; }; then
11243 pkg_cv_jsonc_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
11244 test "x$?" != "x0" && pkg_failed=yes
11245 else
11246 pkg_failed=yes
11247 fi
11248 else
11249 pkg_failed=untried
11250 fi
11251 if test -n "$jsonc_LIBS"; then
11252 pkg_cv_jsonc_LIBS="$jsonc_LIBS"
11253 elif test -n "$PKG_CONFIG"; then
11254 if test -n "$PKG_CONFIG" && \
11255 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
11256 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
11257 ac_status=$?
11258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11259 test $ac_status = 0; }; then
11260 pkg_cv_jsonc_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
11261 test "x$?" != "x0" && pkg_failed=yes
11262 else
11263 pkg_failed=yes
11264 fi
11265 else
11266 pkg_failed=untried
11267 fi
11268
11269
11270
11271 if test $pkg_failed = yes; then
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274
11275 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11276 _pkg_short_errors_supported=yes
11277 else
11278 _pkg_short_errors_supported=no
11279 fi
11280 if test $_pkg_short_errors_supported = yes; then
11281 jsonc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
11282 else
11283 jsonc_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
11284 fi
11285 # Put the nasty error message in config.log where it belongs
11286 echo "$jsonc_PKG_ERRORS" >&5
11287
11288 have_jsonc=no
11289 elif test $pkg_failed = untried; then
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11292 have_jsonc=no
11293 else
11294 jsonc_CFLAGS=$pkg_cv_jsonc_CFLAGS
11295 jsonc_LIBS=$pkg_cv_jsonc_LIBS
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11297 $as_echo "yes" >&6; }
11298 have_jsonc=yes
11299 fi
11300
11301 pkg_failed=no
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
11303 $as_echo_n "checking for ncurses... " >&6; }
11304
11305 if test -n "$ncurses_CFLAGS"; then
11306 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
11307 elif test -n "$PKG_CONFIG"; then
11308 if test -n "$PKG_CONFIG" && \
11309 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
11310 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
11311 ac_status=$?
11312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11313 test $ac_status = 0; }; then
11314 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
11315 test "x$?" != "x0" && pkg_failed=yes
11316 else
11317 pkg_failed=yes
11318 fi
11319 else
11320 pkg_failed=untried
11321 fi
11322 if test -n "$ncurses_LIBS"; then
11323 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
11324 elif test -n "$PKG_CONFIG"; then
11325 if test -n "$PKG_CONFIG" && \
11326 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
11327 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
11328 ac_status=$?
11329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11330 test $ac_status = 0; }; then
11331 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
11332 test "x$?" != "x0" && pkg_failed=yes
11333 else
11334 pkg_failed=yes
11335 fi
11336 else
11337 pkg_failed=untried
11338 fi
11339
11340
11341
11342 if test $pkg_failed = yes; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11345
11346 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11347 _pkg_short_errors_supported=yes
11348 else
11349 _pkg_short_errors_supported=no
11350 fi
11351 if test $_pkg_short_errors_supported = yes; then
11352 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
11353 else
11354 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
11355 fi
11356 # Put the nasty error message in config.log where it belongs
11357 echo "$ncurses_PKG_ERRORS" >&5
11358
11359 have_ncurses=no
11360 elif test $pkg_failed = untried; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11363 have_ncurses=no
11364 else
11365 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
11366 ncurses_LIBS=$pkg_cv_ncurses_LIBS
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11368 $as_echo "yes" >&6; }
11369 have_ncurses=yes
11370 fi
11371 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == "yes"; then
11372 HAVE_MONITOR_LIBS_TRUE=
11373 HAVE_MONITOR_LIBS_FALSE='#'
11374 else
11375 HAVE_MONITOR_LIBS_TRUE='#'
11376 HAVE_MONITOR_LIBS_FALSE=
11377 fi
11378
11379 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == yes; then
11380
11381 $as_echo "#define HAVE_MONITOR_LIBS 1" >>confdefs.h
11382
11383 fi
11384
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
11386 $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; }
11387 if ${stap_cv_sectionq+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390
11391 old_CFLAGS="$CFLAGS"
11392 CFLAGS="$CFLAGS -Wa,--fatal-warnings"
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11395 asm(".section .note.foo,\"?\",\"note\"\n"
11396 ".byte 1, 2, 3\n"
11397 ".previous\n"
11398 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
11399 ".byte 1\n"
11400 ".pushsection .note.foo,\"?\",\"note\"\n"
11401 ".byte 4, 5, 6\n"
11402 ".popsection\n"
11403 ".byte 2\n");
11404 _ACEOF
11405 if ac_fn_c_try_compile "$LINENO"; then :
11406 stap_cv_sectionq=yes
11407 else
11408 stap_cv_sectionq=no
11409 fi
11410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11411 CFLAGS="$old_CFLAGS"
11412 fi
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
11414 $as_echo "$stap_cv_sectionq" >&6; }
11415
11416 support_section_question=0
11417 if test $stap_cv_sectionq = yes; then
11418 support_section_question=1
11419 fi
11420 ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
11421
11422
11423 if test $build_elfutils = yes -a $enable_translator = yes; then
11424 here=`pwd`
11425 case "$with_elfutils" in
11426 /*) elfutils_srcdir="$with_elfutils" ;;
11427 *) elfutils_srcdir="${here}/$with_elfutils" ;;
11428 esac
11429
11430 if ! test -f ${elfutils_srcdir}/configure; then
11431 as_fn_error $? "No ${elfutils_srcdir}/configure, forgot to run autoreconf -i?" "$LINENO" 5
11432 fi
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5
11434 $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
11435
11436 save_CFLAGS="$CFLAGS"
11437 save_CXXFLAGS="$CXXFLAGS"
11438 CXXFLAGS="$CXXFLAGS -fgnu89-inline"
11439 CFLAGS="$CFLAGS -fgnu89-inline"
11440 gnu89_inline_flag=""
11441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442 /* end confdefs.h. */
11443 int something ();
11444 _ACEOF
11445 if ac_fn_c_try_compile "$LINENO"; then :
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5
11448 $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
11449 gnu89_inline_flag="-fgnu89-inline"
11450 else
11451
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5
11453 $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
11454 fi
11455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456 CFLAGS="$save_CFLAGS"
11457 CXXFLAGS="$save_CXXFLAGS"
11458
11459 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
11460 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
11461 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
11462 # So we must make sure to pass those settings to elfutils configure.
11463 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
11464 # Check whether this is a source release, or a source checkout.
11465 # We need --enable-maintainer-mode if it isn't a source release.
11466 # elfutils.spec is only distributed in source releases.
11467 if test -f ${elfutils_srcdir}/elfutils.spec; then
11468 need_maintainer_option=""
11469 else
11470 need_maintainer_option="--enable-maintainer-mode"
11471 fi
11472 (mkdir -p build-elfutils && cd build-elfutils &&
11473 bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
11474 --includedir="${here}/include-elfutils" \
11475 --libdir="${here}/lib-elfutils" \
11476 --exec-prefix="$exec_prefix" \
11477 --prefix="$prefix" \
11478 --enable-dwz \
11479 ${need_maintainer_option} \
11480 CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag -fexceptions" \
11481 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
11482 if test -f ${elfutils_srcdir}/config/version.h.in; then
11483 echo Found elfutils/version.h header...
11484 else
11485 echo elfutils/version.h header not found, need elfutils 0.142+...
11486 exit -1
11487 fi
11488 )
11489 if test $? != 0; then exit -1; fi
11490 fi
11491
11492
11493 # Check whether --with-selinux was given.
11494 if test "${with_selinux+set}" = set; then :
11495 withval=$with_selinux;
11496 fi
11497
11498
11499 if test "x$with_selinux" != "xno"; then :
11500
11501
11502 pkg_failed=no
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5
11504 $as_echo_n "checking for selinux... " >&6; }
11505
11506 if test -n "$selinux_CFLAGS"; then
11507 pkg_cv_selinux_CFLAGS="$selinux_CFLAGS"
11508 elif test -n "$PKG_CONFIG"; then
11509 if test -n "$PKG_CONFIG" && \
11510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
11511 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
11512 ac_status=$?
11513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11514 test $ac_status = 0; }; then
11515 pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
11516 test "x$?" != "x0" && pkg_failed=yes
11517 else
11518 pkg_failed=yes
11519 fi
11520 else
11521 pkg_failed=untried
11522 fi
11523 if test -n "$selinux_LIBS"; then
11524 pkg_cv_selinux_LIBS="$selinux_LIBS"
11525 elif test -n "$PKG_CONFIG"; then
11526 if test -n "$PKG_CONFIG" && \
11527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
11528 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
11529 ac_status=$?
11530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11531 test $ac_status = 0; }; then
11532 pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
11533 test "x$?" != "x0" && pkg_failed=yes
11534 else
11535 pkg_failed=yes
11536 fi
11537 else
11538 pkg_failed=untried
11539 fi
11540
11541
11542
11543 if test $pkg_failed = yes; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11546
11547 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11548 _pkg_short_errors_supported=yes
11549 else
11550 _pkg_short_errors_supported=no
11551 fi
11552 if test $_pkg_short_errors_supported = yes; then
11553 selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
11554 else
11555 selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
11556 fi
11557 # Put the nasty error message in config.log where it belongs
11558 echo "$selinux_PKG_ERRORS" >&5
11559
11560 have_selinux=no
11561 elif test $pkg_failed = untried; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11564 have_selinux=no
11565 else
11566 selinux_CFLAGS=$pkg_cv_selinux_CFLAGS
11567 selinux_LIBS=$pkg_cv_selinux_LIBS
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11569 $as_echo "yes" >&6; }
11570 have_selinux=yes
11571
11572 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
11573
11574
11575 fi
11576
11577 else
11578 have_selinux=no
11579 fi
11580
11581 if test "${have_selinux}" = "yes"; then
11582 HAVE_SELINUX_TRUE=
11583 HAVE_SELINUX_FALSE='#'
11584 else
11585 HAVE_SELINUX_TRUE='#'
11586 HAVE_SELINUX_FALSE=
11587 fi
11588
11589
11590 # Extract the first word of "javac", so it can be a program name with args.
11591 set dummy javac; ac_word=$2
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11593 $as_echo_n "checking for $ac_word... " >&6; }
11594 if ${ac_cv_prog_have_javac+:} false; then :
11595 $as_echo_n "(cached) " >&6
11596 else
11597 if test -n "$have_javac"; then
11598 ac_cv_prog_have_javac="$have_javac" # Let the user override the test.
11599 else
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in $PATH
11602 do
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11607 ac_cv_prog_have_javac="yes"
11608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 break 2
11610 fi
11611 done
11612 done
11613 IFS=$as_save_IFS
11614
11615 test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no"
11616 fi
11617 fi
11618 have_javac=$ac_cv_prog_have_javac
11619 if test -n "$have_javac"; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5
11621 $as_echo "$have_javac" >&6; }
11622 else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624 $as_echo "no" >&6; }
11625 fi
11626
11627
11628 # Extract the first word of "jar", so it can be a program name with args.
11629 set dummy jar; ac_word=$2
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11631 $as_echo_n "checking for $ac_word... " >&6; }
11632 if ${ac_cv_prog_have_jar+:} false; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 if test -n "$have_jar"; then
11636 ac_cv_prog_have_jar="$have_jar" # Let the user override the test.
11637 else
11638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639 for as_dir in $PATH
11640 do
11641 IFS=$as_save_IFS
11642 test -z "$as_dir" && as_dir=.
11643 for ac_exec_ext in '' $ac_executable_extensions; do
11644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11645 ac_cv_prog_have_jar="yes"
11646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 break 2
11648 fi
11649 done
11650 done
11651 IFS=$as_save_IFS
11652
11653 test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no"
11654 fi
11655 fi
11656 have_jar=$ac_cv_prog_have_jar
11657 if test -n "$have_jar"; then
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5
11659 $as_echo "$have_jar" >&6; }
11660 else
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11663 fi
11664
11665
11666 if test "$have_javac" != no -a "$have_jar" != no; then
11667 echo java found, will try to configure Byteman support
11668
11669
11670 # Check whether --with-java was given.
11671 if test "${with_java+set}" = set; then :
11672 withval=$with_java;
11673 else
11674 with_java=/usr/lib/jvm/java
11675 fi
11676
11677 if test ! -d "$with_java"; then
11678 with_java=no
11679 fi
11680 JAVADIR="${with_java}"
11681 # always needed to compile
11682
11683 if test "$with_java" != "no"; then
11684
11685 cat >>confdefs.h <<_ACEOF
11686 #define HAVE_JAVA "1"
11687 _ACEOF
11688
11689 fi
11690
11691 if test "$with_java" != "no"; then
11692 HAVE_JAVA_TRUE=
11693 HAVE_JAVA_FALSE='#'
11694 else
11695 HAVE_JAVA_TRUE='#'
11696 HAVE_JAVA_FALSE=
11697 fi
11698
11699
11700 else
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5
11702 $as_echo "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;}
11703 if false; then
11704 HAVE_JAVA_TRUE=
11705 HAVE_JAVA_FALSE='#'
11706 else
11707 HAVE_JAVA_TRUE='#'
11708 HAVE_JAVA_FALSE=
11709 fi
11710
11711 fi # java+byteman support
11712
11713 ENABLE_NLS="$USE_NLS"
11714
11715 localedir="$localedir"
11716
11717 LOCALEDIR="$localedir"
11718
11719
11720
11721 # Check whether --with-extra-version was given.
11722 if test "${with_extra_version+set}" = set; then :
11723 withval=$with_extra_version;
11724 fi
11725
11726 if test "x$with_extra_version" != "xno"; then :
11727
11728 stap_extra_version="$with_extra_version"
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5
11730 $as_echo "$as_me: Adding extra version $stap_extra_version" >&6;}
11731 else
11732
11733 stap_extra_version=""
11734 fi
11735
11736 cat >>confdefs.h <<_ACEOF
11737 #define STAP_EXTRA_VERSION "$stap_extra_version"
11738 _ACEOF
11739
11740 STAP_EXTRA_VERSION="$stap_extra_version"
11741
11742
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=c++11" >&5
11744 $as_echo_n "checking whether C compiler accepts -std=c++11... " >&6; }
11745 if ${ax_cv_check_cflags___std_cpp11+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748
11749 ax_check_save_flags=$CFLAGS
11750 CFLAGS="$CFLAGS -std=c++11"
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11753
11754 int
11755 main ()
11756 {
11757
11758 ;
11759 return 0;
11760 }
11761 _ACEOF
11762 if ac_fn_c_try_compile "$LINENO"; then :
11763 ax_cv_check_cflags___std_cpp11=yes
11764 else
11765 ax_cv_check_cflags___std_cpp11=no
11766 fi
11767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768 CFLAGS=$ax_check_save_flags
11769 fi
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_cpp11" >&5
11771 $as_echo "$ax_cv_check_cflags___std_cpp11" >&6; }
11772 if test "x$ax_cv_check_cflags___std_cpp11" = xyes; then :
11773 cxx11="-std=c++11"
11774 else
11775 cxx11=""
11776 fi
11777
11778 if test "x$cxx11" != "x"; then :
11779
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling parts of systemtap with -std=c++11" >&5
11781 $as_echo "$as_me: Compiling parts of systemtap with -std=c++11" >&6;}
11782 fi
11783
11784
11785
11786 stap_prefix=$prefix
11787 test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
11788
11789 cat >>confdefs.h <<_ACEOF
11790 #define STAP_PREFIX "$stap_prefix"
11791 _ACEOF
11792
11793 STAP_PREFIX="$stap_prefix"
11794
11795
11796 ac_config_headers="$ac_config_headers config.h:config.in"
11797
11798 ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile man/cs/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"
11799
11800
11801
11802 subdirs="$subdirs testsuite"
11803
11804 if test $enable_translator == "yes"; then
11805 ac_config_files="$ac_config_files run-stap"
11806
11807 fi
11808 ac_config_files="$ac_config_files dtrace"
11809
11810 ac_config_files="$ac_config_files stapdyn/Makefile"
11811
11812 ac_config_files="$ac_config_files java/Makefile"
11813
11814 ac_config_files="$ac_config_files java/stapbm"
11815
11816 ac_config_files="$ac_config_files staprun/Makefile"
11817
11818 ac_config_files="$ac_config_files staprun/run-staprun"
11819
11820 ac_config_files="$ac_config_files staprun/guest/stapshd"
11821
11822 ac_config_files="$ac_config_files staprun/guest/stapsh-daemon"
11823
11824 ac_config_files="$ac_config_files staprun/guest/stapsh@.service"
11825
11826
11827 # Setup "shadow" directory doc/beginners that has the basic directories setup for
11828 # xmlto in one directory (through directory links if necessary).
11829 # It would be nice to use AC_CONFIG_LINKS, but automake complains when
11830 # the src is a directory and not a file.
11831 ac_config_commands="$ac_config_commands doc/beginners"
11832
11833
11834 cat >confcache <<\_ACEOF
11835 # This file is a shell script that caches the results of configure
11836 # tests run on this system so they can be shared between configure
11837 # scripts and configure runs, see configure's option --config-cache.
11838 # It is not useful on other systems. If it contains results you don't
11839 # want to keep, you may remove or edit it.
11840 #
11841 # config.status only pays attention to the cache file if you give it
11842 # the --recheck option to rerun configure.
11843 #
11844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11846 # following values.
11847
11848 _ACEOF
11849
11850 # The following way of writing the cache mishandles newlines in values,
11851 # but we know of no workaround that is simple, portable, and efficient.
11852 # So, we kill variables containing newlines.
11853 # Ultrix sh set writes to stderr and can't be redirected directly,
11854 # and sets the high bit in the cache file unless we assign to the vars.
11855 (
11856 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11857 eval ac_val=\$$ac_var
11858 case $ac_val in #(
11859 *${as_nl}*)
11860 case $ac_var in #(
11861 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11863 esac
11864 case $ac_var in #(
11865 _ | IFS | as_nl) ;; #(
11866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11867 *) { eval $ac_var=; unset $ac_var;} ;;
11868 esac ;;
11869 esac
11870 done
11871
11872 (set) 2>&1 |
11873 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11874 *${as_nl}ac_space=\ *)
11875 # `set' does not quote correctly, so add quotes: double-quote
11876 # substitution turns \\\\ into \\, and sed turns \\ into \.
11877 sed -n \
11878 "s/'/'\\\\''/g;
11879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11880 ;; #(
11881 *)
11882 # `set' quotes correctly as required by POSIX, so do not add quotes.
11883 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11884 ;;
11885 esac |
11886 sort
11887 ) |
11888 sed '
11889 /^ac_cv_env_/b end
11890 t clear
11891 :clear
11892 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11893 t end
11894 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11895 :end' >>confcache
11896 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11897 if test -w "$cache_file"; then
11898 if test "x$cache_file" != "x/dev/null"; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11900 $as_echo "$as_me: updating cache $cache_file" >&6;}
11901 if test ! -f "$cache_file" || test -h "$cache_file"; then
11902 cat confcache >"$cache_file"
11903 else
11904 case $cache_file in #(
11905 */* | ?:*)
11906 mv -f confcache "$cache_file"$$ &&
11907 mv -f "$cache_file"$$ "$cache_file" ;; #(
11908 *)
11909 mv -f confcache "$cache_file" ;;
11910 esac
11911 fi
11912 fi
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11915 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11916 fi
11917 fi
11918 rm -f confcache
11919
11920 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11921 # Let make expand exec_prefix.
11922 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11923
11924 DEFS=-DHAVE_CONFIG_H
11925
11926 ac_libobjs=
11927 ac_ltlibobjs=
11928 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11929 # 1. Remove the extension, and $U if already installed.
11930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11931 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11933 # will be set to the directory where LIBOBJS objects are built.
11934 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11935 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11936 done
11937 LIBOBJS=$ac_libobjs
11938
11939 LTLIBOBJS=$ac_ltlibobjs
11940
11941
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11943 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11944 if test -n "$am_sleep_pid"; then
11945 # Hide warnings about reused PIDs.
11946 wait $am_sleep_pid 2>/dev/null
11947 fi
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11949 $as_echo "done" >&6; }
11950 if test -n "$EXEEXT"; then
11951 am__EXEEXT_TRUE=
11952 am__EXEEXT_FALSE='#'
11953 else
11954 am__EXEEXT_TRUE='#'
11955 am__EXEEXT_FALSE=
11956 fi
11957
11958 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11959 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11961 fi
11962 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11963 as_fn_error $? "conditional \"AMDEP\" was never defined.
11964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11965 fi
11966 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11967 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11969 fi
11970 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11971 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11973 fi
11974 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11975 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11977 fi
11978 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11979 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11981 fi
11982 if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
11983 as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined.
11984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11985 fi
11986 if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
11987 as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined.
11988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11989 fi
11990 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
11991 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
11992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11993 fi
11994 if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
11995 as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined.
11996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11997 fi
11998 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
11999 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12001 fi
12002 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12003 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12005 fi
12006 if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
12007 as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined.
12008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12009 fi
12010 if test -z "${BUILD_PDFREFDOCS_TRUE}" && test -z "${BUILD_PDFREFDOCS_FALSE}"; then
12011 as_fn_error $? "conditional \"BUILD_PDFREFDOCS\" was never defined.
12012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12013 fi
12014 if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
12015 as_fn_error $? "conditional \"HAVE_NSS\" was never defined.
12016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12017 fi
12018 if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
12019 as_fn_error $? "conditional \"BUILD_SERVER\" was never defined.
12020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12021 fi
12022 if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
12023 as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined.
12024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12025 fi
12026 if test -z "${HAVE_LIBREADLINE_TRUE}" && test -z "${HAVE_LIBREADLINE_FALSE}"; then
12027 as_fn_error $? "conditional \"HAVE_LIBREADLINE\" was never defined.
12028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12029 fi
12030 if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
12031 as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined.
12032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12033 fi
12034 if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then
12035 as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined.
12036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12037 fi
12038 if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then
12039 as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined.
12040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12041 fi
12042 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
12043 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
12044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12045 fi
12046 if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then
12047 as_fn_error $? "conditional \"BUILD_VIRT\" was never defined.
12048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12049 fi
12050 if test -z "${HAVE_MONITOR_LIBS_TRUE}" && test -z "${HAVE_MONITOR_LIBS_FALSE}"; then
12051 as_fn_error $? "conditional \"HAVE_MONITOR_LIBS\" was never defined.
12052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12053 fi
12054 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
12055 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
12056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12057 fi
12058 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
12059 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
12060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12061 fi
12062 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
12063 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
12064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12065 fi
12066
12067 : "${CONFIG_STATUS=./config.status}"
12068 ac_write_fail=0
12069 ac_clean_files_save=$ac_clean_files
12070 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12072 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12073 as_write_fail=0
12074 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12075 #! $SHELL
12076 # Generated by $as_me.
12077 # Run this file to recreate the current configuration.
12078 # Compiler output produced by configure, useful for debugging
12079 # configure, is in config.log if it exists.
12080
12081 debug=false
12082 ac_cs_recheck=false
12083 ac_cs_silent=false
12084
12085 SHELL=\${CONFIG_SHELL-$SHELL}
12086 export SHELL
12087 _ASEOF
12088 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12089 ## -------------------- ##
12090 ## M4sh Initialization. ##
12091 ## -------------------- ##
12092
12093 # Be more Bourne compatible
12094 DUALCASE=1; export DUALCASE # for MKS sh
12095 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12096 emulate sh
12097 NULLCMD=:
12098 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12099 # is contrary to our usage. Disable this feature.
12100 alias -g '${1+"$@"}'='"$@"'
12101 setopt NO_GLOB_SUBST
12102 else
12103 case `(set -o) 2>/dev/null` in #(
12104 *posix*) :
12105 set -o posix ;; #(
12106 *) :
12107 ;;
12108 esac
12109 fi
12110
12111
12112 as_nl='
12113 '
12114 export as_nl
12115 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12116 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12117 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12118 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12119 # Prefer a ksh shell builtin over an external printf program on Solaris,
12120 # but without wasting forks for bash or zsh.
12121 if test -z "$BASH_VERSION$ZSH_VERSION" \
12122 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12123 as_echo='print -r --'
12124 as_echo_n='print -rn --'
12125 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12126 as_echo='printf %s\n'
12127 as_echo_n='printf %s'
12128 else
12129 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12130 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12131 as_echo_n='/usr/ucb/echo -n'
12132 else
12133 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12134 as_echo_n_body='eval
12135 arg=$1;
12136 case $arg in #(
12137 *"$as_nl"*)
12138 expr "X$arg" : "X\\(.*\\)$as_nl";
12139 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12140 esac;
12141 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12142 '
12143 export as_echo_n_body
12144 as_echo_n='sh -c $as_echo_n_body as_echo'
12145 fi
12146 export as_echo_body
12147 as_echo='sh -c $as_echo_body as_echo'
12148 fi
12149
12150 # The user is always right.
12151 if test "${PATH_SEPARATOR+set}" != set; then
12152 PATH_SEPARATOR=:
12153 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12154 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12155 PATH_SEPARATOR=';'
12156 }
12157 fi
12158
12159
12160 # IFS
12161 # We need space, tab and new line, in precisely that order. Quoting is
12162 # there to prevent editors from complaining about space-tab.
12163 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12164 # splitting by setting IFS to empty value.)
12165 IFS=" "" $as_nl"
12166
12167 # Find who we are. Look in the path if we contain no directory separator.
12168 as_myself=
12169 case $0 in #((
12170 *[\\/]* ) as_myself=$0 ;;
12171 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in $PATH
12173 do
12174 IFS=$as_save_IFS
12175 test -z "$as_dir" && as_dir=.
12176 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12177 done
12178 IFS=$as_save_IFS
12179
12180 ;;
12181 esac
12182 # We did not find ourselves, most probably we were run as `sh COMMAND'
12183 # in which case we are not to be found in the path.
12184 if test "x$as_myself" = x; then
12185 as_myself=$0
12186 fi
12187 if test ! -f "$as_myself"; then
12188 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12189 exit 1
12190 fi
12191
12192 # Unset variables that we do not need and which cause bugs (e.g. in
12193 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12194 # suppresses any "Segmentation fault" message there. '((' could
12195 # trigger a bug in pdksh 5.2.14.
12196 for as_var in BASH_ENV ENV MAIL MAILPATH
12197 do eval test x\${$as_var+set} = xset \
12198 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12199 done
12200 PS1='$ '
12201 PS2='> '
12202 PS4='+ '
12203
12204 # NLS nuisances.
12205 LC_ALL=C
12206 export LC_ALL
12207 LANGUAGE=C
12208 export LANGUAGE
12209
12210 # CDPATH.
12211 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12212
12213
12214 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12215 # ----------------------------------------
12216 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12217 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12218 # script with STATUS, using 1 if that was 0.
12219 as_fn_error ()
12220 {
12221 as_status=$1; test $as_status -eq 0 && as_status=1
12222 if test "$4"; then
12223 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12224 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12225 fi
12226 $as_echo "$as_me: error: $2" >&2
12227 as_fn_exit $as_status
12228 } # as_fn_error
12229
12230
12231 # as_fn_set_status STATUS
12232 # -----------------------
12233 # Set $? to STATUS, without forking.
12234 as_fn_set_status ()
12235 {
12236 return $1
12237 } # as_fn_set_status
12238
12239 # as_fn_exit STATUS
12240 # -----------------
12241 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12242 as_fn_exit ()
12243 {
12244 set +e
12245 as_fn_set_status $1
12246 exit $1
12247 } # as_fn_exit
12248
12249 # as_fn_unset VAR
12250 # ---------------
12251 # Portably unset VAR.
12252 as_fn_unset ()
12253 {
12254 { eval $1=; unset $1;}
12255 }
12256 as_unset=as_fn_unset
12257 # as_fn_append VAR VALUE
12258 # ----------------------
12259 # Append the text in VALUE to the end of the definition contained in VAR. Take
12260 # advantage of any shell optimizations that allow amortized linear growth over
12261 # repeated appends, instead of the typical quadratic growth present in naive
12262 # implementations.
12263 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12264 eval 'as_fn_append ()
12265 {
12266 eval $1+=\$2
12267 }'
12268 else
12269 as_fn_append ()
12270 {
12271 eval $1=\$$1\$2
12272 }
12273 fi # as_fn_append
12274
12275 # as_fn_arith ARG...
12276 # ------------------
12277 # Perform arithmetic evaluation on the ARGs, and store the result in the
12278 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12279 # must be portable across $(()) and expr.
12280 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12281 eval 'as_fn_arith ()
12282 {
12283 as_val=$(( $* ))
12284 }'
12285 else
12286 as_fn_arith ()
12287 {
12288 as_val=`expr "$@" || test $? -eq 1`
12289 }
12290 fi # as_fn_arith
12291
12292
12293 if expr a : '\(a\)' >/dev/null 2>&1 &&
12294 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12295 as_expr=expr
12296 else
12297 as_expr=false
12298 fi
12299
12300 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12301 as_basename=basename
12302 else
12303 as_basename=false
12304 fi
12305
12306 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12307 as_dirname=dirname
12308 else
12309 as_dirname=false
12310 fi
12311
12312 as_me=`$as_basename -- "$0" ||
12313 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12314 X"$0" : 'X\(//\)$' \| \
12315 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12316 $as_echo X/"$0" |
12317 sed '/^.*\/\([^/][^/]*\)\/*$/{
12318 s//\1/
12319 q
12320 }
12321 /^X\/\(\/\/\)$/{
12322 s//\1/
12323 q
12324 }
12325 /^X\/\(\/\).*/{
12326 s//\1/
12327 q
12328 }
12329 s/.*/./; q'`
12330
12331 # Avoid depending upon Character Ranges.
12332 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12333 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12334 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12335 as_cr_digits='0123456789'
12336 as_cr_alnum=$as_cr_Letters$as_cr_digits
12337
12338 ECHO_C= ECHO_N= ECHO_T=
12339 case `echo -n x` in #(((((
12340 -n*)
12341 case `echo 'xy\c'` in
12342 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12343 xy) ECHO_C='\c';;
12344 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12345 ECHO_T=' ';;
12346 esac;;
12347 *)
12348 ECHO_N='-n';;
12349 esac
12350
12351 rm -f conf$$ conf$$.exe conf$$.file
12352 if test -d conf$$.dir; then
12353 rm -f conf$$.dir/conf$$.file
12354 else
12355 rm -f conf$$.dir
12356 mkdir conf$$.dir 2>/dev/null
12357 fi
12358 if (echo >conf$$.file) 2>/dev/null; then
12359 if ln -s conf$$.file conf$$ 2>/dev/null; then
12360 as_ln_s='ln -s'
12361 # ... but there are two gotchas:
12362 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12363 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12364 # In both cases, we have to default to `cp -pR'.
12365 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12366 as_ln_s='cp -pR'
12367 elif ln conf$$.file conf$$ 2>/dev/null; then
12368 as_ln_s=ln
12369 else
12370 as_ln_s='cp -pR'
12371 fi
12372 else
12373 as_ln_s='cp -pR'
12374 fi
12375 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12376 rmdir conf$$.dir 2>/dev/null
12377
12378
12379 # as_fn_mkdir_p
12380 # -------------
12381 # Create "$as_dir" as a directory, including parents if necessary.
12382 as_fn_mkdir_p ()
12383 {
12384
12385 case $as_dir in #(
12386 -*) as_dir=./$as_dir;;
12387 esac
12388 test -d "$as_dir" || eval $as_mkdir_p || {
12389 as_dirs=
12390 while :; do
12391 case $as_dir in #(
12392 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12393 *) as_qdir=$as_dir;;
12394 esac
12395 as_dirs="'$as_qdir' $as_dirs"
12396 as_dir=`$as_dirname -- "$as_dir" ||
12397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12398 X"$as_dir" : 'X\(//\)[^/]' \| \
12399 X"$as_dir" : 'X\(//\)$' \| \
12400 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12401 $as_echo X"$as_dir" |
12402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12403 s//\1/
12404 q
12405 }
12406 /^X\(\/\/\)[^/].*/{
12407 s//\1/
12408 q
12409 }
12410 /^X\(\/\/\)$/{
12411 s//\1/
12412 q
12413 }
12414 /^X\(\/\).*/{
12415 s//\1/
12416 q
12417 }
12418 s/.*/./; q'`
12419 test -d "$as_dir" && break
12420 done
12421 test -z "$as_dirs" || eval "mkdir $as_dirs"
12422 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12423
12424
12425 } # as_fn_mkdir_p
12426 if mkdir -p . 2>/dev/null; then
12427 as_mkdir_p='mkdir -p "$as_dir"'
12428 else
12429 test -d ./-p && rmdir ./-p
12430 as_mkdir_p=false
12431 fi
12432
12433
12434 # as_fn_executable_p FILE
12435 # -----------------------
12436 # Test if FILE is an executable regular file.
12437 as_fn_executable_p ()
12438 {
12439 test -f "$1" && test -x "$1"
12440 } # as_fn_executable_p
12441 as_test_x='test -x'
12442 as_executable_p=as_fn_executable_p
12443
12444 # Sed expression to map a string onto a valid CPP name.
12445 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12446
12447 # Sed expression to map a string onto a valid variable name.
12448 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12449
12450
12451 exec 6>&1
12452 ## ----------------------------------- ##
12453 ## Main body of $CONFIG_STATUS script. ##
12454 ## ----------------------------------- ##
12455 _ASEOF
12456 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12457
12458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12459 # Save the log message, to keep $0 and so on meaningful, and to
12460 # report actual input values of CONFIG_FILES etc. instead of their
12461 # values after options handling.
12462 ac_log="
12463 This file was extended by systemtap $as_me 3.0, which was
12464 generated by GNU Autoconf 2.69. Invocation command line was
12465
12466 CONFIG_FILES = $CONFIG_FILES
12467 CONFIG_HEADERS = $CONFIG_HEADERS
12468 CONFIG_LINKS = $CONFIG_LINKS
12469 CONFIG_COMMANDS = $CONFIG_COMMANDS
12470 $ $0 $@
12471
12472 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12473 "
12474
12475 _ACEOF
12476
12477 case $ac_config_files in *"
12478 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12479 esac
12480
12481 case $ac_config_headers in *"
12482 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12483 esac
12484
12485
12486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12487 # Files that config.status was made for.
12488 config_files="$ac_config_files"
12489 config_headers="$ac_config_headers"
12490 config_commands="$ac_config_commands"
12491
12492 _ACEOF
12493
12494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12495 ac_cs_usage="\
12496 \`$as_me' instantiates files and other configuration actions
12497 from templates according to the current configuration. Unless the files
12498 and actions are specified as TAGs, all are instantiated by default.
12499
12500 Usage: $0 [OPTION]... [TAG]...
12501
12502 -h, --help print this help, then exit
12503 -V, --version print version number and configuration settings, then exit
12504 --config print configuration, then exit
12505 -q, --quiet, --silent
12506 do not print progress messages
12507 -d, --debug don't remove temporary files
12508 --recheck update $as_me by reconfiguring in the same conditions
12509 --file=FILE[:TEMPLATE]
12510 instantiate the configuration file FILE
12511 --header=FILE[:TEMPLATE]
12512 instantiate the configuration header FILE
12513
12514 Configuration files:
12515 $config_files
12516
12517 Configuration headers:
12518 $config_headers
12519
12520 Configuration commands:
12521 $config_commands
12522
12523 Report bugs to <systemtap@sourceware.org>."
12524
12525 _ACEOF
12526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12527 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12528 ac_cs_version="\\
12529 systemtap config.status 3.0
12530 configured by $0, generated by GNU Autoconf 2.69,
12531 with options \\"\$ac_cs_config\\"
12532
12533 Copyright (C) 2012 Free Software Foundation, Inc.
12534 This config.status script is free software; the Free Software Foundation
12535 gives unlimited permission to copy, distribute and modify it."
12536
12537 ac_pwd='$ac_pwd'
12538 srcdir='$srcdir'
12539 INSTALL='$INSTALL'
12540 MKDIR_P='$MKDIR_P'
12541 AWK='$AWK'
12542 test -n "\$AWK" || AWK=awk
12543 _ACEOF
12544
12545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12546 # The default lists apply if the user does not specify any file.
12547 ac_need_defaults=:
12548 while test $# != 0
12549 do
12550 case $1 in
12551 --*=?*)
12552 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12553 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12554 ac_shift=:
12555 ;;
12556 --*=)
12557 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12558 ac_optarg=
12559 ac_shift=:
12560 ;;
12561 *)
12562 ac_option=$1
12563 ac_optarg=$2
12564 ac_shift=shift
12565 ;;
12566 esac
12567
12568 case $ac_option in
12569 # Handling of the options.
12570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12571 ac_cs_recheck=: ;;
12572 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12573 $as_echo "$ac_cs_version"; exit ;;
12574 --config | --confi | --conf | --con | --co | --c )
12575 $as_echo "$ac_cs_config"; exit ;;
12576 --debug | --debu | --deb | --de | --d | -d )
12577 debug=: ;;
12578 --file | --fil | --fi | --f )
12579 $ac_shift
12580 case $ac_optarg in
12581 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12582 '') as_fn_error $? "missing file argument" ;;
12583 esac
12584 as_fn_append CONFIG_FILES " '$ac_optarg'"
12585 ac_need_defaults=false;;
12586 --header | --heade | --head | --hea )
12587 $ac_shift
12588 case $ac_optarg in
12589 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12590 esac
12591 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12592 ac_need_defaults=false;;
12593 --he | --h)
12594 # Conflict between --help and --header
12595 as_fn_error $? "ambiguous option: \`$1'
12596 Try \`$0 --help' for more information.";;
12597 --help | --hel | -h )
12598 $as_echo "$ac_cs_usage"; exit ;;
12599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12600 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12601 ac_cs_silent=: ;;
12602
12603 # This is an error.
12604 -*) as_fn_error $? "unrecognized option: \`$1'
12605 Try \`$0 --help' for more information." ;;
12606
12607 *) as_fn_append ac_config_targets " $1"
12608 ac_need_defaults=false ;;
12609
12610 esac
12611 shift
12612 done
12613
12614 ac_configure_extra_args=
12615
12616 if $ac_cs_silent; then
12617 exec 6>/dev/null
12618 ac_configure_extra_args="$ac_configure_extra_args --silent"
12619 fi
12620
12621 _ACEOF
12622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12623 if \$ac_cs_recheck; then
12624 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12625 shift
12626 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12627 CONFIG_SHELL='$SHELL'
12628 export CONFIG_SHELL
12629 exec "\$@"
12630 fi
12631
12632 _ACEOF
12633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12634 exec 5>>config.log
12635 {
12636 echo
12637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12638 ## Running $as_me. ##
12639 _ASBOX
12640 $as_echo "$ac_log"
12641 } >&5
12642
12643 _ACEOF
12644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12645 #
12646 # INIT-COMMANDS
12647 #
12648 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12649 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12650 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12651 # from automake < 1.5.
12652 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12653 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12654 LINGUAS="${LINGUAS-%UNSET%}"
12655
12656
12657 _ACEOF
12658
12659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12660
12661 # Handling of arguments.
12662 for ac_config_target in $ac_config_targets
12663 do
12664 case $ac_config_target in
12665 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12666 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12667 "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;;
12668 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12669 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12670 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12671 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12672 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12673 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
12674 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
12675 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
12676 "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;;
12677 "man/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/systemtap.8" ;;
12678 "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;;
12679 "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;;
12680 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
12681 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
12682 "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;;
12683 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
12684 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
12685 "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;;
12686 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
12687 "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;;
12688 "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;;
12689 "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;;
12690 "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;;
12691 "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;;
12692 "staprun/guest/stapsh@.service") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh@.service" ;;
12693 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
12694
12695 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12696 esac
12697 done
12698
12699
12700 # If the user did not use the arguments to specify the items to instantiate,
12701 # then the envvar interface is used. Set only those that are not.
12702 # We use the long form for the default assignment because of an extremely
12703 # bizarre bug on SunOS 4.1.3.
12704 if $ac_need_defaults; then
12705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12706 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12707 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12708 fi
12709
12710 # Have a temporary directory for convenience. Make it in the build tree
12711 # simply because there is no reason against having it here, and in addition,
12712 # creating and moving files from /tmp can sometimes cause problems.
12713 # Hook for its removal unless debugging.
12714 # Note that there is a small window in which the directory will not be cleaned:
12715 # after its creation but before its name has been assigned to `$tmp'.
12716 $debug ||
12717 {
12718 tmp= ac_tmp=
12719 trap 'exit_status=$?
12720 : "${ac_tmp:=$tmp}"
12721 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12722 ' 0
12723 trap 'as_fn_exit 1' 1 2 13 15
12724 }
12725 # Create a (secure) tmp directory for tmp files.
12726
12727 {
12728 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12729 test -d "$tmp"
12730 } ||
12731 {
12732 tmp=./conf$$-$RANDOM
12733 (umask 077 && mkdir "$tmp")
12734 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12735 ac_tmp=$tmp
12736
12737 # Set up the scripts for CONFIG_FILES section.
12738 # No need to generate them if there are no CONFIG_FILES.
12739 # This happens for instance with `./config.status config.h'.
12740 if test -n "$CONFIG_FILES"; then
12741
12742
12743 ac_cr=`echo X | tr X '\015'`
12744 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12745 # But we know of no other shell where ac_cr would be empty at this
12746 # point, so we can use a bashism as a fallback.
12747 if test "x$ac_cr" = x; then
12748 eval ac_cr=\$\'\\r\'
12749 fi
12750 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12751 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12752 ac_cs_awk_cr='\\r'
12753 else
12754 ac_cs_awk_cr=$ac_cr
12755 fi
12756
12757 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12758 _ACEOF
12759
12760
12761 {
12762 echo "cat >conf$$subs.awk <<_ACEOF" &&
12763 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12764 echo "_ACEOF"
12765 } >conf$$subs.sh ||
12766 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12767 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12768 ac_delim='%!_!# '
12769 for ac_last_try in false false false false false :; do
12770 . ./conf$$subs.sh ||
12771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12772
12773 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12774 if test $ac_delim_n = $ac_delim_num; then
12775 break
12776 elif $ac_last_try; then
12777 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12778 else
12779 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12780 fi
12781 done
12782 rm -f conf$$subs.sh
12783
12784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12785 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12786 _ACEOF
12787 sed -n '
12788 h
12789 s/^/S["/; s/!.*/"]=/
12790 p
12791 g
12792 s/^[^!]*!//
12793 :repl
12794 t repl
12795 s/'"$ac_delim"'$//
12796 t delim
12797 :nl
12798 h
12799 s/\(.\{148\}\)..*/\1/
12800 t more1
12801 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12802 p
12803 n
12804 b repl
12805 :more1
12806 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12807 p
12808 g
12809 s/.\{148\}//
12810 t nl
12811 :delim
12812 h
12813 s/\(.\{148\}\)..*/\1/
12814 t more2
12815 s/["\\]/\\&/g; s/^/"/; s/$/"/
12816 p
12817 b
12818 :more2
12819 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12820 p
12821 g
12822 s/.\{148\}//
12823 t delim
12824 ' <conf$$subs.awk | sed '
12825 /^[^""]/{
12826 N
12827 s/\n//
12828 }
12829 ' >>$CONFIG_STATUS || ac_write_fail=1
12830 rm -f conf$$subs.awk
12831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12832 _ACAWK
12833 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12834 for (key in S) S_is_set[key] = 1
12835 FS = "\a"
12836
12837 }
12838 {
12839 line = $ 0
12840 nfields = split(line, field, "@")
12841 substed = 0
12842 len = length(field[1])
12843 for (i = 2; i < nfields; i++) {
12844 key = field[i]
12845 keylen = length(key)
12846 if (S_is_set[key]) {
12847 value = S[key]
12848 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12849 len += length(value) + length(field[++i])
12850 substed = 1
12851 } else
12852 len += 1 + keylen
12853 }
12854
12855 print line
12856 }
12857
12858 _ACAWK
12859 _ACEOF
12860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12861 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12862 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12863 else
12864 cat
12865 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12866 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12867 _ACEOF
12868
12869 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12870 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12871 # trailing colons and then remove the whole line if VPATH becomes empty
12872 # (actually we leave an empty line to preserve line numbers).
12873 if test "x$srcdir" = x.; then
12874 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12875 h
12876 s///
12877 s/^/:/
12878 s/[ ]*$/:/
12879 s/:\$(srcdir):/:/g
12880 s/:\${srcdir}:/:/g
12881 s/:@srcdir@:/:/g
12882 s/^:*//
12883 s/:*$//
12884 x
12885 s/\(=[ ]*\).*/\1/
12886 G
12887 s/\n//
12888 s/^[^=]*=[ ]*$//
12889 }'
12890 fi
12891
12892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12893 fi # test -n "$CONFIG_FILES"
12894
12895 # Set up the scripts for CONFIG_HEADERS section.
12896 # No need to generate them if there are no CONFIG_HEADERS.
12897 # This happens for instance with `./config.status Makefile'.
12898 if test -n "$CONFIG_HEADERS"; then
12899 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12900 BEGIN {
12901 _ACEOF
12902
12903 # Transform confdefs.h into an awk script `defines.awk', embedded as
12904 # here-document in config.status, that substitutes the proper values into
12905 # config.h.in to produce config.h.
12906
12907 # Create a delimiter string that does not exist in confdefs.h, to ease
12908 # handling of long lines.
12909 ac_delim='%!_!# '
12910 for ac_last_try in false false :; do
12911 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12912 if test -z "$ac_tt"; then
12913 break
12914 elif $ac_last_try; then
12915 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12916 else
12917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12918 fi
12919 done
12920
12921 # For the awk script, D is an array of macro values keyed by name,
12922 # likewise P contains macro parameters if any. Preserve backslash
12923 # newline sequences.
12924
12925 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12926 sed -n '
12927 s/.\{148\}/&'"$ac_delim"'/g
12928 t rset
12929 :rset
12930 s/^[ ]*#[ ]*define[ ][ ]*/ /
12931 t def
12932 d
12933 :def
12934 s/\\$//
12935 t bsnl
12936 s/["\\]/\\&/g
12937 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12938 D["\1"]=" \3"/p
12939 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12940 d
12941 :bsnl
12942 s/["\\]/\\&/g
12943 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12944 D["\1"]=" \3\\\\\\n"\\/p
12945 t cont
12946 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12947 t cont
12948 d
12949 :cont
12950 n
12951 s/.\{148\}/&'"$ac_delim"'/g
12952 t clear
12953 :clear
12954 s/\\$//
12955 t bsnlc
12956 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12957 d
12958 :bsnlc
12959 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12960 b cont
12961 ' <confdefs.h | sed '
12962 s/'"$ac_delim"'/"\\\
12963 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12964
12965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12966 for (key in D) D_is_set[key] = 1
12967 FS = "\a"
12968 }
12969 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12970 line = \$ 0
12971 split(line, arg, " ")
12972 if (arg[1] == "#") {
12973 defundef = arg[2]
12974 mac1 = arg[3]
12975 } else {
12976 defundef = substr(arg[1], 2)
12977 mac1 = arg[2]
12978 }
12979 split(mac1, mac2, "(") #)
12980 macro = mac2[1]
12981 prefix = substr(line, 1, index(line, defundef) - 1)
12982 if (D_is_set[macro]) {
12983 # Preserve the white space surrounding the "#".
12984 print prefix "define", macro P[macro] D[macro]
12985 next
12986 } else {
12987 # Replace #undef with comments. This is necessary, for example,
12988 # in the case of _POSIX_SOURCE, which is predefined and required
12989 # on some systems where configure will not decide to define it.
12990 if (defundef == "undef") {
12991 print "/*", prefix defundef, macro, "*/"
12992 next
12993 }
12994 }
12995 }
12996 { print }
12997 _ACAWK
12998 _ACEOF
12999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13000 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13001 fi # test -n "$CONFIG_HEADERS"
13002
13003
13004 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13005 shift
13006 for ac_tag
13007 do
13008 case $ac_tag in
13009 :[FHLC]) ac_mode=$ac_tag; continue;;
13010 esac
13011 case $ac_mode$ac_tag in
13012 :[FHL]*:*);;
13013 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13014 :[FH]-) ac_tag=-:-;;
13015 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13016 esac
13017 ac_save_IFS=$IFS
13018 IFS=:
13019 set x $ac_tag
13020 IFS=$ac_save_IFS
13021 shift
13022 ac_file=$1
13023 shift
13024
13025 case $ac_mode in
13026 :L) ac_source=$1;;
13027 :[FH])
13028 ac_file_inputs=
13029 for ac_f
13030 do
13031 case $ac_f in
13032 -) ac_f="$ac_tmp/stdin";;
13033 *) # Look for the file first in the build tree, then in the source tree
13034 # (if the path is not absolute). The absolute path cannot be DOS-style,
13035 # because $ac_f cannot contain `:'.
13036 test -f "$ac_f" ||
13037 case $ac_f in
13038 [\\/$]*) false;;
13039 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13040 esac ||
13041 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13042 esac
13043 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13044 as_fn_append ac_file_inputs " '$ac_f'"
13045 done
13046
13047 # Let's still pretend it is `configure' which instantiates (i.e., don't
13048 # use $as_me), people would be surprised to read:
13049 # /* config.h. Generated by config.status. */
13050 configure_input='Generated from '`
13051 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13052 `' by configure.'
13053 if test x"$ac_file" != x-; then
13054 configure_input="$ac_file. $configure_input"
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13056 $as_echo "$as_me: creating $ac_file" >&6;}
13057 fi
13058 # Neutralize special characters interpreted by sed in replacement strings.
13059 case $configure_input in #(
13060 *\&* | *\|* | *\\* )
13061 ac_sed_conf_input=`$as_echo "$configure_input" |
13062 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13063 *) ac_sed_conf_input=$configure_input;;
13064 esac
13065
13066 case $ac_tag in
13067 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13068 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13069 esac
13070 ;;
13071 esac
13072
13073 ac_dir=`$as_dirname -- "$ac_file" ||
13074 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13075 X"$ac_file" : 'X\(//\)[^/]' \| \
13076 X"$ac_file" : 'X\(//\)$' \| \
13077 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13078 $as_echo X"$ac_file" |
13079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13080 s//\1/
13081 q
13082 }
13083 /^X\(\/\/\)[^/].*/{
13084 s//\1/
13085 q
13086 }
13087 /^X\(\/\/\)$/{
13088 s//\1/
13089 q
13090 }
13091 /^X\(\/\).*/{
13092 s//\1/
13093 q
13094 }
13095 s/.*/./; q'`
13096 as_dir="$ac_dir"; as_fn_mkdir_p
13097 ac_builddir=.
13098
13099 case "$ac_dir" in
13100 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13101 *)
13102 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13103 # A ".." for each directory in $ac_dir_suffix.
13104 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13105 case $ac_top_builddir_sub in
13106 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13107 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13108 esac ;;
13109 esac
13110 ac_abs_top_builddir=$ac_pwd
13111 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13112 # for backward compatibility:
13113 ac_top_builddir=$ac_top_build_prefix
13114
13115 case $srcdir in
13116 .) # We are building in place.
13117 ac_srcdir=.
13118 ac_top_srcdir=$ac_top_builddir_sub
13119 ac_abs_top_srcdir=$ac_pwd ;;
13120 [\\/]* | ?:[\\/]* ) # Absolute name.
13121 ac_srcdir=$srcdir$ac_dir_suffix;
13122 ac_top_srcdir=$srcdir
13123 ac_abs_top_srcdir=$srcdir ;;
13124 *) # Relative name.
13125 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13126 ac_top_srcdir=$ac_top_build_prefix$srcdir
13127 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13128 esac
13129 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13130
13131
13132 case $ac_mode in
13133 :F)
13134 #
13135 # CONFIG_FILE
13136 #
13137
13138 case $INSTALL in
13139 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13140 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13141 esac
13142 ac_MKDIR_P=$MKDIR_P
13143 case $MKDIR_P in
13144 [\\/$]* | ?:[\\/]* ) ;;
13145 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13146 esac
13147 _ACEOF
13148
13149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13150 # If the template does not know about datarootdir, expand it.
13151 # FIXME: This hack should be removed a few years after 2.60.
13152 ac_datarootdir_hack=; ac_datarootdir_seen=
13153 ac_sed_dataroot='
13154 /datarootdir/ {
13155 p
13156 q
13157 }
13158 /@datadir@/p
13159 /@docdir@/p
13160 /@infodir@/p
13161 /@localedir@/p
13162 /@mandir@/p'
13163 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13164 *datarootdir*) ac_datarootdir_seen=yes;;
13165 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13167 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13168 _ACEOF
13169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13170 ac_datarootdir_hack='
13171 s&@datadir@&$datadir&g
13172 s&@docdir@&$docdir&g
13173 s&@infodir@&$infodir&g
13174 s&@localedir@&$localedir&g
13175 s&@mandir@&$mandir&g
13176 s&\\\${datarootdir}&$datarootdir&g' ;;
13177 esac
13178 _ACEOF
13179
13180 # Neutralize VPATH when `$srcdir' = `.'.
13181 # Shell code in configure.ac might set extrasub.
13182 # FIXME: do we really want to maintain this feature?
13183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13184 ac_sed_extra="$ac_vpsub
13185 $extrasub
13186 _ACEOF
13187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13188 :t
13189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13190 s|@configure_input@|$ac_sed_conf_input|;t t
13191 s&@top_builddir@&$ac_top_builddir_sub&;t t
13192 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13193 s&@srcdir@&$ac_srcdir&;t t
13194 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13195 s&@top_srcdir@&$ac_top_srcdir&;t t
13196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13197 s&@builddir@&$ac_builddir&;t t
13198 s&@abs_builddir@&$ac_abs_builddir&;t t
13199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13200 s&@INSTALL@&$ac_INSTALL&;t t
13201 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13202 $ac_datarootdir_hack
13203 "
13204 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13205 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13206
13207 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13208 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13209 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13210 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13212 which seems to be undefined. Please make sure it is defined" >&5
13213 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13214 which seems to be undefined. Please make sure it is defined" >&2;}
13215
13216 rm -f "$ac_tmp/stdin"
13217 case $ac_file in
13218 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13219 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13220 esac \
13221 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13222 ;;
13223 :H)
13224 #
13225 # CONFIG_HEADER
13226 #
13227 if test x"$ac_file" != x-; then
13228 {
13229 $as_echo "/* $configure_input */" \
13230 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13231 } >"$ac_tmp/config.h" \
13232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13233 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13235 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13236 else
13237 rm -f "$ac_file"
13238 mv "$ac_tmp/config.h" "$ac_file" \
13239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13240 fi
13241 else
13242 $as_echo "/* $configure_input */" \
13243 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13244 || as_fn_error $? "could not create -" "$LINENO" 5
13245 fi
13246 # Compute "$ac_file"'s index in $config_headers.
13247 _am_arg="$ac_file"
13248 _am_stamp_count=1
13249 for _am_header in $config_headers :; do
13250 case $_am_header in
13251 $_am_arg | $_am_arg:* )
13252 break ;;
13253 * )
13254 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13255 esac
13256 done
13257 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13258 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13259 X"$_am_arg" : 'X\(//\)[^/]' \| \
13260 X"$_am_arg" : 'X\(//\)$' \| \
13261 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13262 $as_echo X"$_am_arg" |
13263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13264 s//\1/
13265 q
13266 }
13267 /^X\(\/\/\)[^/].*/{
13268 s//\1/
13269 q
13270 }
13271 /^X\(\/\/\)$/{
13272 s//\1/
13273 q
13274 }
13275 /^X\(\/\).*/{
13276 s//\1/
13277 q
13278 }
13279 s/.*/./; q'`/stamp-h$_am_stamp_count
13280 ;;
13281
13282 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13283 $as_echo "$as_me: executing $ac_file commands" >&6;}
13284 ;;
13285 esac
13286
13287
13288 case $ac_file$ac_mode in
13289 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13290 # Older Autoconf quotes --file arguments for eval, but not when files
13291 # are listed without --file. Let's play safe and only enable the eval
13292 # if we detect the quoting.
13293 case $CONFIG_FILES in
13294 *\'*) eval set x "$CONFIG_FILES" ;;
13295 *) set x $CONFIG_FILES ;;
13296 esac
13297 shift
13298 for mf
13299 do
13300 # Strip MF so we end up with the name of the file.
13301 mf=`echo "$mf" | sed -e 's/:.*$//'`
13302 # Check whether this is an Automake generated Makefile or not.
13303 # We used to match only the files named 'Makefile.in', but
13304 # some people rename them; so instead we look at the file content.
13305 # Grep'ing the first line is not enough: some people post-process
13306 # each Makefile.in and add a new line on top of each file to say so.
13307 # Grep'ing the whole file is not good either: AIX grep has a line
13308 # limit of 2048, but all sed's we know have understand at least 4000.
13309 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13310 dirpart=`$as_dirname -- "$mf" ||
13311 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13312 X"$mf" : 'X\(//\)[^/]' \| \
13313 X"$mf" : 'X\(//\)$' \| \
13314 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13315 $as_echo X"$mf" |
13316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13317 s//\1/
13318 q
13319 }
13320 /^X\(\/\/\)[^/].*/{
13321 s//\1/
13322 q
13323 }
13324 /^X\(\/\/\)$/{
13325 s//\1/
13326 q
13327 }
13328 /^X\(\/\).*/{
13329 s//\1/
13330 q
13331 }
13332 s/.*/./; q'`
13333 else
13334 continue
13335 fi
13336 # Extract the definition of DEPDIR, am__include, and am__quote
13337 # from the Makefile without running 'make'.
13338 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13339 test -z "$DEPDIR" && continue
13340 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13341 test -z "$am__include" && continue
13342 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13343 # Find all dependency output files, they are included files with
13344 # $(DEPDIR) in their names. We invoke sed twice because it is the
13345 # simplest approach to changing $(DEPDIR) to its actual value in the
13346 # expansion.
13347 for file in `sed -n "
13348 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13349 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13350 # Make sure the directory exists.
13351 test -f "$dirpart/$file" && continue
13352 fdir=`$as_dirname -- "$file" ||
13353 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13354 X"$file" : 'X\(//\)[^/]' \| \
13355 X"$file" : 'X\(//\)$' \| \
13356 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13357 $as_echo X"$file" |
13358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13359 s//\1/
13360 q
13361 }
13362 /^X\(\/\/\)[^/].*/{
13363 s//\1/
13364 q
13365 }
13366 /^X\(\/\/\)$/{
13367 s//\1/
13368 q
13369 }
13370 /^X\(\/\).*/{
13371 s//\1/
13372 q
13373 }
13374 s/.*/./; q'`
13375 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13376 # echo "creating $dirpart/$file"
13377 echo '# dummy' > "$dirpart/$file"
13378 done
13379 done
13380 }
13381 ;;
13382 "po-directories":C)
13383 for ac_file in $CONFIG_FILES; do
13384 # Support "outfile[:infile[:infile...]]"
13385 case "$ac_file" in
13386 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13387 esac
13388 # PO directories have a Makefile.in generated from Makefile.in.in.
13389 case "$ac_file" in */Makefile.in)
13390 # Adjust a relative srcdir.
13391 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13392 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
13393 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13394 # In autoconf-2.13 it is called $ac_given_srcdir.
13395 # In autoconf-2.50 it is called $srcdir.
13396 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13397 case "$ac_given_srcdir" in
13398 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13399 /*) top_srcdir="$ac_given_srcdir" ;;
13400 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13401 esac
13402 # Treat a directory as a PO directory if and only if it has a
13403 # POTFILES.in file. This allows packages to have multiple PO
13404 # directories under different names or in different locations.
13405 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13406 rm -f "$ac_dir/POTFILES"
13407 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13408 gt_tab=`printf '\t'`
13409 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"
13410 POMAKEFILEDEPS="POTFILES.in"
13411 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13412 # on $ac_dir but don't depend on user-specified configuration
13413 # parameters.
13414 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13415 # The LINGUAS file contains the set of available languages.
13416 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13417 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13418 fi
13419 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13420 # Hide the ALL_LINGUAS assignment from automake < 1.5.
13421 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13422 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13423 else
13424 # The set of available languages was given in configure.in.
13425 # Hide the ALL_LINGUAS assignment from automake < 1.5.
13426 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13427 fi
13428 # Compute POFILES
13429 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13430 # Compute UPDATEPOFILES
13431 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13432 # Compute DUMMYPOFILES
13433 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13434 # Compute GMOFILES
13435 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13436 case "$ac_given_srcdir" in
13437 .) srcdirpre= ;;
13438 *) srcdirpre='$(srcdir)/' ;;
13439 esac
13440 POFILES=
13441 UPDATEPOFILES=
13442 DUMMYPOFILES=
13443 GMOFILES=
13444 for lang in $ALL_LINGUAS; do
13445 POFILES="$POFILES $srcdirpre$lang.po"
13446 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13447 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13448 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13449 done
13450 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13451 # environment variable.
13452 INST_LINGUAS=
13453 if test -n "$ALL_LINGUAS"; then
13454 for presentlang in $ALL_LINGUAS; do
13455 useit=no
13456 if test "%UNSET%" != "$LINGUAS"; then
13457 desiredlanguages="$LINGUAS"
13458 else
13459 desiredlanguages="$ALL_LINGUAS"
13460 fi
13461 for desiredlang in $desiredlanguages; do
13462 # Use the presentlang catalog if desiredlang is
13463 # a. equal to presentlang, or
13464 # b. a variant of presentlang (because in this case,
13465 # presentlang can be used as a fallback for messages
13466 # which are not translated in the desiredlang catalog).
13467 case "$desiredlang" in
13468 "$presentlang"*) useit=yes;;
13469 esac
13470 done
13471 if test $useit = yes; then
13472 INST_LINGUAS="$INST_LINGUAS $presentlang"
13473 fi
13474 done
13475 fi
13476 CATALOGS=
13477 if test -n "$INST_LINGUAS"; then
13478 for lang in $INST_LINGUAS; do
13479 CATALOGS="$CATALOGS $lang.gmo"
13480 done
13481 fi
13482 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13483 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"
13484 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13485 if test -f "$f"; then
13486 case "$f" in
13487 *.orig | *.bak | *~) ;;
13488 *) cat "$f" >> "$ac_dir/Makefile" ;;
13489 esac
13490 fi
13491 done
13492 fi
13493 ;;
13494 esac
13495 done ;;
13496 "run-stap":F) chmod +x run-stap ;;
13497 "dtrace":F) chmod +x dtrace ;;
13498 "java/stapbm":F) chmod +x java/stapbm ;;
13499 "staprun/run-staprun":F) chmod +x staprun/run-staprun ;;
13500 "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;;
13501 "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;;
13502 "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 ;;
13503
13504 esac
13505 done # for ac_tag
13506
13507
13508 as_fn_exit 0
13509 _ACEOF
13510 ac_clean_files=$ac_clean_files_save
13511
13512 test $ac_write_fail = 0 ||
13513 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13514
13515
13516 # configure is writing to config.log, and then calls config.status.
13517 # config.status does its own redirection, appending to config.log.
13518 # Unfortunately, on DOS this fails, as config.log is still kept open
13519 # by configure, so config.status won't be able to write to it; its
13520 # output is simply discarded. So we exec the FD to /dev/null,
13521 # effectively closing config.log, so it can be properly (re)opened and
13522 # appended to by config.status. When coming back to configure, we
13523 # need to make the FD available again.
13524 if test "$no_create" != yes; then
13525 ac_cs_success=:
13526 ac_config_status_args=
13527 test "$silent" = yes &&
13528 ac_config_status_args="$ac_config_status_args --quiet"
13529 exec 5>/dev/null
13530 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13531 exec 5>>config.log
13532 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13533 # would make configure fail if this is the last instruction.
13534 $ac_cs_success || as_fn_exit 1
13535 fi
13536
13537 #
13538 # CONFIG_SUBDIRS section.
13539 #
13540 if test "$no_recursion" != yes; then
13541
13542 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
13543 # so they do not pile up.
13544 ac_sub_configure_args=
13545 ac_prev=
13546 eval "set x $ac_configure_args"
13547 shift
13548 for ac_arg
13549 do
13550 if test -n "$ac_prev"; then
13551 ac_prev=
13552 continue
13553 fi
13554 case $ac_arg in
13555 -cache-file | --cache-file | --cache-fil | --cache-fi \
13556 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13557 ac_prev=cache_file ;;
13558 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13559 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13560 | --c=*)
13561 ;;
13562 --config-cache | -C)
13563 ;;
13564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13565 ac_prev=srcdir ;;
13566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13567 ;;
13568 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13569 ac_prev=prefix ;;
13570 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13571 ;;
13572 --disable-option-checking)
13573 ;;
13574 *)
13575 case $ac_arg in
13576 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13577 esac
13578 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
13579 esac
13580 done
13581
13582 # Always prepend --prefix to ensure using the same prefix
13583 # in subdir configurations.
13584 ac_arg="--prefix=$prefix"
13585 case $ac_arg in
13586 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13587 esac
13588 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
13589
13590 # Pass --silent
13591 if test "$silent" = yes; then
13592 ac_sub_configure_args="--silent $ac_sub_configure_args"
13593 fi
13594
13595 # Always prepend --disable-option-checking to silence warnings, since
13596 # different subdirs can have different --enable and --with options.
13597 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
13598
13599 ac_popdir=`pwd`
13600 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13601
13602 # Do not complain, so a configure script can configure whichever
13603 # parts of a large source tree are present.
13604 test -d "$srcdir/$ac_dir" || continue
13605
13606 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
13607 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
13608 $as_echo "$ac_msg" >&6
13609 as_dir="$ac_dir"; as_fn_mkdir_p
13610 ac_builddir=.
13611
13612 case "$ac_dir" in
13613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13614 *)
13615 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13616 # A ".." for each directory in $ac_dir_suffix.
13617 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13618 case $ac_top_builddir_sub in
13619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13621 esac ;;
13622 esac
13623 ac_abs_top_builddir=$ac_pwd
13624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13625 # for backward compatibility:
13626 ac_top_builddir=$ac_top_build_prefix
13627
13628 case $srcdir in
13629 .) # We are building in place.
13630 ac_srcdir=.
13631 ac_top_srcdir=$ac_top_builddir_sub
13632 ac_abs_top_srcdir=$ac_pwd ;;
13633 [\\/]* | ?:[\\/]* ) # Absolute name.
13634 ac_srcdir=$srcdir$ac_dir_suffix;
13635 ac_top_srcdir=$srcdir
13636 ac_abs_top_srcdir=$srcdir ;;
13637 *) # Relative name.
13638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13639 ac_top_srcdir=$ac_top_build_prefix$srcdir
13640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13641 esac
13642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13643
13644
13645 cd "$ac_dir"
13646
13647 # Check for guested configure; otherwise get Cygnus style configure.
13648 if test -f "$ac_srcdir/configure.gnu"; then
13649 ac_sub_configure=$ac_srcdir/configure.gnu
13650 elif test -f "$ac_srcdir/configure"; then
13651 ac_sub_configure=$ac_srcdir/configure
13652 elif test -f "$ac_srcdir/configure.in"; then
13653 # This should be Cygnus configure.
13654 ac_sub_configure=$ac_aux_dir/configure
13655 else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
13657 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13658 ac_sub_configure=
13659 fi
13660
13661 # The recursion is here.
13662 if test -n "$ac_sub_configure"; then
13663 # Make the cache file name correct relative to the subdirectory.
13664 case $cache_file in
13665 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13666 *) # Relative name.
13667 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
13668 esac
13669
13670 { $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
13671 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13672 # The eval makes quoting arguments work.
13673 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13674 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13675 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
13676 fi
13677
13678 cd "$ac_popdir"
13679 done
13680 fi
13681 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13683 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13684 fi
13685
13686
13687 if test "${prefix}" = "/usr/local"; then
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
13689 $as_echo "$as_me: " >&6;}
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
13691 $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
13693 $as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
13695 $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
13697 $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5
13699 $as_echo "$as_me: is not supported." >&6;}
13700 fi
This page took 0.733971 seconds and 6 git commands to generate.