]> sourceware.org Git - systemtap.git/blob - configure
Added autoconf logic to search for python version 2 and 3.
[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.1.
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.1'
584 PACKAGE_STRING='systemtap 3.1'
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 STAP_EXTRA_VERSION
633 LOCALEDIR
634 ENABLE_NLS
635 HAVE_JAVA_FALSE
636 HAVE_JAVA_TRUE
637 JAVADIR
638 have_jar
639 have_javac
640 HAVE_SELINUX_FALSE
641 HAVE_SELINUX_TRUE
642 selinux_LIBS
643 selinux_CFLAGS
644 support_section_question
645 HAVE_MONITOR_LIBS_FALSE
646 HAVE_MONITOR_LIBS_TRUE
647 ncurses_LIBS
648 ncurses_CFLAGS
649 jsonc_LIBS
650 jsonc_CFLAGS
651 HAVE_PYTHON2_FALSE
652 HAVE_PYTHON2_TRUE
653 BUILD_VIRT_FALSE
654 BUILD_VIRT_TRUE
655 HAVE_LIBXML2_FALSE
656 HAVE_LIBXML2_TRUE
657 libxml2_LIBS
658 libxml2_CFLAGS
659 HAVE_LIBVIRT_FALSE
660 HAVE_LIBVIRT_TRUE
661 libvirt_LIBS
662 libvirt_CFLAGS
663 HAVE_DYNINST_FALSE
664 HAVE_DYNINST_TRUE
665 DYNINST_LDFLAGS
666 DYNINST_CXXFLAGS
667 CXXCPP
668 DATE
669 staprun_LIBS
670 stap_LIBS
671 elfutils_abs_srcdir
672 BUILD_ELFUTILS_FALSE
673 BUILD_ELFUTILS_TRUE
674 preferred_python
675 HAVE_LIBREADLINE_FALSE
676 HAVE_LIBREADLINE_TRUE
677 READLINE_LIBS
678 HAVE_AVAHI_FALSE
679 HAVE_AVAHI_TRUE
680 avahi_LIBS
681 avahi_CFLAGS
682 BUILD_SERVER_FALSE
683 BUILD_SERVER_TRUE
684 dracutstap
685 HAVE_NSS_FALSE
686 HAVE_NSS_TRUE
687 nss_LIBS
688 nss_CFLAGS
689 PKG_CONFIG_LIBDIR
690 PKG_CONFIG_PATH
691 PKG_CONFIG
692 XMLTO_STRINGPARAM_FALSE
693 XMLTO_STRINGPARAM_TRUE
694 BUILD_HTMLDOCS_FALSE
695 BUILD_HTMLDOCS_TRUE
696 HAVE_XMLTO_FALSE
697 HAVE_XMLTO_TRUE
698 HAVE_FOP_FALSE
699 HAVE_FOP_TRUE
700 have_fop
701 have_xmlto
702 BUILD_REFDOCS_FALSE
703 BUILD_REFDOCS_TRUE
704 BUILD_DOCS_FALSE
705 BUILD_DOCS_TRUE
706 have_ps2pdf
707 have_dvips
708 have_latex
709 BUILD_CRASHMOD_FALSE
710 BUILD_CRASHMOD_TRUE
711 staplog_CPPFLAGS
712 BUILD_TRANSLATOR_FALSE
713 BUILD_TRANSLATOR_TRUE
714 sqlite3_LIBS
715 PIECXXFLAGS
716 PIECFLAGS
717 PIELDFLAGS
718 HAVE_CXX11
719 py3execdir
720 python3dir
721 PYTHON3_PLATFORM
722 PYTHON3_EXEC_PREFIX
723 PYTHON3_PREFIX
724 PYTHON3_VERSION
725 PYTHON3
726 pkgpyexecdir
727 pyexecdir
728 pkgpythondir
729 pythondir
730 PYTHON_PLATFORM
731 PYTHON_EXEC_PREFIX
732 PYTHON_PREFIX
733 PYTHON_VERSION
734 PYTHON
735 PYTHON_UNKNOWN
736 POSUB
737 LTLIBINTL
738 LIBINTL
739 INTLLIBS
740 LTLIBICONV
741 LIBICONV
742 INTL_MACOSX_LIBS
743 XGETTEXT_EXTRA_OPTIONS
744 MSGMERGE
745 XGETTEXT_015
746 XGETTEXT
747 GMSGFMT_015
748 MSGFMT_015
749 GMSGFMT
750 MSGFMT
751 GETTEXT_MACRO_VERSION
752 USE_NLS
753 SED
754 RANLIB
755 am__fastdepCXX_FALSE
756 am__fastdepCXX_TRUE
757 CXXDEPMODE
758 ac_ct_CXX
759 CXXFLAGS
760 CXX
761 LN_S
762 EGREP
763 GREP
764 CPP
765 am__fastdepCC_FALSE
766 am__fastdepCC_TRUE
767 CCDEPMODE
768 am__nodep
769 AMDEPBACKSLASH
770 AMDEP_FALSE
771 AMDEP_TRUE
772 am__quote
773 am__include
774 DEPDIR
775 OBJEXT
776 EXEEXT
777 ac_ct_CC
778 CPPFLAGS
779 LDFLAGS
780 CFLAGS
781 CC
782 MAINT
783 MAINTAINER_MODE_FALSE
784 MAINTAINER_MODE_TRUE
785 AM_BACKSLASH
786 AM_DEFAULT_VERBOSITY
787 AM_DEFAULT_V
788 AM_V
789 am__untar
790 am__tar
791 AMTAR
792 am__leading_dot
793 SET_MAKE
794 AWK
795 mkdir_p
796 MKDIR_P
797 INSTALL_STRIP_PROGRAM
798 STRIP
799 install_sh
800 MAKEINFO
801 AUTOHEADER
802 AUTOMAKE
803 AUTOCONF
804 ACLOCAL
805 VERSION
806 PACKAGE
807 CYGPATH_W
808 am__isrc
809 INSTALL_DATA
810 INSTALL_SCRIPT
811 INSTALL_PROGRAM
812 target_os
813 target_vendor
814 target_cpu
815 target
816 host_os
817 host_vendor
818 host_cpu
819 host
820 build_os
821 build_vendor
822 build_cpu
823 build
824 target_alias
825 host_alias
826 build_alias
827 LIBS
828 ECHO_T
829 ECHO_N
830 ECHO_C
831 DEFS
832 mandir
833 localedir
834 libdir
835 psdir
836 pdfdir
837 dvidir
838 htmldir
839 infodir
840 docdir
841 oldincludedir
842 includedir
843 localstatedir
844 sharedstatedir
845 sysconfdir
846 datadir
847 datarootdir
848 libexecdir
849 sbindir
850 bindir
851 program_transform_name
852 prefix
853 exec_prefix
854 PACKAGE_URL
855 PACKAGE_BUGREPORT
856 PACKAGE_STRING
857 PACKAGE_VERSION
858 PACKAGE_TARNAME
859 PACKAGE_NAME
860 PATH_SEPARATOR
861 SHELL'
862 ac_subst_files=''
863 ac_user_opts='
864 enable_option_checking
865 enable_silent_rules
866 enable_maintainer_mode
867 enable_dependency_tracking
868 enable_largefile
869 enable_nls
870 with_gnu_ld
871 enable_rpath
872 with_libiconv_prefix
873 with_libintl_prefix
874 enable_prologues
875 enable_sdt_probes
876 enable_ssp
877 enable_pie
878 enable_sqlite
879 enable_translator
880 enable_crash
881 enable_docs
882 enable_refdocs
883 enable_htmldocs
884 with_nss
885 with_dracutstap
886 enable_server
887 with_avahi
888 with_rpm
889 with_python3
890 with_elfutils
891 with_dyninst
892 enable_virt
893 with_python2
894 with_selinux
895 with_java
896 with_extra_version
897 '
898 ac_precious_vars='build_alias
899 host_alias
900 target_alias
901 CC
902 CFLAGS
903 LDFLAGS
904 LIBS
905 CPPFLAGS
906 CPP
907 CXX
908 CXXFLAGS
909 CCC
910 PYTHON
911 PKG_CONFIG
912 PKG_CONFIG_PATH
913 PKG_CONFIG_LIBDIR
914 nss_CFLAGS
915 nss_LIBS
916 avahi_CFLAGS
917 avahi_LIBS
918 CXXCPP
919 libvirt_CFLAGS
920 libvirt_LIBS
921 libxml2_CFLAGS
922 libxml2_LIBS
923 jsonc_CFLAGS
924 jsonc_LIBS
925 ncurses_CFLAGS
926 ncurses_LIBS
927 selinux_CFLAGS
928 selinux_LIBS'
929 ac_subdirs_all='testsuite'
930
931 # Initialize some variables set by options.
932 ac_init_help=
933 ac_init_version=false
934 ac_unrecognized_opts=
935 ac_unrecognized_sep=
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
938 cache_file=/dev/null
939 exec_prefix=NONE
940 no_create=
941 no_recursion=
942 prefix=NONE
943 program_prefix=NONE
944 program_suffix=NONE
945 program_transform_name=s,x,x,
946 silent=
947 site=
948 srcdir=
949 verbose=
950 x_includes=NONE
951 x_libraries=NONE
952
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 includedir='${prefix}/include'
968 oldincludedir='/usr/include'
969 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir='${datarootdir}/info'
971 htmldir='${docdir}'
972 dvidir='${docdir}'
973 pdfdir='${docdir}'
974 psdir='${docdir}'
975 libdir='${exec_prefix}/lib'
976 localedir='${datarootdir}/locale'
977 mandir='${datarootdir}/man'
978
979 ac_prev=
980 ac_dashdash=
981 for ac_option
982 do
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\$ac_option
986 ac_prev=
987 continue
988 fi
989
990 case $ac_option in
991 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992 *=) ac_optarg= ;;
993 *) ac_optarg=yes ;;
994 esac
995
996 # Accept the important Cygnus configure options, so we can diagnose typos.
997
998 case $ac_dashdash$ac_option in
999 --)
1000 ac_dashdash=yes ;;
1001
1002 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 ac_prev=bindir ;;
1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1005 bindir=$ac_optarg ;;
1006
1007 -build | --build | --buil | --bui | --bu)
1008 ac_prev=build_alias ;;
1009 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1010 build_alias=$ac_optarg ;;
1011
1012 -cache-file | --cache-file | --cache-fil | --cache-fi \
1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1014 ac_prev=cache_file ;;
1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1017 cache_file=$ac_optarg ;;
1018
1019 --config-cache | -C)
1020 cache_file=config.cache ;;
1021
1022 -datadir | --datadir | --datadi | --datad)
1023 ac_prev=datadir ;;
1024 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1025 datadir=$ac_optarg ;;
1026
1027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1028 | --dataroo | --dataro | --datar)
1029 ac_prev=datarootdir ;;
1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1032 datarootdir=$ac_optarg ;;
1033
1034 -disable-* | --disable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=no ;;
1049
1050 -docdir | --docdir | --docdi | --doc | --do)
1051 ac_prev=docdir ;;
1052 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1053 docdir=$ac_optarg ;;
1054
1055 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1056 ac_prev=dvidir ;;
1057 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1058 dvidir=$ac_optarg ;;
1059
1060 -enable-* | --enable-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 as_fn_error $? "invalid feature name: $ac_useropt"
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1068 *"
1069 "enable_$ac_useropt"
1070 "*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1073 esac
1074 eval enable_$ac_useropt=\$ac_optarg ;;
1075
1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078 | --exec | --exe | --ex)
1079 ac_prev=exec_prefix ;;
1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082 | --exec=* | --exe=* | --ex=*)
1083 exec_prefix=$ac_optarg ;;
1084
1085 -gas | --gas | --ga | --g)
1086 # Obsolete; use --with-gas.
1087 with_gas=yes ;;
1088
1089 -help | --help | --hel | --he | -h)
1090 ac_init_help=long ;;
1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092 ac_init_help=recursive ;;
1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094 ac_init_help=short ;;
1095
1096 -host | --host | --hos | --ho)
1097 ac_prev=host_alias ;;
1098 -host=* | --host=* | --hos=* | --ho=*)
1099 host_alias=$ac_optarg ;;
1100
1101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 ac_prev=htmldir ;;
1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 | --ht=*)
1105 htmldir=$ac_optarg ;;
1106
1107 -includedir | --includedir | --includedi | --included | --include \
1108 | --includ | --inclu | --incl | --inc)
1109 ac_prev=includedir ;;
1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111 | --includ=* | --inclu=* | --incl=* | --inc=*)
1112 includedir=$ac_optarg ;;
1113
1114 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 ac_prev=infodir ;;
1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1117 infodir=$ac_optarg ;;
1118
1119 -libdir | --libdir | --libdi | --libd)
1120 ac_prev=libdir ;;
1121 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1122 libdir=$ac_optarg ;;
1123
1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125 | --libexe | --libex | --libe)
1126 ac_prev=libexecdir ;;
1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128 | --libexe=* | --libex=* | --libe=*)
1129 libexecdir=$ac_optarg ;;
1130
1131 -localedir | --localedir | --localedi | --localed | --locale)
1132 ac_prev=localedir ;;
1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134 localedir=$ac_optarg ;;
1135
1136 -localstatedir | --localstatedir | --localstatedi | --localstated \
1137 | --localstate | --localstat | --localsta | --localst | --locals)
1138 ac_prev=localstatedir ;;
1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1141 localstatedir=$ac_optarg ;;
1142
1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 ac_prev=mandir ;;
1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1146 mandir=$ac_optarg ;;
1147
1148 -nfp | --nfp | --nf)
1149 # Obsolete; use --without-fp.
1150 with_fp=no ;;
1151
1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153 | --no-cr | --no-c | -n)
1154 no_create=yes ;;
1155
1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158 no_recursion=yes ;;
1159
1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162 | --oldin | --oldi | --old | --ol | --o)
1163 ac_prev=oldincludedir ;;
1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1167 oldincludedir=$ac_optarg ;;
1168
1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 ac_prev=prefix ;;
1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172 prefix=$ac_optarg ;;
1173
1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175 | --program-pre | --program-pr | --program-p)
1176 ac_prev=program_prefix ;;
1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1179 program_prefix=$ac_optarg ;;
1180
1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182 | --program-suf | --program-su | --program-s)
1183 ac_prev=program_suffix ;;
1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1186 program_suffix=$ac_optarg ;;
1187
1188 -program-transform-name | --program-transform-name \
1189 | --program-transform-nam | --program-transform-na \
1190 | --program-transform-n | --program-transform- \
1191 | --program-transform | --program-transfor \
1192 | --program-transfo | --program-transf \
1193 | --program-trans | --program-tran \
1194 | --progr-tra | --program-tr | --program-t)
1195 ac_prev=program_transform_name ;;
1196 -program-transform-name=* | --program-transform-name=* \
1197 | --program-transform-nam=* | --program-transform-na=* \
1198 | --program-transform-n=* | --program-transform-=* \
1199 | --program-transform=* | --program-transfor=* \
1200 | --program-transfo=* | --program-transf=* \
1201 | --program-trans=* | --program-tran=* \
1202 | --progr-tra=* | --program-tr=* | --program-t=*)
1203 program_transform_name=$ac_optarg ;;
1204
1205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 ac_prev=pdfdir ;;
1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208 pdfdir=$ac_optarg ;;
1209
1210 -psdir | --psdir | --psdi | --psd | --ps)
1211 ac_prev=psdir ;;
1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213 psdir=$ac_optarg ;;
1214
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 silent=yes ;;
1218
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 ac_prev=sbindir ;;
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 | --sbi=* | --sb=*)
1223 sbindir=$ac_optarg ;;
1224
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1228 | --sha | --sh)
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 | --sha=* | --sh=*)
1234 sharedstatedir=$ac_optarg ;;
1235
1236 -site | --site | --sit)
1237 ac_prev=site ;;
1238 -site=* | --site=* | --sit=*)
1239 site=$ac_optarg ;;
1240
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 ac_prev=srcdir ;;
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244 srcdir=$ac_optarg ;;
1245
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251 sysconfdir=$ac_optarg ;;
1252
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
1254 ac_prev=target_alias ;;
1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256 target_alias=$ac_optarg ;;
1257
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 verbose=yes ;;
1260
1261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
1263
1264 -with-* | --with-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: $ac_useropt"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273 "with_$ac_useropt"
1274 "*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=\$ac_optarg ;;
1279
1280 -without-* | --without-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289 "with_$ac_useropt"
1290 "*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=no ;;
1295
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1299
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1306
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1313
1314 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1315 Try \`$0 --help' for more information"
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 case $ac_envvar in #(
1322 '' | [0-9]* | *[!_$as_cr_alnum]* )
1323 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1324 esac
1325 eval $ac_envvar=\$ac_optarg
1326 export $ac_envvar ;;
1327
1328 *)
1329 # FIXME: should be removed in autoconf 3.0.
1330 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1334 ;;
1335
1336 esac
1337 done
1338
1339 if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 as_fn_error $? "missing argument to $ac_option"
1342 fi
1343
1344 if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1346 no) ;;
1347 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1348 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1349 esac
1350 fi
1351
1352 # Check all directory arguments for consistency.
1353 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354 datadir sysconfdir sharedstatedir localstatedir includedir \
1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1356 libdir localedir mandir
1357 do
1358 eval ac_val=\$$ac_var
1359 # Remove trailing slashes.
1360 case $ac_val in
1361 */ )
1362 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1363 eval $ac_var=\$ac_val;;
1364 esac
1365 # Be sure to have absolute directory names.
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
1370 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1371 done
1372
1373 # There might be people who depend on the old broken behavior: `$host'
1374 # used to hold the argument of --host etc.
1375 # FIXME: To remove some day.
1376 build=$build_alias
1377 host=$host_alias
1378 target=$target_alias
1379
1380 # FIXME: To remove some day.
1381 if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387 fi
1388
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392 test "$silent" = yes && exec 6>/dev/null
1393
1394
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 as_fn_error $? "working directory cannot be determined"
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 as_fn_error $? "pwd does not report name of working directory"
1401
1402
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412 $as_echo X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\).*/{
1426 s//\1/
1427 q
1428 }
1429 s/.*/./; q'`
1430 srcdir=$ac_confdir
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 srcdir=..
1433 fi
1434 else
1435 ac_srcdir_defaulted=no
1436 fi
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1440 fi
1441 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442 ac_abs_confdir=`(
1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1444 pwd)`
1445 # When building in place, set srcdir=.
1446 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1448 fi
1449 # Remove unnecessary trailing slashes from srcdir.
1450 # Double slashes in file names in object file debugging info
1451 # mess up M-x gdb in Emacs.
1452 case $srcdir in
1453 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 esac
1455 for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 done
1461
1462 #
1463 # Report the --help message.
1464 #
1465 if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
1468 cat <<_ACEOF
1469 \`configure' configures systemtap 3.1 to adapt to many kinds of systems.
1470
1471 Usage: $0 [OPTION]... [VAR=VALUE]...
1472
1473 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474 VAR=VALUE. See below for descriptions of some of the useful variables.
1475
1476 Defaults for the options are specified in brackets.
1477
1478 Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
1483 -q, --quiet, --silent do not print \`checking ...' messages
1484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488
1489 Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
1491 [$ac_default_prefix]
1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 [PREFIX]
1494
1495 By default, \`make install' will install all the files in
1496 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498 for instance \`--prefix=\$HOME'.
1499
1500 For better control, use the options below.
1501
1502 Fine tuning of the installation directories:
1503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
1522 _ACEOF
1523
1524 cat <<\_ACEOF
1525
1526 Program names:
1527 --program-prefix=PREFIX prepend PREFIX to installed program names
1528 --program-suffix=SUFFIX append SUFFIX to installed program names
1529 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1530
1531 System types:
1532 --build=BUILD configure for building on BUILD [guessed]
1533 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1534 --target=TARGET configure for building compilers for TARGET [HOST]
1535 _ACEOF
1536 fi
1537
1538 if test -n "$ac_init_help"; then
1539 case $ac_init_help in
1540 short | recursive ) echo "Configuration of systemtap 3.1:";;
1541 esac
1542 cat <<\_ACEOF
1543
1544 Optional Features:
1545 --disable-option-checking ignore unrecognized --enable/--with options
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1548 --enable-silent-rules less verbose build output (undo: "make V=1")
1549 --disable-silent-rules verbose build output (undo: "make V=0")
1550 --enable-maintainer-mode
1551 enable make rules and dependencies not useful (and
1552 sometimes confusing) to the casual installer
1553 --enable-dependency-tracking
1554 do not reject slow dependency extractors
1555 --disable-dependency-tracking
1556 speeds up one-time build
1557 --disable-largefile omit support for large files
1558 --disable-nls do not use Native Language Support
1559 --disable-rpath do not hardcode runtime library paths
1560 --enable-prologues make -P prologue-searching default
1561 --disable-sdt-probes disable process.mark probes in stap, staprun, stapio
1562 --disable-ssp disable gcc stack-protector
1563 --enable-pie enable position-independent-executable
1564 --enable-sqlite build with sqlite support
1565 --disable-translator build only runtime utilities
1566 --enable-crash[=DIRECTORY]
1567 enable crash extension (default is disabled).
1568 Optional DIRECTORY is the path to the crash header
1569 file (needed if installed in a non-standard
1570 location).
1571 --enable-docs enable building documentation (default on if latex
1572 etc. found).
1573 --enable-refdocs enable building reference documentation (default on
1574 if other documentation built).
1575 --enable-htmldocs enable building html documentation (default off).
1576 --enable-server enable building of stap-server (default on if nss
1577 etc. found).
1578 --enable-virt enable building of stapvirt support (default on if
1579 libvirt etc. found).
1580
1581 Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1585 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1586 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1587 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1588 --without-libintl-prefix don't search for libintl in includedir and libdir
1589 --without-nss Do not use NSS even if present
1590 --with-dracutstap=DIR Install dracut module files in DIR
1591 --without-avahi Do not use Avahi even if present
1592 --with-rpm query rpm database for missing debuginfos
1593 --with-python3 prefer /usr/bin/python3
1594 --with-elfutils=DIRECTORY
1595 find elfutils source code in DIRECTORY
1596 --with-dyninst=DIRECTORY
1597 find dyninst headers/libraries in DIRECTORY
1598 --without-python2 Disable building python version 2 support, even if
1599 it is available
1600 --without-selinux Do not use libselinux even if present
1601 --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so
1602 against (default is /usr/lib/jvm/java)
1603 --with-extra-version=STRING
1604 Add STRING to stap -V version
1605
1606 Some influential environment variables:
1607 CC C compiler command
1608 CFLAGS C compiler flags
1609 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1610 nonstandard directory <lib dir>
1611 LIBS libraries to pass to the linker, e.g. -l<library>
1612 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1613 you have headers in a nonstandard directory <include dir>
1614 CPP C preprocessor
1615 CXX C++ compiler command
1616 CXXFLAGS C++ compiler flags
1617 PYTHON the Python interpreter
1618 PKG_CONFIG path to pkg-config utility
1619 PKG_CONFIG_PATH
1620 directories to add to pkg-config's search path
1621 PKG_CONFIG_LIBDIR
1622 path overriding pkg-config's built-in search path
1623 nss_CFLAGS C compiler flags for nss, overriding pkg-config
1624 nss_LIBS linker flags for nss, overriding pkg-config
1625 avahi_CFLAGS
1626 C compiler flags for avahi, overriding pkg-config
1627 avahi_LIBS linker flags for avahi, overriding pkg-config
1628 CXXCPP C++ preprocessor
1629 libvirt_CFLAGS
1630 C compiler flags for libvirt, overriding pkg-config
1631 libvirt_LIBS
1632 linker flags for libvirt, overriding pkg-config
1633 libxml2_CFLAGS
1634 C compiler flags for libxml2, overriding pkg-config
1635 libxml2_LIBS
1636 linker flags for libxml2, overriding pkg-config
1637 jsonc_CFLAGS
1638 C compiler flags for jsonc, overriding pkg-config
1639 jsonc_LIBS linker flags for jsonc, overriding pkg-config
1640 ncurses_CFLAGS
1641 C compiler flags for ncurses, overriding pkg-config
1642 ncurses_LIBS
1643 linker flags for ncurses, overriding pkg-config
1644 selinux_CFLAGS
1645 C compiler flags for selinux, overriding pkg-config
1646 selinux_LIBS
1647 linker flags for selinux, overriding pkg-config
1648
1649 Use these variables to override the choices made by `configure' or to help
1650 it to find libraries and programs with nonstandard names/locations.
1651
1652 Report bugs to <systemtap@sourceware.org>.
1653 _ACEOF
1654 ac_status=$?
1655 fi
1656
1657 if test "$ac_init_help" = "recursive"; then
1658 # If there are subdirs, report their specific --help.
1659 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1660 test -d "$ac_dir" ||
1661 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1662 continue
1663 ac_builddir=.
1664
1665 case "$ac_dir" in
1666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *)
1668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1669 # A ".." for each directory in $ac_dir_suffix.
1670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1671 case $ac_top_builddir_sub in
1672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1674 esac ;;
1675 esac
1676 ac_abs_top_builddir=$ac_pwd
1677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1678 # for backward compatibility:
1679 ac_top_builddir=$ac_top_build_prefix
1680
1681 case $srcdir in
1682 .) # We are building in place.
1683 ac_srcdir=.
1684 ac_top_srcdir=$ac_top_builddir_sub
1685 ac_abs_top_srcdir=$ac_pwd ;;
1686 [\\/]* | ?:[\\/]* ) # Absolute name.
1687 ac_srcdir=$srcdir$ac_dir_suffix;
1688 ac_top_srcdir=$srcdir
1689 ac_abs_top_srcdir=$srcdir ;;
1690 *) # Relative name.
1691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1692 ac_top_srcdir=$ac_top_build_prefix$srcdir
1693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1694 esac
1695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1696
1697 cd "$ac_dir" || { ac_status=$?; continue; }
1698 # Check for guested configure.
1699 if test -f "$ac_srcdir/configure.gnu"; then
1700 echo &&
1701 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1702 elif test -f "$ac_srcdir/configure"; then
1703 echo &&
1704 $SHELL "$ac_srcdir/configure" --help=recursive
1705 else
1706 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1707 fi || ac_status=$?
1708 cd "$ac_pwd" || { ac_status=$?; break; }
1709 done
1710 fi
1711
1712 test -n "$ac_init_help" && exit $ac_status
1713 if $ac_init_version; then
1714 cat <<\_ACEOF
1715 systemtap configure 3.1
1716 generated by GNU Autoconf 2.69
1717
1718 Copyright (C) 2012 Free Software Foundation, Inc.
1719 This configure script is free software; the Free Software Foundation
1720 gives unlimited permission to copy, distribute and modify it.
1721 _ACEOF
1722 exit
1723 fi
1724
1725 ## ------------------------ ##
1726 ## Autoconf initialization. ##
1727 ## ------------------------ ##
1728
1729 # ac_fn_c_try_compile LINENO
1730 # --------------------------
1731 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_compile ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext
1736 if { { ac_try="$ac_compile"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_compile") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest.$ac_objext; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761 fi
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_compile
1766
1767 # ac_fn_c_try_cpp LINENO
1768 # ----------------------
1769 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_cpp ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if { { ac_try="$ac_cpp conftest.$ac_ext"
1774 case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1786 fi
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } > conftest.i && {
1789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 }; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798 fi
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1801
1802 } # ac_fn_c_try_cpp
1803
1804 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807 # the include files in INCLUDES and setting the cache variable VAR
1808 # accordingly.
1809 ac_fn_c_check_header_mongrel ()
1810 {
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if eval \${$3+:} false; then :
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1817 fi
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 else
1822 # Is the header compilable?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824 $as_echo_n "checking $2 usability... " >&6; }
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 $4
1828 #include <$2>
1829 _ACEOF
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831 ac_header_compiler=yes
1832 else
1833 ac_header_compiler=no
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837 $as_echo "$ac_header_compiler" >&6; }
1838
1839 # Is the header present?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841 $as_echo_n "checking $2 presence... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_cpp "$LINENO"; then :
1847 ac_header_preproc=yes
1848 else
1849 ac_header_preproc=no
1850 fi
1851 rm -f conftest.err conftest.i conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853 $as_echo "$ac_header_preproc" >&6; }
1854
1855 # So? What about this header?
1856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1857 yes:no: )
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 ;;
1863 no:yes:* )
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1867 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1871 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 ( $as_echo "## --------------------------------------- ##
1875 ## Report this to systemtap@sourceware.org ##
1876 ## --------------------------------------- ##"
1877 ) | sed "s/^/$as_me: WARNING: /" >&2
1878 ;;
1879 esac
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1884 else
1885 eval "$3=\$ac_header_compiler"
1886 fi
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 fi
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893 } # ac_fn_c_check_header_mongrel
1894
1895 # ac_fn_c_try_run LINENO
1896 # ----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1898 # that executables *can* be run.
1899 ac_fn_c_try_run ()
1900 {
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if { { ac_try="$ac_link"
1903 case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>&5
1910 ac_status=$?
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1913 { { case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1916 esac
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_try") 2>&5
1920 ac_status=$?
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; }; }; then :
1923 ac_retval=0
1924 else
1925 $as_echo "$as_me: program exited with status $ac_status" >&5
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1928
1929 ac_retval=$ac_status
1930 fi
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1934
1935 } # ac_fn_c_try_run
1936
1937 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists and can be compiled using the include files in
1940 # INCLUDES, setting the cache variable VAR accordingly.
1941 ac_fn_c_check_header_compile ()
1942 {
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1948 else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 $4
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 eval "$3=yes"
1956 else
1957 eval "$3=no"
1958 fi
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 fi
1961 eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966 } # ac_fn_c_check_header_compile
1967
1968 # ac_fn_cxx_try_compile LINENO
1969 # ----------------------------
1970 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1971 ac_fn_cxx_try_compile ()
1972 {
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 rm -f conftest.$ac_objext
1975 if { { ac_try="$ac_compile"
1976 case "(($ac_try" in
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_compile") 2>conftest.err
1983 ac_status=$?
1984 if test -s conftest.err; then
1985 grep -v '^ *+' conftest.err >conftest.er1
1986 cat conftest.er1 >&5
1987 mv -f conftest.er1 conftest.err
1988 fi
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && {
1991 test -z "$ac_cxx_werror_flag" ||
1992 test ! -s conftest.err
1993 } && test -s conftest.$ac_objext; then :
1994 ac_retval=0
1995 else
1996 $as_echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1998
1999 ac_retval=1
2000 fi
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 as_fn_set_status $ac_retval
2003
2004 } # ac_fn_cxx_try_compile
2005
2006 # ac_fn_c_try_link LINENO
2007 # -----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded.
2009 ac_fn_c_try_link ()
2010 {
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 rm -f conftest.$ac_objext conftest$ac_exeext
2013 if { { ac_try="$ac_link"
2014 case "(($ac_try" in
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2017 esac
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_link") 2>conftest.err
2021 ac_status=$?
2022 if test -s conftest.err; then
2023 grep -v '^ *+' conftest.err >conftest.er1
2024 cat conftest.er1 >&5
2025 mv -f conftest.er1 conftest.err
2026 fi
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && {
2029 test -z "$ac_c_werror_flag" ||
2030 test ! -s conftest.err
2031 } && test -s conftest$ac_exeext && {
2032 test "$cross_compiling" = yes ||
2033 test -x conftest$ac_exeext
2034 }; then :
2035 ac_retval=0
2036 else
2037 $as_echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2039
2040 ac_retval=1
2041 fi
2042 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2043 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2044 # interfere with the next link command; also delete a directory that is
2045 # left behind by Apple's compiler. We do this before executing the actions.
2046 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 as_fn_set_status $ac_retval
2049
2050 } # ac_fn_c_try_link
2051
2052 # ac_fn_c_check_func LINENO FUNC VAR
2053 # ----------------------------------
2054 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2055 ac_fn_c_check_func ()
2056 {
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2062 else
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2065 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2067 #define $2 innocuous_$2
2068
2069 /* System header to define __stub macros and hopefully few prototypes,
2070 which can conflict with char $2 (); below.
2071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2072 <limits.h> exists even on freestanding compilers. */
2073
2074 #ifdef __STDC__
2075 # include <limits.h>
2076 #else
2077 # include <assert.h>
2078 #endif
2079
2080 #undef $2
2081
2082 /* Override any GCC internal prototype to avoid an error.
2083 Use char because int might match the return type of a GCC
2084 builtin and then its argument prototype would still apply. */
2085 #ifdef __cplusplus
2086 extern "C"
2087 #endif
2088 char $2 ();
2089 /* The GNU C library defines this for functions which it implements
2090 to always fail with ENOSYS. Some functions are actually named
2091 something starting with __ and the normal name is an alias. */
2092 #if defined __stub_$2 || defined __stub___$2
2093 choke me
2094 #endif
2095
2096 int
2097 main ()
2098 {
2099 return $2 ();
2100 ;
2101 return 0;
2102 }
2103 _ACEOF
2104 if ac_fn_c_try_link "$LINENO"; then :
2105 eval "$3=yes"
2106 else
2107 eval "$3=no"
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext \
2110 conftest$ac_exeext conftest.$ac_ext
2111 fi
2112 eval ac_res=\$$3
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116
2117 } # ac_fn_c_check_func
2118
2119 # ac_fn_cxx_try_cpp LINENO
2120 # ------------------------
2121 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2122 ac_fn_cxx_try_cpp ()
2123 {
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 if { { ac_try="$ac_cpp conftest.$ac_ext"
2126 case "(($ac_try" in
2127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128 *) ac_try_echo=$ac_try;;
2129 esac
2130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2131 $as_echo "$ac_try_echo"; } >&5
2132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2133 ac_status=$?
2134 if test -s conftest.err; then
2135 grep -v '^ *+' conftest.err >conftest.er1
2136 cat conftest.er1 >&5
2137 mv -f conftest.er1 conftest.err
2138 fi
2139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2140 test $ac_status = 0; } > conftest.i && {
2141 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2142 test ! -s conftest.err
2143 }; then :
2144 ac_retval=0
2145 else
2146 $as_echo "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.$ac_ext >&5
2148
2149 ac_retval=1
2150 fi
2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 as_fn_set_status $ac_retval
2153
2154 } # ac_fn_cxx_try_cpp
2155
2156 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2157 # ---------------------------------------------------------
2158 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2159 # the include files in INCLUDES and setting the cache variable VAR
2160 # accordingly.
2161 ac_fn_cxx_check_header_mongrel ()
2162 {
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 if eval \${$3+:} false; then :
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2166 $as_echo_n "checking for $2... " >&6; }
2167 if eval \${$3+:} false; then :
2168 $as_echo_n "(cached) " >&6
2169 fi
2170 eval ac_res=\$$3
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 else
2174 # Is the header compilable?
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2176 $as_echo_n "checking $2 usability... " >&6; }
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2179 $4
2180 #include <$2>
2181 _ACEOF
2182 if ac_fn_cxx_try_compile "$LINENO"; then :
2183 ac_header_compiler=yes
2184 else
2185 ac_header_compiler=no
2186 fi
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2189 $as_echo "$ac_header_compiler" >&6; }
2190
2191 # Is the header present?
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2193 $as_echo_n "checking $2 presence... " >&6; }
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2196 #include <$2>
2197 _ACEOF
2198 if ac_fn_cxx_try_cpp "$LINENO"; then :
2199 ac_header_preproc=yes
2200 else
2201 ac_header_preproc=no
2202 fi
2203 rm -f conftest.err conftest.i conftest.$ac_ext
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2205 $as_echo "$ac_header_preproc" >&6; }
2206
2207 # So? What about this header?
2208 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2209 yes:no: )
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2211 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2213 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2214 ;;
2215 no:yes:* )
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2217 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2219 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2221 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2223 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2225 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2226 ( $as_echo "## --------------------------------------- ##
2227 ## Report this to systemtap@sourceware.org ##
2228 ## --------------------------------------- ##"
2229 ) | sed "s/^/$as_me: WARNING: /" >&2
2230 ;;
2231 esac
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if eval \${$3+:} false; then :
2235 $as_echo_n "(cached) " >&6
2236 else
2237 eval "$3=\$ac_header_compiler"
2238 fi
2239 eval ac_res=\$$3
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 $as_echo "$ac_res" >&6; }
2242 fi
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244
2245 } # ac_fn_cxx_check_header_mongrel
2246
2247 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2248 # ---------------------------------------------
2249 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2250 # accordingly.
2251 ac_fn_c_check_decl ()
2252 {
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 as_decl_name=`echo $2|sed 's/ *(.*//'`
2255 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2257 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2258 if eval \${$3+:} false; then :
2259 $as_echo_n "(cached) " >&6
2260 else
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2263 $4
2264 int
2265 main ()
2266 {
2267 #ifndef $as_decl_name
2268 #ifdef __cplusplus
2269 (void) $as_decl_use;
2270 #else
2271 (void) $as_decl_name;
2272 #endif
2273 #endif
2274
2275 ;
2276 return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280 eval "$3=yes"
2281 else
2282 eval "$3=no"
2283 fi
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 fi
2286 eval ac_res=\$$3
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290
2291 } # ac_fn_c_check_decl
2292 cat >config.log <<_ACEOF
2293 This file contains any messages produced by compilers while
2294 running configure, to aid debugging if configure makes a mistake.
2295
2296 It was created by systemtap $as_me 3.1, which was
2297 generated by GNU Autoconf 2.69. Invocation command line was
2298
2299 $ $0 $@
2300
2301 _ACEOF
2302 exec 5>>config.log
2303 {
2304 cat <<_ASUNAME
2305 ## --------- ##
2306 ## Platform. ##
2307 ## --------- ##
2308
2309 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2310 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2311 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2312 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2313 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2314
2315 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2316 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2317
2318 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2319 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2320 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2321 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2322 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2323 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2324 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2325
2326 _ASUNAME
2327
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 $as_echo "PATH: $as_dir"
2334 done
2335 IFS=$as_save_IFS
2336
2337 } >&5
2338
2339 cat >&5 <<_ACEOF
2340
2341
2342 ## ----------- ##
2343 ## Core tests. ##
2344 ## ----------- ##
2345
2346 _ACEOF
2347
2348
2349 # Keep a trace of the command line.
2350 # Strip out --no-create and --no-recursion so they do not pile up.
2351 # Strip out --silent because we don't want to record it for future runs.
2352 # Also quote any args containing shell meta-characters.
2353 # Make two passes to allow for proper duplicate-argument suppression.
2354 ac_configure_args=
2355 ac_configure_args0=
2356 ac_configure_args1=
2357 ac_must_keep_next=false
2358 for ac_pass in 1 2
2359 do
2360 for ac_arg
2361 do
2362 case $ac_arg in
2363 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2365 | -silent | --silent | --silen | --sile | --sil)
2366 continue ;;
2367 *\'*)
2368 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2369 esac
2370 case $ac_pass in
2371 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2372 2)
2373 as_fn_append ac_configure_args1 " '$ac_arg'"
2374 if test $ac_must_keep_next = true; then
2375 ac_must_keep_next=false # Got value, back to normal.
2376 else
2377 case $ac_arg in
2378 *=* | --config-cache | -C | -disable-* | --disable-* \
2379 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2380 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2381 | -with-* | --with-* | -without-* | --without-* | --x)
2382 case "$ac_configure_args0 " in
2383 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2384 esac
2385 ;;
2386 -* ) ac_must_keep_next=true ;;
2387 esac
2388 fi
2389 as_fn_append ac_configure_args " '$ac_arg'"
2390 ;;
2391 esac
2392 done
2393 done
2394 { ac_configure_args0=; unset ac_configure_args0;}
2395 { ac_configure_args1=; unset ac_configure_args1;}
2396
2397 # When interrupted or exit'd, cleanup temporary files, and complete
2398 # config.log. We remove comments because anyway the quotes in there
2399 # would cause problems or look ugly.
2400 # WARNING: Use '\'' to represent an apostrophe within the trap.
2401 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2402 trap 'exit_status=$?
2403 # Save into config.log some information that might help in debugging.
2404 {
2405 echo
2406
2407 $as_echo "## ---------------- ##
2408 ## Cache variables. ##
2409 ## ---------------- ##"
2410 echo
2411 # The following way of writing the cache mishandles newlines in values,
2412 (
2413 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2414 eval ac_val=\$$ac_var
2415 case $ac_val in #(
2416 *${as_nl}*)
2417 case $ac_var in #(
2418 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2419 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2420 esac
2421 case $ac_var in #(
2422 _ | IFS | as_nl) ;; #(
2423 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2424 *) { eval $ac_var=; unset $ac_var;} ;;
2425 esac ;;
2426 esac
2427 done
2428 (set) 2>&1 |
2429 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2430 *${as_nl}ac_space=\ *)
2431 sed -n \
2432 "s/'\''/'\''\\\\'\'''\''/g;
2433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2434 ;; #(
2435 *)
2436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2437 ;;
2438 esac |
2439 sort
2440 )
2441 echo
2442
2443 $as_echo "## ----------------- ##
2444 ## Output variables. ##
2445 ## ----------------- ##"
2446 echo
2447 for ac_var in $ac_subst_vars
2448 do
2449 eval ac_val=\$$ac_var
2450 case $ac_val in
2451 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2452 esac
2453 $as_echo "$ac_var='\''$ac_val'\''"
2454 done | sort
2455 echo
2456
2457 if test -n "$ac_subst_files"; then
2458 $as_echo "## ------------------- ##
2459 ## File substitutions. ##
2460 ## ------------------- ##"
2461 echo
2462 for ac_var in $ac_subst_files
2463 do
2464 eval ac_val=\$$ac_var
2465 case $ac_val in
2466 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467 esac
2468 $as_echo "$ac_var='\''$ac_val'\''"
2469 done | sort
2470 echo
2471 fi
2472
2473 if test -s confdefs.h; then
2474 $as_echo "## ----------- ##
2475 ## confdefs.h. ##
2476 ## ----------- ##"
2477 echo
2478 cat confdefs.h
2479 echo
2480 fi
2481 test "$ac_signal" != 0 &&
2482 $as_echo "$as_me: caught signal $ac_signal"
2483 $as_echo "$as_me: exit $exit_status"
2484 } >&5
2485 rm -f core *.core core.conftest.* &&
2486 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2487 exit $exit_status
2488 ' 0
2489 for ac_signal in 1 2 13 15; do
2490 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2491 done
2492 ac_signal=0
2493
2494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2495 rm -f -r conftest* confdefs.h
2496
2497 $as_echo "/* confdefs.h */" > confdefs.h
2498
2499 # Predefined preprocessor variables.
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_NAME "$PACKAGE_NAME"
2503 _ACEOF
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2507 _ACEOF
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2511 _ACEOF
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_STRING "$PACKAGE_STRING"
2515 _ACEOF
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2519 _ACEOF
2520
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_URL "$PACKAGE_URL"
2523 _ACEOF
2524
2525
2526 # Let the site file select an alternate cache file if it wants to.
2527 # Prefer an explicitly selected file to automatically selected ones.
2528 ac_site_file1=NONE
2529 ac_site_file2=NONE
2530 if test -n "$CONFIG_SITE"; then
2531 # We do not want a PATH search for config.site.
2532 case $CONFIG_SITE in #((
2533 -*) ac_site_file1=./$CONFIG_SITE;;
2534 */*) ac_site_file1=$CONFIG_SITE;;
2535 *) ac_site_file1=./$CONFIG_SITE;;
2536 esac
2537 elif test "x$prefix" != xNONE; then
2538 ac_site_file1=$prefix/share/config.site
2539 ac_site_file2=$prefix/etc/config.site
2540 else
2541 ac_site_file1=$ac_default_prefix/share/config.site
2542 ac_site_file2=$ac_default_prefix/etc/config.site
2543 fi
2544 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2545 do
2546 test "x$ac_site_file" = xNONE && continue
2547 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2549 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2550 sed 's/^/| /' "$ac_site_file" >&5
2551 . "$ac_site_file" \
2552 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554 as_fn_error $? "failed to load site script $ac_site_file
2555 See \`config.log' for more details" "$LINENO" 5; }
2556 fi
2557 done
2558
2559 if test -r "$cache_file"; then
2560 # Some versions of bash will fail to source /dev/null (special files
2561 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2562 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2564 $as_echo "$as_me: loading cache $cache_file" >&6;}
2565 case $cache_file in
2566 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2567 *) . "./$cache_file";;
2568 esac
2569 fi
2570 else
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2572 $as_echo "$as_me: creating cache $cache_file" >&6;}
2573 >$cache_file
2574 fi
2575
2576 gt_needs="$gt_needs "
2577 # Check that the precious variables saved in the cache have kept the same
2578 # value.
2579 ac_cache_corrupted=false
2580 for ac_var in $ac_precious_vars; do
2581 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582 eval ac_new_set=\$ac_env_${ac_var}_set
2583 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584 eval ac_new_val=\$ac_env_${ac_var}_value
2585 case $ac_old_set,$ac_new_set in
2586 set,)
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2588 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2589 ac_cache_corrupted=: ;;
2590 ,set)
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2592 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,);;
2595 *)
2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w=`echo x $ac_old_val`
2599 ac_new_val_w=`echo x $ac_new_val`
2600 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2602 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2603 ac_cache_corrupted=:
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\$ac_old_val
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2610 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2612 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2613 fi;;
2614 esac
2615 # Pass precious variables to config.status.
2616 if test "$ac_new_set" = set; then
2617 case $ac_new_val in
2618 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619 *) ac_arg=$ac_var=$ac_new_val ;;
2620 esac
2621 case " $ac_configure_args " in
2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2624 esac
2625 fi
2626 done
2627 if $ac_cache_corrupted; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2632 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2633 fi
2634 ## -------------------- ##
2635 ## Main body of script. ##
2636 ## -------------------- ##
2637
2638 ac_ext=c
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643
2644
2645
2646 ac_aux_dir=
2647 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2648 if test -f "$ac_dir/install-sh"; then
2649 ac_aux_dir=$ac_dir
2650 ac_install_sh="$ac_aux_dir/install-sh -c"
2651 break
2652 elif test -f "$ac_dir/install.sh"; then
2653 ac_aux_dir=$ac_dir
2654 ac_install_sh="$ac_aux_dir/install.sh -c"
2655 break
2656 elif test -f "$ac_dir/shtool"; then
2657 ac_aux_dir=$ac_dir
2658 ac_install_sh="$ac_aux_dir/shtool install -c"
2659 break
2660 fi
2661 done
2662 if test -z "$ac_aux_dir"; then
2663 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2664 fi
2665
2666 # These three variables are undocumented and unsupported,
2667 # and are intended to be withdrawn in a future Autoconf release.
2668 # They can cause serious problems if a builder's source tree is in a directory
2669 # whose full name contains unusual characters.
2670 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2671 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2672 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2673
2674
2675 # Make sure we can run config.sub.
2676 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2677 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2678
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2680 $as_echo_n "checking build system type... " >&6; }
2681 if ${ac_cv_build+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 ac_build_alias=$build_alias
2685 test "x$ac_build_alias" = x &&
2686 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2687 test "x$ac_build_alias" = x &&
2688 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2689 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2690 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2691
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2694 $as_echo "$ac_cv_build" >&6; }
2695 case $ac_cv_build in
2696 *-*-*) ;;
2697 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2698 esac
2699 build=$ac_cv_build
2700 ac_save_IFS=$IFS; IFS='-'
2701 set x $ac_cv_build
2702 shift
2703 build_cpu=$1
2704 build_vendor=$2
2705 shift; shift
2706 # Remember, the first character of IFS is used to create $*,
2707 # except with old shells:
2708 build_os=$*
2709 IFS=$ac_save_IFS
2710 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2711
2712
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2714 $as_echo_n "checking host system type... " >&6; }
2715 if ${ac_cv_host+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test "x$host_alias" = x; then
2719 ac_cv_host=$ac_cv_build
2720 else
2721 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2722 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2723 fi
2724
2725 fi
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2727 $as_echo "$ac_cv_host" >&6; }
2728 case $ac_cv_host in
2729 *-*-*) ;;
2730 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2731 esac
2732 host=$ac_cv_host
2733 ac_save_IFS=$IFS; IFS='-'
2734 set x $ac_cv_host
2735 shift
2736 host_cpu=$1
2737 host_vendor=$2
2738 shift; shift
2739 # Remember, the first character of IFS is used to create $*,
2740 # except with old shells:
2741 host_os=$*
2742 IFS=$ac_save_IFS
2743 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2744
2745
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2747 $as_echo_n "checking target system type... " >&6; }
2748 if ${ac_cv_target+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 if test "x$target_alias" = x; then
2752 ac_cv_target=$ac_cv_host
2753 else
2754 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2755 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2756 fi
2757
2758 fi
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2760 $as_echo "$ac_cv_target" >&6; }
2761 case $ac_cv_target in
2762 *-*-*) ;;
2763 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2764 esac
2765 target=$ac_cv_target
2766 ac_save_IFS=$IFS; IFS='-'
2767 set x $ac_cv_target
2768 shift
2769 target_cpu=$1
2770 target_vendor=$2
2771 shift; shift
2772 # Remember, the first character of IFS is used to create $*,
2773 # except with old shells:
2774 target_os=$*
2775 IFS=$ac_save_IFS
2776 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2777
2778
2779 # The aliases save the names the user supplied, while $host etc.
2780 # will get canonicalized.
2781 test -n "$target_alias" &&
2782 test "$program_prefix$program_suffix$program_transform_name" = \
2783 NONENONEs,x,x, &&
2784 program_prefix=${target_alias}-
2785
2786
2787 am__api_version='1.15'
2788
2789 # Find a good install program. We prefer a C program (faster),
2790 # so one script is as good as another. But avoid the broken or
2791 # incompatible versions:
2792 # SysV /etc/install, /usr/sbin/install
2793 # SunOS /usr/etc/install
2794 # IRIX /sbin/install
2795 # AIX /bin/install
2796 # AmigaOS /C/install, which installs bootblocks on floppy discs
2797 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2798 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2799 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2800 # OS/2's system install, which has a completely different semantic
2801 # ./install, which can be erroneously created by make from ./install.sh.
2802 # Reject install programs that cannot install multiple files.
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2804 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2805 if test -z "$INSTALL"; then
2806 if ${ac_cv_path_install+:} false; then :
2807 $as_echo_n "(cached) " >&6
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 # Account for people who put trailing slashes in PATH elements.
2815 case $as_dir/ in #((
2816 ./ | .// | /[cC]/* | \
2817 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2818 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2819 /usr/ucb/* ) ;;
2820 *)
2821 # OSF1 and SCO ODT 3.0 have their own names for install.
2822 # Don't use installbsd from OSF since it installs stuff as root
2823 # by default.
2824 for ac_prog in ginstall scoinst install; do
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2827 if test $ac_prog = install &&
2828 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2829 # AIX install. It has an incompatible calling convention.
2830 :
2831 elif test $ac_prog = install &&
2832 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2833 # program-specific install script used by HP pwplus--don't use.
2834 :
2835 else
2836 rm -rf conftest.one conftest.two conftest.dir
2837 echo one > conftest.one
2838 echo two > conftest.two
2839 mkdir conftest.dir
2840 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2841 test -s conftest.one && test -s conftest.two &&
2842 test -s conftest.dir/conftest.one &&
2843 test -s conftest.dir/conftest.two
2844 then
2845 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2846 break 3
2847 fi
2848 fi
2849 fi
2850 done
2851 done
2852 ;;
2853 esac
2854
2855 done
2856 IFS=$as_save_IFS
2857
2858 rm -rf conftest.one conftest.two conftest.dir
2859
2860 fi
2861 if test "${ac_cv_path_install+set}" = set; then
2862 INSTALL=$ac_cv_path_install
2863 else
2864 # As a last resort, use the slow shell script. Don't cache a
2865 # value for INSTALL within a source directory, because that will
2866 # break other packages using the cache if that directory is
2867 # removed, or if the value is a relative name.
2868 INSTALL=$ac_install_sh
2869 fi
2870 fi
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2872 $as_echo "$INSTALL" >&6; }
2873
2874 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2875 # It thinks the first close brace ends the variable substitution.
2876 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2877
2878 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2879
2880 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2881
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2883 $as_echo_n "checking whether build environment is sane... " >&6; }
2884 # Reject unsafe characters in $srcdir or the absolute working directory
2885 # name. Accept space and tab only in the latter.
2886 am_lf='
2887 '
2888 case `pwd` in
2889 *[\\\"\#\$\&\'\`$am_lf]*)
2890 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2891 esac
2892 case $srcdir in
2893 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2894 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2895 esac
2896
2897 # Do 'set' in a subshell so we don't clobber the current shell's
2898 # arguments. Must try -L first in case configure is actually a
2899 # symlink; some systems play weird games with the mod time of symlinks
2900 # (eg FreeBSD returns the mod time of the symlink's containing
2901 # directory).
2902 if (
2903 am_has_slept=no
2904 for am_try in 1 2; do
2905 echo "timestamp, slept: $am_has_slept" > conftest.file
2906 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2907 if test "$*" = "X"; then
2908 # -L didn't work.
2909 set X `ls -t "$srcdir/configure" conftest.file`
2910 fi
2911 if test "$*" != "X $srcdir/configure conftest.file" \
2912 && test "$*" != "X conftest.file $srcdir/configure"; then
2913
2914 # If neither matched, then we have a broken ls. This can happen
2915 # if, for instance, CONFIG_SHELL is bash and it inherits a
2916 # broken ls alias from the environment. This has actually
2917 # happened. Such a system could not be considered "sane".
2918 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2919 alias in your environment" "$LINENO" 5
2920 fi
2921 if test "$2" = conftest.file || test $am_try -eq 2; then
2922 break
2923 fi
2924 # Just in case.
2925 sleep 1
2926 am_has_slept=yes
2927 done
2928 test "$2" = conftest.file
2929 )
2930 then
2931 # Ok.
2932 :
2933 else
2934 as_fn_error $? "newly created file is older than distributed files!
2935 Check your system clock" "$LINENO" 5
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2938 $as_echo "yes" >&6; }
2939 # If we didn't sleep, we still need to ensure time stamps of config.status and
2940 # generated files are strictly newer.
2941 am_sleep_pid=
2942 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2943 ( sleep 1 ) &
2944 am_sleep_pid=$!
2945 fi
2946
2947 rm -f conftest.file
2948
2949 test "$program_prefix" != NONE &&
2950 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2951 # Use a double $ so make ignores it.
2952 test "$program_suffix" != NONE &&
2953 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2954 # Double any \ or $.
2955 # By default was `s,x,x', remove it if useless.
2956 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2957 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2958
2959 # Expand $ac_aux_dir to an absolute path.
2960 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2961
2962 if test x"${MISSING+set}" != xset; then
2963 case $am_aux_dir in
2964 *\ * | *\ *)
2965 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2966 *)
2967 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2968 esac
2969 fi
2970 # Use eval to expand $SHELL
2971 if eval "$MISSING --is-lightweight"; then
2972 am_missing_run="$MISSING "
2973 else
2974 am_missing_run=
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2976 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2977 fi
2978
2979 if test x"${install_sh+set}" != xset; then
2980 case $am_aux_dir in
2981 *\ * | *\ *)
2982 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2983 *)
2984 install_sh="\${SHELL} $am_aux_dir/install-sh"
2985 esac
2986 fi
2987
2988 # Installed binaries are usually stripped using 'strip' when the user
2989 # run "make install-strip". However 'strip' might not be the right
2990 # tool to use in cross-compilation environments, therefore Automake
2991 # will honor the 'STRIP' environment variable to overrule this program.
2992 if test "$cross_compiling" != no; then
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}strip; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_STRIP+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$STRIP"; then
3002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015 done
3016 done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 STRIP=$ac_cv_prog_STRIP
3022 if test -n "$STRIP"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3024 $as_echo "$STRIP" >&6; }
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030
3031 fi
3032 if test -z "$ac_cv_prog_STRIP"; then
3033 ac_ct_STRIP=$STRIP
3034 # Extract the first word of "strip", so it can be a program name with args.
3035 set dummy strip; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3039 $as_echo_n "(cached) " >&6
3040 else
3041 if test -n "$ac_ct_STRIP"; then
3042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051 ac_cv_prog_ac_ct_STRIP="strip"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 break 2
3054 fi
3055 done
3056 done
3057 IFS=$as_save_IFS
3058
3059 fi
3060 fi
3061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3062 if test -n "$ac_ct_STRIP"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3064 $as_echo "$ac_ct_STRIP" >&6; }
3065 else
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 fi
3069
3070 if test "x$ac_ct_STRIP" = x; then
3071 STRIP=":"
3072 else
3073 case $cross_compiling:$ac_tool_warned in
3074 yes:)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077 ac_tool_warned=yes ;;
3078 esac
3079 STRIP=$ac_ct_STRIP
3080 fi
3081 else
3082 STRIP="$ac_cv_prog_STRIP"
3083 fi
3084
3085 fi
3086 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3089 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3090 if test -z "$MKDIR_P"; then
3091 if ${ac_cv_path_mkdir+:} false; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3096 do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_prog in mkdir gmkdir; do
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3102 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3103 'mkdir (GNU coreutils) '* | \
3104 'mkdir (coreutils) '* | \
3105 'mkdir (fileutils) '4.1*)
3106 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3107 break 3;;
3108 esac
3109 done
3110 done
3111 done
3112 IFS=$as_save_IFS
3113
3114 fi
3115
3116 test -d ./--version && rmdir ./--version
3117 if test "${ac_cv_path_mkdir+set}" = set; then
3118 MKDIR_P="$ac_cv_path_mkdir -p"
3119 else
3120 # As a last resort, use the slow shell script. Don't cache a
3121 # value for MKDIR_P within a source directory, because that will
3122 # break other packages using the cache if that directory is
3123 # removed, or if the value is a relative name.
3124 MKDIR_P="$ac_install_sh -d"
3125 fi
3126 fi
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3128 $as_echo "$MKDIR_P" >&6; }
3129
3130 for ac_prog in gawk mawk nawk awk
3131 do
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_AWK+:} false; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 if test -n "$AWK"; then
3140 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_AWK="$ac_prog"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 break 2
3152 fi
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 AWK=$ac_cv_prog_AWK
3160 if test -n "$AWK"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3162 $as_echo "$AWK" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169 test -n "$AWK" && break
3170 done
3171
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3173 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3174 set x ${MAKE-make}
3175 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3176 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 cat >conftest.make <<\_ACEOF
3180 SHELL = /bin/sh
3181 all:
3182 @echo '@@@%%%=$(MAKE)=@@@%%%'
3183 _ACEOF
3184 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3185 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3186 *@@@%%%=?*=@@@%%%*)
3187 eval ac_cv_prog_make_${ac_make}_set=yes;;
3188 *)
3189 eval ac_cv_prog_make_${ac_make}_set=no;;
3190 esac
3191 rm -f conftest.make
3192 fi
3193 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195 $as_echo "yes" >&6; }
3196 SET_MAKE=
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 SET_MAKE="MAKE=${MAKE-make}"
3201 fi
3202
3203 rm -rf .tst 2>/dev/null
3204 mkdir .tst 2>/dev/null
3205 if test -d .tst; then
3206 am__leading_dot=.
3207 else
3208 am__leading_dot=_
3209 fi
3210 rmdir .tst 2>/dev/null
3211
3212 # Check whether --enable-silent-rules was given.
3213 if test "${enable_silent_rules+set}" = set; then :
3214 enableval=$enable_silent_rules;
3215 fi
3216
3217 case $enable_silent_rules in # (((
3218 yes) AM_DEFAULT_VERBOSITY=0;;
3219 no) AM_DEFAULT_VERBOSITY=1;;
3220 *) AM_DEFAULT_VERBOSITY=1;;
3221 esac
3222 am_make=${MAKE-make}
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3224 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3225 if ${am_cv_make_support_nested_variables+:} false; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 if $as_echo 'TRUE=$(BAR$(V))
3229 BAR0=false
3230 BAR1=true
3231 V=1
3232 am__doit:
3233 @$(TRUE)
3234 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3235 am_cv_make_support_nested_variables=yes
3236 else
3237 am_cv_make_support_nested_variables=no
3238 fi
3239 fi
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3241 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3242 if test $am_cv_make_support_nested_variables = yes; then
3243 AM_V='$(V)'
3244 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3245 else
3246 AM_V=$AM_DEFAULT_VERBOSITY
3247 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3248 fi
3249 AM_BACKSLASH='\'
3250
3251 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3252 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3253 # is not polluted with repeated "-I."
3254 am__isrc=' -I$(srcdir)'
3255 # test to see if srcdir already configured
3256 if test -f $srcdir/config.status; then
3257 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3258 fi
3259 fi
3260
3261 # test whether we have cygpath
3262 if test -z "$CYGPATH_W"; then
3263 if (cygpath --version) >/dev/null 2>/dev/null; then
3264 CYGPATH_W='cygpath -w'
3265 else
3266 CYGPATH_W=echo
3267 fi
3268 fi
3269
3270
3271 # Define the identity of the package.
3272 PACKAGE='systemtap'
3273 VERSION='3.1'
3274
3275
3276 cat >>confdefs.h <<_ACEOF
3277 #define PACKAGE "$PACKAGE"
3278 _ACEOF
3279
3280
3281 cat >>confdefs.h <<_ACEOF
3282 #define VERSION "$VERSION"
3283 _ACEOF
3284
3285 # Some tools Automake needs.
3286
3287 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3288
3289
3290 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3291
3292
3293 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3294
3295
3296 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3297
3298
3299 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3300
3301 # For better backward compatibility. To be removed once Automake 1.9.x
3302 # dies out for good. For more background, see:
3303 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3304 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3305 mkdir_p='$(MKDIR_P)'
3306
3307 # We need awk for the "check" target (and possibly the TAP driver). The
3308 # system "awk" is bad on some platforms.
3309 # Always define AMTAR for backward compatibility. Yes, it's still used
3310 # in the wild :-( We should find a proper way to deprecate it ...
3311 AMTAR='$${TAR-tar}'
3312
3313
3314 # We'll loop over all known methods to create a tar archive until one works.
3315 _am_tools='gnutar pax cpio none'
3316
3317 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3318
3319
3320
3321
3322
3323
3324 # POSIX will say in a future version that running "rm -f" with no argument
3325 # is OK; and we want to be able to make that assumption in our Makefile
3326 # recipes. So use an aggressive probe to check that the usage we want is
3327 # actually supported "in the wild" to an acceptable degree.
3328 # See automake bug#10828.
3329 # To make any issue more visible, cause the running configure to be aborted
3330 # by default if the 'rm' program in use doesn't match our expectations; the
3331 # user can still override this though.
3332 if rm -f && rm -fr && rm -rf; then : OK; else
3333 cat >&2 <<'END'
3334 Oops!
3335
3336 Your 'rm' program seems unable to run without file operands specified
3337 on the command line, even when the '-f' option is present. This is contrary
3338 to the behaviour of most rm programs out there, and not conforming with
3339 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3340
3341 Please tell bug-automake@gnu.org about your system, including the value
3342 of your $PATH and any error possibly output before this message. This
3343 can help us improve future automake versions.
3344
3345 END
3346 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3347 echo 'Configuration will proceed anyway, since you have set the' >&2
3348 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3349 echo >&2
3350 else
3351 cat >&2 <<'END'
3352 Aborting the configuration process, to ensure you take notice of the issue.
3353
3354 You can download and install GNU coreutils to get an 'rm' implementation
3355 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3356
3357 If you want to complete the configuration process using your problematic
3358 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3359 to "yes", and re-run configure.
3360
3361 END
3362 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3363 fi
3364 fi
3365
3366
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3368 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3369 # Check whether --enable-maintainer-mode was given.
3370 if test "${enable_maintainer_mode+set}" = set; then :
3371 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3372 else
3373 USE_MAINTAINER_MODE=no
3374 fi
3375
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3377 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3378 if test $USE_MAINTAINER_MODE = yes; then
3379 MAINTAINER_MODE_TRUE=
3380 MAINTAINER_MODE_FALSE='#'
3381 else
3382 MAINTAINER_MODE_TRUE='#'
3383 MAINTAINER_MODE_FALSE=
3384 fi
3385
3386 MAINT=$MAINTAINER_MODE_TRUE
3387
3388
3389
3390 # Check whether --enable-silent-rules was given.
3391 if test "${enable_silent_rules+set}" = set; then :
3392 enableval=$enable_silent_rules;
3393 fi
3394
3395 case $enable_silent_rules in # (((
3396 yes) AM_DEFAULT_VERBOSITY=0;;
3397 no) AM_DEFAULT_VERBOSITY=1;;
3398 *) AM_DEFAULT_VERBOSITY=0;;
3399 esac
3400 am_make=${MAKE-make}
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3402 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3403 if ${am_cv_make_support_nested_variables+:} false; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 if $as_echo 'TRUE=$(BAR$(V))
3407 BAR0=false
3408 BAR1=true
3409 V=1
3410 am__doit:
3411 @$(TRUE)
3412 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3413 am_cv_make_support_nested_variables=yes
3414 else
3415 am_cv_make_support_nested_variables=no
3416 fi
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3419 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3420 if test $am_cv_make_support_nested_variables = yes; then
3421 AM_V='$(V)'
3422 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3423 else
3424 AM_V=$AM_DEFAULT_VERBOSITY
3425 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3426 fi
3427 AM_BACKSLASH='\'
3428
3429
3430 DEPDIR="${am__leading_dot}deps"
3431
3432 ac_config_commands="$ac_config_commands depfiles"
3433
3434
3435 am_make=${MAKE-make}
3436 cat > confinc << 'END'
3437 am__doit:
3438 @echo this is the am__doit target
3439 .PHONY: am__doit
3440 END
3441 # If we don't find an include directive, just comment out the code.
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3443 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3444 am__include="#"
3445 am__quote=
3446 _am_result=none
3447 # First try GNU make style include.
3448 echo "include confinc" > confmf
3449 # Ignore all kinds of additional output from 'make'.
3450 case `$am_make -s -f confmf 2> /dev/null` in #(
3451 *the\ am__doit\ target*)
3452 am__include=include
3453 am__quote=
3454 _am_result=GNU
3455 ;;
3456 esac
3457 # Now try BSD make style include.
3458 if test "$am__include" = "#"; then
3459 echo '.include "confinc"' > confmf
3460 case `$am_make -s -f confmf 2> /dev/null` in #(
3461 *the\ am__doit\ target*)
3462 am__include=.include
3463 am__quote="\""
3464 _am_result=BSD
3465 ;;
3466 esac
3467 fi
3468
3469
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3471 $as_echo "$_am_result" >&6; }
3472 rm -f confinc confmf
3473
3474 # Check whether --enable-dependency-tracking was given.
3475 if test "${enable_dependency_tracking+set}" = set; then :
3476 enableval=$enable_dependency_tracking;
3477 fi
3478
3479 if test "x$enable_dependency_tracking" != xno; then
3480 am_depcomp="$ac_aux_dir/depcomp"
3481 AMDEPBACKSLASH='\'
3482 am__nodep='_no'
3483 fi
3484 if test "x$enable_dependency_tracking" != xno; then
3485 AMDEP_TRUE=
3486 AMDEP_FALSE='#'
3487 else
3488 AMDEP_TRUE='#'
3489 AMDEP_FALSE=
3490 fi
3491
3492
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 if test -n "$ac_tool_prefix"; then
3499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3500 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_CC+:} false; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 if test -n "$CC"; then
3507 ac_cv_prog_CC="$CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3511 do
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 2
3519 fi
3520 done
3521 done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 CC=$ac_cv_prog_CC
3527 if test -n "$CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529 $as_echo "$CC" >&6; }
3530 else
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3533 fi
3534
3535
3536 fi
3537 if test -z "$ac_cv_prog_CC"; then
3538 ac_ct_CC=$CC
3539 # Extract the first word of "gcc", so it can be a program name with args.
3540 set dummy gcc; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 if test -n "$ac_ct_CC"; then
3547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_ac_ct_CC="gcc"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3559 fi
3560 done
3561 done
3562 IFS=$as_save_IFS
3563
3564 fi
3565 fi
3566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567 if test -n "$ac_ct_CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569 $as_echo "$ac_ct_CC" >&6; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3573 fi
3574
3575 if test "x$ac_ct_CC" = x; then
3576 CC=""
3577 else
3578 case $cross_compiling:$ac_tool_warned in
3579 yes:)
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned=yes ;;
3583 esac
3584 CC=$ac_ct_CC
3585 fi
3586 else
3587 CC="$ac_cv_prog_CC"
3588 fi
3589
3590 if test -z "$CC"; then
3591 if test -n "$ac_tool_prefix"; then
3592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3593 set dummy ${ac_tool_prefix}cc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_CC+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_CC="${ac_tool_prefix}cc"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3612 fi
3613 done
3614 done
3615 IFS=$as_save_IFS
3616
3617 fi
3618 fi
3619 CC=$ac_cv_prog_CC
3620 if test -n "$CC"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622 $as_echo "$CC" >&6; }
3623 else
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3626 fi
3627
3628
3629 fi
3630 fi
3631 if test -z "$CC"; then
3632 # Extract the first word of "cc", so it can be a program name with args.
3633 set dummy cc; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if ${ac_cv_prog_CC+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 ac_prog_rejected=no
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3651 ac_prog_rejected=yes
3652 continue
3653 fi
3654 ac_cv_prog_CC="cc"
3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 break 2
3657 fi
3658 done
3659 done
3660 IFS=$as_save_IFS
3661
3662 if test $ac_prog_rejected = yes; then
3663 # We found a bogon in the path, so make sure we never use it.
3664 set dummy $ac_cv_prog_CC
3665 shift
3666 if test $# != 0; then
3667 # We chose a different compiler from the bogus one.
3668 # However, it has the same basename, so the bogon will be chosen
3669 # first if we set CC to just the basename; use the full file name.
3670 shift
3671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3672 fi
3673 fi
3674 fi
3675 fi
3676 CC=$ac_cv_prog_CC
3677 if test -n "$CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 $as_echo "$CC" >&6; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3683 fi
3684
3685
3686 fi
3687 if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 for ac_prog in cl.exe
3690 do
3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if ${ac_cv_prog_CC+:} false; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712 done
3713 done
3714 IFS=$as_save_IFS
3715
3716 fi
3717 fi
3718 CC=$ac_cv_prog_CC
3719 if test -n "$CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721 $as_echo "$CC" >&6; }
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3725 fi
3726
3727
3728 test -n "$CC" && break
3729 done
3730 fi
3731 if test -z "$CC"; then
3732 ac_ct_CC=$CC
3733 for ac_prog in cl.exe
3734 do
3735 # Extract the first word of "$ac_prog", so it can be a program name with args.
3736 set dummy $ac_prog; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$ac_ct_CC"; then
3743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752 ac_cv_prog_ac_ct_CC="$ac_prog"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3755 fi
3756 done
3757 done
3758 IFS=$as_save_IFS
3759
3760 fi
3761 fi
3762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3763 if test -n "$ac_ct_CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3765 $as_echo "$ac_ct_CC" >&6; }
3766 else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3769 fi
3770
3771
3772 test -n "$ac_ct_CC" && break
3773 done
3774
3775 if test "x$ac_ct_CC" = x; then
3776 CC=""
3777 else
3778 case $cross_compiling:$ac_tool_warned in
3779 yes:)
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3782 ac_tool_warned=yes ;;
3783 esac
3784 CC=$ac_ct_CC
3785 fi
3786 fi
3787
3788 fi
3789
3790
3791 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3793 as_fn_error $? "no acceptable C compiler found in \$PATH
3794 See \`config.log' for more details" "$LINENO" 5; }
3795
3796 # Provide some information about the compiler.
3797 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3798 set X $ac_compile
3799 ac_compiler=$2
3800 for ac_option in --version -v -V -qversion; do
3801 { { ac_try="$ac_compiler $ac_option >&5"
3802 case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3809 ac_status=$?
3810 if test -s conftest.err; then
3811 sed '10a\
3812 ... rest of stderr output deleted ...
3813 10q' conftest.err >conftest.er1
3814 cat conftest.er1 >&5
3815 fi
3816 rm -f conftest.er1 conftest.err
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }
3819 done
3820
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823
3824 int
3825 main ()
3826 {
3827
3828 ;
3829 return 0;
3830 }
3831 _ACEOF
3832 ac_clean_files_save=$ac_clean_files
3833 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3834 # Try to create an executable without -o first, disregard a.out.
3835 # It will help us diagnose broken compilers, and finding out an intuition
3836 # of exeext.
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3838 $as_echo_n "checking whether the C compiler works... " >&6; }
3839 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3840
3841 # The possible output files:
3842 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3843
3844 ac_rmfiles=
3845 for ac_file in $ac_files
3846 do
3847 case $ac_file in
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3849 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3850 esac
3851 done
3852 rm -f $ac_rmfiles
3853
3854 if { { ac_try="$ac_link_default"
3855 case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858 esac
3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_link_default") 2>&5
3862 ac_status=$?
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }; then :
3865 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3866 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3867 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3868 # so that the user can short-circuit this test for compilers unknown to
3869 # Autoconf.
3870 for ac_file in $ac_files ''
3871 do
3872 test -f "$ac_file" || continue
3873 case $ac_file in
3874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3875 ;;
3876 [ab].out )
3877 # We found the default executable, but exeext='' is most
3878 # certainly right.
3879 break;;
3880 *.* )
3881 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3882 then :; else
3883 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3884 fi
3885 # We set ac_cv_exeext here because the later test for it is not
3886 # safe: cross compilers may not add the suffix if given an `-o'
3887 # argument, so we may need to know it at that point already.
3888 # Even if this section looks crufty: it has the advantage of
3889 # actually working.
3890 break;;
3891 * )
3892 break;;
3893 esac
3894 done
3895 test "$ac_cv_exeext" = no && ac_cv_exeext=
3896
3897 else
3898 ac_file=''
3899 fi
3900 if test -z "$ac_file"; then :
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3903 $as_echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3905
3906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3908 as_fn_error 77 "C compiler cannot create executables
3909 See \`config.log' for more details" "$LINENO" 5; }
3910 else
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3912 $as_echo "yes" >&6; }
3913 fi
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3915 $as_echo_n "checking for C compiler default output file name... " >&6; }
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3917 $as_echo "$ac_file" >&6; }
3918 ac_exeext=$ac_cv_exeext
3919
3920 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3921 ac_clean_files=$ac_clean_files_save
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3923 $as_echo_n "checking for suffix of executables... " >&6; }
3924 if { { ac_try="$ac_link"
3925 case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3928 esac
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_link") 2>&5
3932 ac_status=$?
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; then :
3935 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3936 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3937 # work properly (i.e., refer to `conftest.exe'), while it won't with
3938 # `rm'.
3939 for ac_file in conftest.exe conftest conftest.*; do
3940 test -f "$ac_file" || continue
3941 case $ac_file in
3942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3943 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3944 break;;
3945 * ) break;;
3946 esac
3947 done
3948 else
3949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3952 See \`config.log' for more details" "$LINENO" 5; }
3953 fi
3954 rm -f conftest conftest$ac_cv_exeext
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3956 $as_echo "$ac_cv_exeext" >&6; }
3957
3958 rm -f conftest.$ac_ext
3959 EXEEXT=$ac_cv_exeext
3960 ac_exeext=$EXEEXT
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963 #include <stdio.h>
3964 int
3965 main ()
3966 {
3967 FILE *f = fopen ("conftest.out", "w");
3968 return ferror (f) || fclose (f) != 0;
3969
3970 ;
3971 return 0;
3972 }
3973 _ACEOF
3974 ac_clean_files="$ac_clean_files conftest.out"
3975 # Check that the compiler produces executables we can run. If not, either
3976 # the compiler is broken, or we cross compile.
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3978 $as_echo_n "checking whether we are cross compiling... " >&6; }
3979 if test "$cross_compiling" != yes; then
3980 { { ac_try="$ac_link"
3981 case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3984 esac
3985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986 $as_echo "$ac_try_echo"; } >&5
3987 (eval "$ac_link") 2>&5
3988 ac_status=$?
3989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990 test $ac_status = 0; }
3991 if { ac_try='./conftest$ac_cv_exeext'
3992 { { case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995 esac
3996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997 $as_echo "$ac_try_echo"; } >&5
3998 (eval "$ac_try") 2>&5
3999 ac_status=$?
4000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }; }; then
4002 cross_compiling=no
4003 else
4004 if test "$cross_compiling" = maybe; then
4005 cross_compiling=yes
4006 else
4007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4009 as_fn_error $? "cannot run C compiled programs.
4010 If you meant to cross compile, use \`--host'.
4011 See \`config.log' for more details" "$LINENO" 5; }
4012 fi
4013 fi
4014 fi
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4016 $as_echo "$cross_compiling" >&6; }
4017
4018 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4019 ac_clean_files=$ac_clean_files_save
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4021 $as_echo_n "checking for suffix of object files... " >&6; }
4022 if ${ac_cv_objext+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4027
4028 int
4029 main ()
4030 {
4031
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 rm -f conftest.o conftest.obj
4037 if { { ac_try="$ac_compile"
4038 case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_compile") 2>&5
4045 ac_status=$?
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }; then :
4048 for ac_file in conftest.o conftest.obj conftest.*; do
4049 test -f "$ac_file" || continue;
4050 case $ac_file in
4051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4053 break;;
4054 esac
4055 done
4056 else
4057 $as_echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4059
4060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4062 as_fn_error $? "cannot compute suffix of object files: cannot compile
4063 See \`config.log' for more details" "$LINENO" 5; }
4064 fi
4065 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4068 $as_echo "$ac_cv_objext" >&6; }
4069 OBJEXT=$ac_cv_objext
4070 ac_objext=$OBJEXT
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4072 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4073 if ${ac_cv_c_compiler_gnu+:} false; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4078
4079 int
4080 main ()
4081 {
4082 #ifndef __GNUC__
4083 choke me
4084 #endif
4085
4086 ;
4087 return 0;
4088 }
4089 _ACEOF
4090 if ac_fn_c_try_compile "$LINENO"; then :
4091 ac_compiler_gnu=yes
4092 else
4093 ac_compiler_gnu=no
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4097
4098 fi
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4100 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4101 if test $ac_compiler_gnu = yes; then
4102 GCC=yes
4103 else
4104 GCC=
4105 fi
4106 ac_test_CFLAGS=${CFLAGS+set}
4107 ac_save_CFLAGS=$CFLAGS
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4109 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4110 if ${ac_cv_prog_cc_g+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 ac_save_c_werror_flag=$ac_c_werror_flag
4114 ac_c_werror_flag=yes
4115 ac_cv_prog_cc_g=no
4116 CFLAGS="-g"
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119
4120 int
4121 main ()
4122 {
4123
4124 ;
4125 return 0;
4126 }
4127 _ACEOF
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_g=yes
4130 else
4131 CFLAGS=""
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134
4135 int
4136 main ()
4137 {
4138
4139 ;
4140 return 0;
4141 }
4142 _ACEOF
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144
4145 else
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4147 CFLAGS="-g"
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150
4151 int
4152 main ()
4153 {
4154
4155 ;
4156 return 0;
4157 }
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160 ac_cv_prog_cc_g=yes
4161 fi
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 fi
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 fi
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 ac_c_werror_flag=$ac_save_c_werror_flag
4168 fi
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4170 $as_echo "$ac_cv_prog_cc_g" >&6; }
4171 if test "$ac_test_CFLAGS" = set; then
4172 CFLAGS=$ac_save_CFLAGS
4173 elif test $ac_cv_prog_cc_g = yes; then
4174 if test "$GCC" = yes; then
4175 CFLAGS="-g -O2"
4176 else
4177 CFLAGS="-g"
4178 fi
4179 else
4180 if test "$GCC" = yes; then
4181 CFLAGS="-O2"
4182 else
4183 CFLAGS=
4184 fi
4185 fi
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4187 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4188 if ${ac_cv_prog_cc_c89+:} false; then :
4189 $as_echo_n "(cached) " >&6
4190 else
4191 ac_cv_prog_cc_c89=no
4192 ac_save_CC=$CC
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195 #include <stdarg.h>
4196 #include <stdio.h>
4197 struct stat;
4198 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4199 struct buf { int x; };
4200 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4201 static char *e (p, i)
4202 char **p;
4203 int i;
4204 {
4205 return p[i];
4206 }
4207 static char *f (char * (*g) (char **, int), char **p, ...)
4208 {
4209 char *s;
4210 va_list v;
4211 va_start (v,p);
4212 s = g (p, va_arg (v,int));
4213 va_end (v);
4214 return s;
4215 }
4216
4217 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4218 function prototypes and stuff, but not '\xHH' hex character constants.
4219 These don't provoke an error unfortunately, instead are silently treated
4220 as 'x'. The following induces an error, until -std is added to get
4221 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4222 array size at least. It's necessary to write '\x00'==0 to get something
4223 that's true only with -std. */
4224 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4225
4226 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4227 inside strings and character constants. */
4228 #define FOO(x) 'x'
4229 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4230
4231 int test (int i, double x);
4232 struct s1 {int (*f) (int a);};
4233 struct s2 {int (*f) (double a);};
4234 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4235 int argc;
4236 char **argv;
4237 int
4238 main ()
4239 {
4240 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4241 ;
4242 return 0;
4243 }
4244 _ACEOF
4245 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4246 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4247 do
4248 CC="$ac_save_CC $ac_arg"
4249 if ac_fn_c_try_compile "$LINENO"; then :
4250 ac_cv_prog_cc_c89=$ac_arg
4251 fi
4252 rm -f core conftest.err conftest.$ac_objext
4253 test "x$ac_cv_prog_cc_c89" != "xno" && break
4254 done
4255 rm -f conftest.$ac_ext
4256 CC=$ac_save_CC
4257
4258 fi
4259 # AC_CACHE_VAL
4260 case "x$ac_cv_prog_cc_c89" in
4261 x)
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4263 $as_echo "none needed" >&6; } ;;
4264 xno)
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4266 $as_echo "unsupported" >&6; } ;;
4267 *)
4268 CC="$CC $ac_cv_prog_cc_c89"
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4270 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4271 esac
4272 if test "x$ac_cv_prog_cc_c89" != xno; then :
4273
4274 fi
4275
4276 ac_ext=c
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281
4282 ac_ext=c
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4288 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4289 if ${am_cv_prog_cc_c_o+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294
4295 int
4296 main ()
4297 {
4298
4299 ;
4300 return 0;
4301 }
4302 _ACEOF
4303 # Make sure it works both with $CC and with simple cc.
4304 # Following AC_PROG_CC_C_O, we do the test twice because some
4305 # compilers refuse to overwrite an existing .o file with -o,
4306 # though they will create one.
4307 am_cv_prog_cc_c_o=yes
4308 for am_i in 1 2; do
4309 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4310 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } \
4314 && test -f conftest2.$ac_objext; then
4315 : OK
4316 else
4317 am_cv_prog_cc_c_o=no
4318 break
4319 fi
4320 done
4321 rm -f core conftest*
4322 unset am_i
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4325 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4326 if test "$am_cv_prog_cc_c_o" != yes; then
4327 # Losing compiler, so override with the script.
4328 # FIXME: It is wrong to rewrite CC.
4329 # But if we don't then we get into trouble of one sort or another.
4330 # A longer-term fix would be to have automake use am__CC in this case,
4331 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4332 CC="$am_aux_dir/compile $CC"
4333 fi
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
4340
4341 depcc="$CC" am_compiler_list=
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4344 $as_echo_n "checking dependency style of $depcc... " >&6; }
4345 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4349 # We make a subdir and do the tests there. Otherwise we can end up
4350 # making bogus files that we don't know about and never remove. For
4351 # instance it was reported that on HP-UX the gcc test will end up
4352 # making a dummy file named 'D' -- because '-MD' means "put the output
4353 # in D".
4354 rm -rf conftest.dir
4355 mkdir conftest.dir
4356 # Copy depcomp to subdir because otherwise we won't find it if we're
4357 # using a relative directory.
4358 cp "$am_depcomp" conftest.dir
4359 cd conftest.dir
4360 # We will build objects and dependencies in a subdirectory because
4361 # it helps to detect inapplicable dependency modes. For instance
4362 # both Tru64's cc and ICC support -MD to output dependencies as a
4363 # side effect of compilation, but ICC will put the dependencies in
4364 # the current directory while Tru64 will put them in the object
4365 # directory.
4366 mkdir sub
4367
4368 am_cv_CC_dependencies_compiler_type=none
4369 if test "$am_compiler_list" = ""; then
4370 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4371 fi
4372 am__universal=false
4373 case " $depcc " in #(
4374 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4375 esac
4376
4377 for depmode in $am_compiler_list; do
4378 # Setup a source with many dependencies, because some compilers
4379 # like to wrap large dependency lists on column 80 (with \), and
4380 # we should not choose a depcomp mode which is confused by this.
4381 #
4382 # We need to recreate these files for each test, as the compiler may
4383 # overwrite some of them when testing with obscure command lines.
4384 # This happens at least with the AIX C compiler.
4385 : > sub/conftest.c
4386 for i in 1 2 3 4 5 6; do
4387 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4388 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4389 # Solaris 10 /bin/sh.
4390 echo '/* dummy */' > sub/conftst$i.h
4391 done
4392 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4393
4394 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4395 # mode. It turns out that the SunPro C++ compiler does not properly
4396 # handle '-M -o', and we need to detect this. Also, some Intel
4397 # versions had trouble with output in subdirs.
4398 am__obj=sub/conftest.${OBJEXT-o}
4399 am__minus_obj="-o $am__obj"
4400 case $depmode in
4401 gcc)
4402 # This depmode causes a compiler race in universal mode.
4403 test "$am__universal" = false || continue
4404 ;;
4405 nosideeffect)
4406 # After this tag, mechanisms are not by side-effect, so they'll
4407 # only be used when explicitly requested.
4408 if test "x$enable_dependency_tracking" = xyes; then
4409 continue
4410 else
4411 break
4412 fi
4413 ;;
4414 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4415 # This compiler won't grok '-c -o', but also, the minuso test has
4416 # not run yet. These depmodes are late enough in the game, and
4417 # so weak that their functioning should not be impacted.
4418 am__obj=conftest.${OBJEXT-o}
4419 am__minus_obj=
4420 ;;
4421 none) break ;;
4422 esac
4423 if depmode=$depmode \
4424 source=sub/conftest.c object=$am__obj \
4425 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4426 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4427 >/dev/null 2>conftest.err &&
4428 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4429 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4430 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4431 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4432 # icc doesn't choke on unknown options, it will just issue warnings
4433 # or remarks (even with -Werror). So we grep stderr for any message
4434 # that says an option was ignored or not supported.
4435 # When given -MP, icc 7.0 and 7.1 complain thusly:
4436 # icc: Command line warning: ignoring option '-M'; no argument required
4437 # The diagnosis changed in icc 8.0:
4438 # icc: Command line remark: option '-MP' not supported
4439 if (grep 'ignoring option' conftest.err ||
4440 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4441 am_cv_CC_dependencies_compiler_type=$depmode
4442 break
4443 fi
4444 fi
4445 done
4446
4447 cd ..
4448 rm -rf conftest.dir
4449 else
4450 am_cv_CC_dependencies_compiler_type=none
4451 fi
4452
4453 fi
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4455 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4456 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4457
4458 if
4459 test "x$enable_dependency_tracking" != xno \
4460 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4461 am__fastdepCC_TRUE=
4462 am__fastdepCC_FALSE='#'
4463 else
4464 am__fastdepCC_TRUE='#'
4465 am__fastdepCC_FALSE=
4466 fi
4467
4468
4469
4470 ac_ext=c
4471 ac_cpp='$CPP $CPPFLAGS'
4472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4476 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4477 # On Suns, sometimes $CPP names a directory.
4478 if test -n "$CPP" && test -d "$CPP"; then
4479 CPP=
4480 fi
4481 if test -z "$CPP"; then
4482 if ${ac_cv_prog_CPP+:} false; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 # Double quotes because CPP needs to be expanded
4486 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4487 do
4488 ac_preproc_ok=false
4489 for ac_c_preproc_warn_flag in '' yes
4490 do
4491 # Use a header file that comes with gcc, so configuring glibc
4492 # with a fresh cross-compiler works.
4493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4494 # <limits.h> exists even on freestanding compilers.
4495 # On the NeXT, cc -E runs the code through the compiler's parser,
4496 # not just through cpp. "Syntax error" is here to catch this case.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 #ifdef __STDC__
4500 # include <limits.h>
4501 #else
4502 # include <assert.h>
4503 #endif
4504 Syntax error
4505 _ACEOF
4506 if ac_fn_c_try_cpp "$LINENO"; then :
4507
4508 else
4509 # Broken: fails on valid input.
4510 continue
4511 fi
4512 rm -f conftest.err conftest.i conftest.$ac_ext
4513
4514 # OK, works on sane cases. Now check whether nonexistent headers
4515 # can be detected and how.
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518 #include <ac_nonexistent.h>
4519 _ACEOF
4520 if ac_fn_c_try_cpp "$LINENO"; then :
4521 # Broken: success on invalid input.
4522 continue
4523 else
4524 # Passes both tests.
4525 ac_preproc_ok=:
4526 break
4527 fi
4528 rm -f conftest.err conftest.i conftest.$ac_ext
4529
4530 done
4531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4532 rm -f conftest.i conftest.err conftest.$ac_ext
4533 if $ac_preproc_ok; then :
4534 break
4535 fi
4536
4537 done
4538 ac_cv_prog_CPP=$CPP
4539
4540 fi
4541 CPP=$ac_cv_prog_CPP
4542 else
4543 ac_cv_prog_CPP=$CPP
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4546 $as_echo "$CPP" >&6; }
4547 ac_preproc_ok=false
4548 for ac_c_preproc_warn_flag in '' yes
4549 do
4550 # Use a header file that comes with gcc, so configuring glibc
4551 # with a fresh cross-compiler works.
4552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4553 # <limits.h> exists even on freestanding compilers.
4554 # On the NeXT, cc -E runs the code through the compiler's parser,
4555 # not just through cpp. "Syntax error" is here to catch this case.
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 #ifdef __STDC__
4559 # include <limits.h>
4560 #else
4561 # include <assert.h>
4562 #endif
4563 Syntax error
4564 _ACEOF
4565 if ac_fn_c_try_cpp "$LINENO"; then :
4566
4567 else
4568 # Broken: fails on valid input.
4569 continue
4570 fi
4571 rm -f conftest.err conftest.i conftest.$ac_ext
4572
4573 # OK, works on sane cases. Now check whether nonexistent headers
4574 # can be detected and how.
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577 #include <ac_nonexistent.h>
4578 _ACEOF
4579 if ac_fn_c_try_cpp "$LINENO"; then :
4580 # Broken: success on invalid input.
4581 continue
4582 else
4583 # Passes both tests.
4584 ac_preproc_ok=:
4585 break
4586 fi
4587 rm -f conftest.err conftest.i conftest.$ac_ext
4588
4589 done
4590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4591 rm -f conftest.i conftest.err conftest.$ac_ext
4592 if $ac_preproc_ok; then :
4593
4594 else
4595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4597 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4598 See \`config.log' for more details" "$LINENO" 5; }
4599 fi
4600
4601 ac_ext=c
4602 ac_cpp='$CPP $CPPFLAGS'
4603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606
4607
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4609 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4610 if ${ac_cv_path_GREP+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 if test -z "$GREP"; then
4614 ac_path_GREP_found=false
4615 # Loop through the user's path and test for each of PROGNAME-LIST
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4618 do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_prog in grep ggrep; do
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4624 as_fn_executable_p "$ac_path_GREP" || continue
4625 # Check for GNU ac_path_GREP and select it if it is found.
4626 # Check for GNU $ac_path_GREP
4627 case `"$ac_path_GREP" --version 2>&1` in
4628 *GNU*)
4629 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4630 *)
4631 ac_count=0
4632 $as_echo_n 0123456789 >"conftest.in"
4633 while :
4634 do
4635 cat "conftest.in" "conftest.in" >"conftest.tmp"
4636 mv "conftest.tmp" "conftest.in"
4637 cp "conftest.in" "conftest.nl"
4638 $as_echo 'GREP' >> "conftest.nl"
4639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641 as_fn_arith $ac_count + 1 && ac_count=$as_val
4642 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4643 # Best one so far, save it but keep looking for a better one
4644 ac_cv_path_GREP="$ac_path_GREP"
4645 ac_path_GREP_max=$ac_count
4646 fi
4647 # 10*(2^10) chars as input seems more than enough
4648 test $ac_count -gt 10 && break
4649 done
4650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651 esac
4652
4653 $ac_path_GREP_found && break 3
4654 done
4655 done
4656 done
4657 IFS=$as_save_IFS
4658 if test -z "$ac_cv_path_GREP"; then
4659 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4660 fi
4661 else
4662 ac_cv_path_GREP=$GREP
4663 fi
4664
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4667 $as_echo "$ac_cv_path_GREP" >&6; }
4668 GREP="$ac_cv_path_GREP"
4669
4670
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4672 $as_echo_n "checking for egrep... " >&6; }
4673 if ${ac_cv_path_EGREP+:} false; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4677 then ac_cv_path_EGREP="$GREP -E"
4678 else
4679 if test -z "$EGREP"; then
4680 ac_path_EGREP_found=false
4681 # Loop through the user's path and test for each of PROGNAME-LIST
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4684 do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_prog in egrep; do
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4690 as_fn_executable_p "$ac_path_EGREP" || continue
4691 # Check for GNU ac_path_EGREP and select it if it is found.
4692 # Check for GNU $ac_path_EGREP
4693 case `"$ac_path_EGREP" --version 2>&1` in
4694 *GNU*)
4695 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4696 *)
4697 ac_count=0
4698 $as_echo_n 0123456789 >"conftest.in"
4699 while :
4700 do
4701 cat "conftest.in" "conftest.in" >"conftest.tmp"
4702 mv "conftest.tmp" "conftest.in"
4703 cp "conftest.in" "conftest.nl"
4704 $as_echo 'EGREP' >> "conftest.nl"
4705 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707 as_fn_arith $ac_count + 1 && ac_count=$as_val
4708 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4709 # Best one so far, save it but keep looking for a better one
4710 ac_cv_path_EGREP="$ac_path_EGREP"
4711 ac_path_EGREP_max=$ac_count
4712 fi
4713 # 10*(2^10) chars as input seems more than enough
4714 test $ac_count -gt 10 && break
4715 done
4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717 esac
4718
4719 $ac_path_EGREP_found && break 3
4720 done
4721 done
4722 done
4723 IFS=$as_save_IFS
4724 if test -z "$ac_cv_path_EGREP"; then
4725 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4726 fi
4727 else
4728 ac_cv_path_EGREP=$EGREP
4729 fi
4730
4731 fi
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4734 $as_echo "$ac_cv_path_EGREP" >&6; }
4735 EGREP="$ac_cv_path_EGREP"
4736
4737
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4739 $as_echo_n "checking for ANSI C header files... " >&6; }
4740 if ${ac_cv_header_stdc+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #include <stdlib.h>
4746 #include <stdarg.h>
4747 #include <string.h>
4748 #include <float.h>
4749
4750 int
4751 main ()
4752 {
4753
4754 ;
4755 return 0;
4756 }
4757 _ACEOF
4758 if ac_fn_c_try_compile "$LINENO"; then :
4759 ac_cv_header_stdc=yes
4760 else
4761 ac_cv_header_stdc=no
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764
4765 if test $ac_cv_header_stdc = yes; then
4766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4769 #include <string.h>
4770
4771 _ACEOF
4772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773 $EGREP "memchr" >/dev/null 2>&1; then :
4774
4775 else
4776 ac_cv_header_stdc=no
4777 fi
4778 rm -f conftest*
4779
4780 fi
4781
4782 if test $ac_cv_header_stdc = yes; then
4783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 #include <stdlib.h>
4787
4788 _ACEOF
4789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4790 $EGREP "free" >/dev/null 2>&1; then :
4791
4792 else
4793 ac_cv_header_stdc=no
4794 fi
4795 rm -f conftest*
4796
4797 fi
4798
4799 if test $ac_cv_header_stdc = yes; then
4800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4801 if test "$cross_compiling" = yes; then :
4802 :
4803 else
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4806 #include <ctype.h>
4807 #include <stdlib.h>
4808 #if ((' ' & 0x0FF) == 0x020)
4809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4811 #else
4812 # define ISLOWER(c) \
4813 (('a' <= (c) && (c) <= 'i') \
4814 || ('j' <= (c) && (c) <= 'r') \
4815 || ('s' <= (c) && (c) <= 'z'))
4816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4817 #endif
4818
4819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4820 int
4821 main ()
4822 {
4823 int i;
4824 for (i = 0; i < 256; i++)
4825 if (XOR (islower (i), ISLOWER (i))
4826 || toupper (i) != TOUPPER (i))
4827 return 2;
4828 return 0;
4829 }
4830 _ACEOF
4831 if ac_fn_c_try_run "$LINENO"; then :
4832
4833 else
4834 ac_cv_header_stdc=no
4835 fi
4836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4837 conftest.$ac_objext conftest.beam conftest.$ac_ext
4838 fi
4839
4840 fi
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4843 $as_echo "$ac_cv_header_stdc" >&6; }
4844 if test $ac_cv_header_stdc = yes; then
4845
4846 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4847
4848 fi
4849
4850 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4851 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4852 inttypes.h stdint.h unistd.h
4853 do :
4854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4855 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4856 "
4857 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4858 cat >>confdefs.h <<_ACEOF
4859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4860 _ACEOF
4861
4862 fi
4863
4864 done
4865
4866
4867
4868 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4869 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4870 MINIX=yes
4871 else
4872 MINIX=
4873 fi
4874
4875
4876 if test "$MINIX" = yes; then
4877
4878 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4879
4880
4881 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4882
4883
4884 $as_echo "#define _MINIX 1" >>confdefs.h
4885
4886 fi
4887
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4890 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4891 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4896
4897 # define __EXTENSIONS__ 1
4898 $ac_includes_default
4899 int
4900 main ()
4901 {
4902
4903 ;
4904 return 0;
4905 }
4906 _ACEOF
4907 if ac_fn_c_try_compile "$LINENO"; then :
4908 ac_cv_safe_to_define___extensions__=yes
4909 else
4910 ac_cv_safe_to_define___extensions__=no
4911 fi
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4915 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4916 test $ac_cv_safe_to_define___extensions__ = yes &&
4917 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4918
4919 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4920
4921 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4922
4923 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4924
4925 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4926
4927
4928
4929
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4931 $as_echo_n "checking whether ln -s works... " >&6; }
4932 LN_S=$as_ln_s
4933 if test "$LN_S" = "ln -s"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4935 $as_echo "yes" >&6; }
4936 else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4938 $as_echo "no, using $LN_S" >&6; }
4939 fi
4940
4941 ac_ext=c
4942 ac_cpp='$CPP $CPPFLAGS'
4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946 if test -n "$ac_tool_prefix"; then
4947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4948 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_CC+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$CC"; then
4955 ac_cv_prog_CC="$CC" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4967 fi
4968 done
4969 done
4970 IFS=$as_save_IFS
4971
4972 fi
4973 fi
4974 CC=$ac_cv_prog_CC
4975 if test -n "$CC"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4977 $as_echo "$CC" >&6; }
4978 else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4981 fi
4982
4983
4984 fi
4985 if test -z "$ac_cv_prog_CC"; then
4986 ac_ct_CC=$CC
4987 # Extract the first word of "gcc", so it can be a program name with args.
4988 set dummy gcc; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if test -n "$ac_ct_CC"; then
4995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4996 else
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
4999 do
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004 ac_cv_prog_ac_ct_CC="gcc"
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5007 fi
5008 done
5009 done
5010 IFS=$as_save_IFS
5011
5012 fi
5013 fi
5014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5015 if test -n "$ac_ct_CC"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5017 $as_echo "$ac_ct_CC" >&6; }
5018 else
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5021 fi
5022
5023 if test "x$ac_ct_CC" = x; then
5024 CC=""
5025 else
5026 case $cross_compiling:$ac_tool_warned in
5027 yes:)
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5030 ac_tool_warned=yes ;;
5031 esac
5032 CC=$ac_ct_CC
5033 fi
5034 else
5035 CC="$ac_cv_prog_CC"
5036 fi
5037
5038 if test -z "$CC"; then
5039 if test -n "$ac_tool_prefix"; then
5040 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5041 set dummy ${ac_tool_prefix}cc; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_CC+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$CC"; then
5048 ac_cv_prog_CC="$CC" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_CC="${ac_tool_prefix}cc"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061 done
5062 done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 CC=$ac_cv_prog_CC
5068 if test -n "$CC"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5070 $as_echo "$CC" >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076
5077 fi
5078 fi
5079 if test -z "$CC"; then
5080 # Extract the first word of "cc", so it can be a program name with args.
5081 set dummy cc; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_CC+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$CC"; then
5088 ac_cv_prog_CC="$CC" # Let the user override the test.
5089 else
5090 ac_prog_rejected=no
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5099 ac_prog_rejected=yes
5100 continue
5101 fi
5102 ac_cv_prog_CC="cc"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5105 fi
5106 done
5107 done
5108 IFS=$as_save_IFS
5109
5110 if test $ac_prog_rejected = yes; then
5111 # We found a bogon in the path, so make sure we never use it.
5112 set dummy $ac_cv_prog_CC
5113 shift
5114 if test $# != 0; then
5115 # We chose a different compiler from the bogus one.
5116 # However, it has the same basename, so the bogon will be chosen
5117 # first if we set CC to just the basename; use the full file name.
5118 shift
5119 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5120 fi
5121 fi
5122 fi
5123 fi
5124 CC=$ac_cv_prog_CC
5125 if test -n "$CC"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5127 $as_echo "$CC" >&6; }
5128 else
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5131 fi
5132
5133
5134 fi
5135 if test -z "$CC"; then
5136 if test -n "$ac_tool_prefix"; then
5137 for ac_prog in cl.exe
5138 do
5139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_CC+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 if test -n "$CC"; then
5147 ac_cv_prog_CC="$CC" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5159 fi
5160 done
5161 done
5162 IFS=$as_save_IFS
5163
5164 fi
5165 fi
5166 CC=$ac_cv_prog_CC
5167 if test -n "$CC"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5169 $as_echo "$CC" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5173 fi
5174
5175
5176 test -n "$CC" && break
5177 done
5178 fi
5179 if test -z "$CC"; then
5180 ac_ct_CC=$CC
5181 for ac_prog in cl.exe
5182 do
5183 # Extract the first word of "$ac_prog", so it can be a program name with args.
5184 set dummy $ac_prog; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$ac_ct_CC"; then
5191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ac_ct_CC="$ac_prog"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5203 fi
5204 done
5205 done
5206 IFS=$as_save_IFS
5207
5208 fi
5209 fi
5210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5211 if test -n "$ac_ct_CC"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5213 $as_echo "$ac_ct_CC" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5217 fi
5218
5219
5220 test -n "$ac_ct_CC" && break
5221 done
5222
5223 if test "x$ac_ct_CC" = x; then
5224 CC=""
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227 yes:)
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230 ac_tool_warned=yes ;;
5231 esac
5232 CC=$ac_ct_CC
5233 fi
5234 fi
5235
5236 fi
5237
5238
5239 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5241 as_fn_error $? "no acceptable C compiler found in \$PATH
5242 See \`config.log' for more details" "$LINENO" 5; }
5243
5244 # Provide some information about the compiler.
5245 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5246 set X $ac_compile
5247 ac_compiler=$2
5248 for ac_option in --version -v -V -qversion; do
5249 { { ac_try="$ac_compiler $ac_option >&5"
5250 case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253 esac
5254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5255 $as_echo "$ac_try_echo"; } >&5
5256 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5257 ac_status=$?
5258 if test -s conftest.err; then
5259 sed '10a\
5260 ... rest of stderr output deleted ...
5261 10q' conftest.err >conftest.er1
5262 cat conftest.er1 >&5
5263 fi
5264 rm -f conftest.er1 conftest.err
5265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5266 test $ac_status = 0; }
5267 done
5268
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5270 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5271 if ${ac_cv_c_compiler_gnu+:} false; then :
5272 $as_echo_n "(cached) " >&6
5273 else
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276
5277 int
5278 main ()
5279 {
5280 #ifndef __GNUC__
5281 choke me
5282 #endif
5283
5284 ;
5285 return 0;
5286 }
5287 _ACEOF
5288 if ac_fn_c_try_compile "$LINENO"; then :
5289 ac_compiler_gnu=yes
5290 else
5291 ac_compiler_gnu=no
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5295
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5298 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5299 if test $ac_compiler_gnu = yes; then
5300 GCC=yes
5301 else
5302 GCC=
5303 fi
5304 ac_test_CFLAGS=${CFLAGS+set}
5305 ac_save_CFLAGS=$CFLAGS
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5307 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5308 if ${ac_cv_prog_cc_g+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 ac_save_c_werror_flag=$ac_c_werror_flag
5312 ac_c_werror_flag=yes
5313 ac_cv_prog_cc_g=no
5314 CFLAGS="-g"
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317
5318 int
5319 main ()
5320 {
5321
5322 ;
5323 return 0;
5324 }
5325 _ACEOF
5326 if ac_fn_c_try_compile "$LINENO"; then :
5327 ac_cv_prog_cc_g=yes
5328 else
5329 CFLAGS=""
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332
5333 int
5334 main ()
5335 {
5336
5337 ;
5338 return 0;
5339 }
5340 _ACEOF
5341 if ac_fn_c_try_compile "$LINENO"; then :
5342
5343 else
5344 ac_c_werror_flag=$ac_save_c_werror_flag
5345 CFLAGS="-g"
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348
5349 int
5350 main ()
5351 {
5352
5353 ;
5354 return 0;
5355 }
5356 _ACEOF
5357 if ac_fn_c_try_compile "$LINENO"; then :
5358 ac_cv_prog_cc_g=yes
5359 fi
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 fi
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 fi
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 ac_c_werror_flag=$ac_save_c_werror_flag
5366 fi
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5368 $as_echo "$ac_cv_prog_cc_g" >&6; }
5369 if test "$ac_test_CFLAGS" = set; then
5370 CFLAGS=$ac_save_CFLAGS
5371 elif test $ac_cv_prog_cc_g = yes; then
5372 if test "$GCC" = yes; then
5373 CFLAGS="-g -O2"
5374 else
5375 CFLAGS="-g"
5376 fi
5377 else
5378 if test "$GCC" = yes; then
5379 CFLAGS="-O2"
5380 else
5381 CFLAGS=
5382 fi
5383 fi
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5385 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5386 if ${ac_cv_prog_cc_c89+:} false; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 ac_cv_prog_cc_c89=no
5390 ac_save_CC=$CC
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 #include <stdarg.h>
5394 #include <stdio.h>
5395 struct stat;
5396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5397 struct buf { int x; };
5398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5399 static char *e (p, i)
5400 char **p;
5401 int i;
5402 {
5403 return p[i];
5404 }
5405 static char *f (char * (*g) (char **, int), char **p, ...)
5406 {
5407 char *s;
5408 va_list v;
5409 va_start (v,p);
5410 s = g (p, va_arg (v,int));
5411 va_end (v);
5412 return s;
5413 }
5414
5415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5416 function prototypes and stuff, but not '\xHH' hex character constants.
5417 These don't provoke an error unfortunately, instead are silently treated
5418 as 'x'. The following induces an error, until -std is added to get
5419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5420 array size at least. It's necessary to write '\x00'==0 to get something
5421 that's true only with -std. */
5422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5423
5424 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5425 inside strings and character constants. */
5426 #define FOO(x) 'x'
5427 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5428
5429 int test (int i, double x);
5430 struct s1 {int (*f) (int a);};
5431 struct s2 {int (*f) (double a);};
5432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5433 int argc;
5434 char **argv;
5435 int
5436 main ()
5437 {
5438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5444 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5445 do
5446 CC="$ac_save_CC $ac_arg"
5447 if ac_fn_c_try_compile "$LINENO"; then :
5448 ac_cv_prog_cc_c89=$ac_arg
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext
5451 test "x$ac_cv_prog_cc_c89" != "xno" && break
5452 done
5453 rm -f conftest.$ac_ext
5454 CC=$ac_save_CC
5455
5456 fi
5457 # AC_CACHE_VAL
5458 case "x$ac_cv_prog_cc_c89" in
5459 x)
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5461 $as_echo "none needed" >&6; } ;;
5462 xno)
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5464 $as_echo "unsupported" >&6; } ;;
5465 *)
5466 CC="$CC $ac_cv_prog_cc_c89"
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5468 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5469 esac
5470 if test "x$ac_cv_prog_cc_c89" != xno; then :
5471
5472 fi
5473
5474 ac_ext=c
5475 ac_cpp='$CPP $CPPFLAGS'
5476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5479
5480 ac_ext=c
5481 ac_cpp='$CPP $CPPFLAGS'
5482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5486 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5487 if ${am_cv_prog_cc_c_o+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5492
5493 int
5494 main ()
5495 {
5496
5497 ;
5498 return 0;
5499 }
5500 _ACEOF
5501 # Make sure it works both with $CC and with simple cc.
5502 # Following AC_PROG_CC_C_O, we do the test twice because some
5503 # compilers refuse to overwrite an existing .o file with -o,
5504 # though they will create one.
5505 am_cv_prog_cc_c_o=yes
5506 for am_i in 1 2; do
5507 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5508 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } \
5512 && test -f conftest2.$ac_objext; then
5513 : OK
5514 else
5515 am_cv_prog_cc_c_o=no
5516 break
5517 fi
5518 done
5519 rm -f core conftest*
5520 unset am_i
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5523 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5524 if test "$am_cv_prog_cc_c_o" != yes; then
5525 # Losing compiler, so override with the script.
5526 # FIXME: It is wrong to rewrite CC.
5527 # But if we don't then we get into trouble of one sort or another.
5528 # A longer-term fix would be to have automake use am__CC in this case,
5529 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5530 CC="$am_aux_dir/compile $CC"
5531 fi
5532 ac_ext=c
5533 ac_cpp='$CPP $CPPFLAGS'
5534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537
5538
5539 depcc="$CC" am_compiler_list=
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5542 $as_echo_n "checking dependency style of $depcc... " >&6; }
5543 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5547 # We make a subdir and do the tests there. Otherwise we can end up
5548 # making bogus files that we don't know about and never remove. For
5549 # instance it was reported that on HP-UX the gcc test will end up
5550 # making a dummy file named 'D' -- because '-MD' means "put the output
5551 # in D".
5552 rm -rf conftest.dir
5553 mkdir conftest.dir
5554 # Copy depcomp to subdir because otherwise we won't find it if we're
5555 # using a relative directory.
5556 cp "$am_depcomp" conftest.dir
5557 cd conftest.dir
5558 # We will build objects and dependencies in a subdirectory because
5559 # it helps to detect inapplicable dependency modes. For instance
5560 # both Tru64's cc and ICC support -MD to output dependencies as a
5561 # side effect of compilation, but ICC will put the dependencies in
5562 # the current directory while Tru64 will put them in the object
5563 # directory.
5564 mkdir sub
5565
5566 am_cv_CC_dependencies_compiler_type=none
5567 if test "$am_compiler_list" = ""; then
5568 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5569 fi
5570 am__universal=false
5571 case " $depcc " in #(
5572 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5573 esac
5574
5575 for depmode in $am_compiler_list; do
5576 # Setup a source with many dependencies, because some compilers
5577 # like to wrap large dependency lists on column 80 (with \), and
5578 # we should not choose a depcomp mode which is confused by this.
5579 #
5580 # We need to recreate these files for each test, as the compiler may
5581 # overwrite some of them when testing with obscure command lines.
5582 # This happens at least with the AIX C compiler.
5583 : > sub/conftest.c
5584 for i in 1 2 3 4 5 6; do
5585 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5586 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5587 # Solaris 10 /bin/sh.
5588 echo '/* dummy */' > sub/conftst$i.h
5589 done
5590 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5591
5592 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5593 # mode. It turns out that the SunPro C++ compiler does not properly
5594 # handle '-M -o', and we need to detect this. Also, some Intel
5595 # versions had trouble with output in subdirs.
5596 am__obj=sub/conftest.${OBJEXT-o}
5597 am__minus_obj="-o $am__obj"
5598 case $depmode in
5599 gcc)
5600 # This depmode causes a compiler race in universal mode.
5601 test "$am__universal" = false || continue
5602 ;;
5603 nosideeffect)
5604 # After this tag, mechanisms are not by side-effect, so they'll
5605 # only be used when explicitly requested.
5606 if test "x$enable_dependency_tracking" = xyes; then
5607 continue
5608 else
5609 break
5610 fi
5611 ;;
5612 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5613 # This compiler won't grok '-c -o', but also, the minuso test has
5614 # not run yet. These depmodes are late enough in the game, and
5615 # so weak that their functioning should not be impacted.
5616 am__obj=conftest.${OBJEXT-o}
5617 am__minus_obj=
5618 ;;
5619 none) break ;;
5620 esac
5621 if depmode=$depmode \
5622 source=sub/conftest.c object=$am__obj \
5623 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5624 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5625 >/dev/null 2>conftest.err &&
5626 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5627 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5628 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5629 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5630 # icc doesn't choke on unknown options, it will just issue warnings
5631 # or remarks (even with -Werror). So we grep stderr for any message
5632 # that says an option was ignored or not supported.
5633 # When given -MP, icc 7.0 and 7.1 complain thusly:
5634 # icc: Command line warning: ignoring option '-M'; no argument required
5635 # The diagnosis changed in icc 8.0:
5636 # icc: Command line remark: option '-MP' not supported
5637 if (grep 'ignoring option' conftest.err ||
5638 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5639 am_cv_CC_dependencies_compiler_type=$depmode
5640 break
5641 fi
5642 fi
5643 done
5644
5645 cd ..
5646 rm -rf conftest.dir
5647 else
5648 am_cv_CC_dependencies_compiler_type=none
5649 fi
5650
5651 fi
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5653 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5654 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5655
5656 if
5657 test "x$enable_dependency_tracking" != xno \
5658 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5659 am__fastdepCC_TRUE=
5660 am__fastdepCC_FALSE='#'
5661 else
5662 am__fastdepCC_TRUE='#'
5663 am__fastdepCC_FALSE=
5664 fi
5665
5666
5667 ac_ext=cpp
5668 ac_cpp='$CXXCPP $CPPFLAGS'
5669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5672 if test -z "$CXX"; then
5673 if test -n "$CCC"; then
5674 CXX=$CCC
5675 else
5676 if test -n "$ac_tool_prefix"; then
5677 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5678 do
5679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_CXX+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 if test -n "$CXX"; then
5687 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700 done
5701 done
5702 IFS=$as_save_IFS
5703
5704 fi
5705 fi
5706 CXX=$ac_cv_prog_CXX
5707 if test -n "$CXX"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5709 $as_echo "$CXX" >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 fi
5714
5715
5716 test -n "$CXX" && break
5717 done
5718 fi
5719 if test -z "$CXX"; then
5720 ac_ct_CXX=$CXX
5721 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5722 do
5723 # Extract the first word of "$ac_prog", so it can be a program name with args.
5724 set dummy $ac_prog; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if test -n "$ac_ct_CXX"; then
5731 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_ac_ct_CXX="$ac_prog"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5743 fi
5744 done
5745 done
5746 IFS=$as_save_IFS
5747
5748 fi
5749 fi
5750 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5751 if test -n "$ac_ct_CXX"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5753 $as_echo "$ac_ct_CXX" >&6; }
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5757 fi
5758
5759
5760 test -n "$ac_ct_CXX" && break
5761 done
5762
5763 if test "x$ac_ct_CXX" = x; then
5764 CXX="g++"
5765 else
5766 case $cross_compiling:$ac_tool_warned in
5767 yes:)
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770 ac_tool_warned=yes ;;
5771 esac
5772 CXX=$ac_ct_CXX
5773 fi
5774 fi
5775
5776 fi
5777 fi
5778 # Provide some information about the compiler.
5779 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5780 set X $ac_compile
5781 ac_compiler=$2
5782 for ac_option in --version -v -V -qversion; do
5783 { { ac_try="$ac_compiler $ac_option >&5"
5784 case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787 esac
5788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5789 $as_echo "$ac_try_echo"; } >&5
5790 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5791 ac_status=$?
5792 if test -s conftest.err; then
5793 sed '10a\
5794 ... rest of stderr output deleted ...
5795 10q' conftest.err >conftest.er1
5796 cat conftest.er1 >&5
5797 fi
5798 rm -f conftest.er1 conftest.err
5799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5800 test $ac_status = 0; }
5801 done
5802
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5804 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5805 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810
5811 int
5812 main ()
5813 {
5814 #ifndef __GNUC__
5815 choke me
5816 #endif
5817
5818 ;
5819 return 0;
5820 }
5821 _ACEOF
5822 if ac_fn_cxx_try_compile "$LINENO"; then :
5823 ac_compiler_gnu=yes
5824 else
5825 ac_compiler_gnu=no
5826 fi
5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5829
5830 fi
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5832 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5833 if test $ac_compiler_gnu = yes; then
5834 GXX=yes
5835 else
5836 GXX=
5837 fi
5838 ac_test_CXXFLAGS=${CXXFLAGS+set}
5839 ac_save_CXXFLAGS=$CXXFLAGS
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5841 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5842 if ${ac_cv_prog_cxx_g+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5846 ac_cxx_werror_flag=yes
5847 ac_cv_prog_cxx_g=no
5848 CXXFLAGS="-g"
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851
5852 int
5853 main ()
5854 {
5855
5856 ;
5857 return 0;
5858 }
5859 _ACEOF
5860 if ac_fn_cxx_try_compile "$LINENO"; then :
5861 ac_cv_prog_cxx_g=yes
5862 else
5863 CXXFLAGS=""
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866
5867 int
5868 main ()
5869 {
5870
5871 ;
5872 return 0;
5873 }
5874 _ACEOF
5875 if ac_fn_cxx_try_compile "$LINENO"; then :
5876
5877 else
5878 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5879 CXXFLAGS="-g"
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5882
5883 int
5884 main ()
5885 {
5886
5887 ;
5888 return 0;
5889 }
5890 _ACEOF
5891 if ac_fn_cxx_try_compile "$LINENO"; then :
5892 ac_cv_prog_cxx_g=yes
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 fi
5896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5902 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5903 if test "$ac_test_CXXFLAGS" = set; then
5904 CXXFLAGS=$ac_save_CXXFLAGS
5905 elif test $ac_cv_prog_cxx_g = yes; then
5906 if test "$GXX" = yes; then
5907 CXXFLAGS="-g -O2"
5908 else
5909 CXXFLAGS="-g"
5910 fi
5911 else
5912 if test "$GXX" = yes; then
5913 CXXFLAGS="-O2"
5914 else
5915 CXXFLAGS=
5916 fi
5917 fi
5918 ac_ext=c
5919 ac_cpp='$CPP $CPPFLAGS'
5920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5923
5924 depcc="$CXX" am_compiler_list=
5925
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5927 $as_echo_n "checking dependency style of $depcc... " >&6; }
5928 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5932 # We make a subdir and do the tests there. Otherwise we can end up
5933 # making bogus files that we don't know about and never remove. For
5934 # instance it was reported that on HP-UX the gcc test will end up
5935 # making a dummy file named 'D' -- because '-MD' means "put the output
5936 # in D".
5937 rm -rf conftest.dir
5938 mkdir conftest.dir
5939 # Copy depcomp to subdir because otherwise we won't find it if we're
5940 # using a relative directory.
5941 cp "$am_depcomp" conftest.dir
5942 cd conftest.dir
5943 # We will build objects and dependencies in a subdirectory because
5944 # it helps to detect inapplicable dependency modes. For instance
5945 # both Tru64's cc and ICC support -MD to output dependencies as a
5946 # side effect of compilation, but ICC will put the dependencies in
5947 # the current directory while Tru64 will put them in the object
5948 # directory.
5949 mkdir sub
5950
5951 am_cv_CXX_dependencies_compiler_type=none
5952 if test "$am_compiler_list" = ""; then
5953 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5954 fi
5955 am__universal=false
5956 case " $depcc " in #(
5957 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5958 esac
5959
5960 for depmode in $am_compiler_list; do
5961 # Setup a source with many dependencies, because some compilers
5962 # like to wrap large dependency lists on column 80 (with \), and
5963 # we should not choose a depcomp mode which is confused by this.
5964 #
5965 # We need to recreate these files for each test, as the compiler may
5966 # overwrite some of them when testing with obscure command lines.
5967 # This happens at least with the AIX C compiler.
5968 : > sub/conftest.c
5969 for i in 1 2 3 4 5 6; do
5970 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5971 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5972 # Solaris 10 /bin/sh.
5973 echo '/* dummy */' > sub/conftst$i.h
5974 done
5975 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5976
5977 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5978 # mode. It turns out that the SunPro C++ compiler does not properly
5979 # handle '-M -o', and we need to detect this. Also, some Intel
5980 # versions had trouble with output in subdirs.
5981 am__obj=sub/conftest.${OBJEXT-o}
5982 am__minus_obj="-o $am__obj"
5983 case $depmode in
5984 gcc)
5985 # This depmode causes a compiler race in universal mode.
5986 test "$am__universal" = false || continue
5987 ;;
5988 nosideeffect)
5989 # After this tag, mechanisms are not by side-effect, so they'll
5990 # only be used when explicitly requested.
5991 if test "x$enable_dependency_tracking" = xyes; then
5992 continue
5993 else
5994 break
5995 fi
5996 ;;
5997 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5998 # This compiler won't grok '-c -o', but also, the minuso test has
5999 # not run yet. These depmodes are late enough in the game, and
6000 # so weak that their functioning should not be impacted.
6001 am__obj=conftest.${OBJEXT-o}
6002 am__minus_obj=
6003 ;;
6004 none) break ;;
6005 esac
6006 if depmode=$depmode \
6007 source=sub/conftest.c object=$am__obj \
6008 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6009 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6010 >/dev/null 2>conftest.err &&
6011 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6012 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6013 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6014 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6015 # icc doesn't choke on unknown options, it will just issue warnings
6016 # or remarks (even with -Werror). So we grep stderr for any message
6017 # that says an option was ignored or not supported.
6018 # When given -MP, icc 7.0 and 7.1 complain thusly:
6019 # icc: Command line warning: ignoring option '-M'; no argument required
6020 # The diagnosis changed in icc 8.0:
6021 # icc: Command line remark: option '-MP' not supported
6022 if (grep 'ignoring option' conftest.err ||
6023 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6024 am_cv_CXX_dependencies_compiler_type=$depmode
6025 break
6026 fi
6027 fi
6028 done
6029
6030 cd ..
6031 rm -rf conftest.dir
6032 else
6033 am_cv_CXX_dependencies_compiler_type=none
6034 fi
6035
6036 fi
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6038 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6039 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6040
6041 if
6042 test "x$enable_dependency_tracking" != xno \
6043 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6044 am__fastdepCXX_TRUE=
6045 am__fastdepCXX_FALSE='#'
6046 else
6047 am__fastdepCXX_TRUE='#'
6048 am__fastdepCXX_FALSE=
6049 fi
6050
6051
6052 ac_ext=c
6053 ac_cpp='$CPP $CPPFLAGS'
6054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6058 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6059 # On Suns, sometimes $CPP names a directory.
6060 if test -n "$CPP" && test -d "$CPP"; then
6061 CPP=
6062 fi
6063 if test -z "$CPP"; then
6064 if ${ac_cv_prog_CPP+:} false; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 # Double quotes because CPP needs to be expanded
6068 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6069 do
6070 ac_preproc_ok=false
6071 for ac_c_preproc_warn_flag in '' yes
6072 do
6073 # Use a header file that comes with gcc, so configuring glibc
6074 # with a fresh cross-compiler works.
6075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6076 # <limits.h> exists even on freestanding compilers.
6077 # On the NeXT, cc -E runs the code through the compiler's parser,
6078 # not just through cpp. "Syntax error" is here to catch this case.
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6081 #ifdef __STDC__
6082 # include <limits.h>
6083 #else
6084 # include <assert.h>
6085 #endif
6086 Syntax error
6087 _ACEOF
6088 if ac_fn_c_try_cpp "$LINENO"; then :
6089
6090 else
6091 # Broken: fails on valid input.
6092 continue
6093 fi
6094 rm -f conftest.err conftest.i conftest.$ac_ext
6095
6096 # OK, works on sane cases. Now check whether nonexistent headers
6097 # can be detected and how.
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 #include <ac_nonexistent.h>
6101 _ACEOF
6102 if ac_fn_c_try_cpp "$LINENO"; then :
6103 # Broken: success on invalid input.
6104 continue
6105 else
6106 # Passes both tests.
6107 ac_preproc_ok=:
6108 break
6109 fi
6110 rm -f conftest.err conftest.i conftest.$ac_ext
6111
6112 done
6113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6114 rm -f conftest.i conftest.err conftest.$ac_ext
6115 if $ac_preproc_ok; then :
6116 break
6117 fi
6118
6119 done
6120 ac_cv_prog_CPP=$CPP
6121
6122 fi
6123 CPP=$ac_cv_prog_CPP
6124 else
6125 ac_cv_prog_CPP=$CPP
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6128 $as_echo "$CPP" >&6; }
6129 ac_preproc_ok=false
6130 for ac_c_preproc_warn_flag in '' yes
6131 do
6132 # Use a header file that comes with gcc, so configuring glibc
6133 # with a fresh cross-compiler works.
6134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6135 # <limits.h> exists even on freestanding compilers.
6136 # On the NeXT, cc -E runs the code through the compiler's parser,
6137 # not just through cpp. "Syntax error" is here to catch this case.
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 #ifdef __STDC__
6141 # include <limits.h>
6142 #else
6143 # include <assert.h>
6144 #endif
6145 Syntax error
6146 _ACEOF
6147 if ac_fn_c_try_cpp "$LINENO"; then :
6148
6149 else
6150 # Broken: fails on valid input.
6151 continue
6152 fi
6153 rm -f conftest.err conftest.i conftest.$ac_ext
6154
6155 # OK, works on sane cases. Now check whether nonexistent headers
6156 # can be detected and how.
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159 #include <ac_nonexistent.h>
6160 _ACEOF
6161 if ac_fn_c_try_cpp "$LINENO"; then :
6162 # Broken: success on invalid input.
6163 continue
6164 else
6165 # Passes both tests.
6166 ac_preproc_ok=:
6167 break
6168 fi
6169 rm -f conftest.err conftest.i conftest.$ac_ext
6170
6171 done
6172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6173 rm -f conftest.i conftest.err conftest.$ac_ext
6174 if $ac_preproc_ok; then :
6175
6176 else
6177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6179 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6180 See \`config.log' for more details" "$LINENO" 5; }
6181 fi
6182
6183 ac_ext=c
6184 ac_cpp='$CPP $CPPFLAGS'
6185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6188
6189 ac_ext=c
6190 ac_cpp='$CPP $CPPFLAGS'
6191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_CC+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$CC"; then
6203 ac_cv_prog_CC="$CC" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 CC=$ac_cv_prog_CC
6223 if test -n "$CC"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6225 $as_echo "$CC" >&6; }
6226 else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230
6231
6232 fi
6233 if test -z "$ac_cv_prog_CC"; then
6234 ac_ct_CC=$CC
6235 # Extract the first word of "gcc", so it can be a program name with args.
6236 set dummy gcc; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$ac_ct_CC"; then
6243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_ac_ct_CC="gcc"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256 done
6257 done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6263 if test -n "$ac_ct_CC"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6265 $as_echo "$ac_ct_CC" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270
6271 if test "x$ac_ct_CC" = x; then
6272 CC=""
6273 else
6274 case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6279 esac
6280 CC=$ac_ct_CC
6281 fi
6282 else
6283 CC="$ac_cv_prog_CC"
6284 fi
6285
6286 if test -z "$CC"; then
6287 if test -n "$ac_tool_prefix"; then
6288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6289 set dummy ${ac_tool_prefix}cc; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if ${ac_cv_prog_CC+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 if test -n "$CC"; then
6296 ac_cv_prog_CC="$CC" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305 ac_cv_prog_CC="${ac_tool_prefix}cc"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6308 fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 CC=$ac_cv_prog_CC
6316 if test -n "$CC"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6318 $as_echo "$CC" >&6; }
6319 else
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324
6325 fi
6326 fi
6327 if test -z "$CC"; then
6328 # Extract the first word of "cc", so it can be a program name with args.
6329 set dummy cc; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if ${ac_cv_prog_CC+:} false; then :
6333 $as_echo_n "(cached) " >&6
6334 else
6335 if test -n "$CC"; then
6336 ac_cv_prog_CC="$CC" # Let the user override the test.
6337 else
6338 ac_prog_rejected=no
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6347 ac_prog_rejected=yes
6348 continue
6349 fi
6350 ac_cv_prog_CC="cc"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354 done
6355 done
6356 IFS=$as_save_IFS
6357
6358 if test $ac_prog_rejected = yes; then
6359 # We found a bogon in the path, so make sure we never use it.
6360 set dummy $ac_cv_prog_CC
6361 shift
6362 if test $# != 0; then
6363 # We chose a different compiler from the bogus one.
6364 # However, it has the same basename, so the bogon will be chosen
6365 # first if we set CC to just the basename; use the full file name.
6366 shift
6367 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6368 fi
6369 fi
6370 fi
6371 fi
6372 CC=$ac_cv_prog_CC
6373 if test -n "$CC"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6375 $as_echo "$CC" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381
6382 fi
6383 if test -z "$CC"; then
6384 if test -n "$ac_tool_prefix"; then
6385 for ac_prog in cl.exe
6386 do
6387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if ${ac_cv_prog_CC+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 if test -n "$CC"; then
6395 ac_cv_prog_CC="$CC" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6407 fi
6408 done
6409 done
6410 IFS=$as_save_IFS
6411
6412 fi
6413 fi
6414 CC=$ac_cv_prog_CC
6415 if test -n "$CC"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6417 $as_echo "$CC" >&6; }
6418 else
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6421 fi
6422
6423
6424 test -n "$CC" && break
6425 done
6426 fi
6427 if test -z "$CC"; then
6428 ac_ct_CC=$CC
6429 for ac_prog in cl.exe
6430 do
6431 # Extract the first word of "$ac_prog", so it can be a program name with args.
6432 set dummy $ac_prog; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 if test -n "$ac_ct_CC"; then
6439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_ac_ct_CC="$ac_prog"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452 done
6453 done
6454 IFS=$as_save_IFS
6455
6456 fi
6457 fi
6458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6459 if test -n "$ac_ct_CC"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6461 $as_echo "$ac_ct_CC" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6465 fi
6466
6467
6468 test -n "$ac_ct_CC" && break
6469 done
6470
6471 if test "x$ac_ct_CC" = x; then
6472 CC=""
6473 else
6474 case $cross_compiling:$ac_tool_warned in
6475 yes:)
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6478 ac_tool_warned=yes ;;
6479 esac
6480 CC=$ac_ct_CC
6481 fi
6482 fi
6483
6484 fi
6485
6486
6487 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6489 as_fn_error $? "no acceptable C compiler found in \$PATH
6490 See \`config.log' for more details" "$LINENO" 5; }
6491
6492 # Provide some information about the compiler.
6493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6494 set X $ac_compile
6495 ac_compiler=$2
6496 for ac_option in --version -v -V -qversion; do
6497 { { ac_try="$ac_compiler $ac_option >&5"
6498 case "(($ac_try" in
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6501 esac
6502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6503 $as_echo "$ac_try_echo"; } >&5
6504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6505 ac_status=$?
6506 if test -s conftest.err; then
6507 sed '10a\
6508 ... rest of stderr output deleted ...
6509 10q' conftest.err >conftest.er1
6510 cat conftest.er1 >&5
6511 fi
6512 rm -f conftest.er1 conftest.err
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514 test $ac_status = 0; }
6515 done
6516
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6518 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6519 if ${ac_cv_c_compiler_gnu+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524
6525 int
6526 main ()
6527 {
6528 #ifndef __GNUC__
6529 choke me
6530 #endif
6531
6532 ;
6533 return 0;
6534 }
6535 _ACEOF
6536 if ac_fn_c_try_compile "$LINENO"; then :
6537 ac_compiler_gnu=yes
6538 else
6539 ac_compiler_gnu=no
6540 fi
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6543
6544 fi
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6546 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6547 if test $ac_compiler_gnu = yes; then
6548 GCC=yes
6549 else
6550 GCC=
6551 fi
6552 ac_test_CFLAGS=${CFLAGS+set}
6553 ac_save_CFLAGS=$CFLAGS
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6555 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6556 if ${ac_cv_prog_cc_g+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 ac_save_c_werror_flag=$ac_c_werror_flag
6560 ac_c_werror_flag=yes
6561 ac_cv_prog_cc_g=no
6562 CFLAGS="-g"
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565
6566 int
6567 main ()
6568 {
6569
6570 ;
6571 return 0;
6572 }
6573 _ACEOF
6574 if ac_fn_c_try_compile "$LINENO"; then :
6575 ac_cv_prog_cc_g=yes
6576 else
6577 CFLAGS=""
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580
6581 int
6582 main ()
6583 {
6584
6585 ;
6586 return 0;
6587 }
6588 _ACEOF
6589 if ac_fn_c_try_compile "$LINENO"; then :
6590
6591 else
6592 ac_c_werror_flag=$ac_save_c_werror_flag
6593 CFLAGS="-g"
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596
6597 int
6598 main ()
6599 {
6600
6601 ;
6602 return 0;
6603 }
6604 _ACEOF
6605 if ac_fn_c_try_compile "$LINENO"; then :
6606 ac_cv_prog_cc_g=yes
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 fi
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 fi
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 ac_c_werror_flag=$ac_save_c_werror_flag
6614 fi
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6616 $as_echo "$ac_cv_prog_cc_g" >&6; }
6617 if test "$ac_test_CFLAGS" = set; then
6618 CFLAGS=$ac_save_CFLAGS
6619 elif test $ac_cv_prog_cc_g = yes; then
6620 if test "$GCC" = yes; then
6621 CFLAGS="-g -O2"
6622 else
6623 CFLAGS="-g"
6624 fi
6625 else
6626 if test "$GCC" = yes; then
6627 CFLAGS="-O2"
6628 else
6629 CFLAGS=
6630 fi
6631 fi
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6633 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6634 if ${ac_cv_prog_cc_c89+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 ac_cv_prog_cc_c89=no
6638 ac_save_CC=$CC
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 #include <stdarg.h>
6642 #include <stdio.h>
6643 struct stat;
6644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6645 struct buf { int x; };
6646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6647 static char *e (p, i)
6648 char **p;
6649 int i;
6650 {
6651 return p[i];
6652 }
6653 static char *f (char * (*g) (char **, int), char **p, ...)
6654 {
6655 char *s;
6656 va_list v;
6657 va_start (v,p);
6658 s = g (p, va_arg (v,int));
6659 va_end (v);
6660 return s;
6661 }
6662
6663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6664 function prototypes and stuff, but not '\xHH' hex character constants.
6665 These don't provoke an error unfortunately, instead are silently treated
6666 as 'x'. The following induces an error, until -std is added to get
6667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6668 array size at least. It's necessary to write '\x00'==0 to get something
6669 that's true only with -std. */
6670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6671
6672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6673 inside strings and character constants. */
6674 #define FOO(x) 'x'
6675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6676
6677 int test (int i, double x);
6678 struct s1 {int (*f) (int a);};
6679 struct s2 {int (*f) (double a);};
6680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6681 int argc;
6682 char **argv;
6683 int
6684 main ()
6685 {
6686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6693 do
6694 CC="$ac_save_CC $ac_arg"
6695 if ac_fn_c_try_compile "$LINENO"; then :
6696 ac_cv_prog_cc_c89=$ac_arg
6697 fi
6698 rm -f core conftest.err conftest.$ac_objext
6699 test "x$ac_cv_prog_cc_c89" != "xno" && break
6700 done
6701 rm -f conftest.$ac_ext
6702 CC=$ac_save_CC
6703
6704 fi
6705 # AC_CACHE_VAL
6706 case "x$ac_cv_prog_cc_c89" in
6707 x)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6709 $as_echo "none needed" >&6; } ;;
6710 xno)
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6712 $as_echo "unsupported" >&6; } ;;
6713 *)
6714 CC="$CC $ac_cv_prog_cc_c89"
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6716 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6717 esac
6718 if test "x$ac_cv_prog_cc_c89" != xno; then :
6719
6720 fi
6721
6722 ac_ext=c
6723 ac_cpp='$CPP $CPPFLAGS'
6724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6727
6728 ac_ext=c
6729 ac_cpp='$CPP $CPPFLAGS'
6730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6734 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6735 if ${am_cv_prog_cc_c_o+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740
6741 int
6742 main ()
6743 {
6744
6745 ;
6746 return 0;
6747 }
6748 _ACEOF
6749 # Make sure it works both with $CC and with simple cc.
6750 # Following AC_PROG_CC_C_O, we do the test twice because some
6751 # compilers refuse to overwrite an existing .o file with -o,
6752 # though they will create one.
6753 am_cv_prog_cc_c_o=yes
6754 for am_i in 1 2; do
6755 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6756 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } \
6760 && test -f conftest2.$ac_objext; then
6761 : OK
6762 else
6763 am_cv_prog_cc_c_o=no
6764 break
6765 fi
6766 done
6767 rm -f core conftest*
6768 unset am_i
6769 fi
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6771 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6772 if test "$am_cv_prog_cc_c_o" != yes; then
6773 # Losing compiler, so override with the script.
6774 # FIXME: It is wrong to rewrite CC.
6775 # But if we don't then we get into trouble of one sort or another.
6776 # A longer-term fix would be to have automake use am__CC in this case,
6777 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6778 CC="$am_aux_dir/compile $CC"
6779 fi
6780 ac_ext=c
6781 ac_cpp='$CPP $CPPFLAGS'
6782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6785
6786
6787 depcc="$CC" am_compiler_list=
6788
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6790 $as_echo_n "checking dependency style of $depcc... " >&6; }
6791 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6795 # We make a subdir and do the tests there. Otherwise we can end up
6796 # making bogus files that we don't know about and never remove. For
6797 # instance it was reported that on HP-UX the gcc test will end up
6798 # making a dummy file named 'D' -- because '-MD' means "put the output
6799 # in D".
6800 rm -rf conftest.dir
6801 mkdir conftest.dir
6802 # Copy depcomp to subdir because otherwise we won't find it if we're
6803 # using a relative directory.
6804 cp "$am_depcomp" conftest.dir
6805 cd conftest.dir
6806 # We will build objects and dependencies in a subdirectory because
6807 # it helps to detect inapplicable dependency modes. For instance
6808 # both Tru64's cc and ICC support -MD to output dependencies as a
6809 # side effect of compilation, but ICC will put the dependencies in
6810 # the current directory while Tru64 will put them in the object
6811 # directory.
6812 mkdir sub
6813
6814 am_cv_CC_dependencies_compiler_type=none
6815 if test "$am_compiler_list" = ""; then
6816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6817 fi
6818 am__universal=false
6819 case " $depcc " in #(
6820 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6821 esac
6822
6823 for depmode in $am_compiler_list; do
6824 # Setup a source with many dependencies, because some compilers
6825 # like to wrap large dependency lists on column 80 (with \), and
6826 # we should not choose a depcomp mode which is confused by this.
6827 #
6828 # We need to recreate these files for each test, as the compiler may
6829 # overwrite some of them when testing with obscure command lines.
6830 # This happens at least with the AIX C compiler.
6831 : > sub/conftest.c
6832 for i in 1 2 3 4 5 6; do
6833 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6834 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6835 # Solaris 10 /bin/sh.
6836 echo '/* dummy */' > sub/conftst$i.h
6837 done
6838 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6839
6840 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6841 # mode. It turns out that the SunPro C++ compiler does not properly
6842 # handle '-M -o', and we need to detect this. Also, some Intel
6843 # versions had trouble with output in subdirs.
6844 am__obj=sub/conftest.${OBJEXT-o}
6845 am__minus_obj="-o $am__obj"
6846 case $depmode in
6847 gcc)
6848 # This depmode causes a compiler race in universal mode.
6849 test "$am__universal" = false || continue
6850 ;;
6851 nosideeffect)
6852 # After this tag, mechanisms are not by side-effect, so they'll
6853 # only be used when explicitly requested.
6854 if test "x$enable_dependency_tracking" = xyes; then
6855 continue
6856 else
6857 break
6858 fi
6859 ;;
6860 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6861 # This compiler won't grok '-c -o', but also, the minuso test has
6862 # not run yet. These depmodes are late enough in the game, and
6863 # so weak that their functioning should not be impacted.
6864 am__obj=conftest.${OBJEXT-o}
6865 am__minus_obj=
6866 ;;
6867 none) break ;;
6868 esac
6869 if depmode=$depmode \
6870 source=sub/conftest.c object=$am__obj \
6871 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6872 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6873 >/dev/null 2>conftest.err &&
6874 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6875 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6876 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6877 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6878 # icc doesn't choke on unknown options, it will just issue warnings
6879 # or remarks (even with -Werror). So we grep stderr for any message
6880 # that says an option was ignored or not supported.
6881 # When given -MP, icc 7.0 and 7.1 complain thusly:
6882 # icc: Command line warning: ignoring option '-M'; no argument required
6883 # The diagnosis changed in icc 8.0:
6884 # icc: Command line remark: option '-MP' not supported
6885 if (grep 'ignoring option' conftest.err ||
6886 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6887 am_cv_CC_dependencies_compiler_type=$depmode
6888 break
6889 fi
6890 fi
6891 done
6892
6893 cd ..
6894 rm -rf conftest.dir
6895 else
6896 am_cv_CC_dependencies_compiler_type=none
6897 fi
6898
6899 fi
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6901 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6902 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6903
6904 if
6905 test "x$enable_dependency_tracking" != xno \
6906 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6907 am__fastdepCC_TRUE=
6908 am__fastdepCC_FALSE='#'
6909 else
6910 am__fastdepCC_TRUE='#'
6911 am__fastdepCC_FALSE=
6912 fi
6913
6914
6915 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6916
6917
6918 if test -n "$ac_tool_prefix"; then
6919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if ${ac_cv_prog_RANLIB+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 if test -n "$RANLIB"; then
6927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6939 fi
6940 done
6941 done
6942 IFS=$as_save_IFS
6943
6944 fi
6945 fi
6946 RANLIB=$ac_cv_prog_RANLIB
6947 if test -n "$RANLIB"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6949 $as_echo "$RANLIB" >&6; }
6950 else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6953 fi
6954
6955
6956 fi
6957 if test -z "$ac_cv_prog_RANLIB"; then
6958 ac_ct_RANLIB=$RANLIB
6959 # Extract the first word of "ranlib", so it can be a program name with args.
6960 set dummy ranlib; ac_word=$2
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 if test -n "$ac_ct_RANLIB"; then
6967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6968 else
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6971 do
6972 IFS=$as_save_IFS
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6976 ac_cv_prog_ac_ct_RANLIB="ranlib"
6977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 break 2
6979 fi
6980 done
6981 done
6982 IFS=$as_save_IFS
6983
6984 fi
6985 fi
6986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6987 if test -n "$ac_ct_RANLIB"; then
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6989 $as_echo "$ac_ct_RANLIB" >&6; }
6990 else
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6993 fi
6994
6995 if test "x$ac_ct_RANLIB" = x; then
6996 RANLIB=":"
6997 else
6998 case $cross_compiling:$ac_tool_warned in
6999 yes:)
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7002 ac_tool_warned=yes ;;
7003 esac
7004 RANLIB=$ac_ct_RANLIB
7005 fi
7006 else
7007 RANLIB="$ac_cv_prog_RANLIB"
7008 fi
7009
7010
7011
7012
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7014 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7015 set x ${MAKE-make}
7016 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7017 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 cat >conftest.make <<\_ACEOF
7021 SHELL = /bin/sh
7022 all:
7023 @echo '@@@%%%=$(MAKE)=@@@%%%'
7024 _ACEOF
7025 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7026 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7027 *@@@%%%=?*=@@@%%%*)
7028 eval ac_cv_prog_make_${ac_make}_set=yes;;
7029 *)
7030 eval ac_cv_prog_make_${ac_make}_set=no;;
7031 esac
7032 rm -f conftest.make
7033 fi
7034 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7036 $as_echo "yes" >&6; }
7037 SET_MAKE=
7038 else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 SET_MAKE="MAKE=${MAKE-make}"
7042 fi
7043
7044
7045
7046 # Check whether --enable-largefile was given.
7047 if test "${enable_largefile+set}" = set; then :
7048 enableval=$enable_largefile;
7049 fi
7050
7051 if test "$enable_largefile" != no; then
7052
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7054 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7055 if ${ac_cv_sys_largefile_CC+:} false; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 ac_cv_sys_largefile_CC=no
7059 if test "$GCC" != yes; then
7060 ac_save_CC=$CC
7061 while :; do
7062 # IRIX 6.2 and later do not support large files by default,
7063 # so use the C compiler's -n32 option if that helps.
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 #include <sys/types.h>
7067 /* Check that off_t can represent 2**63 - 1 correctly.
7068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7069 since some C++ compilers masquerading as C compilers
7070 incorrectly reject 9223372036854775807. */
7071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7073 && LARGE_OFF_T % 2147483647 == 1)
7074 ? 1 : -1];
7075 int
7076 main ()
7077 {
7078
7079 ;
7080 return 0;
7081 }
7082 _ACEOF
7083 if ac_fn_c_try_compile "$LINENO"; then :
7084 break
7085 fi
7086 rm -f core conftest.err conftest.$ac_objext
7087 CC="$CC -n32"
7088 if ac_fn_c_try_compile "$LINENO"; then :
7089 ac_cv_sys_largefile_CC=' -n32'; break
7090 fi
7091 rm -f core conftest.err conftest.$ac_objext
7092 break
7093 done
7094 CC=$ac_save_CC
7095 rm -f conftest.$ac_ext
7096 fi
7097 fi
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7099 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7100 if test "$ac_cv_sys_largefile_CC" != no; then
7101 CC=$CC$ac_cv_sys_largefile_CC
7102 fi
7103
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7105 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7106 if ${ac_cv_sys_file_offset_bits+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 while :; do
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112 #include <sys/types.h>
7113 /* Check that off_t can represent 2**63 - 1 correctly.
7114 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7115 since some C++ compilers masquerading as C compilers
7116 incorrectly reject 9223372036854775807. */
7117 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7118 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7119 && LARGE_OFF_T % 2147483647 == 1)
7120 ? 1 : -1];
7121 int
7122 main ()
7123 {
7124
7125 ;
7126 return 0;
7127 }
7128 _ACEOF
7129 if ac_fn_c_try_compile "$LINENO"; then :
7130 ac_cv_sys_file_offset_bits=no; break
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135 #define _FILE_OFFSET_BITS 64
7136 #include <sys/types.h>
7137 /* Check that off_t can represent 2**63 - 1 correctly.
7138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7139 since some C++ compilers masquerading as C compilers
7140 incorrectly reject 9223372036854775807. */
7141 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7143 && LARGE_OFF_T % 2147483647 == 1)
7144 ? 1 : -1];
7145 int
7146 main ()
7147 {
7148
7149 ;
7150 return 0;
7151 }
7152 _ACEOF
7153 if ac_fn_c_try_compile "$LINENO"; then :
7154 ac_cv_sys_file_offset_bits=64; break
7155 fi
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 ac_cv_sys_file_offset_bits=unknown
7158 break
7159 done
7160 fi
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7162 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7163 case $ac_cv_sys_file_offset_bits in #(
7164 no | unknown) ;;
7165 *)
7166 cat >>confdefs.h <<_ACEOF
7167 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7168 _ACEOF
7169 ;;
7170 esac
7171 rm -rf conftest*
7172 if test $ac_cv_sys_file_offset_bits = unknown; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7174 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7175 if ${ac_cv_sys_large_files+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 while :; do
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181 #include <sys/types.h>
7182 /* Check that off_t can represent 2**63 - 1 correctly.
7183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7184 since some C++ compilers masquerading as C compilers
7185 incorrectly reject 9223372036854775807. */
7186 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7188 && LARGE_OFF_T % 2147483647 == 1)
7189 ? 1 : -1];
7190 int
7191 main ()
7192 {
7193
7194 ;
7195 return 0;
7196 }
7197 _ACEOF
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199 ac_cv_sys_large_files=no; break
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 #define _LARGE_FILES 1
7205 #include <sys/types.h>
7206 /* Check that off_t can represent 2**63 - 1 correctly.
7207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7208 since some C++ compilers masquerading as C compilers
7209 incorrectly reject 9223372036854775807. */
7210 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7212 && LARGE_OFF_T % 2147483647 == 1)
7213 ? 1 : -1];
7214 int
7215 main ()
7216 {
7217
7218 ;
7219 return 0;
7220 }
7221 _ACEOF
7222 if ac_fn_c_try_compile "$LINENO"; then :
7223 ac_cv_sys_large_files=1; break
7224 fi
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 ac_cv_sys_large_files=unknown
7227 break
7228 done
7229 fi
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7231 $as_echo "$ac_cv_sys_large_files" >&6; }
7232 case $ac_cv_sys_large_files in #(
7233 no | unknown) ;;
7234 *)
7235 cat >>confdefs.h <<_ACEOF
7236 #define _LARGE_FILES $ac_cv_sys_large_files
7237 _ACEOF
7238 ;;
7239 esac
7240 rm -rf conftest*
7241 fi
7242
7243
7244 fi
7245
7246 for ac_func in ppoll
7247 do :
7248 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
7249 if test "x$ac_cv_func_ppoll" = xyes; then :
7250 cat >>confdefs.h <<_ACEOF
7251 #define HAVE_PPOLL 1
7252 _ACEOF
7253
7254 fi
7255 done
7256
7257 for ac_func in openat
7258 do :
7259 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
7260 if test "x$ac_cv_func_openat" = xyes; then :
7261 cat >>confdefs.h <<_ACEOF
7262 #define HAVE_OPENAT 1
7263 _ACEOF
7264
7265 fi
7266 done
7267
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7269 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7270 if ${ac_cv_path_SED+:} false; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7274 for ac_i in 1 2 3 4 5 6 7; do
7275 ac_script="$ac_script$as_nl$ac_script"
7276 done
7277 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7278 { ac_script=; unset ac_script;}
7279 if test -z "$SED"; then
7280 ac_path_SED_found=false
7281 # Loop through the user's path and test for each of PROGNAME-LIST
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_prog in sed gsed; do
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7290 as_fn_executable_p "$ac_path_SED" || continue
7291 # Check for GNU ac_path_SED and select it if it is found.
7292 # Check for GNU $ac_path_SED
7293 case `"$ac_path_SED" --version 2>&1` in
7294 *GNU*)
7295 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7296 *)
7297 ac_count=0
7298 $as_echo_n 0123456789 >"conftest.in"
7299 while :
7300 do
7301 cat "conftest.in" "conftest.in" >"conftest.tmp"
7302 mv "conftest.tmp" "conftest.in"
7303 cp "conftest.in" "conftest.nl"
7304 $as_echo '' >> "conftest.nl"
7305 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7307 as_fn_arith $ac_count + 1 && ac_count=$as_val
7308 if test $ac_count -gt ${ac_path_SED_max-0}; then
7309 # Best one so far, save it but keep looking for a better one
7310 ac_cv_path_SED="$ac_path_SED"
7311 ac_path_SED_max=$ac_count
7312 fi
7313 # 10*(2^10) chars as input seems more than enough
7314 test $ac_count -gt 10 && break
7315 done
7316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7317 esac
7318
7319 $ac_path_SED_found && break 3
7320 done
7321 done
7322 done
7323 IFS=$as_save_IFS
7324 if test -z "$ac_cv_path_SED"; then
7325 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7326 fi
7327 else
7328 ac_cv_path_SED=$SED
7329 fi
7330
7331 fi
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7333 $as_echo "$ac_cv_path_SED" >&6; }
7334 SED="$ac_cv_path_SED"
7335 rm -f conftest.sed
7336
7337
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7339 $as_echo_n "checking whether NLS is requested... " >&6; }
7340 # Check whether --enable-nls was given.
7341 if test "${enable_nls+set}" = set; then :
7342 enableval=$enable_nls; USE_NLS=$enableval
7343 else
7344 USE_NLS=yes
7345 fi
7346
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7348 $as_echo "$USE_NLS" >&6; }
7349
7350
7351
7352
7353 GETTEXT_MACRO_VERSION=0.19
7354
7355
7356
7357
7358 # Prepare PATH_SEPARATOR.
7359 # The user is always right.
7360 if test "${PATH_SEPARATOR+set}" != set; then
7361 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7362 # contains only /bin. Note that ksh looks also at the FPATH variable,
7363 # so we have to set that as well for the test.
7364 PATH_SEPARATOR=:
7365 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7366 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7367 || PATH_SEPARATOR=';'
7368 }
7369 fi
7370
7371 # Find out how to test for executable files. Don't use a zero-byte file,
7372 # as systems may use methods other than mode bits to determine executability.
7373 cat >conf$$.file <<_ASEOF
7374 #! /bin/sh
7375 exit 0
7376 _ASEOF
7377 chmod +x conf$$.file
7378 if test -x conf$$.file >/dev/null 2>&1; then
7379 ac_executable_p="test -x"
7380 else
7381 ac_executable_p="test -f"
7382 fi
7383 rm -f conf$$.file
7384
7385 # Extract the first word of "msgfmt", so it can be a program name with args.
7386 set dummy msgfmt; ac_word=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if ${ac_cv_path_MSGFMT+:} false; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 case "$MSGFMT" in
7393 [\\/]* | ?:[\\/]*)
7394 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7395 ;;
7396 *)
7397 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7398 for ac_dir in $PATH; do
7399 IFS="$ac_save_IFS"
7400 test -z "$ac_dir" && ac_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7403 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7404 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7405 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7406 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7407 break 2
7408 fi
7409 fi
7410 done
7411 done
7412 IFS="$ac_save_IFS"
7413 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7414 ;;
7415 esac
7416 fi
7417 MSGFMT="$ac_cv_path_MSGFMT"
7418 if test "$MSGFMT" != ":"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7420 $as_echo "$MSGFMT" >&6; }
7421 else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7427 set dummy gmsgfmt; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_path_GMSGFMT+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 case $GMSGFMT in
7434 [\\/]* | ?:[\\/]*)
7435 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7436 ;;
7437 *)
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7440 do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7448 fi
7449 done
7450 done
7451 IFS=$as_save_IFS
7452
7453 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7454 ;;
7455 esac
7456 fi
7457 GMSGFMT=$ac_cv_path_GMSGFMT
7458 if test -n "$GMSGFMT"; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7460 $as_echo "$GMSGFMT" >&6; }
7461 else
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7464 fi
7465
7466
7467
7468 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7469 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7470 *) MSGFMT_015=$MSGFMT ;;
7471 esac
7472
7473 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7474 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7475 *) GMSGFMT_015=$GMSGFMT ;;
7476 esac
7477
7478
7479
7480 # Prepare PATH_SEPARATOR.
7481 # The user is always right.
7482 if test "${PATH_SEPARATOR+set}" != set; then
7483 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7484 # contains only /bin. Note that ksh looks also at the FPATH variable,
7485 # so we have to set that as well for the test.
7486 PATH_SEPARATOR=:
7487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7488 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7489 || PATH_SEPARATOR=';'
7490 }
7491 fi
7492
7493 # Find out how to test for executable files. Don't use a zero-byte file,
7494 # as systems may use methods other than mode bits to determine executability.
7495 cat >conf$$.file <<_ASEOF
7496 #! /bin/sh
7497 exit 0
7498 _ASEOF
7499 chmod +x conf$$.file
7500 if test -x conf$$.file >/dev/null 2>&1; then
7501 ac_executable_p="test -x"
7502 else
7503 ac_executable_p="test -f"
7504 fi
7505 rm -f conf$$.file
7506
7507 # Extract the first word of "xgettext", so it can be a program name with args.
7508 set dummy xgettext; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if ${ac_cv_path_XGETTEXT+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 case "$XGETTEXT" in
7515 [\\/]* | ?:[\\/]*)
7516 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7517 ;;
7518 *)
7519 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7520 for ac_dir in $PATH; do
7521 IFS="$ac_save_IFS"
7522 test -z "$ac_dir" && ac_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7525 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7526 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7527 (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
7528 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7529 break 2
7530 fi
7531 fi
7532 done
7533 done
7534 IFS="$ac_save_IFS"
7535 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7536 ;;
7537 esac
7538 fi
7539 XGETTEXT="$ac_cv_path_XGETTEXT"
7540 if test "$XGETTEXT" != ":"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7542 $as_echo "$XGETTEXT" >&6; }
7543 else
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7546 fi
7547
7548 rm -f messages.po
7549
7550 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7551 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7552 *) XGETTEXT_015=$XGETTEXT ;;
7553 esac
7554
7555
7556
7557 # Prepare PATH_SEPARATOR.
7558 # The user is always right.
7559 if test "${PATH_SEPARATOR+set}" != set; then
7560 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7561 # contains only /bin. Note that ksh looks also at the FPATH variable,
7562 # so we have to set that as well for the test.
7563 PATH_SEPARATOR=:
7564 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7565 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7566 || PATH_SEPARATOR=';'
7567 }
7568 fi
7569
7570 # Find out how to test for executable files. Don't use a zero-byte file,
7571 # as systems may use methods other than mode bits to determine executability.
7572 cat >conf$$.file <<_ASEOF
7573 #! /bin/sh
7574 exit 0
7575 _ASEOF
7576 chmod +x conf$$.file
7577 if test -x conf$$.file >/dev/null 2>&1; then
7578 ac_executable_p="test -x"
7579 else
7580 ac_executable_p="test -f"
7581 fi
7582 rm -f conf$$.file
7583
7584 # Extract the first word of "msgmerge", so it can be a program name with args.
7585 set dummy msgmerge; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_path_MSGMERGE+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 case "$MSGMERGE" in
7592 [\\/]* | ?:[\\/]*)
7593 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7594 ;;
7595 *)
7596 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7597 for ac_dir in $PATH; do
7598 IFS="$ac_save_IFS"
7599 test -z "$ac_dir" && ac_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7602 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7603 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7604 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7605 break 2
7606 fi
7607 fi
7608 done
7609 done
7610 IFS="$ac_save_IFS"
7611 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7612 ;;
7613 esac
7614 fi
7615 MSGMERGE="$ac_cv_path_MSGMERGE"
7616 if test "$MSGMERGE" != ":"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7618 $as_echo "$MSGMERGE" >&6; }
7619 else
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7622 fi
7623
7624
7625 test -n "$localedir" || localedir='${datadir}/locale'
7626
7627
7628 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7629
7630
7631 ac_config_commands="$ac_config_commands po-directories"
7632
7633
7634
7635 if test "X$prefix" = "XNONE"; then
7636 acl_final_prefix="$ac_default_prefix"
7637 else
7638 acl_final_prefix="$prefix"
7639 fi
7640 if test "X$exec_prefix" = "XNONE"; then
7641 acl_final_exec_prefix='${prefix}'
7642 else
7643 acl_final_exec_prefix="$exec_prefix"
7644 fi
7645 acl_save_prefix="$prefix"
7646 prefix="$acl_final_prefix"
7647 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7648 prefix="$acl_save_prefix"
7649
7650
7651
7652 # Check whether --with-gnu-ld was given.
7653 if test "${with_gnu_ld+set}" = set; then :
7654 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7655 else
7656 with_gnu_ld=no
7657 fi
7658
7659 # Prepare PATH_SEPARATOR.
7660 # The user is always right.
7661 if test "${PATH_SEPARATOR+set}" != set; then
7662 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7663 # contains only /bin. Note that ksh looks also at the FPATH variable,
7664 # so we have to set that as well for the test.
7665 PATH_SEPARATOR=:
7666 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7667 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7668 || PATH_SEPARATOR=';'
7669 }
7670 fi
7671
7672 ac_prog=ld
7673 if test "$GCC" = yes; then
7674 # Check if gcc -print-prog-name=ld gives a path.
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7676 $as_echo_n "checking for ld used by $CC... " >&6; }
7677 case $host in
7678 *-*-mingw*)
7679 # gcc leaves a trailing carriage return which upsets mingw
7680 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7681 *)
7682 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7683 esac
7684 case $ac_prog in
7685 # Accept absolute paths.
7686 [\\/]* | ?:[\\/]*)
7687 re_direlt='/[^/][^/]*/\.\./'
7688 # Canonicalize the pathname of ld
7689 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7690 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7691 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7692 done
7693 test -z "$LD" && LD="$ac_prog"
7694 ;;
7695 "")
7696 # If it fails, then pretend we aren't using GCC.
7697 ac_prog=ld
7698 ;;
7699 *)
7700 # If it is relative, then search for the first ld in PATH.
7701 with_gnu_ld=unknown
7702 ;;
7703 esac
7704 elif test "$with_gnu_ld" = yes; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7706 $as_echo_n "checking for GNU ld... " >&6; }
7707 else
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7709 $as_echo_n "checking for non-GNU ld... " >&6; }
7710 fi
7711 if ${acl_cv_path_LD+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 if test -z "$LD"; then
7715 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7716 for ac_dir in $PATH; do
7717 IFS="$acl_save_ifs"
7718 test -z "$ac_dir" && ac_dir=.
7719 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7720 acl_cv_path_LD="$ac_dir/$ac_prog"
7721 # Check to see if the program is GNU ld. I'd rather use --version,
7722 # but apparently some variants of GNU ld only accept -v.
7723 # Break only if it was the GNU/non-GNU ld that we prefer.
7724 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7725 *GNU* | *'with BFD'*)
7726 test "$with_gnu_ld" != no && break
7727 ;;
7728 *)
7729 test "$with_gnu_ld" != yes && break
7730 ;;
7731 esac
7732 fi
7733 done
7734 IFS="$acl_save_ifs"
7735 else
7736 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7737 fi
7738 fi
7739
7740 LD="$acl_cv_path_LD"
7741 if test -n "$LD"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7743 $as_echo "$LD" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7747 fi
7748 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7750 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7751 if ${acl_cv_prog_gnu_ld+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7755 case `$LD -v 2>&1 </dev/null` in
7756 *GNU* | *'with BFD'*)
7757 acl_cv_prog_gnu_ld=yes
7758 ;;
7759 *)
7760 acl_cv_prog_gnu_ld=no
7761 ;;
7762 esac
7763 fi
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7765 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7766 with_gnu_ld=$acl_cv_prog_gnu_ld
7767
7768
7769
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7772 $as_echo_n "checking for shared library run path origin... " >&6; }
7773 if ${acl_cv_rpath+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776
7777 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7778 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7779 . ./conftest.sh
7780 rm -f ./conftest.sh
7781 acl_cv_rpath=done
7782
7783 fi
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7785 $as_echo "$acl_cv_rpath" >&6; }
7786 wl="$acl_cv_wl"
7787 acl_libext="$acl_cv_libext"
7788 acl_shlibext="$acl_cv_shlibext"
7789 acl_libname_spec="$acl_cv_libname_spec"
7790 acl_library_names_spec="$acl_cv_library_names_spec"
7791 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7792 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7793 acl_hardcode_direct="$acl_cv_hardcode_direct"
7794 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7795 # Check whether --enable-rpath was given.
7796 if test "${enable_rpath+set}" = set; then :
7797 enableval=$enable_rpath; :
7798 else
7799 enable_rpath=yes
7800 fi
7801
7802
7803
7804
7805 acl_libdirstem=lib
7806 acl_libdirstem2=
7807 case "$host_os" in
7808 solaris*)
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7810 $as_echo_n "checking for 64-bit host... " >&6; }
7811 if ${gl_cv_solaris_64bit+:} false; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7816
7817 #ifdef _LP64
7818 sixtyfour bits
7819 #endif
7820
7821 _ACEOF
7822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7823 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7824 gl_cv_solaris_64bit=yes
7825 else
7826 gl_cv_solaris_64bit=no
7827 fi
7828 rm -f conftest*
7829
7830
7831 fi
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7833 $as_echo "$gl_cv_solaris_64bit" >&6; }
7834 if test $gl_cv_solaris_64bit = yes; then
7835 acl_libdirstem=lib/64
7836 case "$host_cpu" in
7837 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7838 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7839 esac
7840 fi
7841 ;;
7842 *)
7843 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7844 if test -n "$searchpath"; then
7845 acl_save_IFS="${IFS= }"; IFS=":"
7846 for searchdir in $searchpath; do
7847 if test -d "$searchdir"; then
7848 case "$searchdir" in
7849 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7850 */../ | */.. )
7851 # Better ignore directories of this form. They are misleading.
7852 ;;
7853 *) searchdir=`cd "$searchdir" && pwd`
7854 case "$searchdir" in
7855 */lib64 ) acl_libdirstem=lib64 ;;
7856 esac ;;
7857 esac
7858 fi
7859 done
7860 IFS="$acl_save_IFS"
7861 fi
7862 ;;
7863 esac
7864 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877 use_additional=yes
7878
7879 acl_save_prefix="$prefix"
7880 prefix="$acl_final_prefix"
7881 acl_save_exec_prefix="$exec_prefix"
7882 exec_prefix="$acl_final_exec_prefix"
7883
7884 eval additional_includedir=\"$includedir\"
7885 eval additional_libdir=\"$libdir\"
7886
7887 exec_prefix="$acl_save_exec_prefix"
7888 prefix="$acl_save_prefix"
7889
7890
7891 # Check whether --with-libiconv-prefix was given.
7892 if test "${with_libiconv_prefix+set}" = set; then :
7893 withval=$with_libiconv_prefix;
7894 if test "X$withval" = "Xno"; then
7895 use_additional=no
7896 else
7897 if test "X$withval" = "X"; then
7898
7899 acl_save_prefix="$prefix"
7900 prefix="$acl_final_prefix"
7901 acl_save_exec_prefix="$exec_prefix"
7902 exec_prefix="$acl_final_exec_prefix"
7903
7904 eval additional_includedir=\"$includedir\"
7905 eval additional_libdir=\"$libdir\"
7906
7907 exec_prefix="$acl_save_exec_prefix"
7908 prefix="$acl_save_prefix"
7909
7910 else
7911 additional_includedir="$withval/include"
7912 additional_libdir="$withval/$acl_libdirstem"
7913 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7914 && ! test -d "$withval/$acl_libdirstem"; then
7915 additional_libdir="$withval/$acl_libdirstem2"
7916 fi
7917 fi
7918 fi
7919
7920 fi
7921
7922 LIBICONV=
7923 LTLIBICONV=
7924 INCICONV=
7925 LIBICONV_PREFIX=
7926 HAVE_LIBICONV=
7927 rpathdirs=
7928 ltrpathdirs=
7929 names_already_handled=
7930 names_next_round='iconv '
7931 while test -n "$names_next_round"; do
7932 names_this_round="$names_next_round"
7933 names_next_round=
7934 for name in $names_this_round; do
7935 already_handled=
7936 for n in $names_already_handled; do
7937 if test "$n" = "$name"; then
7938 already_handled=yes
7939 break
7940 fi
7941 done
7942 if test -z "$already_handled"; then
7943 names_already_handled="$names_already_handled $name"
7944 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7945 eval value=\"\$HAVE_LIB$uppername\"
7946 if test -n "$value"; then
7947 if test "$value" = yes; then
7948 eval value=\"\$LIB$uppername\"
7949 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7950 eval value=\"\$LTLIB$uppername\"
7951 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7952 else
7953 :
7954 fi
7955 else
7956 found_dir=
7957 found_la=
7958 found_so=
7959 found_a=
7960 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7961 if test -n "$acl_shlibext"; then
7962 shrext=".$acl_shlibext" # typically: shrext=.so
7963 else
7964 shrext=
7965 fi
7966 if test $use_additional = yes; then
7967 dir="$additional_libdir"
7968 if test -n "$acl_shlibext"; then
7969 if test -f "$dir/$libname$shrext"; then
7970 found_dir="$dir"
7971 found_so="$dir/$libname$shrext"
7972 else
7973 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7974 ver=`(cd "$dir" && \
7975 for f in "$libname$shrext".*; do echo "$f"; done \
7976 | sed -e "s,^$libname$shrext\\\\.,," \
7977 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7978 | sed 1q ) 2>/dev/null`
7979 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7980 found_dir="$dir"
7981 found_so="$dir/$libname$shrext.$ver"
7982 fi
7983 else
7984 eval library_names=\"$acl_library_names_spec\"
7985 for f in $library_names; do
7986 if test -f "$dir/$f"; then
7987 found_dir="$dir"
7988 found_so="$dir/$f"
7989 break
7990 fi
7991 done
7992 fi
7993 fi
7994 fi
7995 if test "X$found_dir" = "X"; then
7996 if test -f "$dir/$libname.$acl_libext"; then
7997 found_dir="$dir"
7998 found_a="$dir/$libname.$acl_libext"
7999 fi
8000 fi
8001 if test "X$found_dir" != "X"; then
8002 if test -f "$dir/$libname.la"; then
8003 found_la="$dir/$libname.la"
8004 fi
8005 fi
8006 fi
8007 if test "X$found_dir" = "X"; then
8008 for x in $LDFLAGS $LTLIBICONV; do
8009
8010 acl_save_prefix="$prefix"
8011 prefix="$acl_final_prefix"
8012 acl_save_exec_prefix="$exec_prefix"
8013 exec_prefix="$acl_final_exec_prefix"
8014 eval x=\"$x\"
8015 exec_prefix="$acl_save_exec_prefix"
8016 prefix="$acl_save_prefix"
8017
8018 case "$x" in
8019 -L*)
8020 dir=`echo "X$x" | sed -e 's/^X-L//'`
8021 if test -n "$acl_shlibext"; then
8022 if test -f "$dir/$libname$shrext"; then
8023 found_dir="$dir"
8024 found_so="$dir/$libname$shrext"
8025 else
8026 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8027 ver=`(cd "$dir" && \
8028 for f in "$libname$shrext".*; do echo "$f"; done \
8029 | sed -e "s,^$libname$shrext\\\\.,," \
8030 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8031 | sed 1q ) 2>/dev/null`
8032 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8033 found_dir="$dir"
8034 found_so="$dir/$libname$shrext.$ver"
8035 fi
8036 else
8037 eval library_names=\"$acl_library_names_spec\"
8038 for f in $library_names; do
8039 if test -f "$dir/$f"; then
8040 found_dir="$dir"
8041 found_so="$dir/$f"
8042 break
8043 fi
8044 done
8045 fi
8046 fi
8047 fi
8048 if test "X$found_dir" = "X"; then
8049 if test -f "$dir/$libname.$acl_libext"; then
8050 found_dir="$dir"
8051 found_a="$dir/$libname.$acl_libext"
8052 fi
8053 fi
8054 if test "X$found_dir" != "X"; then
8055 if test -f "$dir/$libname.la"; then
8056 found_la="$dir/$libname.la"
8057 fi
8058 fi
8059 ;;
8060 esac
8061 if test "X$found_dir" != "X"; then
8062 break
8063 fi
8064 done
8065 fi
8066 if test "X$found_dir" != "X"; then
8067 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8068 if test "X$found_so" != "X"; then
8069 if test "$enable_rpath" = no \
8070 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8071 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8072 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8073 else
8074 haveit=
8075 for x in $ltrpathdirs; do
8076 if test "X$x" = "X$found_dir"; then
8077 haveit=yes
8078 break
8079 fi
8080 done
8081 if test -z "$haveit"; then
8082 ltrpathdirs="$ltrpathdirs $found_dir"
8083 fi
8084 if test "$acl_hardcode_direct" = yes; then
8085 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8086 else
8087 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8089 haveit=
8090 for x in $rpathdirs; do
8091 if test "X$x" = "X$found_dir"; then
8092 haveit=yes
8093 break
8094 fi
8095 done
8096 if test -z "$haveit"; then
8097 rpathdirs="$rpathdirs $found_dir"
8098 fi
8099 else
8100 haveit=
8101 for x in $LDFLAGS $LIBICONV; do
8102
8103 acl_save_prefix="$prefix"
8104 prefix="$acl_final_prefix"
8105 acl_save_exec_prefix="$exec_prefix"
8106 exec_prefix="$acl_final_exec_prefix"
8107 eval x=\"$x\"
8108 exec_prefix="$acl_save_exec_prefix"
8109 prefix="$acl_save_prefix"
8110
8111 if test "X$x" = "X-L$found_dir"; then
8112 haveit=yes
8113 break
8114 fi
8115 done
8116 if test -z "$haveit"; then
8117 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8118 fi
8119 if test "$acl_hardcode_minus_L" != no; then
8120 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8121 else
8122 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8123 fi
8124 fi
8125 fi
8126 fi
8127 else
8128 if test "X$found_a" != "X"; then
8129 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8130 else
8131 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8132 fi
8133 fi
8134 additional_includedir=
8135 case "$found_dir" in
8136 */$acl_libdirstem | */$acl_libdirstem/)
8137 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8138 if test "$name" = 'iconv'; then
8139 LIBICONV_PREFIX="$basedir"
8140 fi
8141 additional_includedir="$basedir/include"
8142 ;;
8143 */$acl_libdirstem2 | */$acl_libdirstem2/)
8144 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8145 if test "$name" = 'iconv'; then
8146 LIBICONV_PREFIX="$basedir"
8147 fi
8148 additional_includedir="$basedir/include"
8149 ;;
8150 esac
8151 if test "X$additional_includedir" != "X"; then
8152 if test "X$additional_includedir" != "X/usr/include"; then
8153 haveit=
8154 if test "X$additional_includedir" = "X/usr/local/include"; then
8155 if test -n "$GCC"; then
8156 case $host_os in
8157 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8158 esac
8159 fi
8160 fi
8161 if test -z "$haveit"; then
8162 for x in $CPPFLAGS $INCICONV; do
8163
8164 acl_save_prefix="$prefix"
8165 prefix="$acl_final_prefix"
8166 acl_save_exec_prefix="$exec_prefix"
8167 exec_prefix="$acl_final_exec_prefix"
8168 eval x=\"$x\"
8169 exec_prefix="$acl_save_exec_prefix"
8170 prefix="$acl_save_prefix"
8171
8172 if test "X$x" = "X-I$additional_includedir"; then
8173 haveit=yes
8174 break
8175 fi
8176 done
8177 if test -z "$haveit"; then
8178 if test -d "$additional_includedir"; then
8179 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8180 fi
8181 fi
8182 fi
8183 fi
8184 fi
8185 if test -n "$found_la"; then
8186 save_libdir="$libdir"
8187 case "$found_la" in
8188 */* | *\\*) . "$found_la" ;;
8189 *) . "./$found_la" ;;
8190 esac
8191 libdir="$save_libdir"
8192 for dep in $dependency_libs; do
8193 case "$dep" in
8194 -L*)
8195 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8196 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8197 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8198 haveit=
8199 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8200 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8201 if test -n "$GCC"; then
8202 case $host_os in
8203 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8204 esac
8205 fi
8206 fi
8207 if test -z "$haveit"; then
8208 haveit=
8209 for x in $LDFLAGS $LIBICONV; do
8210
8211 acl_save_prefix="$prefix"
8212 prefix="$acl_final_prefix"
8213 acl_save_exec_prefix="$exec_prefix"
8214 exec_prefix="$acl_final_exec_prefix"
8215 eval x=\"$x\"
8216 exec_prefix="$acl_save_exec_prefix"
8217 prefix="$acl_save_prefix"
8218
8219 if test "X$x" = "X-L$additional_libdir"; then
8220 haveit=yes
8221 break
8222 fi
8223 done
8224 if test -z "$haveit"; then
8225 if test -d "$additional_libdir"; then
8226 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8227 fi
8228 fi
8229 haveit=
8230 for x in $LDFLAGS $LTLIBICONV; do
8231
8232 acl_save_prefix="$prefix"
8233 prefix="$acl_final_prefix"
8234 acl_save_exec_prefix="$exec_prefix"
8235 exec_prefix="$acl_final_exec_prefix"
8236 eval x=\"$x\"
8237 exec_prefix="$acl_save_exec_prefix"
8238 prefix="$acl_save_prefix"
8239
8240 if test "X$x" = "X-L$additional_libdir"; then
8241 haveit=yes
8242 break
8243 fi
8244 done
8245 if test -z "$haveit"; then
8246 if test -d "$additional_libdir"; then
8247 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8248 fi
8249 fi
8250 fi
8251 fi
8252 ;;
8253 -R*)
8254 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8255 if test "$enable_rpath" != no; then
8256 haveit=
8257 for x in $rpathdirs; do
8258 if test "X$x" = "X$dir"; then
8259 haveit=yes
8260 break
8261 fi
8262 done
8263 if test -z "$haveit"; then
8264 rpathdirs="$rpathdirs $dir"
8265 fi
8266 haveit=
8267 for x in $ltrpathdirs; do
8268 if test "X$x" = "X$dir"; then
8269 haveit=yes
8270 break
8271 fi
8272 done
8273 if test -z "$haveit"; then
8274 ltrpathdirs="$ltrpathdirs $dir"
8275 fi
8276 fi
8277 ;;
8278 -l*)
8279 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8280 ;;
8281 *.la)
8282 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8283 ;;
8284 *)
8285 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8286 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8287 ;;
8288 esac
8289 done
8290 fi
8291 else
8292 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8293 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8294 fi
8295 fi
8296 fi
8297 done
8298 done
8299 if test "X$rpathdirs" != "X"; then
8300 if test -n "$acl_hardcode_libdir_separator"; then
8301 alldirs=
8302 for found_dir in $rpathdirs; do
8303 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8304 done
8305 acl_save_libdir="$libdir"
8306 libdir="$alldirs"
8307 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8308 libdir="$acl_save_libdir"
8309 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8310 else
8311 for found_dir in $rpathdirs; do
8312 acl_save_libdir="$libdir"
8313 libdir="$found_dir"
8314 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8315 libdir="$acl_save_libdir"
8316 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8317 done
8318 fi
8319 fi
8320 if test "X$ltrpathdirs" != "X"; then
8321 for found_dir in $ltrpathdirs; do
8322 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8323 done
8324 fi
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8357 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8358 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 gt_save_LIBS="$LIBS"
8362 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365 #include <CoreFoundation/CFPreferences.h>
8366 int
8367 main ()
8368 {
8369 CFPreferencesCopyAppValue(NULL, NULL)
8370 ;
8371 return 0;
8372 }
8373 _ACEOF
8374 if ac_fn_c_try_link "$LINENO"; then :
8375 gt_cv_func_CFPreferencesCopyAppValue=yes
8376 else
8377 gt_cv_func_CFPreferencesCopyAppValue=no
8378 fi
8379 rm -f core conftest.err conftest.$ac_objext \
8380 conftest$ac_exeext conftest.$ac_ext
8381 LIBS="$gt_save_LIBS"
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8384 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8385 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8386
8387 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8388
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8391 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8392 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 gt_save_LIBS="$LIBS"
8396 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 #include <CoreFoundation/CFLocale.h>
8400 int
8401 main ()
8402 {
8403 CFLocaleCopyCurrent();
8404 ;
8405 return 0;
8406 }
8407 _ACEOF
8408 if ac_fn_c_try_link "$LINENO"; then :
8409 gt_cv_func_CFLocaleCopyCurrent=yes
8410 else
8411 gt_cv_func_CFLocaleCopyCurrent=no
8412 fi
8413 rm -f core conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8415 LIBS="$gt_save_LIBS"
8416 fi
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8418 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8419 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8420
8421 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8422
8423 fi
8424 INTL_MACOSX_LIBS=
8425 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8426 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8427 fi
8428
8429
8430
8431
8432
8433
8434 LIBINTL=
8435 LTLIBINTL=
8436 POSUB=
8437
8438 case " $gt_needs " in
8439 *" need-formatstring-macros "*) gt_api_version=3 ;;
8440 *" need-ngettext "*) gt_api_version=2 ;;
8441 *) gt_api_version=1 ;;
8442 esac
8443 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8444 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8445
8446 if test "$USE_NLS" = "yes"; then
8447 gt_use_preinstalled_gnugettext=no
8448
8449
8450 if test $gt_api_version -ge 3; then
8451 gt_revision_test_code='
8452 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8453 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8454 #endif
8455 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8456 '
8457 else
8458 gt_revision_test_code=
8459 fi
8460 if test $gt_api_version -ge 2; then
8461 gt_expression_test_code=' + * ngettext ("", "", 0)'
8462 else
8463 gt_expression_test_code=
8464 fi
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8467 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8468 if eval \${$gt_func_gnugettext_libc+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8473
8474 #include <libintl.h>
8475 $gt_revision_test_code
8476 extern int _nl_msg_cat_cntr;
8477 extern int *_nl_domain_bindings;
8478
8479 int
8480 main ()
8481 {
8482
8483 bindtextdomain ("", "");
8484 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
8485
8486 ;
8487 return 0;
8488 }
8489 _ACEOF
8490 if ac_fn_c_try_link "$LINENO"; then :
8491 eval "$gt_func_gnugettext_libc=yes"
8492 else
8493 eval "$gt_func_gnugettext_libc=no"
8494 fi
8495 rm -f core conftest.err conftest.$ac_objext \
8496 conftest$ac_exeext conftest.$ac_ext
8497 fi
8498 eval ac_res=\$$gt_func_gnugettext_libc
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8500 $as_echo "$ac_res" >&6; }
8501
8502 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8503
8504
8505
8506
8507
8508 am_save_CPPFLAGS="$CPPFLAGS"
8509
8510 for element in $INCICONV; do
8511 haveit=
8512 for x in $CPPFLAGS; do
8513
8514 acl_save_prefix="$prefix"
8515 prefix="$acl_final_prefix"
8516 acl_save_exec_prefix="$exec_prefix"
8517 exec_prefix="$acl_final_exec_prefix"
8518 eval x=\"$x\"
8519 exec_prefix="$acl_save_exec_prefix"
8520 prefix="$acl_save_prefix"
8521
8522 if test "X$x" = "X$element"; then
8523 haveit=yes
8524 break
8525 fi
8526 done
8527 if test -z "$haveit"; then
8528 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8529 fi
8530 done
8531
8532
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8534 $as_echo_n "checking for iconv... " >&6; }
8535 if ${am_cv_func_iconv+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538
8539 am_cv_func_iconv="no, consider installing GNU libiconv"
8540 am_cv_lib_iconv=no
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8543
8544 #include <stdlib.h>
8545 #include <iconv.h>
8546
8547 int
8548 main ()
8549 {
8550 iconv_t cd = iconv_open("","");
8551 iconv(cd,NULL,NULL,NULL,NULL);
8552 iconv_close(cd);
8553 ;
8554 return 0;
8555 }
8556 _ACEOF
8557 if ac_fn_c_try_link "$LINENO"; then :
8558 am_cv_func_iconv=yes
8559 fi
8560 rm -f core conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8562 if test "$am_cv_func_iconv" != yes; then
8563 am_save_LIBS="$LIBS"
8564 LIBS="$LIBS $LIBICONV"
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567
8568 #include <stdlib.h>
8569 #include <iconv.h>
8570
8571 int
8572 main ()
8573 {
8574 iconv_t cd = iconv_open("","");
8575 iconv(cd,NULL,NULL,NULL,NULL);
8576 iconv_close(cd);
8577 ;
8578 return 0;
8579 }
8580 _ACEOF
8581 if ac_fn_c_try_link "$LINENO"; then :
8582 am_cv_lib_iconv=yes
8583 am_cv_func_iconv=yes
8584 fi
8585 rm -f core conftest.err conftest.$ac_objext \
8586 conftest$ac_exeext conftest.$ac_ext
8587 LIBS="$am_save_LIBS"
8588 fi
8589
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8592 $as_echo "$am_cv_func_iconv" >&6; }
8593 if test "$am_cv_func_iconv" = yes; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8595 $as_echo_n "checking for working iconv... " >&6; }
8596 if ${am_cv_func_iconv_works+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599
8600 am_save_LIBS="$LIBS"
8601 if test $am_cv_lib_iconv = yes; then
8602 LIBS="$LIBS $LIBICONV"
8603 fi
8604 am_cv_func_iconv_works=no
8605 for ac_iconv_const in '' 'const'; do
8606 if test "$cross_compiling" = yes; then :
8607 case "$host_os" in
8608 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8609 *) am_cv_func_iconv_works="guessing yes" ;;
8610 esac
8611 else
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614
8615 #include <iconv.h>
8616 #include <string.h>
8617
8618 #ifndef ICONV_CONST
8619 # define ICONV_CONST $ac_iconv_const
8620 #endif
8621
8622 int
8623 main ()
8624 {
8625 int result = 0;
8626 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8627 returns. */
8628 {
8629 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8630 if (cd_utf8_to_88591 != (iconv_t)(-1))
8631 {
8632 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8633 char buf[10];
8634 ICONV_CONST char *inptr = input;
8635 size_t inbytesleft = strlen (input);
8636 char *outptr = buf;
8637 size_t outbytesleft = sizeof (buf);
8638 size_t res = iconv (cd_utf8_to_88591,
8639 &inptr, &inbytesleft,
8640 &outptr, &outbytesleft);
8641 if (res == 0)
8642 result |= 1;
8643 iconv_close (cd_utf8_to_88591);
8644 }
8645 }
8646 /* Test against Solaris 10 bug: Failures are not distinguishable from
8647 successful returns. */
8648 {
8649 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8650 if (cd_ascii_to_88591 != (iconv_t)(-1))
8651 {
8652 static ICONV_CONST char input[] = "\263";
8653 char buf[10];
8654 ICONV_CONST char *inptr = input;
8655 size_t inbytesleft = strlen (input);
8656 char *outptr = buf;
8657 size_t outbytesleft = sizeof (buf);
8658 size_t res = iconv (cd_ascii_to_88591,
8659 &inptr, &inbytesleft,
8660 &outptr, &outbytesleft);
8661 if (res == 0)
8662 result |= 2;
8663 iconv_close (cd_ascii_to_88591);
8664 }
8665 }
8666 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8667 {
8668 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8669 if (cd_88591_to_utf8 != (iconv_t)(-1))
8670 {
8671 static ICONV_CONST char input[] = "\304";
8672 static char buf[2] = { (char)0xDE, (char)0xAD };
8673 ICONV_CONST char *inptr = input;
8674 size_t inbytesleft = 1;
8675 char *outptr = buf;
8676 size_t outbytesleft = 1;
8677 size_t res = iconv (cd_88591_to_utf8,
8678 &inptr, &inbytesleft,
8679 &outptr, &outbytesleft);
8680 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8681 result |= 4;
8682 iconv_close (cd_88591_to_utf8);
8683 }
8684 }
8685 #if 0 /* This bug could be worked around by the caller. */
8686 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8687 {
8688 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8689 if (cd_88591_to_utf8 != (iconv_t)(-1))
8690 {
8691 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8692 char buf[50];
8693 ICONV_CONST char *inptr = input;
8694 size_t inbytesleft = strlen (input);
8695 char *outptr = buf;
8696 size_t outbytesleft = sizeof (buf);
8697 size_t res = iconv (cd_88591_to_utf8,
8698 &inptr, &inbytesleft,
8699 &outptr, &outbytesleft);
8700 if ((int)res > 0)
8701 result |= 8;
8702 iconv_close (cd_88591_to_utf8);
8703 }
8704 }
8705 #endif
8706 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8707 provided. */
8708 if (/* Try standardized names. */
8709 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8710 /* Try IRIX, OSF/1 names. */
8711 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8712 /* Try AIX names. */
8713 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8714 /* Try HP-UX names. */
8715 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8716 result |= 16;
8717 return result;
8718
8719 ;
8720 return 0;
8721 }
8722 _ACEOF
8723 if ac_fn_c_try_run "$LINENO"; then :
8724 am_cv_func_iconv_works=yes
8725 fi
8726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8727 conftest.$ac_objext conftest.beam conftest.$ac_ext
8728 fi
8729
8730 test "$am_cv_func_iconv_works" = no || break
8731 done
8732 LIBS="$am_save_LIBS"
8733
8734 fi
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8736 $as_echo "$am_cv_func_iconv_works" >&6; }
8737 case "$am_cv_func_iconv_works" in
8738 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8739 *) am_func_iconv=yes ;;
8740 esac
8741 else
8742 am_func_iconv=no am_cv_lib_iconv=no
8743 fi
8744 if test "$am_func_iconv" = yes; then
8745
8746 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8747
8748 fi
8749 if test "$am_cv_lib_iconv" = yes; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8751 $as_echo_n "checking how to link with libiconv... " >&6; }
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8753 $as_echo "$LIBICONV" >&6; }
8754 else
8755 CPPFLAGS="$am_save_CPPFLAGS"
8756 LIBICONV=
8757 LTLIBICONV=
8758 fi
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770 use_additional=yes
8771
8772 acl_save_prefix="$prefix"
8773 prefix="$acl_final_prefix"
8774 acl_save_exec_prefix="$exec_prefix"
8775 exec_prefix="$acl_final_exec_prefix"
8776
8777 eval additional_includedir=\"$includedir\"
8778 eval additional_libdir=\"$libdir\"
8779
8780 exec_prefix="$acl_save_exec_prefix"
8781 prefix="$acl_save_prefix"
8782
8783
8784 # Check whether --with-libintl-prefix was given.
8785 if test "${with_libintl_prefix+set}" = set; then :
8786 withval=$with_libintl_prefix;
8787 if test "X$withval" = "Xno"; then
8788 use_additional=no
8789 else
8790 if test "X$withval" = "X"; then
8791
8792 acl_save_prefix="$prefix"
8793 prefix="$acl_final_prefix"
8794 acl_save_exec_prefix="$exec_prefix"
8795 exec_prefix="$acl_final_exec_prefix"
8796
8797 eval additional_includedir=\"$includedir\"
8798 eval additional_libdir=\"$libdir\"
8799
8800 exec_prefix="$acl_save_exec_prefix"
8801 prefix="$acl_save_prefix"
8802
8803 else
8804 additional_includedir="$withval/include"
8805 additional_libdir="$withval/$acl_libdirstem"
8806 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8807 && ! test -d "$withval/$acl_libdirstem"; then
8808 additional_libdir="$withval/$acl_libdirstem2"
8809 fi
8810 fi
8811 fi
8812
8813 fi
8814
8815 LIBINTL=
8816 LTLIBINTL=
8817 INCINTL=
8818 LIBINTL_PREFIX=
8819 HAVE_LIBINTL=
8820 rpathdirs=
8821 ltrpathdirs=
8822 names_already_handled=
8823 names_next_round='intl '
8824 while test -n "$names_next_round"; do
8825 names_this_round="$names_next_round"
8826 names_next_round=
8827 for name in $names_this_round; do
8828 already_handled=
8829 for n in $names_already_handled; do
8830 if test "$n" = "$name"; then
8831 already_handled=yes
8832 break
8833 fi
8834 done
8835 if test -z "$already_handled"; then
8836 names_already_handled="$names_already_handled $name"
8837 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8838 eval value=\"\$HAVE_LIB$uppername\"
8839 if test -n "$value"; then
8840 if test "$value" = yes; then
8841 eval value=\"\$LIB$uppername\"
8842 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8843 eval value=\"\$LTLIB$uppername\"
8844 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8845 else
8846 :
8847 fi
8848 else
8849 found_dir=
8850 found_la=
8851 found_so=
8852 found_a=
8853 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8854 if test -n "$acl_shlibext"; then
8855 shrext=".$acl_shlibext" # typically: shrext=.so
8856 else
8857 shrext=
8858 fi
8859 if test $use_additional = yes; then
8860 dir="$additional_libdir"
8861 if test -n "$acl_shlibext"; then
8862 if test -f "$dir/$libname$shrext"; then
8863 found_dir="$dir"
8864 found_so="$dir/$libname$shrext"
8865 else
8866 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8867 ver=`(cd "$dir" && \
8868 for f in "$libname$shrext".*; do echo "$f"; done \
8869 | sed -e "s,^$libname$shrext\\\\.,," \
8870 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8871 | sed 1q ) 2>/dev/null`
8872 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8873 found_dir="$dir"
8874 found_so="$dir/$libname$shrext.$ver"
8875 fi
8876 else
8877 eval library_names=\"$acl_library_names_spec\"
8878 for f in $library_names; do
8879 if test -f "$dir/$f"; then
8880 found_dir="$dir"
8881 found_so="$dir/$f"
8882 break
8883 fi
8884 done
8885 fi
8886 fi
8887 fi
8888 if test "X$found_dir" = "X"; then
8889 if test -f "$dir/$libname.$acl_libext"; then
8890 found_dir="$dir"
8891 found_a="$dir/$libname.$acl_libext"
8892 fi
8893 fi
8894 if test "X$found_dir" != "X"; then
8895 if test -f "$dir/$libname.la"; then
8896 found_la="$dir/$libname.la"
8897 fi
8898 fi
8899 fi
8900 if test "X$found_dir" = "X"; then
8901 for x in $LDFLAGS $LTLIBINTL; do
8902
8903 acl_save_prefix="$prefix"
8904 prefix="$acl_final_prefix"
8905 acl_save_exec_prefix="$exec_prefix"
8906 exec_prefix="$acl_final_exec_prefix"
8907 eval x=\"$x\"
8908 exec_prefix="$acl_save_exec_prefix"
8909 prefix="$acl_save_prefix"
8910
8911 case "$x" in
8912 -L*)
8913 dir=`echo "X$x" | sed -e 's/^X-L//'`
8914 if test -n "$acl_shlibext"; then
8915 if test -f "$dir/$libname$shrext"; then
8916 found_dir="$dir"
8917 found_so="$dir/$libname$shrext"
8918 else
8919 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8920 ver=`(cd "$dir" && \
8921 for f in "$libname$shrext".*; do echo "$f"; done \
8922 | sed -e "s,^$libname$shrext\\\\.,," \
8923 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8924 | sed 1q ) 2>/dev/null`
8925 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8926 found_dir="$dir"
8927 found_so="$dir/$libname$shrext.$ver"
8928 fi
8929 else
8930 eval library_names=\"$acl_library_names_spec\"
8931 for f in $library_names; do
8932 if test -f "$dir/$f"; then
8933 found_dir="$dir"
8934 found_so="$dir/$f"
8935 break
8936 fi
8937 done
8938 fi
8939 fi
8940 fi
8941 if test "X$found_dir" = "X"; then
8942 if test -f "$dir/$libname.$acl_libext"; then
8943 found_dir="$dir"
8944 found_a="$dir/$libname.$acl_libext"
8945 fi
8946 fi
8947 if test "X$found_dir" != "X"; then
8948 if test -f "$dir/$libname.la"; then
8949 found_la="$dir/$libname.la"
8950 fi
8951 fi
8952 ;;
8953 esac
8954 if test "X$found_dir" != "X"; then
8955 break
8956 fi
8957 done
8958 fi
8959 if test "X$found_dir" != "X"; then
8960 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8961 if test "X$found_so" != "X"; then
8962 if test "$enable_rpath" = no \
8963 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8964 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8965 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8966 else
8967 haveit=
8968 for x in $ltrpathdirs; do
8969 if test "X$x" = "X$found_dir"; then
8970 haveit=yes
8971 break
8972 fi
8973 done
8974 if test -z "$haveit"; then
8975 ltrpathdirs="$ltrpathdirs $found_dir"
8976 fi
8977 if test "$acl_hardcode_direct" = yes; then
8978 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8979 else
8980 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8981 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8982 haveit=
8983 for x in $rpathdirs; do
8984 if test "X$x" = "X$found_dir"; then
8985 haveit=yes
8986 break
8987 fi
8988 done
8989 if test -z "$haveit"; then
8990 rpathdirs="$rpathdirs $found_dir"
8991 fi
8992 else
8993 haveit=
8994 for x in $LDFLAGS $LIBINTL; do
8995
8996 acl_save_prefix="$prefix"
8997 prefix="$acl_final_prefix"
8998 acl_save_exec_prefix="$exec_prefix"
8999 exec_prefix="$acl_final_exec_prefix"
9000 eval x=\"$x\"
9001 exec_prefix="$acl_save_exec_prefix"
9002 prefix="$acl_save_prefix"
9003
9004 if test "X$x" = "X-L$found_dir"; then
9005 haveit=yes
9006 break
9007 fi
9008 done
9009 if test -z "$haveit"; then
9010 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9011 fi
9012 if test "$acl_hardcode_minus_L" != no; then
9013 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9014 else
9015 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9016 fi
9017 fi
9018 fi
9019 fi
9020 else
9021 if test "X$found_a" != "X"; then
9022 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9023 else
9024 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9025 fi
9026 fi
9027 additional_includedir=
9028 case "$found_dir" in
9029 */$acl_libdirstem | */$acl_libdirstem/)
9030 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9031 if test "$name" = 'intl'; then
9032 LIBINTL_PREFIX="$basedir"
9033 fi
9034 additional_includedir="$basedir/include"
9035 ;;
9036 */$acl_libdirstem2 | */$acl_libdirstem2/)
9037 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9038 if test "$name" = 'intl'; then
9039 LIBINTL_PREFIX="$basedir"
9040 fi
9041 additional_includedir="$basedir/include"
9042 ;;
9043 esac
9044 if test "X$additional_includedir" != "X"; then
9045 if test "X$additional_includedir" != "X/usr/include"; then
9046 haveit=
9047 if test "X$additional_includedir" = "X/usr/local/include"; then
9048 if test -n "$GCC"; then
9049 case $host_os in
9050 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9051 esac
9052 fi
9053 fi
9054 if test -z "$haveit"; then
9055 for x in $CPPFLAGS $INCINTL; do
9056
9057 acl_save_prefix="$prefix"
9058 prefix="$acl_final_prefix"
9059 acl_save_exec_prefix="$exec_prefix"
9060 exec_prefix="$acl_final_exec_prefix"
9061 eval x=\"$x\"
9062 exec_prefix="$acl_save_exec_prefix"
9063 prefix="$acl_save_prefix"
9064
9065 if test "X$x" = "X-I$additional_includedir"; then
9066 haveit=yes
9067 break
9068 fi
9069 done
9070 if test -z "$haveit"; then
9071 if test -d "$additional_includedir"; then
9072 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9073 fi
9074 fi
9075 fi
9076 fi
9077 fi
9078 if test -n "$found_la"; then
9079 save_libdir="$libdir"
9080 case "$found_la" in
9081 */* | *\\*) . "$found_la" ;;
9082 *) . "./$found_la" ;;
9083 esac
9084 libdir="$save_libdir"
9085 for dep in $dependency_libs; do
9086 case "$dep" in
9087 -L*)
9088 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9089 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9090 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9091 haveit=
9092 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9093 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9094 if test -n "$GCC"; then
9095 case $host_os in
9096 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9097 esac
9098 fi
9099 fi
9100 if test -z "$haveit"; then
9101 haveit=
9102 for x in $LDFLAGS $LIBINTL; do
9103
9104 acl_save_prefix="$prefix"
9105 prefix="$acl_final_prefix"
9106 acl_save_exec_prefix="$exec_prefix"
9107 exec_prefix="$acl_final_exec_prefix"
9108 eval x=\"$x\"
9109 exec_prefix="$acl_save_exec_prefix"
9110 prefix="$acl_save_prefix"
9111
9112 if test "X$x" = "X-L$additional_libdir"; then
9113 haveit=yes
9114 break
9115 fi
9116 done
9117 if test -z "$haveit"; then
9118 if test -d "$additional_libdir"; then
9119 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9120 fi
9121 fi
9122 haveit=
9123 for x in $LDFLAGS $LTLIBINTL; do
9124
9125 acl_save_prefix="$prefix"
9126 prefix="$acl_final_prefix"
9127 acl_save_exec_prefix="$exec_prefix"
9128 exec_prefix="$acl_final_exec_prefix"
9129 eval x=\"$x\"
9130 exec_prefix="$acl_save_exec_prefix"
9131 prefix="$acl_save_prefix"
9132
9133 if test "X$x" = "X-L$additional_libdir"; then
9134 haveit=yes
9135 break
9136 fi
9137 done
9138 if test -z "$haveit"; then
9139 if test -d "$additional_libdir"; then
9140 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9141 fi
9142 fi
9143 fi
9144 fi
9145 ;;
9146 -R*)
9147 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9148 if test "$enable_rpath" != no; then
9149 haveit=
9150 for x in $rpathdirs; do
9151 if test "X$x" = "X$dir"; then
9152 haveit=yes
9153 break
9154 fi
9155 done
9156 if test -z "$haveit"; then
9157 rpathdirs="$rpathdirs $dir"
9158 fi
9159 haveit=
9160 for x in $ltrpathdirs; do
9161 if test "X$x" = "X$dir"; then
9162 haveit=yes
9163 break
9164 fi
9165 done
9166 if test -z "$haveit"; then
9167 ltrpathdirs="$ltrpathdirs $dir"
9168 fi
9169 fi
9170 ;;
9171 -l*)
9172 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9173 ;;
9174 *.la)
9175 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9176 ;;
9177 *)
9178 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9179 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9180 ;;
9181 esac
9182 done
9183 fi
9184 else
9185 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9186 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9187 fi
9188 fi
9189 fi
9190 done
9191 done
9192 if test "X$rpathdirs" != "X"; then
9193 if test -n "$acl_hardcode_libdir_separator"; then
9194 alldirs=
9195 for found_dir in $rpathdirs; do
9196 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9197 done
9198 acl_save_libdir="$libdir"
9199 libdir="$alldirs"
9200 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9201 libdir="$acl_save_libdir"
9202 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9203 else
9204 for found_dir in $rpathdirs; do
9205 acl_save_libdir="$libdir"
9206 libdir="$found_dir"
9207 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9208 libdir="$acl_save_libdir"
9209 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9210 done
9211 fi
9212 fi
9213 if test "X$ltrpathdirs" != "X"; then
9214 for found_dir in $ltrpathdirs; do
9215 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9216 done
9217 fi
9218
9219
9220
9221
9222
9223
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9225 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9226 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 gt_save_CPPFLAGS="$CPPFLAGS"
9230 CPPFLAGS="$CPPFLAGS $INCINTL"
9231 gt_save_LIBS="$LIBS"
9232 LIBS="$LIBS $LIBINTL"
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235
9236 #include <libintl.h>
9237 $gt_revision_test_code
9238 extern int _nl_msg_cat_cntr;
9239 extern
9240 #ifdef __cplusplus
9241 "C"
9242 #endif
9243 const char *_nl_expand_alias (const char *);
9244
9245 int
9246 main ()
9247 {
9248
9249 bindtextdomain ("", "");
9250 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9251
9252 ;
9253 return 0;
9254 }
9255 _ACEOF
9256 if ac_fn_c_try_link "$LINENO"; then :
9257 eval "$gt_func_gnugettext_libintl=yes"
9258 else
9259 eval "$gt_func_gnugettext_libintl=no"
9260 fi
9261 rm -f core conftest.err conftest.$ac_objext \
9262 conftest$ac_exeext conftest.$ac_ext
9263 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9264 LIBS="$LIBS $LIBICONV"
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9267
9268 #include <libintl.h>
9269 $gt_revision_test_code
9270 extern int _nl_msg_cat_cntr;
9271 extern
9272 #ifdef __cplusplus
9273 "C"
9274 #endif
9275 const char *_nl_expand_alias (const char *);
9276
9277 int
9278 main ()
9279 {
9280
9281 bindtextdomain ("", "");
9282 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9283
9284 ;
9285 return 0;
9286 }
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"; then :
9289 LIBINTL="$LIBINTL $LIBICONV"
9290 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9291 eval "$gt_func_gnugettext_libintl=yes"
9292
9293 fi
9294 rm -f core conftest.err conftest.$ac_objext \
9295 conftest$ac_exeext conftest.$ac_ext
9296 fi
9297 CPPFLAGS="$gt_save_CPPFLAGS"
9298 LIBS="$gt_save_LIBS"
9299 fi
9300 eval ac_res=\$$gt_func_gnugettext_libintl
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9302 $as_echo "$ac_res" >&6; }
9303 fi
9304
9305 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9306 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9307 && test "$PACKAGE" != gettext-runtime \
9308 && test "$PACKAGE" != gettext-tools; }; then
9309 gt_use_preinstalled_gnugettext=yes
9310 else
9311 LIBINTL=
9312 LTLIBINTL=
9313 INCINTL=
9314 fi
9315
9316
9317
9318 if test -n "$INTL_MACOSX_LIBS"; then
9319 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9320 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9321 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9322 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9323 fi
9324 fi
9325
9326 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9327 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9328
9329 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9330
9331 else
9332 USE_NLS=no
9333 fi
9334 fi
9335
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9337 $as_echo_n "checking whether to use NLS... " >&6; }
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9339 $as_echo "$USE_NLS" >&6; }
9340 if test "$USE_NLS" = "yes"; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9342 $as_echo_n "checking where the gettext function comes from... " >&6; }
9343 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9344 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9345 gt_source="external libintl"
9346 else
9347 gt_source="libc"
9348 fi
9349 else
9350 gt_source="included intl directory"
9351 fi
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9353 $as_echo "$gt_source" >&6; }
9354 fi
9355
9356 if test "$USE_NLS" = "yes"; then
9357
9358 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9359 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9361 $as_echo_n "checking how to link with libintl... " >&6; }
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9363 $as_echo "$LIBINTL" >&6; }
9364
9365 for element in $INCINTL; do
9366 haveit=
9367 for x in $CPPFLAGS; do
9368
9369 acl_save_prefix="$prefix"
9370 prefix="$acl_final_prefix"
9371 acl_save_exec_prefix="$exec_prefix"
9372 exec_prefix="$acl_final_exec_prefix"
9373 eval x=\"$x\"
9374 exec_prefix="$acl_save_exec_prefix"
9375 prefix="$acl_save_prefix"
9376
9377 if test "X$x" = "X$element"; then
9378 haveit=yes
9379 break
9380 fi
9381 done
9382 if test -z "$haveit"; then
9383 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9384 fi
9385 done
9386
9387 fi
9388
9389
9390 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9391
9392
9393 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9394
9395 fi
9396
9397 POSUB=po
9398 fi
9399
9400
9401
9402 INTLLIBS="$LIBINTL"
9403
9404
9405
9406
9407
9408
9409
9410
9411 if test "x$GMSGFMT" = "x:"; then
9412 as_fn_error $? "missing gnu /usr/bin/msgfmt" "$LINENO" 5
9413 fi
9414
9415 # We want the 'PYTHON' varible to be python version 2. We also want
9416 # our custom 'PYTHON3' varible to be python version 3.
9417 #
9418 # First, figure out what version of python is in the executable named
9419 # 'python'. On most systems that is python version 2, but on arch
9420 # linux that is python version 3.
9421 # Extract the first word of "python", so it can be a program name with args.
9422 set dummy python; ac_word=$2
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424 $as_echo_n "checking for $ac_word... " >&6; }
9425 if ${ac_cv_path_PYTHON_UNKNOWN+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 case $PYTHON_UNKNOWN in
9429 [\\/]* | ?:[\\/]*)
9430 ac_cv_path_PYTHON_UNKNOWN="$PYTHON_UNKNOWN" # Let the user override the test with a path.
9431 ;;
9432 *)
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 for as_dir in $PATH
9435 do
9436 IFS=$as_save_IFS
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9440 ac_cv_path_PYTHON_UNKNOWN="$as_dir/$ac_word$ac_exec_ext"
9441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9442 break 2
9443 fi
9444 done
9445 done
9446 IFS=$as_save_IFS
9447
9448 test -z "$ac_cv_path_PYTHON_UNKNOWN" && ac_cv_path_PYTHON_UNKNOWN="no"
9449 ;;
9450 esac
9451 fi
9452 PYTHON_UNKNOWN=$ac_cv_path_PYTHON_UNKNOWN
9453 if test -n "$PYTHON_UNKNOWN"; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_UNKNOWN" >&5
9455 $as_echo "$PYTHON_UNKNOWN" >&6; }
9456 else
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 $as_echo "no" >&6; }
9459 fi
9460
9461
9462 if test "x$PYTHON_UNKNOWN" != "xno"; then
9463 # OK, we found 'python'. What version is it?
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON_UNKNOWN is version 2 or 3" >&5
9465 $as_echo_n "checking whether $PYTHON_UNKNOWN is version 2 or 3... " >&6; }
9466 if ${ac_cv_python_unknown_version+:} false; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 ac_cv_python_unknown_version=`$PYTHON_UNKNOWN -c "import sys; sys.stdout.write(sys.version[:3][0])"`
9470 fi
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_unknown_version" >&5
9472 $as_echo "$ac_cv_python_unknown_version" >&6; }
9473 fi
9474
9475 # Now we'll update the _AM_PYTHON_INTERPRETER_LIST variable (which
9476 # AM_PATH_PYTHON uses) to only be version 2 versions of python. Note
9477 # that the m4_define happens when autoconf is run, but the
9478 # FIRST_PYTHON_INTERPRETER variable expansion will happen when the
9479 # user runs configure.
9480 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$ac_cv_python_unknown_version" = "x2"; then
9481 FIRST_PYTHON_INTERPRETER=python
9482 else
9483 FIRST_PYTHON_INTERPRETER=python2
9484 fi
9485
9486
9487 # Now we can call AM_PATH_PYTHON to find python version 2.6+ (and
9488 # version 2 only).
9489
9490
9491
9492
9493
9494
9495 if test -n "$PYTHON"; then
9496 # If the user set $PYTHON, use it and don't search something else.
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
9498 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
9499 prog="import sys
9500 # split strings by '.' and convert to numeric. Append some zeros
9501 # because we need at least 4 digits for the hex conversion.
9502 # map returns an iterator in Python 3.0 and a list in 2.x
9503 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
9504 minverhex = 0
9505 # xrange is not present in Python 3.0 and range returns an iterator
9506 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
9507 sys.exit(sys.hexversion < minverhex)"
9508 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
9509 ($PYTHON -c "$prog") >&5 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; then :
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9514 $as_echo "yes" >&6; }
9515 else
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 $as_echo "no" >&6; }
9518 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
9519 fi
9520 am_display_PYTHON=$PYTHON
9521 else
9522 # Otherwise, try each interpreter until we find one that satisfies
9523 # VERSION.
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
9525 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
9526 if ${am_cv_pathless_PYTHON+:} false; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529
9530 for am_cv_pathless_PYTHON in $FIRST_PYTHON_INTERPRETER python2 python2.7 python2.6 none; do
9531 test "$am_cv_pathless_PYTHON" = none && break
9532 prog="import sys
9533 # split strings by '.' and convert to numeric. Append some zeros
9534 # because we need at least 4 digits for the hex conversion.
9535 # map returns an iterator in Python 3.0 and a list in 2.x
9536 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
9537 minverhex = 0
9538 # xrange is not present in Python 3.0 and range returns an iterator
9539 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
9540 sys.exit(sys.hexversion < minverhex)"
9541 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
9542 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; then :
9546 break
9547 fi
9548 done
9549 fi
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
9551 $as_echo "$am_cv_pathless_PYTHON" >&6; }
9552 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
9553 if test "$am_cv_pathless_PYTHON" = none; then
9554 PYTHON=:
9555 else
9556 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
9557 set dummy $am_cv_pathless_PYTHON; ac_word=$2
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 $as_echo_n "checking for $ac_word... " >&6; }
9560 if ${ac_cv_path_PYTHON+:} false; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 case $PYTHON in
9564 [\\/]* | ?:[\\/]*)
9565 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
9566 ;;
9567 *)
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in $PATH
9570 do
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9575 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 break 2
9578 fi
9579 done
9580 done
9581 IFS=$as_save_IFS
9582
9583 ;;
9584 esac
9585 fi
9586 PYTHON=$ac_cv_path_PYTHON
9587 if test -n "$PYTHON"; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9589 $as_echo "$PYTHON" >&6; }
9590 else
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9593 fi
9594
9595
9596 fi
9597 am_display_PYTHON=$am_cv_pathless_PYTHON
9598 fi
9599
9600
9601 if test "$PYTHON" = :; then
9602 :
9603 else
9604
9605
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
9607 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
9608 if ${am_cv_python_version+:} false; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
9612 fi
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
9614 $as_echo "$am_cv_python_version" >&6; }
9615 PYTHON_VERSION=$am_cv_python_version
9616
9617
9618
9619 PYTHON_PREFIX='${prefix}'
9620
9621 PYTHON_EXEC_PREFIX='${exec_prefix}'
9622
9623
9624
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
9626 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
9627 if ${am_cv_python_platform+:} false; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
9631 fi
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
9633 $as_echo "$am_cv_python_platform" >&6; }
9634 PYTHON_PLATFORM=$am_cv_python_platform
9635
9636
9637 # Just factor out some code duplication.
9638 am_python_setup_sysconfig="\
9639 import sys
9640 # Prefer sysconfig over distutils.sysconfig, for better compatibility
9641 # with python 3.x. See automake bug#10227.
9642 try:
9643 import sysconfig
9644 except ImportError:
9645 can_use_sysconfig = 0
9646 else:
9647 can_use_sysconfig = 1
9648 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
9649 # <https://github.com/pypa/virtualenv/issues/118>
9650 try:
9651 from platform import python_implementation
9652 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
9653 can_use_sysconfig = 0
9654 except ImportError:
9655 pass"
9656
9657
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
9659 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
9660 if ${am_cv_python_pythondir+:} false; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 if test "x$prefix" = xNONE
9664 then
9665 am_py_prefix=$ac_default_prefix
9666 else
9667 am_py_prefix=$prefix
9668 fi
9669 am_cv_python_pythondir=`$PYTHON -c "
9670 $am_python_setup_sysconfig
9671 if can_use_sysconfig:
9672 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
9673 else:
9674 from distutils import sysconfig
9675 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
9676 sys.stdout.write(sitedir)"`
9677 case $am_cv_python_pythondir in
9678 $am_py_prefix*)
9679 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
9680 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
9681 ;;
9682 *)
9683 case $am_py_prefix in
9684 /usr|/System*) ;;
9685 *)
9686 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
9687 ;;
9688 esac
9689 ;;
9690 esac
9691
9692 fi
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
9694 $as_echo "$am_cv_python_pythondir" >&6; }
9695 pythondir=$am_cv_python_pythondir
9696
9697
9698
9699 pkgpythondir=\${pythondir}/$PACKAGE
9700
9701
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
9703 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
9704 if ${am_cv_python_pyexecdir+:} false; then :
9705 $as_echo_n "(cached) " >&6
9706 else
9707 if test "x$exec_prefix" = xNONE
9708 then
9709 am_py_exec_prefix=$am_py_prefix
9710 else
9711 am_py_exec_prefix=$exec_prefix
9712 fi
9713 am_cv_python_pyexecdir=`$PYTHON -c "
9714 $am_python_setup_sysconfig
9715 if can_use_sysconfig:
9716 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
9717 else:
9718 from distutils import sysconfig
9719 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
9720 sys.stdout.write(sitedir)"`
9721 case $am_cv_python_pyexecdir in
9722 $am_py_exec_prefix*)
9723 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
9724 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
9725 ;;
9726 *)
9727 case $am_py_exec_prefix in
9728 /usr|/System*) ;;
9729 *)
9730 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
9731 ;;
9732 esac
9733 ;;
9734 esac
9735
9736 fi
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
9738 $as_echo "$am_cv_python_pyexecdir" >&6; }
9739 pyexecdir=$am_cv_python_pyexecdir
9740
9741
9742
9743 pkgpyexecdir=\${pyexecdir}/$PACKAGE
9744
9745
9746
9747 fi
9748
9749
9750
9751 # Now let's try to find python version 3.
9752 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$python_unknown_version" = "x3"; then
9753 # Extract the first word of "python", so it can be a program name with args.
9754 set dummy python; ac_word=$2
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9756 $as_echo_n "checking for $ac_word... " >&6; }
9757 if ${ac_cv_path_PYTHON3+:} false; then :
9758 $as_echo_n "(cached) " >&6
9759 else
9760 case $PYTHON3 in
9761 [\\/]* | ?:[\\/]*)
9762 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9763 ;;
9764 *)
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 for as_dir in $PATH
9767 do
9768 IFS=$as_save_IFS
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
9771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9774 break 2
9775 fi
9776 done
9777 done
9778 IFS=$as_save_IFS
9779
9780 ;;
9781 esac
9782 fi
9783 PYTHON3=$ac_cv_path_PYTHON3
9784 if test -n "$PYTHON3"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9786 $as_echo "$PYTHON3" >&6; }
9787 else
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9790 fi
9791
9792
9793 else
9794 for ac_prog in python3 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0
9795 do
9796 # Extract the first word of "$ac_prog", so it can be a program name with args.
9797 set dummy $ac_prog; ac_word=$2
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9799 $as_echo_n "checking for $ac_word... " >&6; }
9800 if ${ac_cv_path_PYTHON3+:} false; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 case $PYTHON3 in
9804 [\\/]* | ?:[\\/]*)
9805 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9806 ;;
9807 *)
9808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809 for as_dir in $PATH
9810 do
9811 IFS=$as_save_IFS
9812 test -z "$as_dir" && as_dir=.
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9815 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9817 break 2
9818 fi
9819 done
9820 done
9821 IFS=$as_save_IFS
9822
9823 ;;
9824 esac
9825 fi
9826 PYTHON3=$ac_cv_path_PYTHON3
9827 if test -n "$PYTHON3"; then
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9829 $as_echo "$PYTHON3" >&6; }
9830 else
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832 $as_echo "no" >&6; }
9833 fi
9834
9835
9836 test -n "$PYTHON3" && break
9837 done
9838
9839 fi
9840
9841 # If we found python version 3, set up the other variables for python
9842 # version 3 that AM_PATH_PYTHON sets up for python version 2.
9843 if test -n "$PYTHON3"; then
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 version" >&5
9845 $as_echo_n "checking for python3 version... " >&6; }
9846 if ${ac_cv_python3_version+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 ac_cv_python3_version=`$PYTHON3 -c "import sys; sys.stdout.write(sys.version[:3])"`
9850 fi
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_version" >&5
9852 $as_echo "$ac_cv_python3_version" >&6; }
9853 PYTHON3_VERSION=$python3_version
9854
9855 PYTHON3_PREFIX='${prefix}'
9856
9857 PYTHON3_EXEC_PREFIX='${exec_prefix}'
9858
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 platform" >&5
9860 $as_echo_n "checking for python3 platform... " >&6; }
9861 if ${ac_cv_python3_platform+:} false; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 ac_cv_python3_platform=`$PYTHON3 -c "import sys; sys.stdout.write(sys.platform)"`
9865 fi
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_platform" >&5
9867 $as_echo "$ac_cv_python3_platform" >&6; }
9868 PYTHON3_PLATFORM=$ac_cv_python3_platform
9869
9870
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 script directory" >&5
9872 $as_echo_n "checking for python3 script directory... " >&6; }
9873 if ${ac_cv_python3_dir+:} false; then :
9874 $as_echo_n "(cached) " >&6
9875 else
9876 ac_cv_python3_dir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(0,0,prefix='$PYTHON3_PREFIX'))"`
9877 fi
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_dir" >&5
9879 $as_echo "$ac_cv_python3_dir" >&6; }
9880 python3dir=$am_cv_python3_dir
9881
9882
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 extension module directory" >&5
9884 $as_echo_n "checking for python3 extension module directory... " >&6; }
9885 if ${ac_cv_py3execdir+:} false; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 ac_cv_py3execdir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(1,0,prefix='$PYTHON3_EXEC_PREFIX'))"`
9889 fi
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_py3execdir" >&5
9891 $as_echo "$ac_cv_py3execdir" >&6; }
9892 py3execdir=$am_cv_py3execdir
9893
9894 fi
9895
9896 if test "${enable_prologues+set}" != set; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5
9898 $as_echo_n "checking to see if prologue searching should be the default... " >&6; }
9899 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
9900 echo ' yes '
9901 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9902 enable_prologues=yes
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9904 $as_echo "yes" >&6; }
9905 else
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907 $as_echo "no" >&6; }
9908 fi
9909 fi
9910 # Check whether --enable-prologues was given.
9911 if test "${enable_prologues+set}" = set; then :
9912 enableval=$enable_prologues;
9913 if test "$enable_prologues" = yes; then
9914
9915 $as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h
9916
9917 fi
9918 fi
9919
9920
9921
9922 if test "${enable_sdt_probes+set}" != set; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5
9924 $as_echo_n "checking to see if sdt probes should be the default... " >&6; }
9925 if { echo '#if __GNUC__ < 4'
9926 echo ' yes '
9927 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9928 enable_sdt_probes=no
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; }
9931 else
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9933 $as_echo "yes" >&6; }
9934 fi
9935 fi
9936 # Check whether --enable-sdt-probes was given.
9937 if test "${enable_sdt_probes+set}" = set; then :
9938 enableval=$enable_sdt_probes;
9939 fi
9940
9941 if test "x$enable_sdt_probes" != xno; then :
9942
9943
9944 $as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h
9945
9946
9947 fi
9948
9949
9950 ax_cxx_compile_cxx11_required=false
9951 ac_ext=cpp
9952 ac_cpp='$CXXCPP $CPPFLAGS'
9953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9956 ac_success=no
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
9958 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
9959 if ${ax_cv_cxx_compile_cxx11+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9964
9965
9966 // If the compiler admits that it is not ready for C++11, why torture it?
9967 // Hopefully, this will speed up the test.
9968
9969 #ifndef __cplusplus
9970
9971 #error "This is not a C++ compiler"
9972
9973 #elif __cplusplus < 201103L
9974
9975 #error "This is not a C++11 compiler"
9976
9977 #else
9978
9979 namespace cxx11
9980 {
9981
9982 namespace test_static_assert
9983 {
9984
9985 template <typename T>
9986 struct check
9987 {
9988 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9989 };
9990
9991 }
9992
9993 namespace test_final_override
9994 {
9995
9996 struct Base
9997 {
9998 virtual void f() {}
9999 };
10000
10001 struct Derived : public Base
10002 {
10003 virtual void f() override {}
10004 };
10005
10006 }
10007
10008 namespace test_double_right_angle_brackets
10009 {
10010
10011 template < typename T >
10012 struct check {};
10013
10014 typedef check<void> single_type;
10015 typedef check<check<void>> double_type;
10016 typedef check<check<check<void>>> triple_type;
10017 typedef check<check<check<check<void>>>> quadruple_type;
10018
10019 }
10020
10021 namespace test_decltype
10022 {
10023
10024 int
10025 f()
10026 {
10027 int a = 1;
10028 decltype(a) b = 2;
10029 return a + b;
10030 }
10031
10032 }
10033
10034 namespace test_type_deduction
10035 {
10036
10037 template < typename T1, typename T2 >
10038 struct is_same
10039 {
10040 static const bool value = false;
10041 };
10042
10043 template < typename T >
10044 struct is_same<T, T>
10045 {
10046 static const bool value = true;
10047 };
10048
10049 template < typename T1, typename T2 >
10050 auto
10051 add(T1 a1, T2 a2) -> decltype(a1 + a2)
10052 {
10053 return a1 + a2;
10054 }
10055
10056 int
10057 test(const int c, volatile int v)
10058 {
10059 static_assert(is_same<int, decltype(0)>::value == true, "");
10060 static_assert(is_same<int, decltype(c)>::value == false, "");
10061 static_assert(is_same<int, decltype(v)>::value == false, "");
10062 auto ac = c;
10063 auto av = v;
10064 auto sumi = ac + av + 'x';
10065 auto sumf = ac + av + 1.0;
10066 static_assert(is_same<int, decltype(ac)>::value == true, "");
10067 static_assert(is_same<int, decltype(av)>::value == true, "");
10068 static_assert(is_same<int, decltype(sumi)>::value == true, "");
10069 static_assert(is_same<int, decltype(sumf)>::value == false, "");
10070 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
10071 return (sumf > 0.0) ? sumi : add(c, v);
10072 }
10073
10074 }
10075
10076 namespace test_noexcept
10077 {
10078
10079 int f() { return 0; }
10080 int g() noexcept { return 0; }
10081
10082 static_assert(noexcept(f()) == false, "");
10083 static_assert(noexcept(g()) == true, "");
10084
10085 }
10086
10087 namespace test_constexpr
10088 {
10089
10090 template < typename CharT >
10091 unsigned long constexpr
10092 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
10093 {
10094 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
10095 }
10096
10097 template < typename CharT >
10098 unsigned long constexpr
10099 strlen_c(const CharT *const s) noexcept
10100 {
10101 return strlen_c_r(s, 0UL);
10102 }
10103
10104 static_assert(strlen_c("") == 0UL, "");
10105 static_assert(strlen_c("1") == 1UL, "");
10106 static_assert(strlen_c("example") == 7UL, "");
10107 static_assert(strlen_c("another\0example") == 7UL, "");
10108
10109 }
10110
10111 namespace test_rvalue_references
10112 {
10113
10114 template < int N >
10115 struct answer
10116 {
10117 static constexpr int value = N;
10118 };
10119
10120 answer<1> f(int&) { return answer<1>(); }
10121 answer<2> f(const int&) { return answer<2>(); }
10122 answer<3> f(int&&) { return answer<3>(); }
10123
10124 void
10125 test()
10126 {
10127 int i = 0;
10128 const int c = 0;
10129 static_assert(decltype(f(i))::value == 1, "");
10130 static_assert(decltype(f(c))::value == 2, "");
10131 static_assert(decltype(f(0))::value == 3, "");
10132 }
10133
10134 }
10135
10136 namespace test_uniform_initialization
10137 {
10138
10139 struct test
10140 {
10141 static const int zero {};
10142 static const int one {1};
10143 };
10144
10145 static_assert(test::zero == 0, "");
10146 static_assert(test::one == 1, "");
10147
10148 }
10149
10150 namespace test_lambdas
10151 {
10152
10153 void
10154 test1()
10155 {
10156 auto lambda1 = [](){};
10157 auto lambda2 = lambda1;
10158 lambda1();
10159 lambda2();
10160 }
10161
10162 int
10163 test2()
10164 {
10165 auto a = [](int i, int j){ return i + j; }(1, 2);
10166 auto b = []() -> int { return '0'; }();
10167 auto c = [=](){ return a + b; }();
10168 auto d = [&](){ return c; }();
10169 auto e = [a, &b](int x) mutable {
10170 const auto identity = [](int y){ return y; };
10171 for (auto i = 0; i < a; ++i)
10172 a += b--;
10173 return x + identity(a + b);
10174 }(0);
10175 return a + b + c + d + e;
10176 }
10177
10178 int
10179 test3()
10180 {
10181 const auto nullary = [](){ return 0; };
10182 const auto unary = [](int x){ return x; };
10183 using nullary_t = decltype(nullary);
10184 using unary_t = decltype(unary);
10185 const auto higher1st = [](nullary_t f){ return f(); };
10186 const auto higher2nd = [unary](nullary_t f1){
10187 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
10188 };
10189 return higher1st(nullary) + higher2nd(nullary)(unary);
10190 }
10191
10192 }
10193
10194 namespace test_variadic_templates
10195 {
10196
10197 template <int...>
10198 struct sum;
10199
10200 template <int N0, int... N1toN>
10201 struct sum<N0, N1toN...>
10202 {
10203 static constexpr auto value = N0 + sum<N1toN...>::value;
10204 };
10205
10206 template <>
10207 struct sum<>
10208 {
10209 static constexpr auto value = 0;
10210 };
10211
10212 static_assert(sum<>::value == 0, "");
10213 static_assert(sum<1>::value == 1, "");
10214 static_assert(sum<23>::value == 23, "");
10215 static_assert(sum<1, 2>::value == 3, "");
10216 static_assert(sum<5, 5, 11>::value == 21, "");
10217 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
10218
10219 }
10220
10221 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
10222 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
10223 // because of this.
10224 namespace test_template_alias_sfinae
10225 {
10226
10227 struct foo {};
10228
10229 template<typename T>
10230 using member = typename T::member_type;
10231
10232 template<typename T>
10233 void func(...) {}
10234
10235 template<typename T>
10236 void func(member<T>*) {}
10237
10238 void test();
10239
10240 void test() { func<foo>(0); }
10241
10242 }
10243
10244 } // namespace cxx11
10245
10246 #endif // __cplusplus >= 201103L
10247
10248
10249
10250 _ACEOF
10251 if ac_fn_cxx_try_compile "$LINENO"; then :
10252 ax_cv_cxx_compile_cxx11=yes
10253 else
10254 ax_cv_cxx_compile_cxx11=no
10255 fi
10256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10257 fi
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
10259 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
10260 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
10261 ac_success=yes
10262 fi
10263
10264
10265
10266 if test x$ac_success = xno; then
10267 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
10268 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
10270 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
10271 if eval \${$cachevar+:} false; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10274 ac_save_CXX="$CXX"
10275 CXX="$CXX $switch"
10276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277 /* end confdefs.h. */
10278
10279
10280 // If the compiler admits that it is not ready for C++11, why torture it?
10281 // Hopefully, this will speed up the test.
10282
10283 #ifndef __cplusplus
10284
10285 #error "This is not a C++ compiler"
10286
10287 #elif __cplusplus < 201103L
10288
10289 #error "This is not a C++11 compiler"
10290
10291 #else
10292
10293 namespace cxx11
10294 {
10295
10296 namespace test_static_assert
10297 {
10298
10299 template <typename T>
10300 struct check
10301 {
10302 static_assert(sizeof(int) <= sizeof(T), "not big enough");
10303 };
10304
10305 }
10306
10307 namespace test_final_override
10308 {
10309
10310 struct Base
10311 {
10312 virtual void f() {}
10313 };
10314
10315 struct Derived : public Base
10316 {
10317 virtual void f() override {}
10318 };
10319
10320 }
10321
10322 namespace test_double_right_angle_brackets
10323 {
10324
10325 template < typename T >
10326 struct check {};
10327
10328 typedef check<void> single_type;
10329 typedef check<check<void>> double_type;
10330 typedef check<check<check<void>>> triple_type;
10331 typedef check<check<check<check<void>>>> quadruple_type;
10332
10333 }
10334
10335 namespace test_decltype
10336 {
10337
10338 int
10339 f()
10340 {
10341 int a = 1;
10342 decltype(a) b = 2;
10343 return a + b;
10344 }
10345
10346 }
10347
10348 namespace test_type_deduction
10349 {
10350
10351 template < typename T1, typename T2 >
10352 struct is_same
10353 {
10354 static const bool value = false;
10355 };
10356
10357 template < typename T >
10358 struct is_same<T, T>
10359 {
10360 static const bool value = true;
10361 };
10362
10363 template < typename T1, typename T2 >
10364 auto
10365 add(T1 a1, T2 a2) -> decltype(a1 + a2)
10366 {
10367 return a1 + a2;
10368 }
10369
10370 int
10371 test(const int c, volatile int v)
10372 {
10373 static_assert(is_same<int, decltype(0)>::value == true, "");
10374 static_assert(is_same<int, decltype(c)>::value == false, "");
10375 static_assert(is_same<int, decltype(v)>::value == false, "");
10376 auto ac = c;
10377 auto av = v;
10378 auto sumi = ac + av + 'x';
10379 auto sumf = ac + av + 1.0;
10380 static_assert(is_same<int, decltype(ac)>::value == true, "");
10381 static_assert(is_same<int, decltype(av)>::value == true, "");
10382 static_assert(is_same<int, decltype(sumi)>::value == true, "");
10383 static_assert(is_same<int, decltype(sumf)>::value == false, "");
10384 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
10385 return (sumf > 0.0) ? sumi : add(c, v);
10386 }
10387
10388 }
10389
10390 namespace test_noexcept
10391 {
10392
10393 int f() { return 0; }
10394 int g() noexcept { return 0; }
10395
10396 static_assert(noexcept(f()) == false, "");
10397 static_assert(noexcept(g()) == true, "");
10398
10399 }
10400
10401 namespace test_constexpr
10402 {
10403
10404 template < typename CharT >
10405 unsigned long constexpr
10406 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
10407 {
10408 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
10409 }
10410
10411 template < typename CharT >
10412 unsigned long constexpr
10413 strlen_c(const CharT *const s) noexcept
10414 {
10415 return strlen_c_r(s, 0UL);
10416 }
10417
10418 static_assert(strlen_c("") == 0UL, "");
10419 static_assert(strlen_c("1") == 1UL, "");
10420 static_assert(strlen_c("example") == 7UL, "");
10421 static_assert(strlen_c("another\0example") == 7UL, "");
10422
10423 }
10424
10425 namespace test_rvalue_references
10426 {
10427
10428 template < int N >
10429 struct answer
10430 {
10431 static constexpr int value = N;
10432 };
10433
10434 answer<1> f(int&) { return answer<1>(); }
10435 answer<2> f(const int&) { return answer<2>(); }
10436 answer<3> f(int&&) { return answer<3>(); }
10437
10438 void
10439 test()
10440 {
10441 int i = 0;
10442 const int c = 0;
10443 static_assert(decltype(f(i))::value == 1, "");
10444 static_assert(decltype(f(c))::value == 2, "");
10445 static_assert(decltype(f(0))::value == 3, "");
10446 }
10447
10448 }
10449
10450 namespace test_uniform_initialization
10451 {
10452
10453 struct test
10454 {
10455 static const int zero {};
10456 static const int one {1};
10457 };
10458
10459 static_assert(test::zero == 0, "");
10460 static_assert(test::one == 1, "");
10461
10462 }
10463
10464 namespace test_lambdas
10465 {
10466
10467 void
10468 test1()
10469 {
10470 auto lambda1 = [](){};
10471 auto lambda2 = lambda1;
10472 lambda1();
10473 lambda2();
10474 }
10475
10476 int
10477 test2()
10478 {
10479 auto a = [](int i, int j){ return i + j; }(1, 2);
10480 auto b = []() -> int { return '0'; }();
10481 auto c = [=](){ return a + b; }();
10482 auto d = [&](){ return c; }();
10483 auto e = [a, &b](int x) mutable {
10484 const auto identity = [](int y){ return y; };
10485 for (auto i = 0; i < a; ++i)
10486 a += b--;
10487 return x + identity(a + b);
10488 }(0);
10489 return a + b + c + d + e;
10490 }
10491
10492 int
10493 test3()
10494 {
10495 const auto nullary = [](){ return 0; };
10496 const auto unary = [](int x){ return x; };
10497 using nullary_t = decltype(nullary);
10498 using unary_t = decltype(unary);
10499 const auto higher1st = [](nullary_t f){ return f(); };
10500 const auto higher2nd = [unary](nullary_t f1){
10501 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
10502 };
10503 return higher1st(nullary) + higher2nd(nullary)(unary);
10504 }
10505
10506 }
10507
10508 namespace test_variadic_templates
10509 {
10510
10511 template <int...>
10512 struct sum;
10513
10514 template <int N0, int... N1toN>
10515 struct sum<N0, N1toN...>
10516 {
10517 static constexpr auto value = N0 + sum<N1toN...>::value;
10518 };
10519
10520 template <>
10521 struct sum<>
10522 {
10523 static constexpr auto value = 0;
10524 };
10525
10526 static_assert(sum<>::value == 0, "");
10527 static_assert(sum<1>::value == 1, "");
10528 static_assert(sum<23>::value == 23, "");
10529 static_assert(sum<1, 2>::value == 3, "");
10530 static_assert(sum<5, 5, 11>::value == 21, "");
10531 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
10532
10533 }
10534
10535 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
10536 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
10537 // because of this.
10538 namespace test_template_alias_sfinae
10539 {
10540
10541 struct foo {};
10542
10543 template<typename T>
10544 using member = typename T::member_type;
10545
10546 template<typename T>
10547 void func(...) {}
10548
10549 template<typename T>
10550 void func(member<T>*) {}
10551
10552 void test();
10553
10554 void test() { func<foo>(0); }
10555
10556 }
10557
10558 } // namespace cxx11
10559
10560 #endif // __cplusplus >= 201103L
10561
10562
10563
10564 _ACEOF
10565 if ac_fn_cxx_try_compile "$LINENO"; then :
10566 eval $cachevar=yes
10567 else
10568 eval $cachevar=no
10569 fi
10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10571 CXX="$ac_save_CXX"
10572 fi
10573 eval ac_res=\$$cachevar
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10575 $as_echo "$ac_res" >&6; }
10576 if eval test x\$$cachevar = xyes; then
10577 CXX="$CXX $switch"
10578 ac_success=yes
10579 break
10580 fi
10581 done
10582 fi
10583 ac_ext=c
10584 ac_cpp='$CPP $CPPFLAGS'
10585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10588
10589 if test x$ax_cxx_compile_cxx11_required = xtrue; then
10590 if test x$ac_success = xno; then
10591 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
10592 fi
10593 fi
10594 if test x$ac_success = xno; then
10595 HAVE_CXX11=0
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
10597 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
10598 else
10599 HAVE_CXX11=1
10600
10601 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
10602
10603 fi
10604
10605
10606 if test "x$HAVE_CXX11" != x1; then :
10607
10608 ac_ext=cpp
10609 ac_cpp='$CXXCPP $CPPFLAGS'
10610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10613
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -std=c++0x" >&5
10615 $as_echo_n "checking whether C++ compiler accepts -std=c++0x... " >&6; }
10616 if ${ax_cv_check_cxxflags___std_cpp0x+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619
10620 ax_check_save_flags=$CXXFLAGS
10621 CXXFLAGS="$CXXFLAGS -std=c++0x"
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624
10625 int
10626 main ()
10627 {
10628
10629 ;
10630 return 0;
10631 }
10632 _ACEOF
10633 if ac_fn_cxx_try_compile "$LINENO"; then :
10634 ax_cv_check_cxxflags___std_cpp0x=yes
10635 else
10636 ax_cv_check_cxxflags___std_cpp0x=no
10637 fi
10638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10639 CXXFLAGS=$ax_check_save_flags
10640 fi
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___std_cpp0x" >&5
10642 $as_echo "$ax_cv_check_cxxflags___std_cpp0x" >&6; }
10643 if test "x$ax_cv_check_cxxflags___std_cpp0x" = xyes; then :
10644
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with -std=c++0x" >&5
10646 $as_echo "$as_me: Compiling with -std=c++0x" >&6;}
10647 CXX="$CXX -std=c++0x"
10648 HAVE_CXX11=1
10649
10650 else
10651
10652 as_fn_error $? "A compiler with C++11 support is required." "$LINENO" 5
10653
10654 fi
10655
10656 ac_ext=c
10657 ac_cpp='$CPP $CPPFLAGS'
10658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10661
10662
10663 fi
10664
10665 # Check whether --enable-ssp was given.
10666 if test "${enable_ssp+set}" = set; then :
10667 enableval=$enable_ssp;
10668 fi
10669
10670 if test "x$enable_ssp" != xno; then :
10671
10672 save_CFLAGS="$CFLAGS"
10673 save_CXXFLAGS="$CXXFLAGS"
10674 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
10675 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10678 int something ();
10679 _ACEOF
10680 if ac_fn_c_try_compile "$LINENO"; then :
10681
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
10683 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
10684 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
10685 CXXFLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
10686 else
10687
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
10689 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
10690 CFLAGS="$save_CFLAGS"
10691 CXXFLAGS="$save_CXXFLAGS"
10692 fi
10693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10694 fi
10695
10696
10697
10698
10699 # Compiling without fPIE by default (see PR 9922)
10700 # Check whether --enable-pie was given.
10701 if test "${enable_pie+set}" = set; then :
10702 enableval=$enable_pie;
10703 fi
10704
10705 if test "x$enable_pie" == xyes; then :
10706
10707 PIECFLAGS='-fPIE'
10708 PIECXXFLAGS='-fPIE'
10709 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
10710 save_CFLAGS="$CFLAGS"
10711 save_CXXFLAGS="$CXXFLAGS"
10712 save_LDFLAGS="$LDFLAGS"
10713 CFLAGS="$CFLAGS $PIECFLAGS"
10714 CXXFLAGS="$CXXFLAGS $PIECXXFLAGS"
10715 LDFLAGS="$LDFLAGS $PIELDFLAGS"
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 void main () {}
10719 _ACEOF
10720 if ac_fn_c_try_link "$LINENO"; then :
10721
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
10723 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
10724
10725 else
10726
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
10728 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
10729 PIECFLAGS=""
10730 PIECXXFLAGS=""
10731 PIELDFLAGS=""
10732
10733 fi
10734 rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 CFLAGS="$save_CFLAGS"
10737 CXXFLAGS="$save_CXXFLAGS"
10738 LDFLAGS="$save_LDFLAGS"
10739
10740 fi
10741
10742
10743
10744
10745 # Check whether --enable-sqlite was given.
10746 if test "${enable_sqlite+set}" = set; then :
10747 enableval=$enable_sqlite;
10748 else
10749 enable_sqlite=check
10750 fi
10751 sqlite3_LIBS=
10752 if test "x$enable_sqlite" != xno; then :
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
10754 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
10755 if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 ac_check_lib_save_LIBS=$LIBS
10759 LIBS="-lsqlite3 $LIBS"
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 char sqlite3_open ();
10770 int
10771 main ()
10772 {
10773 return sqlite3_open ();
10774 ;
10775 return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779 ac_cv_lib_sqlite3_sqlite3_open=yes
10780 else
10781 ac_cv_lib_sqlite3_sqlite3_open=no
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10786 fi
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
10788 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
10789 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
10790 sqlite3_LIBS=-lsqlite3
10791
10792
10793 $as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h
10794
10795 else
10796 if test "x$enable_sqlite" != xcheck; then
10797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10799 as_fn_error $? "--enable-sqlite was given, but test for sqlite failed
10800 See \`config.log' for more details" "$LINENO" 5; }
10801 fi
10802 fi
10803
10804 fi
10805
10806 # Check whether --enable-translator was given.
10807 if test "${enable_translator+set}" = set; then :
10808 enableval=$enable_translator;
10809 else
10810 enable_translator="yes"
10811 fi
10812
10813 if test "$enable_translator" == "yes"; then
10814 BUILD_TRANSLATOR_TRUE=
10815 BUILD_TRANSLATOR_FALSE='#'
10816 else
10817 BUILD_TRANSLATOR_TRUE='#'
10818 BUILD_TRANSLATOR_FALSE=
10819 fi
10820
10821
10822 # Check whether --enable-crash was given.
10823 if test "${enable_crash+set}" = set; then :
10824 enableval=$enable_crash; if test "$enable_crash" != "no"; then
10825 save_CPPFLAGS="$CPPFLAGS"
10826 if test "$enable_crash" != "yes"; then
10827 staplog_CPPFLAGS=-I$enable_crash
10828 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
10829
10830 fi
10831 for ac_header in crash/defs.h
10832 do :
10833 ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" "
10834 #define NR_CPUS 256
10835
10836 "
10837 if test "x$ac_cv_header_crash_defs_h" = xyes; then :
10838 cat >>confdefs.h <<_ACEOF
10839 #define HAVE_CRASH_DEFS_H 1
10840 _ACEOF
10841
10842 else
10843 as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5
10844 fi
10845
10846 done
10847
10848 CPPFLAGS="$save_CPPFLAGS"
10849 fi
10850 else
10851 enable_crash="no"
10852 fi
10853
10854 if test "$enable_crash" != "no"; then
10855 BUILD_CRASHMOD_TRUE=
10856 BUILD_CRASHMOD_FALSE='#'
10857 else
10858 BUILD_CRASHMOD_TRUE='#'
10859 BUILD_CRASHMOD_FALSE=
10860 fi
10861
10862
10863 building_docs="no"
10864 # Check whether --enable-docs was given.
10865 if test "${enable_docs+set}" = set; then :
10866 enableval=$enable_docs; enable_docs=$enableval
10867 else
10868 enable_docs="check"
10869 fi
10870
10871 # Extract the first word of "latex", so it can be a program name with args.
10872 set dummy latex; ac_word=$2
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10874 $as_echo_n "checking for $ac_word... " >&6; }
10875 if ${ac_cv_prog_have_latex+:} false; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 if test -n "$have_latex"; then
10879 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
10880 else
10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $PATH
10883 do
10884 IFS=$as_save_IFS
10885 test -z "$as_dir" && as_dir=.
10886 for ac_exec_ext in '' $ac_executable_extensions; do
10887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10888 ac_cv_prog_have_latex="yes"
10889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10890 break 2
10891 fi
10892 done
10893 done
10894 IFS=$as_save_IFS
10895
10896 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
10897 fi
10898 fi
10899 have_latex=$ac_cv_prog_have_latex
10900 if test -n "$have_latex"; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5
10902 $as_echo "$have_latex" >&6; }
10903 else
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10906 fi
10907
10908
10909 # Extract the first word of "dvips", so it can be a program name with args.
10910 set dummy dvips; ac_word=$2
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10912 $as_echo_n "checking for $ac_word... " >&6; }
10913 if ${ac_cv_prog_have_dvips+:} false; then :
10914 $as_echo_n "(cached) " >&6
10915 else
10916 if test -n "$have_dvips"; then
10917 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
10918 else
10919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10920 for as_dir in $PATH
10921 do
10922 IFS=$as_save_IFS
10923 test -z "$as_dir" && as_dir=.
10924 for ac_exec_ext in '' $ac_executable_extensions; do
10925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10926 ac_cv_prog_have_dvips="yes"
10927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10928 break 2
10929 fi
10930 done
10931 done
10932 IFS=$as_save_IFS
10933
10934 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
10935 fi
10936 fi
10937 have_dvips=$ac_cv_prog_have_dvips
10938 if test -n "$have_dvips"; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
10940 $as_echo "$have_dvips" >&6; }
10941 else
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943 $as_echo "no" >&6; }
10944 fi
10945
10946
10947 # Extract the first word of "ps2pdf", so it can be a program name with args.
10948 set dummy ps2pdf; ac_word=$2
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10950 $as_echo_n "checking for $ac_word... " >&6; }
10951 if ${ac_cv_prog_have_ps2pdf+:} false; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 if test -n "$have_ps2pdf"; then
10955 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
10956 else
10957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958 for as_dir in $PATH
10959 do
10960 IFS=$as_save_IFS
10961 test -z "$as_dir" && as_dir=.
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10964 ac_cv_prog_have_ps2pdf="yes"
10965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10966 break 2
10967 fi
10968 done
10969 done
10970 IFS=$as_save_IFS
10971
10972 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
10973 fi
10974 fi
10975 have_ps2pdf=$ac_cv_prog_have_ps2pdf
10976 if test -n "$have_ps2pdf"; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5
10978 $as_echo "$have_ps2pdf" >&6; }
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10982 fi
10983
10984
10985 if test "x${have_latex}${have_dvips}${have_ps2pdf}" != "xyesyesyes"; then
10986 if test "$enable_docs" == "yes"; then
10987 as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5
10988 fi
10989 if test "$enable_docs" == "check"; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5
10991 $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
10992 fi
10993 fi
10994 if test "x${have_latex}${have_dvips}${have_ps2pdf}" == "xyesyesyes" -a "$enable_docs" != "no"; then
10995 building_docs="yes"
10996 fi
10997 if test "$building_docs" == "yes"; then
10998 BUILD_DOCS_TRUE=
10999 BUILD_DOCS_FALSE='#'
11000 else
11001 BUILD_DOCS_TRUE='#'
11002 BUILD_DOCS_FALSE=
11003 fi
11004
11005
11006
11007 building_refdocs="no"
11008 # Check whether --enable-refdocs was given.
11009 if test "${enable_refdocs+set}" = set; then :
11010 enableval=$enable_refdocs; enable_refdocs=$enableval
11011 else
11012 enable_refdocs="check"
11013 fi
11014
11015 if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
11016 as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5
11017 fi
11018 if test "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
11019 building_refdocs="yes"
11020 fi
11021 if test "$building_refdocs" == "yes"; then
11022 BUILD_REFDOCS_TRUE=
11023 BUILD_REFDOCS_FALSE='#'
11024 else
11025 BUILD_REFDOCS_TRUE='#'
11026 BUILD_REFDOCS_FALSE=
11027 fi
11028
11029
11030 # Extract the first word of "xmlto", so it can be a program name with args.
11031 set dummy xmlto; ac_word=$2
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033 $as_echo_n "checking for $ac_word... " >&6; }
11034 if ${ac_cv_prog_have_xmlto+:} false; then :
11035 $as_echo_n "(cached) " >&6
11036 else
11037 if test -n "$have_xmlto"; then
11038 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
11039 else
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11042 do
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11047 ac_cv_prog_have_xmlto="yes"
11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 break 2
11050 fi
11051 done
11052 done
11053 IFS=$as_save_IFS
11054
11055 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
11056 fi
11057 fi
11058 have_xmlto=$ac_cv_prog_have_xmlto
11059 if test -n "$have_xmlto"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
11061 $as_echo "$have_xmlto" >&6; }
11062 else
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11065 fi
11066
11067
11068 # Extract the first word of "fop", so it can be a program name with args.
11069 set dummy fop; ac_word=$2
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071 $as_echo_n "checking for $ac_word... " >&6; }
11072 if ${ac_cv_prog_have_fop+:} false; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 if test -n "$have_fop"; then
11076 ac_cv_prog_have_fop="$have_fop" # Let the user override the test.
11077 else
11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 for as_dir in $PATH
11080 do
11081 IFS=$as_save_IFS
11082 test -z "$as_dir" && as_dir=.
11083 for ac_exec_ext in '' $ac_executable_extensions; do
11084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11085 ac_cv_prog_have_fop="yes"
11086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 break 2
11088 fi
11089 done
11090 done
11091 IFS=$as_save_IFS
11092
11093 test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no"
11094 fi
11095 fi
11096 have_fop=$ac_cv_prog_have_fop
11097 if test -n "$have_fop"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5
11099 $as_echo "$have_fop" >&6; }
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11103 fi
11104
11105
11106 if test "x${have_fop}" == "xyes"; then
11107 # Due to rhbz505364 / 830266, we must actually test-run fop, not just
11108 # hope that it works.
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5
11110 $as_echo_n "checking to see if xmlto --with-fop actually works... " >&6; }
11111 if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11113 $as_echo "yes" >&6; }
11114 else
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5
11116 $as_echo "it's dead, Jim" >&6; }
11117 have_fop="broken"
11118 fi
11119 rm -f dummy-tapsets.pdf
11120 fi
11121 if test "$have_fop" == "yes"; then
11122 HAVE_FOP_TRUE=
11123 HAVE_FOP_FALSE='#'
11124 else
11125 HAVE_FOP_TRUE='#'
11126 HAVE_FOP_FALSE=
11127 fi
11128
11129 if test "$have_xmlto" == "yes"; then
11130 HAVE_XMLTO_TRUE=
11131 HAVE_XMLTO_FALSE='#'
11132 else
11133 HAVE_XMLTO_TRUE='#'
11134 HAVE_XMLTO_FALSE=
11135 fi
11136
11137
11138 building_htmldocs="no"
11139 # Check whether --enable-htmldocs was given.
11140 if test "${enable_htmldocs+set}" = set; then :
11141 enableval=$enable_htmldocs; building_htmldocs=$enableval
11142 else
11143 building_htmldocs="no"
11144 fi
11145
11146 if test "$have_xmlto" == "no" -a "$building_htmldocs" == "yes"; then
11147 as_fn_error $? "xmlto required for building html documentation" "$LINENO" 5
11148 fi
11149
11150 if test "$building_htmldocs" == "yes"; then
11151 BUILD_HTMLDOCS_TRUE=
11152 BUILD_HTMLDOCS_FALSE='#'
11153 else
11154 BUILD_HTMLDOCS_TRUE='#'
11155 BUILD_HTMLDOCS_FALSE=
11156 fi
11157
11158
11159 cat > conftest.xml << 'EOF'
11160 <?xml version="1.0" encoding="UTF-8"?>
11161 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
11162 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
11163 <book lang="en">
11164 <bookinfo><title>foo</title></bookinfo>
11165 <chapter id="logging.stp"><title>Logging Tapset</title>
11166 <refentry id="API-log"><refnamediv><refname>log</refname>
11167 <refpurpose>logging</refpurpose></refnamediv>
11168 <refsect1><title>Description</title>
11169 <para>baz</para></refsect1></refentry></chapter>
11170 </book>
11171 EOF
11172
11173 if test "x${have_xmlto}" == "xyes"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5
11175 $as_echo_n "checking for xmlto --stringparam support... " >&6; }
11176 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
11177 if test $? == 0; then
11178 have_xmlto_stringparam="yes"
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11180 $as_echo "yes" >&6; }
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11184 fi
11185 rm -f conftest.html
11186 fi
11187 if test "$have_xmlto_stringparam" == "yes"; then
11188 XMLTO_STRINGPARAM_TRUE=
11189 XMLTO_STRINGPARAM_FALSE='#'
11190 else
11191 XMLTO_STRINGPARAM_TRUE='#'
11192 XMLTO_STRINGPARAM_FALSE=
11193 fi
11194
11195
11196 rm -f conftest.xml
11197
11198
11199 # Check whether --with-nss was given.
11200 if test "${with_nss+set}" = set; then :
11201 withval=$with_nss;
11202 fi
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11213 if test -n "$ac_tool_prefix"; then
11214 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11215 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217 $as_echo_n "checking for $ac_word... " >&6; }
11218 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 case $PKG_CONFIG in
11222 [\\/]* | ?:[\\/]*)
11223 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11224 ;;
11225 *)
11226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11227 for as_dir in $PATH
11228 do
11229 IFS=$as_save_IFS
11230 test -z "$as_dir" && as_dir=.
11231 for ac_exec_ext in '' $ac_executable_extensions; do
11232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11233 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11235 break 2
11236 fi
11237 done
11238 done
11239 IFS=$as_save_IFS
11240
11241 ;;
11242 esac
11243 fi
11244 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11245 if test -n "$PKG_CONFIG"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11247 $as_echo "$PKG_CONFIG" >&6; }
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11251 fi
11252
11253
11254 fi
11255 if test -z "$ac_cv_path_PKG_CONFIG"; then
11256 ac_pt_PKG_CONFIG=$PKG_CONFIG
11257 # Extract the first word of "pkg-config", so it can be a program name with args.
11258 set dummy pkg-config; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 case $ac_pt_PKG_CONFIG in
11265 [\\/]* | ?:[\\/]*)
11266 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11267 ;;
11268 *)
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11271 do
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11278 break 2
11279 fi
11280 done
11281 done
11282 IFS=$as_save_IFS
11283
11284 ;;
11285 esac
11286 fi
11287 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11288 if test -n "$ac_pt_PKG_CONFIG"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11290 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11291 else
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11294 fi
11295
11296 if test "x$ac_pt_PKG_CONFIG" = x; then
11297 PKG_CONFIG=""
11298 else
11299 case $cross_compiling:$ac_tool_warned in
11300 yes:)
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11303 ac_tool_warned=yes ;;
11304 esac
11305 PKG_CONFIG=$ac_pt_PKG_CONFIG
11306 fi
11307 else
11308 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11309 fi
11310
11311 fi
11312 if test -n "$PKG_CONFIG"; then
11313 _pkg_min_version=0.9.0
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11315 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11316 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11318 $as_echo "yes" >&6; }
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11322 PKG_CONFIG=""
11323 fi
11324 fi
11325 if test "x$with_nss" != "xno"; then :
11326
11327
11328 pkg_failed=no
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
11330 $as_echo_n "checking for nss... " >&6; }
11331
11332 if test -n "$nss_CFLAGS"; then
11333 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
11334 elif test -n "$PKG_CONFIG"; then
11335 if test -n "$PKG_CONFIG" && \
11336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
11337 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
11338 ac_status=$?
11339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11340 test $ac_status = 0; }; then
11341 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null`
11342 test "x$?" != "x0" && pkg_failed=yes
11343 else
11344 pkg_failed=yes
11345 fi
11346 else
11347 pkg_failed=untried
11348 fi
11349 if test -n "$nss_LIBS"; then
11350 pkg_cv_nss_LIBS="$nss_LIBS"
11351 elif test -n "$PKG_CONFIG"; then
11352 if test -n "$PKG_CONFIG" && \
11353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
11354 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
11355 ac_status=$?
11356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11357 test $ac_status = 0; }; then
11358 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null`
11359 test "x$?" != "x0" && pkg_failed=yes
11360 else
11361 pkg_failed=yes
11362 fi
11363 else
11364 pkg_failed=untried
11365 fi
11366
11367
11368
11369 if test $pkg_failed = yes; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11372
11373 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11374 _pkg_short_errors_supported=yes
11375 else
11376 _pkg_short_errors_supported=no
11377 fi
11378 if test $_pkg_short_errors_supported = yes; then
11379 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1`
11380 else
11381 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1`
11382 fi
11383 # Put the nasty error message in config.log where it belongs
11384 echo "$nss_PKG_ERRORS" >&5
11385
11386 have_nss=no
11387 elif test $pkg_failed = untried; then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11390 have_nss=no
11391 else
11392 nss_CFLAGS=$pkg_cv_nss_CFLAGS
11393 nss_LIBS=$pkg_cv_nss_LIBS
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11395 $as_echo "yes" >&6; }
11396 have_nss=yes
11397
11398 $as_echo "#define HAVE_NSS 1" >>confdefs.h
11399
11400
11401 fi
11402
11403 else
11404 have_nss=no
11405 fi
11406
11407 if test "${have_nss}" = "yes"; then
11408 HAVE_NSS_TRUE=
11409 HAVE_NSS_FALSE='#'
11410 else
11411 HAVE_NSS_TRUE='#'
11412 HAVE_NSS_FALSE=
11413 fi
11414
11415
11416
11417 # Check whether --with-dracutstap was given.
11418 if test "${with_dracutstap+set}" = set; then :
11419 withval=$with_dracutstap;
11420 fi
11421
11422 if test "x$with_dracutstap" != "x"; then :
11423 dracutstap="$with_dracutstap"
11424 else
11425 dracutstap=/usr/lib/dracut/modules.d/99stap
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut module directory $dracutstap" >&5
11428 $as_echo "$as_me: using dracut module directory $dracutstap" >&6;}
11429
11430
11431 # Check whether --enable-server was given.
11432 if test "${enable_server+set}" = set; then :
11433 enableval=$enable_server; enable_server=$enableval
11434 else
11435 enable_server="check"
11436 fi
11437
11438
11439 if test "$enable_server" != "no"; then
11440 if test "x${have_nss}" != "xyes"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5
11442 $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;}
11443 fi
11444 fi
11445 if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then
11446 BUILD_SERVER_TRUE=
11447 BUILD_SERVER_FALSE='#'
11448 else
11449 BUILD_SERVER_TRUE='#'
11450 BUILD_SERVER_FALSE=
11451 fi
11452
11453
11454 if test "${have_nss}" != "yes"; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5
11456 $as_echo "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;}
11457 fi
11458
11459
11460 # Check whether --with-avahi was given.
11461 if test "${with_avahi+set}" = set; then :
11462 withval=$with_avahi;
11463 fi
11464
11465
11466 if test "x$with_avahi" != "xno"; then :
11467
11468
11469 pkg_failed=no
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
11471 $as_echo_n "checking for avahi... " >&6; }
11472
11473 if test -n "$avahi_CFLAGS"; then
11474 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
11475 elif test -n "$PKG_CONFIG"; then
11476 if test -n "$PKG_CONFIG" && \
11477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
11478 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
11479 ac_status=$?
11480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11481 test $ac_status = 0; }; then
11482 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
11483 test "x$?" != "x0" && pkg_failed=yes
11484 else
11485 pkg_failed=yes
11486 fi
11487 else
11488 pkg_failed=untried
11489 fi
11490 if test -n "$avahi_LIBS"; then
11491 pkg_cv_avahi_LIBS="$avahi_LIBS"
11492 elif test -n "$PKG_CONFIG"; then
11493 if test -n "$PKG_CONFIG" && \
11494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
11495 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
11496 ac_status=$?
11497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11498 test $ac_status = 0; }; then
11499 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
11500 test "x$?" != "x0" && pkg_failed=yes
11501 else
11502 pkg_failed=yes
11503 fi
11504 else
11505 pkg_failed=untried
11506 fi
11507
11508
11509
11510 if test $pkg_failed = yes; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11513
11514 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11515 _pkg_short_errors_supported=yes
11516 else
11517 _pkg_short_errors_supported=no
11518 fi
11519 if test $_pkg_short_errors_supported = yes; then
11520 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
11521 else
11522 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
11523 fi
11524 # Put the nasty error message in config.log where it belongs
11525 echo "$avahi_PKG_ERRORS" >&5
11526
11527 have_avahi=no
11528 elif test $pkg_failed = untried; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530 $as_echo "no" >&6; }
11531 have_avahi=no
11532 else
11533 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
11534 avahi_LIBS=$pkg_cv_avahi_LIBS
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11536 $as_echo "yes" >&6; }
11537 have_avahi=yes
11538
11539 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
11540
11541
11542 fi
11543
11544 else
11545 have_avahi=no
11546 fi
11547
11548 if test "${have_avahi}" = "yes"; then
11549 HAVE_AVAHI_TRUE=
11550 HAVE_AVAHI_FALSE='#'
11551 else
11552 HAVE_AVAHI_TRUE='#'
11553 HAVE_AVAHI_FALSE=
11554 fi
11555
11556
11557 if test "${have_avahi}" != "yes"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5
11559 $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;}
11560 fi
11561
11562
11563
11564 # Check whether --with-rpm was given.
11565 if test "${with_rpm+set}" = set; then :
11566 withval=$with_rpm;
11567 else
11568 with_rpm="auto"
11569 fi
11570
11571 if test "$with_rpm" != "no"; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5
11573 $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; }
11574 if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then :
11575 $as_echo_n "(cached) " >&6
11576 else
11577 ac_check_lib_save_LIBS=$LIBS
11578 LIBS="-lrpm $LIBS"
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11581
11582 /* Override any GCC internal prototype to avoid an error.
11583 Use char because int might match the return type of a GCC
11584 builtin and then its argument prototype would still apply. */
11585 #ifdef __cplusplus
11586 extern "C"
11587 #endif
11588 char rpmtsInitIterator ();
11589 int
11590 main ()
11591 {
11592 return rpmtsInitIterator ();
11593 ;
11594 return 0;
11595 }
11596 _ACEOF
11597 if ac_fn_c_try_link "$LINENO"; then :
11598 ac_cv_lib_rpm_rpmtsInitIterator=yes
11599 else
11600 ac_cv_lib_rpm_rpmtsInitIterator=no
11601 fi
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11605 fi
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
11607 $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
11608 if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then :
11609
11610
11611 $as_echo "#define HAVE_LIBRPM 1" >>confdefs.h
11612
11613 stap_LIBS="$stap_LIBS -lc -lrpm"
11614 have_librpm="yes"
11615 else
11616 have_librpm="no"
11617 fi
11618
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5
11620 $as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; }
11621 if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then :
11622 $as_echo_n "(cached) " >&6
11623 else
11624 ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-lrpmio $LIBS"
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11628
11629 /* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 char rpmFreeCrypto ();
11636 int
11637 main ()
11638 {
11639 return rpmFreeCrypto ();
11640 ;
11641 return 0;
11642 }
11643 _ACEOF
11644 if ac_fn_c_try_link "$LINENO"; then :
11645 ac_cv_lib_rpmio_rpmFreeCrypto=yes
11646 else
11647 ac_cv_lib_rpmio_rpmFreeCrypto=no
11648 fi
11649 rm -f core conftest.err conftest.$ac_objext \
11650 conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_lib_save_LIBS
11652 fi
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5
11654 $as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; }
11655 if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then :
11656
11657
11658 $as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h
11659
11660 stap_LIBS="$stap_LIBS -lc -lrpmio"
11661 have_librpmio="yes"
11662 else
11663 have_librpmio="no"
11664 fi
11665
11666 if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then
11667 as_fn_error $? "cannot find librpm" "$LINENO" 5
11668 fi
11669 if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5
11671 $as_echo "$as_me: WARNING: cannot find librpmio" >&2;}
11672 fi
11673 fi
11674
11675 LIBS_no_readline=$LIBS
11676
11677 have_libreadline="no"
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
11679 $as_echo_n "checking how to link readline libs... " >&6; }
11680 for libtermcap in "" tinfo ncursesw ncurses curses termcap; do
11681 if test -z "$libtermcap"; then
11682 READLINE_LIBS="-lreadline"
11683 else
11684 READLINE_LIBS="-lreadline -l$libtermcap"
11685 fi
11686 LIBS="$READLINE_LIBS $LIBS_no_readline"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11689
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 char readline ();
11697 int
11698 main ()
11699 {
11700 return readline ();
11701 ;
11702 return 0;
11703 }
11704 _ACEOF
11705 if ac_fn_c_try_link "$LINENO"; then :
11706 have_libreadline="yes"
11707 fi
11708 rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11710 if test "$have_libreadline" = "yes"; then
11711 break
11712 fi
11713 done
11714 if test "$have_libreadline" = "no"; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11716 $as_echo "none" >&6; }
11717 READLINE_LIBS=""
11718 else
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
11720 $as_echo "$READLINE_LIBS" >&6; }
11721
11722 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11723
11724 fi
11725
11726 if test "$have_libreadline" == "yes"; then
11727 HAVE_LIBREADLINE_TRUE=
11728 HAVE_LIBREADLINE_FALSE='#'
11729 else
11730 HAVE_LIBREADLINE_TRUE='#'
11731 HAVE_LIBREADLINE_FALSE=
11732 fi
11733
11734
11735 LIBS=$LIBS_no_readline
11736
11737
11738 # Check whether --with-python3 was given.
11739 if test "${with_python3+set}" = set; then :
11740 withval=$with_python3;
11741 fi
11742
11743 if test "x$with_python3" = "xyes"; then :
11744 if test -z "$PYTHON3"; then :
11745 as_fn_error $? "python version 3 is required" "$LINENO" 5
11746 else
11747 preferred_python=$PYTHON3
11748
11749 fi
11750 else
11751 if test "x$PYTHON" = "x:"; then :
11752 as_fn_error $? "python version 2 is required" "$LINENO" 5
11753 else
11754 preferred_python=$PYTHON
11755
11756 fi
11757 fi
11758
11759 build_elfutils=no
11760
11761 # Check whether --with-elfutils was given.
11762 if test "${with_elfutils+set}" = set; then :
11763 withval=$with_elfutils;
11764 case "$with_elfutils" in
11765 yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;;
11766 ''|no) ;;
11767 *) build_elfutils=yes ;;
11768 esac
11769 fi
11770
11771 if test $build_elfutils = yes; then
11772 BUILD_ELFUTILS_TRUE=
11773 BUILD_ELFUTILS_FALSE='#'
11774 else
11775 BUILD_ELFUTILS_TRUE='#'
11776 BUILD_ELFUTILS_FALSE=
11777 fi
11778
11779 elfutils_abs_srcdir=`if test $build_elfutils = yes; then :
11780 cd $with_elfutils && pwd
11781 fi`
11782
11783
11784 if test $enable_translator = yes; then
11785 if test $build_elfutils = no; then
11786 # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/
11787
11788 # On modern debian/ubuntu, libebl has been merged into libdw
11789 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
11790 save_LIBS="$LIBS"
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5
11792 $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; }
11793 if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then :
11794 $as_echo_n "(cached) " >&6
11795 else
11796 ac_check_lib_save_LIBS=$LIBS
11797 LIBS="-lebl $LIBS"
11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11800
11801 /* Override any GCC internal prototype to avoid an error.
11802 Use char because int might match the return type of a GCC
11803 builtin and then its argument prototype would still apply. */
11804 #ifdef __cplusplus
11805 extern "C"
11806 #endif
11807 char ebl_get_elfmachine ();
11808 int
11809 main ()
11810 {
11811 return ebl_get_elfmachine ();
11812 ;
11813 return 0;
11814 }
11815 _ACEOF
11816 if ac_fn_c_try_link "$LINENO"; then :
11817 ac_cv_lib_ebl_ebl_get_elfmachine=yes
11818 else
11819 ac_cv_lib_ebl_ebl_get_elfmachine=no
11820 fi
11821 rm -f core conftest.err conftest.$ac_objext \
11822 conftest$ac_exeext conftest.$ac_ext
11823 LIBS=$ac_check_lib_save_LIBS
11824 fi
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5
11826 $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; }
11827 if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then :
11828 ebl_LIBS=-lebl
11829 else
11830 ebl_LIBS=
11831 fi
11832
11833 LIBS="$save_LIBS"
11834
11835 save_LIBS="$LIBS"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
11837 $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
11838 if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 ac_check_lib_save_LIBS=$LIBS
11842 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11845
11846 /* Override any GCC internal prototype to avoid an error.
11847 Use char because int might match the return type of a GCC
11848 builtin and then its argument prototype would still apply. */
11849 #ifdef __cplusplus
11850 extern "C"
11851 #endif
11852 char dwfl_module_getsym ();
11853 int
11854 main ()
11855 {
11856 return dwfl_module_getsym ();
11857 ;
11858 return 0;
11859 }
11860 _ACEOF
11861 if ac_fn_c_try_link "$LINENO"; then :
11862 ac_cv_lib_dw_dwfl_module_getsym=yes
11863 else
11864 ac_cv_lib_dw_dwfl_module_getsym=no
11865 fi
11866 rm -f core conftest.err conftest.$ac_objext \
11867 conftest$ac_exeext conftest.$ac_ext
11868 LIBS=$ac_check_lib_save_LIBS
11869 fi
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
11871 $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
11872 if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then :
11873 cat >>confdefs.h <<_ACEOF
11874 #define HAVE_LIBDW 1
11875 _ACEOF
11876
11877 LIBS="-ldw $LIBS"
11878
11879 else
11880
11881 as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5
11882 fi
11883
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5
11885 $as_echo_n "checking for dwarf_next_unit in -ldw... " >&6; }
11886 if ${ac_cv_lib_dw_dwarf_next_unit+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 ac_check_lib_save_LIBS=$LIBS
11890 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11893
11894 /* Override any GCC internal prototype to avoid an error.
11895 Use char because int might match the return type of a GCC
11896 builtin and then its argument prototype would still apply. */
11897 #ifdef __cplusplus
11898 extern "C"
11899 #endif
11900 char dwarf_next_unit ();
11901 int
11902 main ()
11903 {
11904 return dwarf_next_unit ();
11905 ;
11906 return 0;
11907 }
11908 _ACEOF
11909 if ac_fn_c_try_link "$LINENO"; then :
11910 ac_cv_lib_dw_dwarf_next_unit=yes
11911 else
11912 ac_cv_lib_dw_dwarf_next_unit=no
11913 fi
11914 rm -f core conftest.err conftest.$ac_objext \
11915 conftest$ac_exeext conftest.$ac_ext
11916 LIBS=$ac_check_lib_save_LIBS
11917 fi
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5
11919 $as_echo "$ac_cv_lib_dw_dwarf_next_unit" >&6; }
11920 if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes; then :
11921 cat >>confdefs.h <<_ACEOF
11922 #define HAVE_LIBDW 1
11923 _ACEOF
11924
11925 LIBS="-ldw $LIBS"
11926
11927 else
11928
11929 as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5
11930 fi
11931
11932 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
11933 LIBS="$save_LIBS"
11934 else
11935 # We built our own and stap_LDFLAGS points at the install.
11936 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
11937 fi
11938 fi
11939
11940
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
11942 $as_echo "$as_me: stap will link $stap_LIBS" >&6;}
11943
11944 # staprun has more modest libelf needs
11945 if test $build_elfutils = no; then
11946 save_LIBS="$LIBS"
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
11948 $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; }
11949 if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 ac_check_lib_save_LIBS=$LIBS
11953 LIBS="-lelf $LIBS"
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956
11957 /* Override any GCC internal prototype to avoid an error.
11958 Use char because int might match the return type of a GCC
11959 builtin and then its argument prototype would still apply. */
11960 #ifdef __cplusplus
11961 extern "C"
11962 #endif
11963 char elf_getshdrstrndx ();
11964 int
11965 main ()
11966 {
11967 return elf_getshdrstrndx ();
11968 ;
11969 return 0;
11970 }
11971 _ACEOF
11972 if ac_fn_c_try_link "$LINENO"; then :
11973 ac_cv_lib_elf_elf_getshdrstrndx=yes
11974 else
11975 ac_cv_lib_elf_elf_getshdrstrndx=no
11976 fi
11977 rm -f core conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11980 fi
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
11982 $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
11983 if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then :
11984 cat >>confdefs.h <<_ACEOF
11985 #define HAVE_LIBELF 1
11986 _ACEOF
11987
11988 LIBS="-lelf $LIBS"
11989
11990 else
11991
11992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11994 as_fn_error $? "libelf too old, need 0.142+
11995 See \`config.log' for more details" "$LINENO" 5; }
11996 fi
11997
11998 staprun_LIBS="$staprun_LIBS -lelf"
11999 LIBS="$save_LIBS"
12000 else
12001 # We built our own and staprun_LDFLAGS points at the install.
12002 staprun_LIBS="$staprun_LIBS -lelf"
12003 fi
12004
12005
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5
12007 $as_echo "$as_me: staprun will link $staprun_LIBS" >&6;}
12008
12009
12010 date=`date +%Y-%m-%d`
12011
12012 cat >>confdefs.h <<_ACEOF
12013 #define DATE "$date"
12014 _ACEOF
12015
12016 DATE="$date"
12017
12018
12019 # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
12020 # being compiled on 32-bit userspace but running against 64-bit kernels.
12021 # This is no longer necessary.
12022
12023 ac_ext=cpp
12024 ac_cpp='$CXXCPP $CPPFLAGS'
12025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12028
12029 # Use boost::string_ref if available
12030 ac_ext=cpp
12031 ac_cpp='$CXXCPP $CPPFLAGS'
12032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12036 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12037 if test -z "$CXXCPP"; then
12038 if ${ac_cv_prog_CXXCPP+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 # Double quotes because CXXCPP needs to be expanded
12042 for CXXCPP in "$CXX -E" "/lib/cpp"
12043 do
12044 ac_preproc_ok=false
12045 for ac_cxx_preproc_warn_flag in '' yes
12046 do
12047 # Use a header file that comes with gcc, so configuring glibc
12048 # with a fresh cross-compiler works.
12049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12050 # <limits.h> exists even on freestanding compilers.
12051 # On the NeXT, cc -E runs the code through the compiler's parser,
12052 # not just through cpp. "Syntax error" is here to catch this case.
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12055 #ifdef __STDC__
12056 # include <limits.h>
12057 #else
12058 # include <assert.h>
12059 #endif
12060 Syntax error
12061 _ACEOF
12062 if ac_fn_cxx_try_cpp "$LINENO"; then :
12063
12064 else
12065 # Broken: fails on valid input.
12066 continue
12067 fi
12068 rm -f conftest.err conftest.i conftest.$ac_ext
12069
12070 # OK, works on sane cases. Now check whether nonexistent headers
12071 # can be detected and how.
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #include <ac_nonexistent.h>
12075 _ACEOF
12076 if ac_fn_cxx_try_cpp "$LINENO"; then :
12077 # Broken: success on invalid input.
12078 continue
12079 else
12080 # Passes both tests.
12081 ac_preproc_ok=:
12082 break
12083 fi
12084 rm -f conftest.err conftest.i conftest.$ac_ext
12085
12086 done
12087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12088 rm -f conftest.i conftest.err conftest.$ac_ext
12089 if $ac_preproc_ok; then :
12090 break
12091 fi
12092
12093 done
12094 ac_cv_prog_CXXCPP=$CXXCPP
12095
12096 fi
12097 CXXCPP=$ac_cv_prog_CXXCPP
12098 else
12099 ac_cv_prog_CXXCPP=$CXXCPP
12100 fi
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12102 $as_echo "$CXXCPP" >&6; }
12103 ac_preproc_ok=false
12104 for ac_cxx_preproc_warn_flag in '' yes
12105 do
12106 # Use a header file that comes with gcc, so configuring glibc
12107 # with a fresh cross-compiler works.
12108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12109 # <limits.h> exists even on freestanding compilers.
12110 # On the NeXT, cc -E runs the code through the compiler's parser,
12111 # not just through cpp. "Syntax error" is here to catch this case.
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12114 #ifdef __STDC__
12115 # include <limits.h>
12116 #else
12117 # include <assert.h>
12118 #endif
12119 Syntax error
12120 _ACEOF
12121 if ac_fn_cxx_try_cpp "$LINENO"; then :
12122
12123 else
12124 # Broken: fails on valid input.
12125 continue
12126 fi
12127 rm -f conftest.err conftest.i conftest.$ac_ext
12128
12129 # OK, works on sane cases. Now check whether nonexistent headers
12130 # can be detected and how.
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133 #include <ac_nonexistent.h>
12134 _ACEOF
12135 if ac_fn_cxx_try_cpp "$LINENO"; then :
12136 # Broken: success on invalid input.
12137 continue
12138 else
12139 # Passes both tests.
12140 ac_preproc_ok=:
12141 break
12142 fi
12143 rm -f conftest.err conftest.i conftest.$ac_ext
12144
12145 done
12146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12147 rm -f conftest.i conftest.err conftest.$ac_ext
12148 if $ac_preproc_ok; then :
12149
12150 else
12151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12153 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12154 See \`config.log' for more details" "$LINENO" 5; }
12155 fi
12156
12157 ac_ext=cpp
12158 ac_cpp='$CXXCPP $CPPFLAGS'
12159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12162
12163
12164 for ac_header in boost/utility/string_ref.hpp
12165 do :
12166 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/utility/string_ref.hpp" "ac_cv_header_boost_utility_string_ref_hpp" "$ac_includes_default"
12167 if test "x$ac_cv_header_boost_utility_string_ref_hpp" = xyes; then :
12168 cat >>confdefs.h <<_ACEOF
12169 #define HAVE_BOOST_UTILITY_STRING_REF_HPP 1
12170 _ACEOF
12171
12172 fi
12173
12174 done
12175
12176 ac_ext=c
12177 ac_cpp='$CPP $CPPFLAGS'
12178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12181
12182
12183
12184 # Check for Dyninst headers and libraries
12185
12186 # Check whether --with-dyninst was given.
12187 if test "${with_dyninst+set}" = set; then :
12188 withval=$with_dyninst;
12189 fi
12190
12191
12192 case "$with_dyninst" in
12193 no) ;;
12194 ''|yes) # Try a simple-minded distro search
12195 DYNINST_CXXFLAGS="-I/usr/include/dyninst"
12196 DYNINST_LDFLAGS="-L/usr/lib64/dyninst -L/usr/lib/dyninst" # XXX both lib paths!?!
12197 ;;
12198 *) # Use paths in the user-specified prefix
12199 DYNINST_CXXFLAGS="-I$with_dyninst/include"
12200 DYNINST_LDFLAGS="-L$with_dyninst/lib/" # XXX need lib64 too?
12201 ;;
12202 esac
12203 if test "$with_dyninst" != "no"; then
12204 ac_ext=cpp
12205 ac_cpp='$CXXCPP $CPPFLAGS'
12206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12209
12210 old_CPPFLAGS="$CPPFLAGS"
12211 CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS"
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5
12213 $as_echo "$as_me: checking dyninst support" >&6;}
12214 for ac_header in BPatch_object.h
12215 do :
12216 ac_fn_cxx_check_header_mongrel "$LINENO" "BPatch_object.h" "ac_cv_header_BPatch_object_h" "$ac_includes_default"
12217 if test "x$ac_cv_header_BPatch_object_h" = xyes; then :
12218 cat >>confdefs.h <<_ACEOF
12219 #define HAVE_BPATCH_OBJECT_H 1
12220 _ACEOF
12221
12222
12223
12224
12225 $as_echo "#define HAVE_DYNINST 1" >>confdefs.h
12226
12227 have_dyninst=yes
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5
12229 $as_echo "$as_me: dyninst support available" >&6;}
12230 fi
12231
12232 done
12233
12234 if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then
12235 as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5
12236 fi
12237 CPPFLAGS="$old_CPPFLAGS"
12238 ac_ext=c
12239 ac_cpp='$CPP $CPPFLAGS'
12240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12243
12244 fi
12245 if test "${have_dyninst}" = "yes"; then
12246 HAVE_DYNINST_TRUE=
12247 HAVE_DYNINST_FALSE='#'
12248 else
12249 HAVE_DYNINST_TRUE='#'
12250 HAVE_DYNINST_FALSE=
12251 fi
12252
12253
12254
12255
12256 # Check whether --enable-virt was given.
12257 if test "${enable_virt+set}" = set; then :
12258 enableval=$enable_virt; enable_virt=$enableval
12259 else
12260 enable_virt="check"
12261 fi
12262
12263
12264
12265 pkg_failed=no
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5
12267 $as_echo_n "checking for libvirt... " >&6; }
12268
12269 if test -n "$libvirt_CFLAGS"; then
12270 pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS"
12271 elif test -n "$PKG_CONFIG"; then
12272 if test -n "$PKG_CONFIG" && \
12273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
12274 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
12275 ac_status=$?
12276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12277 test $ac_status = 0; }; then
12278 pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null`
12279 test "x$?" != "x0" && pkg_failed=yes
12280 else
12281 pkg_failed=yes
12282 fi
12283 else
12284 pkg_failed=untried
12285 fi
12286 if test -n "$libvirt_LIBS"; then
12287 pkg_cv_libvirt_LIBS="$libvirt_LIBS"
12288 elif test -n "$PKG_CONFIG"; then
12289 if test -n "$PKG_CONFIG" && \
12290 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
12291 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
12292 ac_status=$?
12293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12294 test $ac_status = 0; }; then
12295 pkg_cv_libvirt_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null`
12296 test "x$?" != "x0" && pkg_failed=yes
12297 else
12298 pkg_failed=yes
12299 fi
12300 else
12301 pkg_failed=untried
12302 fi
12303
12304
12305
12306 if test $pkg_failed = yes; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12309
12310 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12311 _pkg_short_errors_supported=yes
12312 else
12313 _pkg_short_errors_supported=no
12314 fi
12315 if test $_pkg_short_errors_supported = yes; then
12316 libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
12317 else
12318 libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
12319 fi
12320 # Put the nasty error message in config.log where it belongs
12321 echo "$libvirt_PKG_ERRORS" >&5
12322
12323 have_libvirt=no
12324 elif test $pkg_failed = untried; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12327 have_libvirt=no
12328 else
12329 libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS
12330 libvirt_LIBS=$pkg_cv_libvirt_LIBS
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12332 $as_echo "yes" >&6; }
12333
12334 have_libvirt=yes
12335
12336 $as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h
12337
12338
12339 fi
12340 if test "${have_libvirt}" = "yes"; then
12341 HAVE_LIBVIRT_TRUE=
12342 HAVE_LIBVIRT_FALSE='#'
12343 else
12344 HAVE_LIBVIRT_TRUE='#'
12345 HAVE_LIBVIRT_FALSE=
12346 fi
12347
12348
12349 pkg_failed=no
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
12351 $as_echo_n "checking for libxml2... " >&6; }
12352
12353 if test -n "$libxml2_CFLAGS"; then
12354 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
12355 elif test -n "$PKG_CONFIG"; then
12356 if test -n "$PKG_CONFIG" && \
12357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12358 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12359 ac_status=$?
12360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12361 test $ac_status = 0; }; then
12362 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
12363 test "x$?" != "x0" && pkg_failed=yes
12364 else
12365 pkg_failed=yes
12366 fi
12367 else
12368 pkg_failed=untried
12369 fi
12370 if test -n "$libxml2_LIBS"; then
12371 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
12372 elif test -n "$PKG_CONFIG"; then
12373 if test -n "$PKG_CONFIG" && \
12374 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12375 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12376 ac_status=$?
12377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12378 test $ac_status = 0; }; then
12379 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
12380 test "x$?" != "x0" && pkg_failed=yes
12381 else
12382 pkg_failed=yes
12383 fi
12384 else
12385 pkg_failed=untried
12386 fi
12387
12388
12389
12390 if test $pkg_failed = yes; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12393
12394 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12395 _pkg_short_errors_supported=yes
12396 else
12397 _pkg_short_errors_supported=no
12398 fi
12399 if test $_pkg_short_errors_supported = yes; then
12400 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
12401 else
12402 libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
12403 fi
12404 # Put the nasty error message in config.log where it belongs
12405 echo "$libxml2_PKG_ERRORS" >&5
12406
12407 have_libxml2=no
12408 elif test $pkg_failed = untried; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410 $as_echo "no" >&6; }
12411 have_libxml2=no
12412 else
12413 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
12414 libxml2_LIBS=$pkg_cv_libxml2_LIBS
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12416 $as_echo "yes" >&6; }
12417
12418 have_libxml2=yes
12419
12420 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12421
12422
12423 fi
12424 if test "${have_libxml2}" = "yes"; then
12425 HAVE_LIBXML2_TRUE=
12426 HAVE_LIBXML2_FALSE='#'
12427 else
12428 HAVE_LIBXML2_TRUE='#'
12429 HAVE_LIBXML2_FALSE=
12430 fi
12431
12432
12433 if test "$enable_virt" != "no"; then
12434 if test "x${have_libvirt}" != "xyes"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5
12436 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;}
12437 fi
12438 if test "x${have_libxml2}" != "xyes"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5
12440 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;}
12441 fi
12442 fi
12443 if test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"; then
12444 BUILD_VIRT_TRUE=
12445 BUILD_VIRT_FALSE='#'
12446 else
12447 BUILD_VIRT_TRUE='#'
12448 BUILD_VIRT_FALSE=
12449 fi
12450
12451
12452
12453 # Check whether --with-python2 was given.
12454 if test "${with_python2+set}" = set; then :
12455 withval=$with_python2;
12456 fi
12457
12458 if test "x$with_python2" != "xno"; then :
12459 for ac_header in python$PYTHON_VERSION/Python.h
12460 do :
12461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12462 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12463 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12464 cat >>confdefs.h <<_ACEOF
12465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12466 _ACEOF
12467 have_python2_support=yes
12468 else
12469 have_python2_support=no
12470 fi
12471
12472 done
12473
12474 else
12475 have_python2_support=no
12476 fi
12477 if test "x$have_python2_support" = "xyes"; then :
12478
12479 $as_echo "#define HAVE_PYTHON2 1" >>confdefs.h
12480
12481 else
12482 if test "x$with_python2" = "xyes"; then :
12483 as_fn_error $? "python version 2 support requested but not found" "$LINENO" 5
12484 fi
12485
12486 fi
12487 if test "x$have_python2_support" = "xyes"; then
12488 HAVE_PYTHON2_TRUE=
12489 HAVE_PYTHON2_FALSE='#'
12490 else
12491 HAVE_PYTHON2_TRUE='#'
12492 HAVE_PYTHON2_FALSE=
12493 fi
12494
12495
12496
12497 pkg_failed=no
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jsonc" >&5
12499 $as_echo_n "checking for jsonc... " >&6; }
12500
12501 if test -n "$jsonc_CFLAGS"; then
12502 pkg_cv_jsonc_CFLAGS="$jsonc_CFLAGS"
12503 elif test -n "$PKG_CONFIG"; then
12504 if test -n "$PKG_CONFIG" && \
12505 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
12506 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
12507 ac_status=$?
12508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12509 test $ac_status = 0; }; then
12510 pkg_cv_jsonc_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
12511 test "x$?" != "x0" && pkg_failed=yes
12512 else
12513 pkg_failed=yes
12514 fi
12515 else
12516 pkg_failed=untried
12517 fi
12518 if test -n "$jsonc_LIBS"; then
12519 pkg_cv_jsonc_LIBS="$jsonc_LIBS"
12520 elif test -n "$PKG_CONFIG"; then
12521 if test -n "$PKG_CONFIG" && \
12522 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
12523 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
12524 ac_status=$?
12525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12526 test $ac_status = 0; }; then
12527 pkg_cv_jsonc_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
12528 test "x$?" != "x0" && pkg_failed=yes
12529 else
12530 pkg_failed=yes
12531 fi
12532 else
12533 pkg_failed=untried
12534 fi
12535
12536
12537
12538 if test $pkg_failed = yes; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12541
12542 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12543 _pkg_short_errors_supported=yes
12544 else
12545 _pkg_short_errors_supported=no
12546 fi
12547 if test $_pkg_short_errors_supported = yes; then
12548 jsonc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
12549 else
12550 jsonc_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
12551 fi
12552 # Put the nasty error message in config.log where it belongs
12553 echo "$jsonc_PKG_ERRORS" >&5
12554
12555 have_jsonc=no
12556 elif test $pkg_failed = untried; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12559 have_jsonc=no
12560 else
12561 jsonc_CFLAGS=$pkg_cv_jsonc_CFLAGS
12562 jsonc_LIBS=$pkg_cv_jsonc_LIBS
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12564 $as_echo "yes" >&6; }
12565 have_jsonc=yes
12566 fi
12567
12568 pkg_failed=no
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
12570 $as_echo_n "checking for ncurses... " >&6; }
12571
12572 if test -n "$ncurses_CFLAGS"; then
12573 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
12574 elif test -n "$PKG_CONFIG"; then
12575 if test -n "$PKG_CONFIG" && \
12576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12577 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12578 ac_status=$?
12579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12580 test $ac_status = 0; }; then
12581 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
12582 test "x$?" != "x0" && pkg_failed=yes
12583 else
12584 pkg_failed=yes
12585 fi
12586 else
12587 pkg_failed=untried
12588 fi
12589 if test -n "$ncurses_LIBS"; then
12590 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
12591 elif test -n "$PKG_CONFIG"; then
12592 if test -n "$PKG_CONFIG" && \
12593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12594 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12595 ac_status=$?
12596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597 test $ac_status = 0; }; then
12598 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
12599 test "x$?" != "x0" && pkg_failed=yes
12600 else
12601 pkg_failed=yes
12602 fi
12603 else
12604 pkg_failed=untried
12605 fi
12606
12607
12608
12609 if test $pkg_failed = yes; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12612
12613 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12614 _pkg_short_errors_supported=yes
12615 else
12616 _pkg_short_errors_supported=no
12617 fi
12618 if test $_pkg_short_errors_supported = yes; then
12619 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
12620 else
12621 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
12622 fi
12623 # Put the nasty error message in config.log where it belongs
12624 echo "$ncurses_PKG_ERRORS" >&5
12625
12626 have_ncurses=no
12627 elif test $pkg_failed = untried; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12630 have_ncurses=no
12631 else
12632 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
12633 ncurses_LIBS=$pkg_cv_ncurses_LIBS
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12635 $as_echo "yes" >&6; }
12636 have_ncurses=yes
12637 fi
12638 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == "yes"; then
12639 HAVE_MONITOR_LIBS_TRUE=
12640 HAVE_MONITOR_LIBS_FALSE='#'
12641 else
12642 HAVE_MONITOR_LIBS_TRUE='#'
12643 HAVE_MONITOR_LIBS_FALSE=
12644 fi
12645
12646 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == yes; then
12647
12648 $as_echo "#define HAVE_MONITOR_LIBS 1" >>confdefs.h
12649
12650 fi
12651
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
12653 $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; }
12654 if ${stap_cv_sectionq+:} false; then :
12655 $as_echo_n "(cached) " >&6
12656 else
12657
12658 old_CFLAGS="$CFLAGS"
12659 CFLAGS="$CFLAGS -Wa,--fatal-warnings"
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662 asm(".section .note.foo,\"?\",\"note\"\n"
12663 ".byte 1, 2, 3\n"
12664 ".previous\n"
12665 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
12666 ".byte 1\n"
12667 ".pushsection .note.foo,\"?\",\"note\"\n"
12668 ".byte 4, 5, 6\n"
12669 ".popsection\n"
12670 ".byte 2\n");
12671 _ACEOF
12672 if ac_fn_c_try_compile "$LINENO"; then :
12673 stap_cv_sectionq=yes
12674 else
12675 stap_cv_sectionq=no
12676 fi
12677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12678 CFLAGS="$old_CFLAGS"
12679 fi
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
12681 $as_echo "$stap_cv_sectionq" >&6; }
12682
12683 support_section_question=0
12684 if test $stap_cv_sectionq = yes; then
12685 support_section_question=1
12686 fi
12687 ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
12688
12689
12690 if test $build_elfutils = yes -a $enable_translator = yes; then
12691 here=`pwd`
12692 case "$with_elfutils" in
12693 /*) elfutils_srcdir="$with_elfutils" ;;
12694 *) elfutils_srcdir="${here}/$with_elfutils" ;;
12695 esac
12696
12697 if ! test -f ${elfutils_srcdir}/configure; then
12698 as_fn_error $? "No ${elfutils_srcdir}/configure, forgot to run autoreconf -i?" "$LINENO" 5
12699 fi
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5
12701 $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
12702
12703 save_CFLAGS="$CFLAGS"
12704 save_CXXFLAGS="$CXXFLAGS"
12705 CXXFLAGS="$CXXFLAGS -fgnu89-inline"
12706 CFLAGS="$CFLAGS -fgnu89-inline"
12707 gnu89_inline_flag=""
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12710 int something ();
12711 _ACEOF
12712 if ac_fn_c_try_compile "$LINENO"; then :
12713
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5
12715 $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
12716 gnu89_inline_flag="-fgnu89-inline"
12717 else
12718
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5
12720 $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
12721 fi
12722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 CFLAGS="$save_CFLAGS"
12724 CXXFLAGS="$save_CXXFLAGS"
12725
12726 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
12727 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
12728 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
12729 # So we must make sure to pass those settings to elfutils configure.
12730 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
12731 # Check whether this is a source release, or a source checkout.
12732 # We need --enable-maintainer-mode if it isn't a source release.
12733 # elfutils.spec is only distributed in source releases.
12734 if test -f ${elfutils_srcdir}/elfutils.spec; then
12735 need_maintainer_option=""
12736 else
12737 need_maintainer_option="--enable-maintainer-mode"
12738 fi
12739 (mkdir -p build-elfutils && cd build-elfutils &&
12740 bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
12741 --includedir="${here}/include-elfutils" \
12742 --libdir="${here}/lib-elfutils" \
12743 --exec-prefix="$exec_prefix" \
12744 --prefix="$prefix" \
12745 --enable-dwz \
12746 ${need_maintainer_option} \
12747 CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag -fexceptions" \
12748 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
12749 if test -f ${elfutils_srcdir}/config/version.h.in; then
12750 echo Found elfutils/version.h header...
12751 else
12752 echo elfutils/version.h header not found, need elfutils 0.142+...
12753 exit -1
12754 fi
12755 )
12756 if test $? != 0; then exit -1; fi
12757 fi
12758
12759
12760 # Check whether --with-selinux was given.
12761 if test "${with_selinux+set}" = set; then :
12762 withval=$with_selinux;
12763 fi
12764
12765
12766 if test "x$with_selinux" != "xno"; then :
12767
12768
12769 pkg_failed=no
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5
12771 $as_echo_n "checking for selinux... " >&6; }
12772
12773 if test -n "$selinux_CFLAGS"; then
12774 pkg_cv_selinux_CFLAGS="$selinux_CFLAGS"
12775 elif test -n "$PKG_CONFIG"; then
12776 if test -n "$PKG_CONFIG" && \
12777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12778 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12779 ac_status=$?
12780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12781 test $ac_status = 0; }; then
12782 pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
12783 test "x$?" != "x0" && pkg_failed=yes
12784 else
12785 pkg_failed=yes
12786 fi
12787 else
12788 pkg_failed=untried
12789 fi
12790 if test -n "$selinux_LIBS"; then
12791 pkg_cv_selinux_LIBS="$selinux_LIBS"
12792 elif test -n "$PKG_CONFIG"; then
12793 if test -n "$PKG_CONFIG" && \
12794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12795 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12796 ac_status=$?
12797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12798 test $ac_status = 0; }; then
12799 pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
12800 test "x$?" != "x0" && pkg_failed=yes
12801 else
12802 pkg_failed=yes
12803 fi
12804 else
12805 pkg_failed=untried
12806 fi
12807
12808
12809
12810 if test $pkg_failed = yes; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 $as_echo "no" >&6; }
12813
12814 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12815 _pkg_short_errors_supported=yes
12816 else
12817 _pkg_short_errors_supported=no
12818 fi
12819 if test $_pkg_short_errors_supported = yes; then
12820 selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
12821 else
12822 selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
12823 fi
12824 # Put the nasty error message in config.log where it belongs
12825 echo "$selinux_PKG_ERRORS" >&5
12826
12827 have_selinux=no
12828 elif test $pkg_failed = untried; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12831 have_selinux=no
12832 else
12833 selinux_CFLAGS=$pkg_cv_selinux_CFLAGS
12834 selinux_LIBS=$pkg_cv_selinux_LIBS
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12836 $as_echo "yes" >&6; }
12837 have_selinux=yes
12838
12839 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
12840
12841
12842 fi
12843
12844 else
12845 have_selinux=no
12846 fi
12847
12848 if test "${have_selinux}" = "yes"; then
12849 HAVE_SELINUX_TRUE=
12850 HAVE_SELINUX_FALSE='#'
12851 else
12852 HAVE_SELINUX_TRUE='#'
12853 HAVE_SELINUX_FALSE=
12854 fi
12855
12856
12857 ac_fn_c_check_decl "$LINENO" "F_SETPIPE_SZ" "ac_cv_have_decl_F_SETPIPE_SZ" "#include <fcntl.h>
12858 "
12859 if test "x$ac_cv_have_decl_F_SETPIPE_SZ" = xyes; then :
12860
12861 $as_echo "#define HAVE_F_SETPIPE_SZ 1" >>confdefs.h
12862
12863 fi
12864
12865
12866 # Extract the first word of "javac", so it can be a program name with args.
12867 set dummy javac; ac_word=$2
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869 $as_echo_n "checking for $ac_word... " >&6; }
12870 if ${ac_cv_prog_have_javac+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 if test -n "$have_javac"; then
12874 ac_cv_prog_have_javac="$have_javac" # Let the user override the test.
12875 else
12876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12878 do
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
12882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12883 ac_cv_prog_have_javac="yes"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885 break 2
12886 fi
12887 done
12888 done
12889 IFS=$as_save_IFS
12890
12891 test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no"
12892 fi
12893 fi
12894 have_javac=$ac_cv_prog_have_javac
12895 if test -n "$have_javac"; then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5
12897 $as_echo "$have_javac" >&6; }
12898 else
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12901 fi
12902
12903
12904 # Extract the first word of "jar", so it can be a program name with args.
12905 set dummy jar; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if ${ac_cv_prog_have_jar+:} false; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 if test -n "$have_jar"; then
12912 ac_cv_prog_have_jar="$have_jar" # Let the user override the test.
12913 else
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12916 do
12917 IFS=$as_save_IFS
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
12920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12921 ac_cv_prog_have_jar="yes"
12922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12923 break 2
12924 fi
12925 done
12926 done
12927 IFS=$as_save_IFS
12928
12929 test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no"
12930 fi
12931 fi
12932 have_jar=$ac_cv_prog_have_jar
12933 if test -n "$have_jar"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5
12935 $as_echo "$have_jar" >&6; }
12936 else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938 $as_echo "no" >&6; }
12939 fi
12940
12941
12942 if test "$have_javac" != no -a "$have_jar" != no; then
12943 echo java found, will try to configure Byteman support
12944
12945
12946 # Check whether --with-java was given.
12947 if test "${with_java+set}" = set; then :
12948 withval=$with_java;
12949 else
12950 with_java=/usr/lib/jvm/java
12951 fi
12952
12953 if test ! -d "$with_java"; then
12954 with_java=no
12955 fi
12956 JAVADIR="${with_java}"
12957 # always needed to compile
12958
12959 if test "$with_java" != "no"; then
12960
12961 cat >>confdefs.h <<_ACEOF
12962 #define HAVE_JAVA "1"
12963 _ACEOF
12964
12965 fi
12966
12967 if test "$with_java" != "no"; then
12968 HAVE_JAVA_TRUE=
12969 HAVE_JAVA_FALSE='#'
12970 else
12971 HAVE_JAVA_TRUE='#'
12972 HAVE_JAVA_FALSE=
12973 fi
12974
12975
12976 else
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5
12978 $as_echo "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;}
12979 if false; then
12980 HAVE_JAVA_TRUE=
12981 HAVE_JAVA_FALSE='#'
12982 else
12983 HAVE_JAVA_TRUE='#'
12984 HAVE_JAVA_FALSE=
12985 fi
12986
12987 fi # java+byteman support
12988
12989 ENABLE_NLS="$USE_NLS"
12990
12991 localedir="$localedir"
12992
12993 LOCALEDIR="$localedir"
12994
12995
12996
12997 # Check whether --with-extra-version was given.
12998 if test "${with_extra_version+set}" = set; then :
12999 withval=$with_extra_version;
13000 fi
13001
13002 if test "x$with_extra_version" != "xno"; then :
13003
13004 stap_extra_version="$with_extra_version"
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5
13006 $as_echo "$as_me: Adding extra version $stap_extra_version" >&6;}
13007 else
13008
13009 stap_extra_version=""
13010 fi
13011
13012 cat >>confdefs.h <<_ACEOF
13013 #define STAP_EXTRA_VERSION "$stap_extra_version"
13014 _ACEOF
13015
13016 STAP_EXTRA_VERSION="$stap_extra_version"
13017
13018
13019
13020 stap_prefix=$prefix
13021 test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
13022
13023 cat >>confdefs.h <<_ACEOF
13024 #define STAP_PREFIX "$stap_prefix"
13025 _ACEOF
13026
13027 STAP_PREFIX="$stap_prefix"
13028
13029
13030 ac_config_headers="$ac_config_headers config.h:config.in"
13031
13032 ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile man/cs/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile man/stap.1 man/stappaths.7 man/systemtap.8 man/cs/stap.1 man/cs/stappaths.7 man/cs/systemtap.8 initscript/config.systemtap initscript/config.stap-server initscript/systemtap initscript/stap-server initscript/99stap/module-setup.sh"
13033
13034
13035
13036 subdirs="$subdirs testsuite"
13037
13038 if test $enable_translator == "yes"; then
13039 ac_config_files="$ac_config_files run-stap"
13040
13041 fi
13042 ac_config_files="$ac_config_files dtrace"
13043
13044 ac_config_files="$ac_config_files stapdyn/Makefile"
13045
13046 ac_config_files="$ac_config_files java/Makefile"
13047
13048 ac_config_files="$ac_config_files java/stapbm"
13049
13050 ac_config_files="$ac_config_files python/Makefile"
13051
13052 ac_config_files="$ac_config_files staprun/Makefile"
13053
13054 ac_config_files="$ac_config_files staprun/run-staprun"
13055
13056 ac_config_files="$ac_config_files staprun/guest/stapshd"
13057
13058 ac_config_files="$ac_config_files staprun/guest/stapsh-daemon"
13059
13060 ac_config_files="$ac_config_files staprun/guest/stapsh@.service"
13061
13062
13063 # Setup "shadow" directory doc/beginners that has the basic directories setup for
13064 # xmlto in one directory (through directory links if necessary).
13065 # It would be nice to use AC_CONFIG_LINKS, but automake complains when
13066 # the src is a directory and not a file.
13067 ac_config_commands="$ac_config_commands doc/beginners"
13068
13069
13070 cat >confcache <<\_ACEOF
13071 # This file is a shell script that caches the results of configure
13072 # tests run on this system so they can be shared between configure
13073 # scripts and configure runs, see configure's option --config-cache.
13074 # It is not useful on other systems. If it contains results you don't
13075 # want to keep, you may remove or edit it.
13076 #
13077 # config.status only pays attention to the cache file if you give it
13078 # the --recheck option to rerun configure.
13079 #
13080 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13081 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13082 # following values.
13083
13084 _ACEOF
13085
13086 # The following way of writing the cache mishandles newlines in values,
13087 # but we know of no workaround that is simple, portable, and efficient.
13088 # So, we kill variables containing newlines.
13089 # Ultrix sh set writes to stderr and can't be redirected directly,
13090 # and sets the high bit in the cache file unless we assign to the vars.
13091 (
13092 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13093 eval ac_val=\$$ac_var
13094 case $ac_val in #(
13095 *${as_nl}*)
13096 case $ac_var in #(
13097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13099 esac
13100 case $ac_var in #(
13101 _ | IFS | as_nl) ;; #(
13102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13103 *) { eval $ac_var=; unset $ac_var;} ;;
13104 esac ;;
13105 esac
13106 done
13107
13108 (set) 2>&1 |
13109 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13110 *${as_nl}ac_space=\ *)
13111 # `set' does not quote correctly, so add quotes: double-quote
13112 # substitution turns \\\\ into \\, and sed turns \\ into \.
13113 sed -n \
13114 "s/'/'\\\\''/g;
13115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13116 ;; #(
13117 *)
13118 # `set' quotes correctly as required by POSIX, so do not add quotes.
13119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13120 ;;
13121 esac |
13122 sort
13123 ) |
13124 sed '
13125 /^ac_cv_env_/b end
13126 t clear
13127 :clear
13128 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13129 t end
13130 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13131 :end' >>confcache
13132 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13133 if test -w "$cache_file"; then
13134 if test "x$cache_file" != "x/dev/null"; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13136 $as_echo "$as_me: updating cache $cache_file" >&6;}
13137 if test ! -f "$cache_file" || test -h "$cache_file"; then
13138 cat confcache >"$cache_file"
13139 else
13140 case $cache_file in #(
13141 */* | ?:*)
13142 mv -f confcache "$cache_file"$$ &&
13143 mv -f "$cache_file"$$ "$cache_file" ;; #(
13144 *)
13145 mv -f confcache "$cache_file" ;;
13146 esac
13147 fi
13148 fi
13149 else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13151 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13152 fi
13153 fi
13154 rm -f confcache
13155
13156 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13157 # Let make expand exec_prefix.
13158 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13159
13160 DEFS=-DHAVE_CONFIG_H
13161
13162 ac_libobjs=
13163 ac_ltlibobjs=
13164 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13165 # 1. Remove the extension, and $U if already installed.
13166 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13167 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13168 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13169 # will be set to the directory where LIBOBJS objects are built.
13170 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13171 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13172 done
13173 LIBOBJS=$ac_libobjs
13174
13175 LTLIBOBJS=$ac_ltlibobjs
13176
13177
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13179 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13180 if test -n "$am_sleep_pid"; then
13181 # Hide warnings about reused PIDs.
13182 wait $am_sleep_pid 2>/dev/null
13183 fi
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13185 $as_echo "done" >&6; }
13186 if test -n "$EXEEXT"; then
13187 am__EXEEXT_TRUE=
13188 am__EXEEXT_FALSE='#'
13189 else
13190 am__EXEEXT_TRUE='#'
13191 am__EXEEXT_FALSE=
13192 fi
13193
13194 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13195 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13197 fi
13198 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13199 as_fn_error $? "conditional \"AMDEP\" was never defined.
13200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13201 fi
13202 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13203 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13205 fi
13206 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13207 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13209 fi
13210 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13211 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
13212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13213 fi
13214 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13215 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13217 fi
13218 if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
13219 as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined.
13220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13221 fi
13222 if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
13223 as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined.
13224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13225 fi
13226 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
13227 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
13228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13229 fi
13230 if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
13231 as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined.
13232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13233 fi
13234 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
13235 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
13236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13237 fi
13238 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
13239 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
13240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13241 fi
13242 if test -z "${BUILD_HTMLDOCS_TRUE}" && test -z "${BUILD_HTMLDOCS_FALSE}"; then
13243 as_fn_error $? "conditional \"BUILD_HTMLDOCS\" was never defined.
13244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13245 fi
13246 if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
13247 as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined.
13248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13249 fi
13250 if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
13251 as_fn_error $? "conditional \"HAVE_NSS\" was never defined.
13252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13253 fi
13254 if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
13255 as_fn_error $? "conditional \"BUILD_SERVER\" was never defined.
13256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13257 fi
13258 if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
13259 as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined.
13260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13261 fi
13262 if test -z "${HAVE_LIBREADLINE_TRUE}" && test -z "${HAVE_LIBREADLINE_FALSE}"; then
13263 as_fn_error $? "conditional \"HAVE_LIBREADLINE\" was never defined.
13264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13265 fi
13266 if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
13267 as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined.
13268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13269 fi
13270 if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then
13271 as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined.
13272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13273 fi
13274 if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then
13275 as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined.
13276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13277 fi
13278 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
13279 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
13280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13281 fi
13282 if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then
13283 as_fn_error $? "conditional \"BUILD_VIRT\" was never defined.
13284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13285 fi
13286 if test -z "${HAVE_PYTHON2_TRUE}" && test -z "${HAVE_PYTHON2_FALSE}"; then
13287 as_fn_error $? "conditional \"HAVE_PYTHON2\" was never defined.
13288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13289 fi
13290 if test -z "${HAVE_MONITOR_LIBS_TRUE}" && test -z "${HAVE_MONITOR_LIBS_FALSE}"; then
13291 as_fn_error $? "conditional \"HAVE_MONITOR_LIBS\" was never defined.
13292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13293 fi
13294 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
13295 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
13296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13297 fi
13298 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13299 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
13300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13301 fi
13302 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13303 as_fn_error $? "conditional \"HAVE_JAVA\" was never defined.
13304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13305 fi
13306
13307 : "${CONFIG_STATUS=./config.status}"
13308 ac_write_fail=0
13309 ac_clean_files_save=$ac_clean_files
13310 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13312 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13313 as_write_fail=0
13314 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13315 #! $SHELL
13316 # Generated by $as_me.
13317 # Run this file to recreate the current configuration.
13318 # Compiler output produced by configure, useful for debugging
13319 # configure, is in config.log if it exists.
13320
13321 debug=false
13322 ac_cs_recheck=false
13323 ac_cs_silent=false
13324
13325 SHELL=\${CONFIG_SHELL-$SHELL}
13326 export SHELL
13327 _ASEOF
13328 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13329 ## -------------------- ##
13330 ## M4sh Initialization. ##
13331 ## -------------------- ##
13332
13333 # Be more Bourne compatible
13334 DUALCASE=1; export DUALCASE # for MKS sh
13335 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13336 emulate sh
13337 NULLCMD=:
13338 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13339 # is contrary to our usage. Disable this feature.
13340 alias -g '${1+"$@"}'='"$@"'
13341 setopt NO_GLOB_SUBST
13342 else
13343 case `(set -o) 2>/dev/null` in #(
13344 *posix*) :
13345 set -o posix ;; #(
13346 *) :
13347 ;;
13348 esac
13349 fi
13350
13351
13352 as_nl='
13353 '
13354 export as_nl
13355 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13356 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13357 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13358 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13359 # Prefer a ksh shell builtin over an external printf program on Solaris,
13360 # but without wasting forks for bash or zsh.
13361 if test -z "$BASH_VERSION$ZSH_VERSION" \
13362 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13363 as_echo='print -r --'
13364 as_echo_n='print -rn --'
13365 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13366 as_echo='printf %s\n'
13367 as_echo_n='printf %s'
13368 else
13369 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13370 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13371 as_echo_n='/usr/ucb/echo -n'
13372 else
13373 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13374 as_echo_n_body='eval
13375 arg=$1;
13376 case $arg in #(
13377 *"$as_nl"*)
13378 expr "X$arg" : "X\\(.*\\)$as_nl";
13379 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13380 esac;
13381 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13382 '
13383 export as_echo_n_body
13384 as_echo_n='sh -c $as_echo_n_body as_echo'
13385 fi
13386 export as_echo_body
13387 as_echo='sh -c $as_echo_body as_echo'
13388 fi
13389
13390 # The user is always right.
13391 if test "${PATH_SEPARATOR+set}" != set; then
13392 PATH_SEPARATOR=:
13393 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13394 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13395 PATH_SEPARATOR=';'
13396 }
13397 fi
13398
13399
13400 # IFS
13401 # We need space, tab and new line, in precisely that order. Quoting is
13402 # there to prevent editors from complaining about space-tab.
13403 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13404 # splitting by setting IFS to empty value.)
13405 IFS=" "" $as_nl"
13406
13407 # Find who we are. Look in the path if we contain no directory separator.
13408 as_myself=
13409 case $0 in #((
13410 *[\\/]* ) as_myself=$0 ;;
13411 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13412 for as_dir in $PATH
13413 do
13414 IFS=$as_save_IFS
13415 test -z "$as_dir" && as_dir=.
13416 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13417 done
13418 IFS=$as_save_IFS
13419
13420 ;;
13421 esac
13422 # We did not find ourselves, most probably we were run as `sh COMMAND'
13423 # in which case we are not to be found in the path.
13424 if test "x$as_myself" = x; then
13425 as_myself=$0
13426 fi
13427 if test ! -f "$as_myself"; then
13428 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13429 exit 1
13430 fi
13431
13432 # Unset variables that we do not need and which cause bugs (e.g. in
13433 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13434 # suppresses any "Segmentation fault" message there. '((' could
13435 # trigger a bug in pdksh 5.2.14.
13436 for as_var in BASH_ENV ENV MAIL MAILPATH
13437 do eval test x\${$as_var+set} = xset \
13438 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13439 done
13440 PS1='$ '
13441 PS2='> '
13442 PS4='+ '
13443
13444 # NLS nuisances.
13445 LC_ALL=C
13446 export LC_ALL
13447 LANGUAGE=C
13448 export LANGUAGE
13449
13450 # CDPATH.
13451 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13452
13453
13454 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13455 # ----------------------------------------
13456 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13457 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13458 # script with STATUS, using 1 if that was 0.
13459 as_fn_error ()
13460 {
13461 as_status=$1; test $as_status -eq 0 && as_status=1
13462 if test "$4"; then
13463 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13464 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13465 fi
13466 $as_echo "$as_me: error: $2" >&2
13467 as_fn_exit $as_status
13468 } # as_fn_error
13469
13470
13471 # as_fn_set_status STATUS
13472 # -----------------------
13473 # Set $? to STATUS, without forking.
13474 as_fn_set_status ()
13475 {
13476 return $1
13477 } # as_fn_set_status
13478
13479 # as_fn_exit STATUS
13480 # -----------------
13481 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13482 as_fn_exit ()
13483 {
13484 set +e
13485 as_fn_set_status $1
13486 exit $1
13487 } # as_fn_exit
13488
13489 # as_fn_unset VAR
13490 # ---------------
13491 # Portably unset VAR.
13492 as_fn_unset ()
13493 {
13494 { eval $1=; unset $1;}
13495 }
13496 as_unset=as_fn_unset
13497 # as_fn_append VAR VALUE
13498 # ----------------------
13499 # Append the text in VALUE to the end of the definition contained in VAR. Take
13500 # advantage of any shell optimizations that allow amortized linear growth over
13501 # repeated appends, instead of the typical quadratic growth present in naive
13502 # implementations.
13503 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13504 eval 'as_fn_append ()
13505 {
13506 eval $1+=\$2
13507 }'
13508 else
13509 as_fn_append ()
13510 {
13511 eval $1=\$$1\$2
13512 }
13513 fi # as_fn_append
13514
13515 # as_fn_arith ARG...
13516 # ------------------
13517 # Perform arithmetic evaluation on the ARGs, and store the result in the
13518 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13519 # must be portable across $(()) and expr.
13520 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13521 eval 'as_fn_arith ()
13522 {
13523 as_val=$(( $* ))
13524 }'
13525 else
13526 as_fn_arith ()
13527 {
13528 as_val=`expr "$@" || test $? -eq 1`
13529 }
13530 fi # as_fn_arith
13531
13532
13533 if expr a : '\(a\)' >/dev/null 2>&1 &&
13534 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13535 as_expr=expr
13536 else
13537 as_expr=false
13538 fi
13539
13540 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13541 as_basename=basename
13542 else
13543 as_basename=false
13544 fi
13545
13546 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13547 as_dirname=dirname
13548 else
13549 as_dirname=false
13550 fi
13551
13552 as_me=`$as_basename -- "$0" ||
13553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13554 X"$0" : 'X\(//\)$' \| \
13555 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13556 $as_echo X/"$0" |
13557 sed '/^.*\/\([^/][^/]*\)\/*$/{
13558 s//\1/
13559 q
13560 }
13561 /^X\/\(\/\/\)$/{
13562 s//\1/
13563 q
13564 }
13565 /^X\/\(\/\).*/{
13566 s//\1/
13567 q
13568 }
13569 s/.*/./; q'`
13570
13571 # Avoid depending upon Character Ranges.
13572 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13573 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13574 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13575 as_cr_digits='0123456789'
13576 as_cr_alnum=$as_cr_Letters$as_cr_digits
13577
13578 ECHO_C= ECHO_N= ECHO_T=
13579 case `echo -n x` in #(((((
13580 -n*)
13581 case `echo 'xy\c'` in
13582 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13583 xy) ECHO_C='\c';;
13584 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13585 ECHO_T=' ';;
13586 esac;;
13587 *)
13588 ECHO_N='-n';;
13589 esac
13590
13591 rm -f conf$$ conf$$.exe conf$$.file
13592 if test -d conf$$.dir; then
13593 rm -f conf$$.dir/conf$$.file
13594 else
13595 rm -f conf$$.dir
13596 mkdir conf$$.dir 2>/dev/null
13597 fi
13598 if (echo >conf$$.file) 2>/dev/null; then
13599 if ln -s conf$$.file conf$$ 2>/dev/null; then
13600 as_ln_s='ln -s'
13601 # ... but there are two gotchas:
13602 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13603 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13604 # In both cases, we have to default to `cp -pR'.
13605 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13606 as_ln_s='cp -pR'
13607 elif ln conf$$.file conf$$ 2>/dev/null; then
13608 as_ln_s=ln
13609 else
13610 as_ln_s='cp -pR'
13611 fi
13612 else
13613 as_ln_s='cp -pR'
13614 fi
13615 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13616 rmdir conf$$.dir 2>/dev/null
13617
13618
13619 # as_fn_mkdir_p
13620 # -------------
13621 # Create "$as_dir" as a directory, including parents if necessary.
13622 as_fn_mkdir_p ()
13623 {
13624
13625 case $as_dir in #(
13626 -*) as_dir=./$as_dir;;
13627 esac
13628 test -d "$as_dir" || eval $as_mkdir_p || {
13629 as_dirs=
13630 while :; do
13631 case $as_dir in #(
13632 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13633 *) as_qdir=$as_dir;;
13634 esac
13635 as_dirs="'$as_qdir' $as_dirs"
13636 as_dir=`$as_dirname -- "$as_dir" ||
13637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13638 X"$as_dir" : 'X\(//\)[^/]' \| \
13639 X"$as_dir" : 'X\(//\)$' \| \
13640 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13641 $as_echo X"$as_dir" |
13642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13643 s//\1/
13644 q
13645 }
13646 /^X\(\/\/\)[^/].*/{
13647 s//\1/
13648 q
13649 }
13650 /^X\(\/\/\)$/{
13651 s//\1/
13652 q
13653 }
13654 /^X\(\/\).*/{
13655 s//\1/
13656 q
13657 }
13658 s/.*/./; q'`
13659 test -d "$as_dir" && break
13660 done
13661 test -z "$as_dirs" || eval "mkdir $as_dirs"
13662 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13663
13664
13665 } # as_fn_mkdir_p
13666 if mkdir -p . 2>/dev/null; then
13667 as_mkdir_p='mkdir -p "$as_dir"'
13668 else
13669 test -d ./-p && rmdir ./-p
13670 as_mkdir_p=false
13671 fi
13672
13673
13674 # as_fn_executable_p FILE
13675 # -----------------------
13676 # Test if FILE is an executable regular file.
13677 as_fn_executable_p ()
13678 {
13679 test -f "$1" && test -x "$1"
13680 } # as_fn_executable_p
13681 as_test_x='test -x'
13682 as_executable_p=as_fn_executable_p
13683
13684 # Sed expression to map a string onto a valid CPP name.
13685 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13686
13687 # Sed expression to map a string onto a valid variable name.
13688 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13689
13690
13691 exec 6>&1
13692 ## ----------------------------------- ##
13693 ## Main body of $CONFIG_STATUS script. ##
13694 ## ----------------------------------- ##
13695 _ASEOF
13696 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13697
13698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13699 # Save the log message, to keep $0 and so on meaningful, and to
13700 # report actual input values of CONFIG_FILES etc. instead of their
13701 # values after options handling.
13702 ac_log="
13703 This file was extended by systemtap $as_me 3.1, which was
13704 generated by GNU Autoconf 2.69. Invocation command line was
13705
13706 CONFIG_FILES = $CONFIG_FILES
13707 CONFIG_HEADERS = $CONFIG_HEADERS
13708 CONFIG_LINKS = $CONFIG_LINKS
13709 CONFIG_COMMANDS = $CONFIG_COMMANDS
13710 $ $0 $@
13711
13712 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13713 "
13714
13715 _ACEOF
13716
13717 case $ac_config_files in *"
13718 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13719 esac
13720
13721 case $ac_config_headers in *"
13722 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13723 esac
13724
13725
13726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13727 # Files that config.status was made for.
13728 config_files="$ac_config_files"
13729 config_headers="$ac_config_headers"
13730 config_commands="$ac_config_commands"
13731
13732 _ACEOF
13733
13734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13735 ac_cs_usage="\
13736 \`$as_me' instantiates files and other configuration actions
13737 from templates according to the current configuration. Unless the files
13738 and actions are specified as TAGs, all are instantiated by default.
13739
13740 Usage: $0 [OPTION]... [TAG]...
13741
13742 -h, --help print this help, then exit
13743 -V, --version print version number and configuration settings, then exit
13744 --config print configuration, then exit
13745 -q, --quiet, --silent
13746 do not print progress messages
13747 -d, --debug don't remove temporary files
13748 --recheck update $as_me by reconfiguring in the same conditions
13749 --file=FILE[:TEMPLATE]
13750 instantiate the configuration file FILE
13751 --header=FILE[:TEMPLATE]
13752 instantiate the configuration header FILE
13753
13754 Configuration files:
13755 $config_files
13756
13757 Configuration headers:
13758 $config_headers
13759
13760 Configuration commands:
13761 $config_commands
13762
13763 Report bugs to <systemtap@sourceware.org>."
13764
13765 _ACEOF
13766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13767 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13768 ac_cs_version="\\
13769 systemtap config.status 3.1
13770 configured by $0, generated by GNU Autoconf 2.69,
13771 with options \\"\$ac_cs_config\\"
13772
13773 Copyright (C) 2012 Free Software Foundation, Inc.
13774 This config.status script is free software; the Free Software Foundation
13775 gives unlimited permission to copy, distribute and modify it."
13776
13777 ac_pwd='$ac_pwd'
13778 srcdir='$srcdir'
13779 INSTALL='$INSTALL'
13780 MKDIR_P='$MKDIR_P'
13781 AWK='$AWK'
13782 test -n "\$AWK" || AWK=awk
13783 _ACEOF
13784
13785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13786 # The default lists apply if the user does not specify any file.
13787 ac_need_defaults=:
13788 while test $# != 0
13789 do
13790 case $1 in
13791 --*=?*)
13792 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13793 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13794 ac_shift=:
13795 ;;
13796 --*=)
13797 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13798 ac_optarg=
13799 ac_shift=:
13800 ;;
13801 *)
13802 ac_option=$1
13803 ac_optarg=$2
13804 ac_shift=shift
13805 ;;
13806 esac
13807
13808 case $ac_option in
13809 # Handling of the options.
13810 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13811 ac_cs_recheck=: ;;
13812 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13813 $as_echo "$ac_cs_version"; exit ;;
13814 --config | --confi | --conf | --con | --co | --c )
13815 $as_echo "$ac_cs_config"; exit ;;
13816 --debug | --debu | --deb | --de | --d | -d )
13817 debug=: ;;
13818 --file | --fil | --fi | --f )
13819 $ac_shift
13820 case $ac_optarg in
13821 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13822 '') as_fn_error $? "missing file argument" ;;
13823 esac
13824 as_fn_append CONFIG_FILES " '$ac_optarg'"
13825 ac_need_defaults=false;;
13826 --header | --heade | --head | --hea )
13827 $ac_shift
13828 case $ac_optarg in
13829 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13830 esac
13831 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13832 ac_need_defaults=false;;
13833 --he | --h)
13834 # Conflict between --help and --header
13835 as_fn_error $? "ambiguous option: \`$1'
13836 Try \`$0 --help' for more information.";;
13837 --help | --hel | -h )
13838 $as_echo "$ac_cs_usage"; exit ;;
13839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13840 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13841 ac_cs_silent=: ;;
13842
13843 # This is an error.
13844 -*) as_fn_error $? "unrecognized option: \`$1'
13845 Try \`$0 --help' for more information." ;;
13846
13847 *) as_fn_append ac_config_targets " $1"
13848 ac_need_defaults=false ;;
13849
13850 esac
13851 shift
13852 done
13853
13854 ac_configure_extra_args=
13855
13856 if $ac_cs_silent; then
13857 exec 6>/dev/null
13858 ac_configure_extra_args="$ac_configure_extra_args --silent"
13859 fi
13860
13861 _ACEOF
13862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13863 if \$ac_cs_recheck; then
13864 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13865 shift
13866 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13867 CONFIG_SHELL='$SHELL'
13868 export CONFIG_SHELL
13869 exec "\$@"
13870 fi
13871
13872 _ACEOF
13873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13874 exec 5>>config.log
13875 {
13876 echo
13877 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13878 ## Running $as_me. ##
13879 _ASBOX
13880 $as_echo "$ac_log"
13881 } >&5
13882
13883 _ACEOF
13884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13885 #
13886 # INIT-COMMANDS
13887 #
13888 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13889 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13890 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13891 # from automake < 1.5.
13892 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13893 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13894 LINGUAS="${LINGUAS-%UNSET%}"
13895
13896
13897 _ACEOF
13898
13899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13900
13901 # Handling of arguments.
13902 for ac_config_target in $ac_config_targets
13903 do
13904 case $ac_config_target in
13905 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13906 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13907 "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;;
13908 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13909 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13910 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13911 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13912 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13913 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
13914 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
13915 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
13916 "man/stap.1") CONFIG_FILES="$CONFIG_FILES man/stap.1" ;;
13917 "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;;
13918 "man/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/systemtap.8" ;;
13919 "man/cs/stap.1") CONFIG_FILES="$CONFIG_FILES man/cs/stap.1" ;;
13920 "man/cs/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/cs/stappaths.7" ;;
13921 "man/cs/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/cs/systemtap.8" ;;
13922 "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;;
13923 "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;;
13924 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
13925 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
13926 "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;;
13927 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
13928 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
13929 "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;;
13930 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
13931 "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;;
13932 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
13933 "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;;
13934 "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;;
13935 "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;;
13936 "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;;
13937 "staprun/guest/stapsh@.service") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh@.service" ;;
13938 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
13939
13940 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13941 esac
13942 done
13943
13944
13945 # If the user did not use the arguments to specify the items to instantiate,
13946 # then the envvar interface is used. Set only those that are not.
13947 # We use the long form for the default assignment because of an extremely
13948 # bizarre bug on SunOS 4.1.3.
13949 if $ac_need_defaults; then
13950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13951 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13952 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13953 fi
13954
13955 # Have a temporary directory for convenience. Make it in the build tree
13956 # simply because there is no reason against having it here, and in addition,
13957 # creating and moving files from /tmp can sometimes cause problems.
13958 # Hook for its removal unless debugging.
13959 # Note that there is a small window in which the directory will not be cleaned:
13960 # after its creation but before its name has been assigned to `$tmp'.
13961 $debug ||
13962 {
13963 tmp= ac_tmp=
13964 trap 'exit_status=$?
13965 : "${ac_tmp:=$tmp}"
13966 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13967 ' 0
13968 trap 'as_fn_exit 1' 1 2 13 15
13969 }
13970 # Create a (secure) tmp directory for tmp files.
13971
13972 {
13973 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13974 test -d "$tmp"
13975 } ||
13976 {
13977 tmp=./conf$$-$RANDOM
13978 (umask 077 && mkdir "$tmp")
13979 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13980 ac_tmp=$tmp
13981
13982 # Set up the scripts for CONFIG_FILES section.
13983 # No need to generate them if there are no CONFIG_FILES.
13984 # This happens for instance with `./config.status config.h'.
13985 if test -n "$CONFIG_FILES"; then
13986
13987
13988 ac_cr=`echo X | tr X '\015'`
13989 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13990 # But we know of no other shell where ac_cr would be empty at this
13991 # point, so we can use a bashism as a fallback.
13992 if test "x$ac_cr" = x; then
13993 eval ac_cr=\$\'\\r\'
13994 fi
13995 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13996 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13997 ac_cs_awk_cr='\\r'
13998 else
13999 ac_cs_awk_cr=$ac_cr
14000 fi
14001
14002 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14003 _ACEOF
14004
14005
14006 {
14007 echo "cat >conf$$subs.awk <<_ACEOF" &&
14008 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14009 echo "_ACEOF"
14010 } >conf$$subs.sh ||
14011 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14012 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14013 ac_delim='%!_!# '
14014 for ac_last_try in false false false false false :; do
14015 . ./conf$$subs.sh ||
14016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14017
14018 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14019 if test $ac_delim_n = $ac_delim_num; then
14020 break
14021 elif $ac_last_try; then
14022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14023 else
14024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14025 fi
14026 done
14027 rm -f conf$$subs.sh
14028
14029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14030 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14031 _ACEOF
14032 sed -n '
14033 h
14034 s/^/S["/; s/!.*/"]=/
14035 p
14036 g
14037 s/^[^!]*!//
14038 :repl
14039 t repl
14040 s/'"$ac_delim"'$//
14041 t delim
14042 :nl
14043 h
14044 s/\(.\{148\}\)..*/\1/
14045 t more1
14046 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14047 p
14048 n
14049 b repl
14050 :more1
14051 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14052 p
14053 g
14054 s/.\{148\}//
14055 t nl
14056 :delim
14057 h
14058 s/\(.\{148\}\)..*/\1/
14059 t more2
14060 s/["\\]/\\&/g; s/^/"/; s/$/"/
14061 p
14062 b
14063 :more2
14064 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14065 p
14066 g
14067 s/.\{148\}//
14068 t delim
14069 ' <conf$$subs.awk | sed '
14070 /^[^""]/{
14071 N
14072 s/\n//
14073 }
14074 ' >>$CONFIG_STATUS || ac_write_fail=1
14075 rm -f conf$$subs.awk
14076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14077 _ACAWK
14078 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14079 for (key in S) S_is_set[key] = 1
14080 FS = "\a"
14081
14082 }
14083 {
14084 line = $ 0
14085 nfields = split(line, field, "@")
14086 substed = 0
14087 len = length(field[1])
14088 for (i = 2; i < nfields; i++) {
14089 key = field[i]
14090 keylen = length(key)
14091 if (S_is_set[key]) {
14092 value = S[key]
14093 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14094 len += length(value) + length(field[++i])
14095 substed = 1
14096 } else
14097 len += 1 + keylen
14098 }
14099
14100 print line
14101 }
14102
14103 _ACAWK
14104 _ACEOF
14105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14106 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14107 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14108 else
14109 cat
14110 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14111 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14112 _ACEOF
14113
14114 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14115 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14116 # trailing colons and then remove the whole line if VPATH becomes empty
14117 # (actually we leave an empty line to preserve line numbers).
14118 if test "x$srcdir" = x.; then
14119 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14120 h
14121 s///
14122 s/^/:/
14123 s/[ ]*$/:/
14124 s/:\$(srcdir):/:/g
14125 s/:\${srcdir}:/:/g
14126 s/:@srcdir@:/:/g
14127 s/^:*//
14128 s/:*$//
14129 x
14130 s/\(=[ ]*\).*/\1/
14131 G
14132 s/\n//
14133 s/^[^=]*=[ ]*$//
14134 }'
14135 fi
14136
14137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14138 fi # test -n "$CONFIG_FILES"
14139
14140 # Set up the scripts for CONFIG_HEADERS section.
14141 # No need to generate them if there are no CONFIG_HEADERS.
14142 # This happens for instance with `./config.status Makefile'.
14143 if test -n "$CONFIG_HEADERS"; then
14144 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14145 BEGIN {
14146 _ACEOF
14147
14148 # Transform confdefs.h into an awk script `defines.awk', embedded as
14149 # here-document in config.status, that substitutes the proper values into
14150 # config.h.in to produce config.h.
14151
14152 # Create a delimiter string that does not exist in confdefs.h, to ease
14153 # handling of long lines.
14154 ac_delim='%!_!# '
14155 for ac_last_try in false false :; do
14156 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14157 if test -z "$ac_tt"; then
14158 break
14159 elif $ac_last_try; then
14160 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14161 else
14162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14163 fi
14164 done
14165
14166 # For the awk script, D is an array of macro values keyed by name,
14167 # likewise P contains macro parameters if any. Preserve backslash
14168 # newline sequences.
14169
14170 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14171 sed -n '
14172 s/.\{148\}/&'"$ac_delim"'/g
14173 t rset
14174 :rset
14175 s/^[ ]*#[ ]*define[ ][ ]*/ /
14176 t def
14177 d
14178 :def
14179 s/\\$//
14180 t bsnl
14181 s/["\\]/\\&/g
14182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14183 D["\1"]=" \3"/p
14184 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14185 d
14186 :bsnl
14187 s/["\\]/\\&/g
14188 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14189 D["\1"]=" \3\\\\\\n"\\/p
14190 t cont
14191 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14192 t cont
14193 d
14194 :cont
14195 n
14196 s/.\{148\}/&'"$ac_delim"'/g
14197 t clear
14198 :clear
14199 s/\\$//
14200 t bsnlc
14201 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14202 d
14203 :bsnlc
14204 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14205 b cont
14206 ' <confdefs.h | sed '
14207 s/'"$ac_delim"'/"\\\
14208 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14209
14210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14211 for (key in D) D_is_set[key] = 1
14212 FS = "\a"
14213 }
14214 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14215 line = \$ 0
14216 split(line, arg, " ")
14217 if (arg[1] == "#") {
14218 defundef = arg[2]
14219 mac1 = arg[3]
14220 } else {
14221 defundef = substr(arg[1], 2)
14222 mac1 = arg[2]
14223 }
14224 split(mac1, mac2, "(") #)
14225 macro = mac2[1]
14226 prefix = substr(line, 1, index(line, defundef) - 1)
14227 if (D_is_set[macro]) {
14228 # Preserve the white space surrounding the "#".
14229 print prefix "define", macro P[macro] D[macro]
14230 next
14231 } else {
14232 # Replace #undef with comments. This is necessary, for example,
14233 # in the case of _POSIX_SOURCE, which is predefined and required
14234 # on some systems where configure will not decide to define it.
14235 if (defundef == "undef") {
14236 print "/*", prefix defundef, macro, "*/"
14237 next
14238 }
14239 }
14240 }
14241 { print }
14242 _ACAWK
14243 _ACEOF
14244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14245 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14246 fi # test -n "$CONFIG_HEADERS"
14247
14248
14249 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14250 shift
14251 for ac_tag
14252 do
14253 case $ac_tag in
14254 :[FHLC]) ac_mode=$ac_tag; continue;;
14255 esac
14256 case $ac_mode$ac_tag in
14257 :[FHL]*:*);;
14258 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14259 :[FH]-) ac_tag=-:-;;
14260 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14261 esac
14262 ac_save_IFS=$IFS
14263 IFS=:
14264 set x $ac_tag
14265 IFS=$ac_save_IFS
14266 shift
14267 ac_file=$1
14268 shift
14269
14270 case $ac_mode in
14271 :L) ac_source=$1;;
14272 :[FH])
14273 ac_file_inputs=
14274 for ac_f
14275 do
14276 case $ac_f in
14277 -) ac_f="$ac_tmp/stdin";;
14278 *) # Look for the file first in the build tree, then in the source tree
14279 # (if the path is not absolute). The absolute path cannot be DOS-style,
14280 # because $ac_f cannot contain `:'.
14281 test -f "$ac_f" ||
14282 case $ac_f in
14283 [\\/$]*) false;;
14284 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14285 esac ||
14286 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14287 esac
14288 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14289 as_fn_append ac_file_inputs " '$ac_f'"
14290 done
14291
14292 # Let's still pretend it is `configure' which instantiates (i.e., don't
14293 # use $as_me), people would be surprised to read:
14294 # /* config.h. Generated by config.status. */
14295 configure_input='Generated from '`
14296 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14297 `' by configure.'
14298 if test x"$ac_file" != x-; then
14299 configure_input="$ac_file. $configure_input"
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14301 $as_echo "$as_me: creating $ac_file" >&6;}
14302 fi
14303 # Neutralize special characters interpreted by sed in replacement strings.
14304 case $configure_input in #(
14305 *\&* | *\|* | *\\* )
14306 ac_sed_conf_input=`$as_echo "$configure_input" |
14307 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14308 *) ac_sed_conf_input=$configure_input;;
14309 esac
14310
14311 case $ac_tag in
14312 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14313 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14314 esac
14315 ;;
14316 esac
14317
14318 ac_dir=`$as_dirname -- "$ac_file" ||
14319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14320 X"$ac_file" : 'X\(//\)[^/]' \| \
14321 X"$ac_file" : 'X\(//\)$' \| \
14322 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14323 $as_echo X"$ac_file" |
14324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14325 s//\1/
14326 q
14327 }
14328 /^X\(\/\/\)[^/].*/{
14329 s//\1/
14330 q
14331 }
14332 /^X\(\/\/\)$/{
14333 s//\1/
14334 q
14335 }
14336 /^X\(\/\).*/{
14337 s//\1/
14338 q
14339 }
14340 s/.*/./; q'`
14341 as_dir="$ac_dir"; as_fn_mkdir_p
14342 ac_builddir=.
14343
14344 case "$ac_dir" in
14345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14346 *)
14347 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14348 # A ".." for each directory in $ac_dir_suffix.
14349 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14350 case $ac_top_builddir_sub in
14351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14353 esac ;;
14354 esac
14355 ac_abs_top_builddir=$ac_pwd
14356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14357 # for backward compatibility:
14358 ac_top_builddir=$ac_top_build_prefix
14359
14360 case $srcdir in
14361 .) # We are building in place.
14362 ac_srcdir=.
14363 ac_top_srcdir=$ac_top_builddir_sub
14364 ac_abs_top_srcdir=$ac_pwd ;;
14365 [\\/]* | ?:[\\/]* ) # Absolute name.
14366 ac_srcdir=$srcdir$ac_dir_suffix;
14367 ac_top_srcdir=$srcdir
14368 ac_abs_top_srcdir=$srcdir ;;
14369 *) # Relative name.
14370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14371 ac_top_srcdir=$ac_top_build_prefix$srcdir
14372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14373 esac
14374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14375
14376
14377 case $ac_mode in
14378 :F)
14379 #
14380 # CONFIG_FILE
14381 #
14382
14383 case $INSTALL in
14384 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14385 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14386 esac
14387 ac_MKDIR_P=$MKDIR_P
14388 case $MKDIR_P in
14389 [\\/$]* | ?:[\\/]* ) ;;
14390 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14391 esac
14392 _ACEOF
14393
14394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14395 # If the template does not know about datarootdir, expand it.
14396 # FIXME: This hack should be removed a few years after 2.60.
14397 ac_datarootdir_hack=; ac_datarootdir_seen=
14398 ac_sed_dataroot='
14399 /datarootdir/ {
14400 p
14401 q
14402 }
14403 /@datadir@/p
14404 /@docdir@/p
14405 /@infodir@/p
14406 /@localedir@/p
14407 /@mandir@/p'
14408 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14409 *datarootdir*) ac_datarootdir_seen=yes;;
14410 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14412 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14413 _ACEOF
14414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14415 ac_datarootdir_hack='
14416 s&@datadir@&$datadir&g
14417 s&@docdir@&$docdir&g
14418 s&@infodir@&$infodir&g
14419 s&@localedir@&$localedir&g
14420 s&@mandir@&$mandir&g
14421 s&\\\${datarootdir}&$datarootdir&g' ;;
14422 esac
14423 _ACEOF
14424
14425 # Neutralize VPATH when `$srcdir' = `.'.
14426 # Shell code in configure.ac might set extrasub.
14427 # FIXME: do we really want to maintain this feature?
14428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14429 ac_sed_extra="$ac_vpsub
14430 $extrasub
14431 _ACEOF
14432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14433 :t
14434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14435 s|@configure_input@|$ac_sed_conf_input|;t t
14436 s&@top_builddir@&$ac_top_builddir_sub&;t t
14437 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14438 s&@srcdir@&$ac_srcdir&;t t
14439 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14440 s&@top_srcdir@&$ac_top_srcdir&;t t
14441 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14442 s&@builddir@&$ac_builddir&;t t
14443 s&@abs_builddir@&$ac_abs_builddir&;t t
14444 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14445 s&@INSTALL@&$ac_INSTALL&;t t
14446 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14447 $ac_datarootdir_hack
14448 "
14449 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14450 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14451
14452 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14453 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14454 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14455 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14457 which seems to be undefined. Please make sure it is defined" >&5
14458 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14459 which seems to be undefined. Please make sure it is defined" >&2;}
14460
14461 rm -f "$ac_tmp/stdin"
14462 case $ac_file in
14463 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14464 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14465 esac \
14466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14467 ;;
14468 :H)
14469 #
14470 # CONFIG_HEADER
14471 #
14472 if test x"$ac_file" != x-; then
14473 {
14474 $as_echo "/* $configure_input */" \
14475 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14476 } >"$ac_tmp/config.h" \
14477 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14478 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14480 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14481 else
14482 rm -f "$ac_file"
14483 mv "$ac_tmp/config.h" "$ac_file" \
14484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14485 fi
14486 else
14487 $as_echo "/* $configure_input */" \
14488 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14489 || as_fn_error $? "could not create -" "$LINENO" 5
14490 fi
14491 # Compute "$ac_file"'s index in $config_headers.
14492 _am_arg="$ac_file"
14493 _am_stamp_count=1
14494 for _am_header in $config_headers :; do
14495 case $_am_header in
14496 $_am_arg | $_am_arg:* )
14497 break ;;
14498 * )
14499 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14500 esac
14501 done
14502 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14503 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14504 X"$_am_arg" : 'X\(//\)[^/]' \| \
14505 X"$_am_arg" : 'X\(//\)$' \| \
14506 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14507 $as_echo X"$_am_arg" |
14508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14509 s//\1/
14510 q
14511 }
14512 /^X\(\/\/\)[^/].*/{
14513 s//\1/
14514 q
14515 }
14516 /^X\(\/\/\)$/{
14517 s//\1/
14518 q
14519 }
14520 /^X\(\/\).*/{
14521 s//\1/
14522 q
14523 }
14524 s/.*/./; q'`/stamp-h$_am_stamp_count
14525 ;;
14526
14527 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14528 $as_echo "$as_me: executing $ac_file commands" >&6;}
14529 ;;
14530 esac
14531
14532
14533 case $ac_file$ac_mode in
14534 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14535 # Older Autoconf quotes --file arguments for eval, but not when files
14536 # are listed without --file. Let's play safe and only enable the eval
14537 # if we detect the quoting.
14538 case $CONFIG_FILES in
14539 *\'*) eval set x "$CONFIG_FILES" ;;
14540 *) set x $CONFIG_FILES ;;
14541 esac
14542 shift
14543 for mf
14544 do
14545 # Strip MF so we end up with the name of the file.
14546 mf=`echo "$mf" | sed -e 's/:.*$//'`
14547 # Check whether this is an Automake generated Makefile or not.
14548 # We used to match only the files named 'Makefile.in', but
14549 # some people rename them; so instead we look at the file content.
14550 # Grep'ing the first line is not enough: some people post-process
14551 # each Makefile.in and add a new line on top of each file to say so.
14552 # Grep'ing the whole file is not good either: AIX grep has a line
14553 # limit of 2048, but all sed's we know have understand at least 4000.
14554 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14555 dirpart=`$as_dirname -- "$mf" ||
14556 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14557 X"$mf" : 'X\(//\)[^/]' \| \
14558 X"$mf" : 'X\(//\)$' \| \
14559 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14560 $as_echo X"$mf" |
14561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14562 s//\1/
14563 q
14564 }
14565 /^X\(\/\/\)[^/].*/{
14566 s//\1/
14567 q
14568 }
14569 /^X\(\/\/\)$/{
14570 s//\1/
14571 q
14572 }
14573 /^X\(\/\).*/{
14574 s//\1/
14575 q
14576 }
14577 s/.*/./; q'`
14578 else
14579 continue
14580 fi
14581 # Extract the definition of DEPDIR, am__include, and am__quote
14582 # from the Makefile without running 'make'.
14583 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14584 test -z "$DEPDIR" && continue
14585 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14586 test -z "$am__include" && continue
14587 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14588 # Find all dependency output files, they are included files with
14589 # $(DEPDIR) in their names. We invoke sed twice because it is the
14590 # simplest approach to changing $(DEPDIR) to its actual value in the
14591 # expansion.
14592 for file in `sed -n "
14593 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14594 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14595 # Make sure the directory exists.
14596 test -f "$dirpart/$file" && continue
14597 fdir=`$as_dirname -- "$file" ||
14598 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14599 X"$file" : 'X\(//\)[^/]' \| \
14600 X"$file" : 'X\(//\)$' \| \
14601 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14602 $as_echo X"$file" |
14603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14604 s//\1/
14605 q
14606 }
14607 /^X\(\/\/\)[^/].*/{
14608 s//\1/
14609 q
14610 }
14611 /^X\(\/\/\)$/{
14612 s//\1/
14613 q
14614 }
14615 /^X\(\/\).*/{
14616 s//\1/
14617 q
14618 }
14619 s/.*/./; q'`
14620 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14621 # echo "creating $dirpart/$file"
14622 echo '# dummy' > "$dirpart/$file"
14623 done
14624 done
14625 }
14626 ;;
14627 "po-directories":C)
14628 for ac_file in $CONFIG_FILES; do
14629 # Support "outfile[:infile[:infile...]]"
14630 case "$ac_file" in
14631 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14632 esac
14633 # PO directories have a Makefile.in generated from Makefile.in.in.
14634 case "$ac_file" in */Makefile.in)
14635 # Adjust a relative srcdir.
14636 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14637 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14638 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14639 # In autoconf-2.13 it is called $ac_given_srcdir.
14640 # In autoconf-2.50 it is called $srcdir.
14641 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14642 case "$ac_given_srcdir" in
14643 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14644 /*) top_srcdir="$ac_given_srcdir" ;;
14645 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14646 esac
14647 # Treat a directory as a PO directory if and only if it has a
14648 # POTFILES.in file. This allows packages to have multiple PO
14649 # directories under different names or in different locations.
14650 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14651 rm -f "$ac_dir/POTFILES"
14652 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14653 gt_tab=`printf '\t'`
14654 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"
14655 POMAKEFILEDEPS="POTFILES.in"
14656 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14657 # on $ac_dir but don't depend on user-specified configuration
14658 # parameters.
14659 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14660 # The LINGUAS file contains the set of available languages.
14661 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14662 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14663 fi
14664 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14665 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14666 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14667 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14668 else
14669 # The set of available languages was given in configure.in.
14670 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14671 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14672 fi
14673 # Compute POFILES
14674 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14675 # Compute UPDATEPOFILES
14676 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14677 # Compute DUMMYPOFILES
14678 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14679 # Compute GMOFILES
14680 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14681 case "$ac_given_srcdir" in
14682 .) srcdirpre= ;;
14683 *) srcdirpre='$(srcdir)/' ;;
14684 esac
14685 POFILES=
14686 UPDATEPOFILES=
14687 DUMMYPOFILES=
14688 GMOFILES=
14689 for lang in $ALL_LINGUAS; do
14690 POFILES="$POFILES $srcdirpre$lang.po"
14691 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14692 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14693 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14694 done
14695 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14696 # environment variable.
14697 INST_LINGUAS=
14698 if test -n "$ALL_LINGUAS"; then
14699 for presentlang in $ALL_LINGUAS; do
14700 useit=no
14701 if test "%UNSET%" != "$LINGUAS"; then
14702 desiredlanguages="$LINGUAS"
14703 else
14704 desiredlanguages="$ALL_LINGUAS"
14705 fi
14706 for desiredlang in $desiredlanguages; do
14707 # Use the presentlang catalog if desiredlang is
14708 # a. equal to presentlang, or
14709 # b. a variant of presentlang (because in this case,
14710 # presentlang can be used as a fallback for messages
14711 # which are not translated in the desiredlang catalog).
14712 case "$desiredlang" in
14713 "$presentlang"*) useit=yes;;
14714 esac
14715 done
14716 if test $useit = yes; then
14717 INST_LINGUAS="$INST_LINGUAS $presentlang"
14718 fi
14719 done
14720 fi
14721 CATALOGS=
14722 if test -n "$INST_LINGUAS"; then
14723 for lang in $INST_LINGUAS; do
14724 CATALOGS="$CATALOGS $lang.gmo"
14725 done
14726 fi
14727 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14728 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"
14729 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14730 if test -f "$f"; then
14731 case "$f" in
14732 *.orig | *.bak | *~) ;;
14733 *) cat "$f" >> "$ac_dir/Makefile" ;;
14734 esac
14735 fi
14736 done
14737 fi
14738 ;;
14739 esac
14740 done ;;
14741 "run-stap":F) chmod +x run-stap ;;
14742 "dtrace":F) chmod +x dtrace ;;
14743 "java/stapbm":F) chmod +x java/stapbm ;;
14744 "staprun/run-staprun":F) chmod +x staprun/run-staprun ;;
14745 "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;;
14746 "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;;
14747 "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 ;;
14748
14749 esac
14750 done # for ac_tag
14751
14752
14753 as_fn_exit 0
14754 _ACEOF
14755 ac_clean_files=$ac_clean_files_save
14756
14757 test $ac_write_fail = 0 ||
14758 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14759
14760
14761 # configure is writing to config.log, and then calls config.status.
14762 # config.status does its own redirection, appending to config.log.
14763 # Unfortunately, on DOS this fails, as config.log is still kept open
14764 # by configure, so config.status won't be able to write to it; its
14765 # output is simply discarded. So we exec the FD to /dev/null,
14766 # effectively closing config.log, so it can be properly (re)opened and
14767 # appended to by config.status. When coming back to configure, we
14768 # need to make the FD available again.
14769 if test "$no_create" != yes; then
14770 ac_cs_success=:
14771 ac_config_status_args=
14772 test "$silent" = yes &&
14773 ac_config_status_args="$ac_config_status_args --quiet"
14774 exec 5>/dev/null
14775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14776 exec 5>>config.log
14777 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14778 # would make configure fail if this is the last instruction.
14779 $ac_cs_success || as_fn_exit 1
14780 fi
14781
14782 #
14783 # CONFIG_SUBDIRS section.
14784 #
14785 if test "$no_recursion" != yes; then
14786
14787 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14788 # so they do not pile up.
14789 ac_sub_configure_args=
14790 ac_prev=
14791 eval "set x $ac_configure_args"
14792 shift
14793 for ac_arg
14794 do
14795 if test -n "$ac_prev"; then
14796 ac_prev=
14797 continue
14798 fi
14799 case $ac_arg in
14800 -cache-file | --cache-file | --cache-fil | --cache-fi \
14801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14802 ac_prev=cache_file ;;
14803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14805 | --c=*)
14806 ;;
14807 --config-cache | -C)
14808 ;;
14809 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14810 ac_prev=srcdir ;;
14811 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14812 ;;
14813 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14814 ac_prev=prefix ;;
14815 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14816 ;;
14817 --disable-option-checking)
14818 ;;
14819 *)
14820 case $ac_arg in
14821 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14822 esac
14823 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14824 esac
14825 done
14826
14827 # Always prepend --prefix to ensure using the same prefix
14828 # in subdir configurations.
14829 ac_arg="--prefix=$prefix"
14830 case $ac_arg in
14831 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14832 esac
14833 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14834
14835 # Pass --silent
14836 if test "$silent" = yes; then
14837 ac_sub_configure_args="--silent $ac_sub_configure_args"
14838 fi
14839
14840 # Always prepend --disable-option-checking to silence warnings, since
14841 # different subdirs can have different --enable and --with options.
14842 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14843
14844 ac_popdir=`pwd`
14845 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14846
14847 # Do not complain, so a configure script can configure whichever
14848 # parts of a large source tree are present.
14849 test -d "$srcdir/$ac_dir" || continue
14850
14851 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14852 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14853 $as_echo "$ac_msg" >&6
14854 as_dir="$ac_dir"; as_fn_mkdir_p
14855 ac_builddir=.
14856
14857 case "$ac_dir" in
14858 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14859 *)
14860 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14861 # A ".." for each directory in $ac_dir_suffix.
14862 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14863 case $ac_top_builddir_sub in
14864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14866 esac ;;
14867 esac
14868 ac_abs_top_builddir=$ac_pwd
14869 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14870 # for backward compatibility:
14871 ac_top_builddir=$ac_top_build_prefix
14872
14873 case $srcdir in
14874 .) # We are building in place.
14875 ac_srcdir=.
14876 ac_top_srcdir=$ac_top_builddir_sub
14877 ac_abs_top_srcdir=$ac_pwd ;;
14878 [\\/]* | ?:[\\/]* ) # Absolute name.
14879 ac_srcdir=$srcdir$ac_dir_suffix;
14880 ac_top_srcdir=$srcdir
14881 ac_abs_top_srcdir=$srcdir ;;
14882 *) # Relative name.
14883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14884 ac_top_srcdir=$ac_top_build_prefix$srcdir
14885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14886 esac
14887 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14888
14889
14890 cd "$ac_dir"
14891
14892 # Check for guested configure; otherwise get Cygnus style configure.
14893 if test -f "$ac_srcdir/configure.gnu"; then
14894 ac_sub_configure=$ac_srcdir/configure.gnu
14895 elif test -f "$ac_srcdir/configure"; then
14896 ac_sub_configure=$ac_srcdir/configure
14897 elif test -f "$ac_srcdir/configure.in"; then
14898 # This should be Cygnus configure.
14899 ac_sub_configure=$ac_aux_dir/configure
14900 else
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14902 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14903 ac_sub_configure=
14904 fi
14905
14906 # The recursion is here.
14907 if test -n "$ac_sub_configure"; then
14908 # Make the cache file name correct relative to the subdirectory.
14909 case $cache_file in
14910 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14911 *) # Relative name.
14912 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14913 esac
14914
14915 { $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
14916 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14917 # The eval makes quoting arguments work.
14918 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14919 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14920 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14921 fi
14922
14923 cd "$ac_popdir"
14924 done
14925 fi
14926 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14928 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14929 fi
14930
14931
14932 if test "${prefix}" = "/usr/local"; then
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
14934 $as_echo "$as_me: " >&6;}
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
14936 $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
14938 $as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
14940 $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
14942 $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5
14944 $as_echo "$as_me: is not supported." >&6;}
14945 fi
This page took 0.767779 seconds and 5 git commands to generate.