]> sourceware.org Git - systemtap.git/blob - configure
PR 12917 - Implement Compile-Server/Client Versioning - Rework
[systemtap.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for systemtap 1.6.
4 #
5 # Report bugs to <systemtap@sourceware.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: systemtap@sourceware.org about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
238 fi
239 exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257 { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266 return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337 else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354 else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464 *)
465 ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489 else
490 as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='systemtap'
554 PACKAGE_TARNAME='systemtap'
555 PACKAGE_VERSION='1.6'
556 PACKAGE_STRING='systemtap 1.6'
557 PACKAGE_BUGREPORT='systemtap@sourceware.org'
558 PACKAGE_URL=''
559
560 # Factoring default headers for most tests.
561 ac_includes_default="\
562 #include <stdio.h>
563 #ifdef HAVE_SYS_TYPES_H
564 # include <sys/types.h>
565 #endif
566 #ifdef HAVE_SYS_STAT_H
567 # include <sys/stat.h>
568 #endif
569 #ifdef STDC_HEADERS
570 # include <stdlib.h>
571 # include <stddef.h>
572 #else
573 # ifdef HAVE_STDLIB_H
574 # include <stdlib.h>
575 # endif
576 #endif
577 #ifdef HAVE_STRING_H
578 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
579 # include <memory.h>
580 # endif
581 # include <string.h>
582 #endif
583 #ifdef HAVE_STRINGS_H
584 # include <strings.h>
585 #endif
586 #ifdef HAVE_INTTYPES_H
587 # include <inttypes.h>
588 #endif
589 #ifdef HAVE_STDINT_H
590 # include <stdint.h>
591 #endif
592 #ifdef HAVE_UNISTD_H
593 # include <unistd.h>
594 #endif"
595
596 gt_needs=
597 enable_option_checking=no
598 ac_subst_vars='am__EXEEXT_FALSE
599 am__EXEEXT_TRUE
600 LTLIBOBJS
601 LIBOBJS
602 subdirs
603 STAP_PREFIX
604 LOCALEDIR
605 ENABLE_NLS
606 support_section_question
607 DATE
608 stap_LIBS
609 elfutils_abs_srcdir
610 BUILD_ELFUTILS_FALSE
611 BUILD_ELFUTILS_TRUE
612 BUILD_GRAPHER_FALSE
613 BUILD_GRAPHER_TRUE
614 CXXCPP
615 libglade_LIBS
616 libglade_CFLAGS
617 gtkmm_LIBS
618 gtkmm_CFLAGS
619 PKG_CONFIG
620 HAVE_AVAHI_FALSE
621 HAVE_AVAHI_TRUE
622 BUILD_SERVER_FALSE
623 BUILD_SERVER_TRUE
624 HAVE_NSS_FALSE
625 HAVE_NSS_TRUE
626 nspr_CFLAGS
627 nss_CFLAGS
628 BUILD_PDFREFDOCS_FALSE
629 BUILD_PDFREFDOCS_TRUE
630 XMLTO_STRINGPARAM_FALSE
631 XMLTO_STRINGPARAM_TRUE
632 BUILD_REFDOCS_FALSE
633 BUILD_REFDOCS_TRUE
634 have_xmlto
635 PUBLICAN_BRAND
636 BUILD_PUBLICAN_FALSE
637 BUILD_PUBLICAN_TRUE
638 have_publican
639 BUILD_DOCS_FALSE
640 BUILD_DOCS_TRUE
641 have_latex2html
642 have_ps2pdf
643 have_dvips
644 have_latex
645 BUILD_CRASHMOD_FALSE
646 BUILD_CRASHMOD_TRUE
647 staplog_CPPFLAGS
648 BUILD_TRANSLATOR_FALSE
649 BUILD_TRANSLATOR_TRUE
650 sqlite3_LIBS
651 PIECXXFLAGS
652 PIECFLAGS
653 PIELDFLAGS
654 POSUB
655 LTLIBINTL
656 LIBINTL
657 INTLLIBS
658 LTLIBICONV
659 LIBICONV
660 host_os
661 host_vendor
662 host_cpu
663 host
664 build_os
665 build_vendor
666 build_cpu
667 build
668 XGETTEXT_EXTRA_OPTIONS
669 MSGMERGE
670 XGETTEXT_015
671 XGETTEXT
672 GMSGFMT_015
673 MSGFMT_015
674 GMSGFMT
675 MSGFMT
676 GETTEXT_MACRO_VERSION
677 USE_NLS
678 RANLIB
679 ANSI2KNR
680 U
681 am__fastdepCXX_FALSE
682 am__fastdepCXX_TRUE
683 CXXDEPMODE
684 ac_ct_CXX
685 CXXFLAGS
686 CXX
687 LN_S
688 EGREP
689 GREP
690 CPP
691 am__fastdepCC_FALSE
692 am__fastdepCC_TRUE
693 CCDEPMODE
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__quote
698 am__include
699 DEPDIR
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 AM_BACKSLASH
708 AM_DEFAULT_VERBOSITY
709 MAINT
710 MAINTAINER_MODE_FALSE
711 MAINTAINER_MODE_TRUE
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
717 AWK
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 localstatedir
755 sharedstatedir
756 sysconfdir
757 datadir
758 datarootdir
759 libexecdir
760 sbindir
761 bindir
762 program_transform_name
763 prefix
764 exec_prefix
765 PACKAGE_URL
766 PACKAGE_BUGREPORT
767 PACKAGE_STRING
768 PACKAGE_VERSION
769 PACKAGE_TARNAME
770 PACKAGE_NAME
771 PATH_SEPARATOR
772 SHELL'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 enable_maintainer_mode
777 enable_silent_rules
778 enable_dependency_tracking
779 enable_nls
780 with_gnu_ld
781 enable_rpath
782 with_libiconv_prefix
783 with_libintl_prefix
784 enable_prologues
785 enable_sdt_probes
786 enable_ssp
787 enable_pie
788 enable_sqlite
789 enable_translator
790 enable_crash
791 enable_docs
792 enable_publican
793 with_publican_brand
794 enable_refdocs
795 enable_server
796 enable_grapher
797 with_rpm
798 with_elfutils
799 '
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CPP
809 CXX
810 CXXFLAGS
811 CCC
812 PKG_CONFIG
813 gtkmm_CFLAGS
814 gtkmm_LIBS
815 libglade_CFLAGS
816 libglade_LIBS
817 CXXCPP'
818 ac_subdirs_all='testsuite runtime/staprun'
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
875 ac_prev=
876 continue
877 fi
878
879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
914
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
922 -disable-* | --disable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=no ;;
937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
947
948 -enable-* | --enable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=\$ac_optarg ;;
963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
983
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
988
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1018
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1092
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1151
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=\$ac_optarg ;;
1167
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
1183
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1187
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1194
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1201
1202 -*) as_fn_error "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information."
1204 ;;
1205
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1212 esac
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1215
1216 *)
1217 # FIXME: should be removed in autoconf 3.0.
1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1222 ;;
1223
1224 esac
1225 done
1226
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error "missing argument to $ac_option"
1230 fi
1231
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
1235 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 esac
1238 fi
1239
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1245 do
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
1254 case $ac_val in
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 esac
1258 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1259 done
1260
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1267
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1273 If a cross compiler is detected then cross compile mode will be used." >&2
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277 fi
1278
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282 test "$silent" = yes && exec 6>/dev/null
1283
1284
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error "pwd does not report name of working directory"
1291
1292
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1323 fi
1324 else
1325 ac_srcdir_defaulted=no
1326 fi
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1330 fi
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1334 pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359 \`configure' configures systemtap 1.6 to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412 _ACEOF
1413
1414 cat <<\_ACEOF
1415
1416 Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421 System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of systemtap 1.6:";;
1430 esac
1431 cat <<\_ACEOF
1432
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-maintainer-mode enable make rules and dependencies not useful
1438 (and sometimes confusing) to the casual installer
1439 --enable-silent-rules less verbose build output (undo: `make V=1')
1440 --disable-silent-rules verbose build output (undo: `make V=0')
1441 --disable-dependency-tracking speeds up one-time build
1442 --enable-dependency-tracking do not reject slow dependency extractors
1443 --disable-nls do not use Native Language Support
1444 --disable-rpath do not hardcode runtime library paths
1445 --enable-prologues make -P prologue-searching default
1446 --disable-sdt-probes disable process.mark probes in stap, staprun, stapio
1447 --disable-ssp disable gcc stack-protector
1448 --enable-pie enable position-independent-executable
1449 --enable-sqlite build with sqlite support
1450 --disable-translator build only runtime utilities
1451 --enable-crash[=DIRECTORY]
1452 enable crash extension (default is disabled).
1453 Optional DIRECTORY is the path to the crash header
1454 file (needed if installed in a non-standard
1455 location).
1456 --enable-docs enable building documentation (default on if latex
1457 etc. found).
1458 --enable-publican enable building publican documentation guides
1459 (default on if publican found and other
1460 documentation built).
1461 --enable-refdocs enable building reference documentation (default on
1462 if xmlto etc. found and other documentation built).
1463 --enable-server enable building of stap-server (default on if nss
1464 etc. found).
1465 --enable-grapher enable building of grapher (default on if needed
1466 requirements are found).
1467
1468 Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --with-gnu-ld assume the C compiler uses GNU ld default=no
1472 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1473 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1474 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1475 --without-libintl-prefix don't search for libintl in includedir and libdir
1476 --with-publican-brand=BRAND
1477 building publican documentation guides using given
1478 brand (defaults to "common").
1479 --with-rpm query rpm database for missing debuginfos
1480 --with-elfutils=DIRECTORY
1481 find elfutils source code in DIRECTORY
1482
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 CPP C preprocessor
1492 CXX C++ compiler command
1493 CXXFLAGS C++ compiler flags
1494 PKG_CONFIG path to pkg-config utility
1495 gtkmm_CFLAGS
1496 C compiler flags for gtkmm, overriding pkg-config
1497 gtkmm_LIBS linker flags for gtkmm, overriding pkg-config
1498 libglade_CFLAGS
1499 C compiler flags for libglade, overriding pkg-config
1500 libglade_LIBS
1501 linker flags for libglade, overriding pkg-config
1502 CXXCPP C++ preprocessor
1503
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1506
1507 Report bugs to <systemtap@sourceware.org>.
1508 _ACEOF
1509 ac_status=$?
1510 fi
1511
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 continue
1518 ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 systemtap configure 1.6
1571 generated by GNU Autoconf 2.65
1572
1573 Copyright (C) 2009 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1578 fi
1579
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1583
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext
1591 if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1
1616 fi
1617 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1618 as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_compile
1621
1622 # ac_fn_c_try_cpp LINENO
1623 # ----------------------
1624 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_cpp ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if { { ac_try="$ac_cpp conftest.$ac_ext"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } >/dev/null && {
1644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 }; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1
1653 fi
1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655 as_fn_set_status $ac_retval
1656
1657 } # ac_fn_c_try_cpp
1658
1659 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1660 # -------------------------------------------------------
1661 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1662 # the include files in INCLUDES and setting the cache variable VAR
1663 # accordingly.
1664 ac_fn_c_check_header_mongrel ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1671 $as_echo_n "(cached) " >&6
1672 fi
1673 eval ac_res=\$$3
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 $as_echo "$ac_res" >&6; }
1676 else
1677 # Is the header compilable?
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1679 $as_echo_n "checking $2 usability... " >&6; }
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 $4
1683 #include <$2>
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686 ac_header_compiler=yes
1687 else
1688 ac_header_compiler=no
1689 fi
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1692 $as_echo "$ac_header_compiler" >&6; }
1693
1694 # Is the header present?
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1696 $as_echo_n "checking $2 presence... " >&6; }
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_cpp "$LINENO"; then :
1702 ac_header_preproc=yes
1703 else
1704 ac_header_preproc=no
1705 fi
1706 rm -f conftest.err conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1708 $as_echo "$ac_header_preproc" >&6; }
1709
1710 # So? What about this header?
1711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1712 yes:no: )
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1714 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717 ;;
1718 no:yes:* )
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1720 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1722 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1724 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1726 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1728 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1729 ( cat <<\_ASBOX
1730 ## --------------------------------------- ##
1731 ## Report this to systemtap@sourceware.org ##
1732 ## --------------------------------------- ##
1733 _ASBOX
1734 ) | sed "s/^/$as_me: WARNING: /" >&2
1735 ;;
1736 esac
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1740 $as_echo_n "(cached) " >&6
1741 else
1742 eval "$3=\$ac_header_compiler"
1743 fi
1744 eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 fi
1748 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1749
1750 } # ac_fn_c_check_header_mongrel
1751
1752 # ac_fn_c_try_run LINENO
1753 # ----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755 # that executables *can* be run.
1756 ac_fn_c_try_run ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_link"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_link") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770 { { case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_try") 2>&5
1777 ac_status=$?
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; }; }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: program exited with status $ac_status" >&5
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1785
1786 ac_retval=$ac_status
1787 fi
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790 as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_run
1793
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 $as_echo_n "(cached) " >&6
1805 else
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 eval "$3=yes"
1813 else
1814 eval "$3=no"
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822
1823 } # ac_fn_c_check_header_compile
1824
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1845 fi
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 ac_retval=1
1857 fi
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859 as_fn_set_status $ac_retval
1860
1861 } # ac_fn_cxx_try_compile
1862
1863 # ac_fn_c_try_link LINENO
1864 # -----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_link ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext conftest$ac_exeext
1870 if { { ac_try="$ac_link"
1871 case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_link") 2>conftest.err
1878 ac_status=$?
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1883 fi
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_c_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest$ac_exeext && {
1889 test "$cross_compiling" = yes ||
1890 $as_test_x conftest$ac_exeext
1891 }; then :
1892 ac_retval=0
1893 else
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1896
1897 ac_retval=1
1898 fi
1899 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901 # interfere with the next link command; also delete a directory that is
1902 # left behind by Apple's compiler. We do this before executing the actions.
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 as_fn_set_status $ac_retval
1906
1907 } # ac_fn_c_try_link
1908
1909 # ac_fn_c_check_func LINENO FUNC VAR
1910 # ----------------------------------
1911 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1912 ac_fn_c_check_func ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1919 else
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1924 #define $2 innocuous_$2
1925
1926 /* System header to define __stub macros and hopefully few prototypes,
1927 which can conflict with char $2 (); below.
1928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1929 <limits.h> exists even on freestanding compilers. */
1930
1931 #ifdef __STDC__
1932 # include <limits.h>
1933 #else
1934 # include <assert.h>
1935 #endif
1936
1937 #undef $2
1938
1939 /* Override any GCC internal prototype to avoid an error.
1940 Use char because int might match the return type of a GCC
1941 builtin and then its argument prototype would still apply. */
1942 #ifdef __cplusplus
1943 extern "C"
1944 #endif
1945 char $2 ();
1946 /* The GNU C library defines this for functions which it implements
1947 to always fail with ENOSYS. Some functions are actually named
1948 something starting with __ and the normal name is an alias. */
1949 #if defined __stub_$2 || defined __stub___$2
1950 choke me
1951 #endif
1952
1953 int
1954 main ()
1955 {
1956 return $2 ();
1957 ;
1958 return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_link "$LINENO"; then :
1962 eval "$3=yes"
1963 else
1964 eval "$3=no"
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext \
1967 conftest$ac_exeext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973
1974 } # ac_fn_c_check_func
1975
1976 # ac_fn_cxx_try_cpp LINENO
1977 # ------------------------
1978 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1979 ac_fn_cxx_try_cpp ()
1980 {
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if { { ac_try="$ac_cpp conftest.$ac_ext"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1995 fi
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } >/dev/null && {
1998 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1999 test ! -s conftest.err
2000 }; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 ac_retval=1
2007 fi
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009 as_fn_set_status $ac_retval
2010
2011 } # ac_fn_cxx_try_cpp
2012
2013 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2014 # ---------------------------------------------------------
2015 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2016 # the include files in INCLUDES and setting the cache variable VAR
2017 # accordingly.
2018 ac_fn_cxx_check_header_mongrel ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 $as_echo_n "(cached) " >&6
2026 fi
2027 eval ac_res=\$$3
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 else
2031 # Is the header compilable?
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2033 $as_echo_n "checking $2 usability... " >&6; }
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 $4
2037 #include <$2>
2038 _ACEOF
2039 if ac_fn_cxx_try_compile "$LINENO"; then :
2040 ac_header_compiler=yes
2041 else
2042 ac_header_compiler=no
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2046 $as_echo "$ac_header_compiler" >&6; }
2047
2048 # Is the header present?
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2050 $as_echo_n "checking $2 presence... " >&6; }
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2053 #include <$2>
2054 _ACEOF
2055 if ac_fn_cxx_try_cpp "$LINENO"; then :
2056 ac_header_preproc=yes
2057 else
2058 ac_header_preproc=no
2059 fi
2060 rm -f conftest.err conftest.$ac_ext
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2062 $as_echo "$ac_header_preproc" >&6; }
2063
2064 # So? What about this header?
2065 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2066 yes:no: )
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2068 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2070 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2071 ;;
2072 no:yes:* )
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2074 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2076 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2078 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2080 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2082 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2083 ( cat <<\_ASBOX
2084 ## --------------------------------------- ##
2085 ## Report this to systemtap@sourceware.org ##
2086 ## --------------------------------------- ##
2087 _ASBOX
2088 ) | sed "s/^/$as_me: WARNING: /" >&2
2089 ;;
2090 esac
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2094 $as_echo_n "(cached) " >&6
2095 else
2096 eval "$3=\$ac_header_compiler"
2097 fi
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 fi
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103
2104 } # ac_fn_cxx_check_header_mongrel
2105 cat >config.log <<_ACEOF
2106 This file contains any messages produced by compilers while
2107 running configure, to aid debugging if configure makes a mistake.
2108
2109 It was created by systemtap $as_me 1.6, which was
2110 generated by GNU Autoconf 2.65. Invocation command line was
2111
2112 $ $0 $@
2113
2114 _ACEOF
2115 exec 5>>config.log
2116 {
2117 cat <<_ASUNAME
2118 ## --------- ##
2119 ## Platform. ##
2120 ## --------- ##
2121
2122 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127
2128 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2130
2131 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2132 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2133 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2134 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2135 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2136 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2137 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138
2139 _ASUNAME
2140
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 $as_echo "PATH: $as_dir"
2147 done
2148 IFS=$as_save_IFS
2149
2150 } >&5
2151
2152 cat >&5 <<_ACEOF
2153
2154
2155 ## ----------- ##
2156 ## Core tests. ##
2157 ## ----------- ##
2158
2159 _ACEOF
2160
2161
2162 # Keep a trace of the command line.
2163 # Strip out --no-create and --no-recursion so they do not pile up.
2164 # Strip out --silent because we don't want to record it for future runs.
2165 # Also quote any args containing shell meta-characters.
2166 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_configure_args=
2168 ac_configure_args0=
2169 ac_configure_args1=
2170 ac_must_keep_next=false
2171 for ac_pass in 1 2
2172 do
2173 for ac_arg
2174 do
2175 case $ac_arg in
2176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178 | -silent | --silent | --silen | --sile | --sil)
2179 continue ;;
2180 *\'*)
2181 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2182 esac
2183 case $ac_pass in
2184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2185 2)
2186 as_fn_append ac_configure_args1 " '$ac_arg'"
2187 if test $ac_must_keep_next = true; then
2188 ac_must_keep_next=false # Got value, back to normal.
2189 else
2190 case $ac_arg in
2191 *=* | --config-cache | -C | -disable-* | --disable-* \
2192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194 | -with-* | --with-* | -without-* | --without-* | --x)
2195 case "$ac_configure_args0 " in
2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 esac
2198 ;;
2199 -* ) ac_must_keep_next=true ;;
2200 esac
2201 fi
2202 as_fn_append ac_configure_args " '$ac_arg'"
2203 ;;
2204 esac
2205 done
2206 done
2207 { ac_configure_args0=; unset ac_configure_args0;}
2208 { ac_configure_args1=; unset ac_configure_args1;}
2209
2210 # When interrupted or exit'd, cleanup temporary files, and complete
2211 # config.log. We remove comments because anyway the quotes in there
2212 # would cause problems or look ugly.
2213 # WARNING: Use '\'' to represent an apostrophe within the trap.
2214 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215 trap 'exit_status=$?
2216 # Save into config.log some information that might help in debugging.
2217 {
2218 echo
2219
2220 cat <<\_ASBOX
2221 ## ---------------- ##
2222 ## Cache variables. ##
2223 ## ---------------- ##
2224 _ASBOX
2225 echo
2226 # The following way of writing the cache mishandles newlines in values,
2227 (
2228 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229 eval ac_val=\$$ac_var
2230 case $ac_val in #(
2231 *${as_nl}*)
2232 case $ac_var in #(
2233 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2234 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235 esac
2236 case $ac_var in #(
2237 _ | IFS | as_nl) ;; #(
2238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2239 *) { eval $ac_var=; unset $ac_var;} ;;
2240 esac ;;
2241 esac
2242 done
2243 (set) 2>&1 |
2244 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2245 *${as_nl}ac_space=\ *)
2246 sed -n \
2247 "s/'\''/'\''\\\\'\'''\''/g;
2248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249 ;; #(
2250 *)
2251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252 ;;
2253 esac |
2254 sort
2255 )
2256 echo
2257
2258 cat <<\_ASBOX
2259 ## ----------------- ##
2260 ## Output variables. ##
2261 ## ----------------- ##
2262 _ASBOX
2263 echo
2264 for ac_var in $ac_subst_vars
2265 do
2266 eval ac_val=\$$ac_var
2267 case $ac_val in
2268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269 esac
2270 $as_echo "$ac_var='\''$ac_val'\''"
2271 done | sort
2272 echo
2273
2274 if test -n "$ac_subst_files"; then
2275 cat <<\_ASBOX
2276 ## ------------------- ##
2277 ## File substitutions. ##
2278 ## ------------------- ##
2279 _ASBOX
2280 echo
2281 for ac_var in $ac_subst_files
2282 do
2283 eval ac_val=\$$ac_var
2284 case $ac_val in
2285 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286 esac
2287 $as_echo "$ac_var='\''$ac_val'\''"
2288 done | sort
2289 echo
2290 fi
2291
2292 if test -s confdefs.h; then
2293 cat <<\_ASBOX
2294 ## ----------- ##
2295 ## confdefs.h. ##
2296 ## ----------- ##
2297 _ASBOX
2298 echo
2299 cat confdefs.h
2300 echo
2301 fi
2302 test "$ac_signal" != 0 &&
2303 $as_echo "$as_me: caught signal $ac_signal"
2304 $as_echo "$as_me: exit $exit_status"
2305 } >&5
2306 rm -f core *.core core.conftest.* &&
2307 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2308 exit $exit_status
2309 ' 0
2310 for ac_signal in 1 2 13 15; do
2311 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2312 done
2313 ac_signal=0
2314
2315 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2316 rm -f -r conftest* confdefs.h
2317
2318 $as_echo "/* confdefs.h */" > confdefs.h
2319
2320 # Predefined preprocessor variables.
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_NAME "$PACKAGE_NAME"
2324 _ACEOF
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2328 _ACEOF
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2332 _ACEOF
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_STRING "$PACKAGE_STRING"
2336 _ACEOF
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_URL "$PACKAGE_URL"
2344 _ACEOF
2345
2346
2347 # Let the site file select an alternate cache file if it wants to.
2348 # Prefer an explicitly selected file to automatically selected ones.
2349 ac_site_file1=NONE
2350 ac_site_file2=NONE
2351 if test -n "$CONFIG_SITE"; then
2352 ac_site_file1=$CONFIG_SITE
2353 elif test "x$prefix" != xNONE; then
2354 ac_site_file1=$prefix/share/config.site
2355 ac_site_file2=$prefix/etc/config.site
2356 else
2357 ac_site_file1=$ac_default_prefix/share/config.site
2358 ac_site_file2=$ac_default_prefix/etc/config.site
2359 fi
2360 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2361 do
2362 test "x$ac_site_file" = xNONE && continue
2363 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2365 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2366 sed 's/^/| /' "$ac_site_file" >&5
2367 . "$ac_site_file"
2368 fi
2369 done
2370
2371 if test -r "$cache_file"; then
2372 # Some versions of bash will fail to source /dev/null (special files
2373 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2374 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2376 $as_echo "$as_me: loading cache $cache_file" >&6;}
2377 case $cache_file in
2378 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2379 *) . "./$cache_file";;
2380 esac
2381 fi
2382 else
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2384 $as_echo "$as_me: creating cache $cache_file" >&6;}
2385 >$cache_file
2386 fi
2387
2388 gt_needs="$gt_needs "
2389 # Check that the precious variables saved in the cache have kept the same
2390 # value.
2391 ac_cache_corrupted=false
2392 for ac_var in $ac_precious_vars; do
2393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
2395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
2397 case $ac_old_set,$ac_new_set in
2398 set,)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2402 ,set)
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405 ac_cache_corrupted=: ;;
2406 ,);;
2407 *)
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
2409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2420 fi
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2422 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2425 fi;;
2426 esac
2427 # Pass precious variables to config.status.
2428 if test "$ac_new_set" = set; then
2429 case $ac_new_val in
2430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431 *) ac_arg=$ac_var=$ac_new_val ;;
2432 esac
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436 esac
2437 fi
2438 done
2439 if $ac_cache_corrupted; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2445 fi
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2449
2450 ac_ext=c
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455
2456
2457
2458
2459 am__api_version='1.11'
2460
2461 ac_aux_dir=
2462 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2463 for ac_t in install-sh install.sh shtool; do
2464 if test -f "$ac_dir/$ac_t"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/$ac_t -c"
2467 break 2
2468 fi
2469 done
2470 done
2471 if test -z "$ac_aux_dir"; then
2472 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2473 fi
2474
2475 # These three variables are undocumented and unsupported,
2476 # and are intended to be withdrawn in a future Autoconf release.
2477 # They can cause serious problems if a builder's source tree is in a directory
2478 # whose full name contains unusual characters.
2479 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2480 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2481 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2482
2483
2484 # Find a good install program. We prefer a C program (faster),
2485 # so one script is as good as another. But avoid the broken or
2486 # incompatible versions:
2487 # SysV /etc/install, /usr/sbin/install
2488 # SunOS /usr/etc/install
2489 # IRIX /sbin/install
2490 # AIX /bin/install
2491 # AmigaOS /C/install, which installs bootblocks on floppy discs
2492 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2493 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2494 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2495 # OS/2's system install, which has a completely different semantic
2496 # ./install, which can be erroneously created by make from ./install.sh.
2497 # Reject install programs that cannot install multiple files.
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2499 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2500 if test -z "$INSTALL"; then
2501 if test "${ac_cv_path_install+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 # Account for people who put trailing slashes in PATH elements.
2510 case $as_dir/ in #((
2511 ./ | .// | /[cC]/* | \
2512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2513 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2514 /usr/ucb/* ) ;;
2515 *)
2516 # OSF1 and SCO ODT 3.0 have their own names for install.
2517 # Don't use installbsd from OSF since it installs stuff as root
2518 # by default.
2519 for ac_prog in ginstall scoinst install; do
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2522 if test $ac_prog = install &&
2523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524 # AIX install. It has an incompatible calling convention.
2525 :
2526 elif test $ac_prog = install &&
2527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # program-specific install script used by HP pwplus--don't use.
2529 :
2530 else
2531 rm -rf conftest.one conftest.two conftest.dir
2532 echo one > conftest.one
2533 echo two > conftest.two
2534 mkdir conftest.dir
2535 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2536 test -s conftest.one && test -s conftest.two &&
2537 test -s conftest.dir/conftest.one &&
2538 test -s conftest.dir/conftest.two
2539 then
2540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2541 break 3
2542 fi
2543 fi
2544 fi
2545 done
2546 done
2547 ;;
2548 esac
2549
2550 done
2551 IFS=$as_save_IFS
2552
2553 rm -rf conftest.one conftest.two conftest.dir
2554
2555 fi
2556 if test "${ac_cv_path_install+set}" = set; then
2557 INSTALL=$ac_cv_path_install
2558 else
2559 # As a last resort, use the slow shell script. Don't cache a
2560 # value for INSTALL within a source directory, because that will
2561 # break other packages using the cache if that directory is
2562 # removed, or if the value is a relative name.
2563 INSTALL=$ac_install_sh
2564 fi
2565 fi
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2567 $as_echo "$INSTALL" >&6; }
2568
2569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2570 # It thinks the first close brace ends the variable substitution.
2571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2572
2573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2574
2575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2576
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2578 $as_echo_n "checking whether build environment is sane... " >&6; }
2579 # Just in case
2580 sleep 1
2581 echo timestamp > conftest.file
2582 # Reject unsafe characters in $srcdir or the absolute working directory
2583 # name. Accept space and tab only in the latter.
2584 am_lf='
2585 '
2586 case `pwd` in
2587 *[\\\"\#\$\&\'\`$am_lf]*)
2588 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2589 esac
2590 case $srcdir in
2591 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2592 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2593 esac
2594
2595 # Do `set' in a subshell so we don't clobber the current shell's
2596 # arguments. Must try -L first in case configure is actually a
2597 # symlink; some systems play weird games with the mod time of symlinks
2598 # (eg FreeBSD returns the mod time of the symlink's containing
2599 # directory).
2600 if (
2601 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2602 if test "$*" = "X"; then
2603 # -L didn't work.
2604 set X `ls -t "$srcdir/configure" conftest.file`
2605 fi
2606 rm -f conftest.file
2607 if test "$*" != "X $srcdir/configure conftest.file" \
2608 && test "$*" != "X conftest.file $srcdir/configure"; then
2609
2610 # If neither matched, then we have a broken ls. This can happen
2611 # if, for instance, CONFIG_SHELL is bash and it inherits a
2612 # broken ls alias from the environment. This has actually
2613 # happened. Such a system could not be considered "sane".
2614 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2615 alias in your environment" "$LINENO" 5
2616 fi
2617
2618 test "$2" = conftest.file
2619 )
2620 then
2621 # Ok.
2622 :
2623 else
2624 as_fn_error "newly created file is older than distributed files!
2625 Check your system clock" "$LINENO" 5
2626 fi
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2628 $as_echo "yes" >&6; }
2629 test "$program_prefix" != NONE &&
2630 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2631 # Use a double $ so make ignores it.
2632 test "$program_suffix" != NONE &&
2633 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2634 # Double any \ or $.
2635 # By default was `s,x,x', remove it if useless.
2636 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2637 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2638
2639 # expand $ac_aux_dir to an absolute path
2640 am_aux_dir=`cd $ac_aux_dir && pwd`
2641
2642 if test x"${MISSING+set}" != xset; then
2643 case $am_aux_dir in
2644 *\ * | *\ *)
2645 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2646 *)
2647 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2648 esac
2649 fi
2650 # Use eval to expand $SHELL
2651 if eval "$MISSING --run true"; then
2652 am_missing_run="$MISSING --run "
2653 else
2654 am_missing_run=
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2656 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2657 fi
2658
2659 if test x"${install_sh}" != xset; then
2660 case $am_aux_dir in
2661 *\ * | *\ *)
2662 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2663 *)
2664 install_sh="\${SHELL} $am_aux_dir/install-sh"
2665 esac
2666 fi
2667
2668 # Installed binaries are usually stripped using `strip' when the user
2669 # run `make install-strip'. However `strip' might not be the right
2670 # tool to use in cross-compilation environments, therefore Automake
2671 # will honor the `STRIP' environment variable to overrule this program.
2672 if test "$cross_compiling" != no; then
2673 if test -n "$ac_tool_prefix"; then
2674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2675 set dummy ${ac_tool_prefix}strip; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if test "${ac_cv_prog_STRIP+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$STRIP"; then
2682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 STRIP=$ac_cv_prog_STRIP
2702 if test -n "$STRIP"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2704 $as_echo "$STRIP" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710
2711 fi
2712 if test -z "$ac_cv_prog_STRIP"; then
2713 ac_ct_STRIP=$STRIP
2714 # Extract the first word of "strip", so it can be a program name with args.
2715 set dummy strip; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 if test -n "$ac_ct_STRIP"; then
2722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2726 do
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_ac_ct_STRIP="strip"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2734 fi
2735 done
2736 done
2737 IFS=$as_save_IFS
2738
2739 fi
2740 fi
2741 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2742 if test -n "$ac_ct_STRIP"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2744 $as_echo "$ac_ct_STRIP" >&6; }
2745 else
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2748 fi
2749
2750 if test "x$ac_ct_STRIP" = x; then
2751 STRIP=":"
2752 else
2753 case $cross_compiling:$ac_tool_warned in
2754 yes:)
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2757 ac_tool_warned=yes ;;
2758 esac
2759 STRIP=$ac_ct_STRIP
2760 fi
2761 else
2762 STRIP="$ac_cv_prog_STRIP"
2763 fi
2764
2765 fi
2766 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2767
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2769 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2770 if test -z "$MKDIR_P"; then
2771 if test "${ac_cv_path_mkdir+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2776 do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_prog in mkdir gmkdir; do
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2782 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2783 'mkdir (GNU coreutils) '* | \
2784 'mkdir (coreutils) '* | \
2785 'mkdir (fileutils) '4.1*)
2786 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2787 break 3;;
2788 esac
2789 done
2790 done
2791 done
2792 IFS=$as_save_IFS
2793
2794 fi
2795
2796 test -d ./--version && rmdir ./--version
2797 if test "${ac_cv_path_mkdir+set}" = set; then
2798 MKDIR_P="$ac_cv_path_mkdir -p"
2799 else
2800 # As a last resort, use the slow shell script. Don't cache a
2801 # value for MKDIR_P within a source directory, because that will
2802 # break other packages using the cache if that directory is
2803 # removed, or if the value is a relative name.
2804 MKDIR_P="$ac_install_sh -d"
2805 fi
2806 fi
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2808 $as_echo "$MKDIR_P" >&6; }
2809
2810 mkdir_p="$MKDIR_P"
2811 case $mkdir_p in
2812 [\\/$]* | ?:[\\/]*) ;;
2813 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2814 esac
2815
2816 for ac_prog in gawk mawk nawk awk
2817 do
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_AWK+set}" = set; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$AWK"; then
2826 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_AWK="$ac_prog"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 AWK=$ac_cv_prog_AWK
2846 if test -n "$AWK"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2848 $as_echo "$AWK" >&6; }
2849 else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854
2855 test -n "$AWK" && break
2856 done
2857
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2859 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2860 set x ${MAKE-make}
2861 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2862 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 cat >conftest.make <<\_ACEOF
2866 SHELL = /bin/sh
2867 all:
2868 @echo '@@@%%%=$(MAKE)=@@@%%%'
2869 _ACEOF
2870 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2871 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2872 *@@@%%%=?*=@@@%%%*)
2873 eval ac_cv_prog_make_${ac_make}_set=yes;;
2874 *)
2875 eval ac_cv_prog_make_${ac_make}_set=no;;
2876 esac
2877 rm -f conftest.make
2878 fi
2879 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2882 SET_MAKE=
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 SET_MAKE="MAKE=${MAKE-make}"
2887 fi
2888
2889 rm -rf .tst 2>/dev/null
2890 mkdir .tst 2>/dev/null
2891 if test -d .tst; then
2892 am__leading_dot=.
2893 else
2894 am__leading_dot=_
2895 fi
2896 rmdir .tst 2>/dev/null
2897
2898 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2899 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2900 # is not polluted with repeated "-I."
2901 am__isrc=' -I$(srcdir)'
2902 # test to see if srcdir already configured
2903 if test -f $srcdir/config.status; then
2904 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2905 fi
2906 fi
2907
2908 # test whether we have cygpath
2909 if test -z "$CYGPATH_W"; then
2910 if (cygpath --version) >/dev/null 2>/dev/null; then
2911 CYGPATH_W='cygpath -w'
2912 else
2913 CYGPATH_W=echo
2914 fi
2915 fi
2916
2917
2918 # Define the identity of the package.
2919 PACKAGE='systemtap'
2920 VERSION='1.6'
2921
2922
2923 cat >>confdefs.h <<_ACEOF
2924 #define PACKAGE "$PACKAGE"
2925 _ACEOF
2926
2927
2928 cat >>confdefs.h <<_ACEOF
2929 #define VERSION "$VERSION"
2930 _ACEOF
2931
2932 # Some tools Automake needs.
2933
2934 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2935
2936
2937 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2938
2939
2940 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2941
2942
2943 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2944
2945
2946 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2947
2948 # We need awk for the "check" target. The system "awk" is bad on
2949 # some platforms.
2950 # Always define AMTAR for backward compatibility.
2951
2952 AMTAR=${AMTAR-"${am_missing_run}tar"}
2953
2954 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2955
2956
2957
2958
2959
2960
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2962 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2963 # Check whether --enable-maintainer-mode was given.
2964 if test "${enable_maintainer_mode+set}" = set; then :
2965 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2966 else
2967 USE_MAINTAINER_MODE=no
2968 fi
2969
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2971 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2972 if test $USE_MAINTAINER_MODE = yes; then
2973 MAINTAINER_MODE_TRUE=
2974 MAINTAINER_MODE_FALSE='#'
2975 else
2976 MAINTAINER_MODE_TRUE='#'
2977 MAINTAINER_MODE_FALSE=
2978 fi
2979
2980 MAINT=$MAINTAINER_MODE_TRUE
2981
2982
2983
2984 # Check whether --enable-silent-rules was given.
2985 if test "${enable_silent_rules+set}" = set; then :
2986 enableval=$enable_silent_rules;
2987 fi
2988
2989 case $enable_silent_rules in
2990 yes) AM_DEFAULT_VERBOSITY=0;;
2991 no) AM_DEFAULT_VERBOSITY=1;;
2992 *) AM_DEFAULT_VERBOSITY=0;;
2993 esac
2994 AM_BACKSLASH='\'
2995
2996
2997 DEPDIR="${am__leading_dot}deps"
2998
2999 ac_config_commands="$ac_config_commands depfiles"
3000
3001
3002 am_make=${MAKE-make}
3003 cat > confinc << 'END'
3004 am__doit:
3005 @echo this is the am__doit target
3006 .PHONY: am__doit
3007 END
3008 # If we don't find an include directive, just comment out the code.
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3010 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3011 am__include="#"
3012 am__quote=
3013 _am_result=none
3014 # First try GNU make style include.
3015 echo "include confinc" > confmf
3016 # Ignore all kinds of additional output from `make'.
3017 case `$am_make -s -f confmf 2> /dev/null` in #(
3018 *the\ am__doit\ target*)
3019 am__include=include
3020 am__quote=
3021 _am_result=GNU
3022 ;;
3023 esac
3024 # Now try BSD make style include.
3025 if test "$am__include" = "#"; then
3026 echo '.include "confinc"' > confmf
3027 case `$am_make -s -f confmf 2> /dev/null` in #(
3028 *the\ am__doit\ target*)
3029 am__include=.include
3030 am__quote="\""
3031 _am_result=BSD
3032 ;;
3033 esac
3034 fi
3035
3036
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3038 $as_echo "$_am_result" >&6; }
3039 rm -f confinc confmf
3040
3041 # Check whether --enable-dependency-tracking was given.
3042 if test "${enable_dependency_tracking+set}" = set; then :
3043 enableval=$enable_dependency_tracking;
3044 fi
3045
3046 if test "x$enable_dependency_tracking" != xno; then
3047 am_depcomp="$ac_aux_dir/depcomp"
3048 AMDEPBACKSLASH='\'
3049 fi
3050 if test "x$enable_dependency_tracking" != xno; then
3051 AMDEP_TRUE=
3052 AMDEP_FALSE='#'
3053 else
3054 AMDEP_TRUE='#'
3055 AMDEP_FALSE=
3056 fi
3057
3058
3059 ac_ext=c
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_CC+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 CC=$ac_cv_prog_CC
3093 if test -n "$CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101
3102 fi
3103 if test -z "$ac_cv_prog_CC"; then
3104 ac_ct_CC=$CC
3105 # Extract the first word of "gcc", so it can be a program name with args.
3106 set dummy gcc; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122 ac_cv_prog_ac_ct_CC="gcc"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3125 fi
3126 done
3127 done
3128 IFS=$as_save_IFS
3129
3130 fi
3131 fi
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141 if test "x$ac_ct_CC" = x; then
3142 CC=""
3143 else
3144 case $cross_compiling:$ac_tool_warned in
3145 yes:)
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3148 ac_tool_warned=yes ;;
3149 esac
3150 CC=$ac_ct_CC
3151 fi
3152 else
3153 CC="$ac_cv_prog_CC"
3154 fi
3155
3156 if test -z "$CC"; then
3157 if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3159 set dummy ${ac_tool_prefix}cc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if test "${ac_cv_prog_CC+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_CC="${ac_tool_prefix}cc"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179 done
3180 done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194
3195 fi
3196 fi
3197 if test -z "$CC"; then
3198 # Extract the first word of "cc", so it can be a program name with args.
3199 set dummy cc; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if test "${ac_cv_prog_CC+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$CC"; then
3206 ac_cv_prog_CC="$CC" # Let the user override the test.
3207 else
3208 ac_prog_rejected=no
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3217 ac_prog_rejected=yes
3218 continue
3219 fi
3220 ac_cv_prog_CC="cc"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3223 fi
3224 done
3225 done
3226 IFS=$as_save_IFS
3227
3228 if test $ac_prog_rejected = yes; then
3229 # We found a bogon in the path, so make sure we never use it.
3230 set dummy $ac_cv_prog_CC
3231 shift
3232 if test $# != 0; then
3233 # We chose a different compiler from the bogus one.
3234 # However, it has the same basename, so the bogon will be chosen
3235 # first if we set CC to just the basename; use the full file name.
3236 shift
3237 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3238 fi
3239 fi
3240 fi
3241 fi
3242 CC=$ac_cv_prog_CC
3243 if test -n "$CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245 $as_echo "$CC" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252 fi
3253 if test -z "$CC"; then
3254 if test -n "$ac_tool_prefix"; then
3255 for ac_prog in cl.exe
3256 do
3257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if test "${ac_cv_prog_CC+set}" = set; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294 test -n "$CC" && break
3295 done
3296 fi
3297 if test -z "$CC"; then
3298 ac_ct_CC=$CC
3299 for ac_prog in cl.exe
3300 do
3301 # Extract the first word of "$ac_prog", so it can be a program name with args.
3302 set dummy $ac_prog; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 if test -n "$ac_ct_CC"; then
3309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_ac_ct_CC="$ac_prog"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3321 fi
3322 done
3323 done
3324 IFS=$as_save_IFS
3325
3326 fi
3327 fi
3328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3329 if test -n "$ac_ct_CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3331 $as_echo "$ac_ct_CC" >&6; }
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 fi
3336
3337
3338 test -n "$ac_ct_CC" && break
3339 done
3340
3341 if test "x$ac_ct_CC" = x; then
3342 CC=""
3343 else
3344 case $cross_compiling:$ac_tool_warned in
3345 yes:)
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3348 ac_tool_warned=yes ;;
3349 esac
3350 CC=$ac_ct_CC
3351 fi
3352 fi
3353
3354 fi
3355
3356
3357 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error "no acceptable C compiler found in \$PATH
3360 See \`config.log' for more details." "$LINENO" 5; }
3361
3362 # Provide some information about the compiler.
3363 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3364 set X $ac_compile
3365 ac_compiler=$2
3366 for ac_option in --version -v -V -qversion; do
3367 { { ac_try="$ac_compiler $ac_option >&5"
3368 case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3375 ac_status=$?
3376 if test -s conftest.err; then
3377 sed '10a\
3378 ... rest of stderr output deleted ...
3379 10q' conftest.err >conftest.er1
3380 cat conftest.er1 >&5
3381 fi
3382 rm -f conftest.er1 conftest.err
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }
3385 done
3386
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389
3390 int
3391 main ()
3392 {
3393
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 ac_clean_files_save=$ac_clean_files
3399 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3400 # Try to create an executable without -o first, disregard a.out.
3401 # It will help us diagnose broken compilers, and finding out an intuition
3402 # of exeext.
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3404 $as_echo_n "checking whether the C compiler works... " >&6; }
3405 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3406
3407 # The possible output files:
3408 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3409
3410 ac_rmfiles=
3411 for ac_file in $ac_files
3412 do
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3416 esac
3417 done
3418 rm -f $ac_rmfiles
3419
3420 if { { ac_try="$ac_link_default"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_link_default") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3432 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3433 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3434 # so that the user can short-circuit this test for compilers unknown to
3435 # Autoconf.
3436 for ac_file in $ac_files ''
3437 do
3438 test -f "$ac_file" || continue
3439 case $ac_file in
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3441 ;;
3442 [ab].out )
3443 # We found the default executable, but exeext='' is most
3444 # certainly right.
3445 break;;
3446 *.* )
3447 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3448 then :; else
3449 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450 fi
3451 # We set ac_cv_exeext here because the later test for it is not
3452 # safe: cross compilers may not add the suffix if given an `-o'
3453 # argument, so we may need to know it at that point already.
3454 # Even if this section looks crufty: it has the advantage of
3455 # actually working.
3456 break;;
3457 * )
3458 break;;
3459 esac
3460 done
3461 test "$ac_cv_exeext" = no && ac_cv_exeext=
3462
3463 else
3464 ac_file=''
3465 fi
3466 if test -z "$ac_file"; then :
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 $as_echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 { as_fn_set_status 77
3475 as_fn_error "C compiler cannot create executables
3476 See \`config.log' for more details." "$LINENO" 5; }; }
3477 else
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3479 $as_echo "yes" >&6; }
3480 fi
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3482 $as_echo_n "checking for C compiler default output file name... " >&6; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3484 $as_echo "$ac_file" >&6; }
3485 ac_exeext=$ac_cv_exeext
3486
3487 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3488 ac_clean_files=$ac_clean_files_save
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3490 $as_echo_n "checking for suffix of executables... " >&6; }
3491 if { { ac_try="$ac_link"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
3498 (eval "$ac_link") 2>&5
3499 ac_status=$?
3500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501 test $ac_status = 0; }; then :
3502 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3503 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3504 # work properly (i.e., refer to `conftest.exe'), while it won't with
3505 # `rm'.
3506 for ac_file in conftest.exe conftest conftest.*; do
3507 test -f "$ac_file" || continue
3508 case $ac_file in
3509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3510 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3511 break;;
3512 * ) break;;
3513 esac
3514 done
3515 else
3516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 as_fn_error "cannot compute suffix of executables: cannot compile and link
3519 See \`config.log' for more details." "$LINENO" 5; }
3520 fi
3521 rm -f conftest conftest$ac_cv_exeext
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3523 $as_echo "$ac_cv_exeext" >&6; }
3524
3525 rm -f conftest.$ac_ext
3526 EXEEXT=$ac_cv_exeext
3527 ac_exeext=$EXEEXT
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530 #include <stdio.h>
3531 int
3532 main ()
3533 {
3534 FILE *f = fopen ("conftest.out", "w");
3535 return ferror (f) || fclose (f) != 0;
3536
3537 ;
3538 return 0;
3539 }
3540 _ACEOF
3541 ac_clean_files="$ac_clean_files conftest.out"
3542 # Check that the compiler produces executables we can run. If not, either
3543 # the compiler is broken, or we cross compile.
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3545 $as_echo_n "checking whether we are cross compiling... " >&6; }
3546 if test "$cross_compiling" != yes; then
3547 { { ac_try="$ac_link"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_link") 2>&5
3555 ac_status=$?
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }
3558 if { ac_try='./conftest$ac_cv_exeext'
3559 { { case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_try") 2>&5
3566 ac_status=$?
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }; }; then
3569 cross_compiling=no
3570 else
3571 if test "$cross_compiling" = maybe; then
3572 cross_compiling=yes
3573 else
3574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 as_fn_error "cannot run C compiled programs.
3577 If you meant to cross compile, use \`--host'.
3578 See \`config.log' for more details." "$LINENO" 5; }
3579 fi
3580 fi
3581 fi
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3583 $as_echo "$cross_compiling" >&6; }
3584
3585 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3586 ac_clean_files=$ac_clean_files_save
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3588 $as_echo_n "checking for suffix of object files... " >&6; }
3589 if test "${ac_cv_objext+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594
3595 int
3596 main ()
3597 {
3598
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 rm -f conftest.o conftest.obj
3604 if { { ac_try="$ac_compile"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_compile") 2>&5
3612 ac_status=$?
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }; then :
3615 for ac_file in conftest.o conftest.obj conftest.*; do
3616 test -f "$ac_file" || continue;
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3619 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3620 break;;
3621 esac
3622 done
3623 else
3624 $as_echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error "cannot compute suffix of object files: cannot compile
3630 See \`config.log' for more details." "$LINENO" 5; }
3631 fi
3632 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3635 $as_echo "$ac_cv_objext" >&6; }
3636 OBJEXT=$ac_cv_objext
3637 ac_objext=$OBJEXT
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3639 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3640 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3645
3646 int
3647 main ()
3648 {
3649 #ifndef __GNUC__
3650 choke me
3651 #endif
3652
3653 ;
3654 return 0;
3655 }
3656 _ACEOF
3657 if ac_fn_c_try_compile "$LINENO"; then :
3658 ac_compiler_gnu=yes
3659 else
3660 ac_compiler_gnu=no
3661 fi
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3664
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3667 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3668 if test $ac_compiler_gnu = yes; then
3669 GCC=yes
3670 else
3671 GCC=
3672 fi
3673 ac_test_CFLAGS=${CFLAGS+set}
3674 ac_save_CFLAGS=$CFLAGS
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3676 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3677 if test "${ac_cv_prog_cc_g+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 ac_save_c_werror_flag=$ac_c_werror_flag
3681 ac_c_werror_flag=yes
3682 ac_cv_prog_cc_g=no
3683 CFLAGS="-g"
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686
3687 int
3688 main ()
3689 {
3690
3691 ;
3692 return 0;
3693 }
3694 _ACEOF
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_cv_prog_cc_g=yes
3697 else
3698 CFLAGS=""
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701
3702 int
3703 main ()
3704 {
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711
3712 else
3713 ac_c_werror_flag=$ac_save_c_werror_flag
3714 CFLAGS="-g"
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3717
3718 int
3719 main ()
3720 {
3721
3722 ;
3723 return 0;
3724 }
3725 _ACEOF
3726 if ac_fn_c_try_compile "$LINENO"; then :
3727 ac_cv_prog_cc_g=yes
3728 fi
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 fi
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 fi
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 ac_c_werror_flag=$ac_save_c_werror_flag
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3737 $as_echo "$ac_cv_prog_cc_g" >&6; }
3738 if test "$ac_test_CFLAGS" = set; then
3739 CFLAGS=$ac_save_CFLAGS
3740 elif test $ac_cv_prog_cc_g = yes; then
3741 if test "$GCC" = yes; then
3742 CFLAGS="-g -O2"
3743 else
3744 CFLAGS="-g"
3745 fi
3746 else
3747 if test "$GCC" = yes; then
3748 CFLAGS="-O2"
3749 else
3750 CFLAGS=
3751 fi
3752 fi
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3754 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3755 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 ac_cv_prog_cc_c89=no
3759 ac_save_CC=$CC
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762 #include <stdarg.h>
3763 #include <stdio.h>
3764 #include <sys/types.h>
3765 #include <sys/stat.h>
3766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3767 struct buf { int x; };
3768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3769 static char *e (p, i)
3770 char **p;
3771 int i;
3772 {
3773 return p[i];
3774 }
3775 static char *f (char * (*g) (char **, int), char **p, ...)
3776 {
3777 char *s;
3778 va_list v;
3779 va_start (v,p);
3780 s = g (p, va_arg (v,int));
3781 va_end (v);
3782 return s;
3783 }
3784
3785 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3786 function prototypes and stuff, but not '\xHH' hex character constants.
3787 These don't provoke an error unfortunately, instead are silently treated
3788 as 'x'. The following induces an error, until -std is added to get
3789 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3790 array size at least. It's necessary to write '\x00'==0 to get something
3791 that's true only with -std. */
3792 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3793
3794 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3795 inside strings and character constants. */
3796 #define FOO(x) 'x'
3797 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3798
3799 int test (int i, double x);
3800 struct s1 {int (*f) (int a);};
3801 struct s2 {int (*f) (double a);};
3802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3803 int argc;
3804 char **argv;
3805 int
3806 main ()
3807 {
3808 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3809 ;
3810 return 0;
3811 }
3812 _ACEOF
3813 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3814 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3815 do
3816 CC="$ac_save_CC $ac_arg"
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818 ac_cv_prog_cc_c89=$ac_arg
3819 fi
3820 rm -f core conftest.err conftest.$ac_objext
3821 test "x$ac_cv_prog_cc_c89" != "xno" && break
3822 done
3823 rm -f conftest.$ac_ext
3824 CC=$ac_save_CC
3825
3826 fi
3827 # AC_CACHE_VAL
3828 case "x$ac_cv_prog_cc_c89" in
3829 x)
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3831 $as_echo "none needed" >&6; } ;;
3832 xno)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3834 $as_echo "unsupported" >&6; } ;;
3835 *)
3836 CC="$CC $ac_cv_prog_cc_c89"
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3838 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3839 esac
3840 if test "x$ac_cv_prog_cc_c89" != xno; then :
3841
3842 fi
3843
3844 ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849
3850 depcc="$CC" am_compiler_list=
3851
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3853 $as_echo_n "checking dependency style of $depcc... " >&6; }
3854 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3855 $as_echo_n "(cached) " >&6
3856 else
3857 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3858 # We make a subdir and do the tests there. Otherwise we can end up
3859 # making bogus files that we don't know about and never remove. For
3860 # instance it was reported that on HP-UX the gcc test will end up
3861 # making a dummy file named `D' -- because `-MD' means `put the output
3862 # in D'.
3863 mkdir conftest.dir
3864 # Copy depcomp to subdir because otherwise we won't find it if we're
3865 # using a relative directory.
3866 cp "$am_depcomp" conftest.dir
3867 cd conftest.dir
3868 # We will build objects and dependencies in a subdirectory because
3869 # it helps to detect inapplicable dependency modes. For instance
3870 # both Tru64's cc and ICC support -MD to output dependencies as a
3871 # side effect of compilation, but ICC will put the dependencies in
3872 # the current directory while Tru64 will put them in the object
3873 # directory.
3874 mkdir sub
3875
3876 am_cv_CC_dependencies_compiler_type=none
3877 if test "$am_compiler_list" = ""; then
3878 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3879 fi
3880 am__universal=false
3881 case " $depcc " in #(
3882 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3883 esac
3884
3885 for depmode in $am_compiler_list; do
3886 # Setup a source with many dependencies, because some compilers
3887 # like to wrap large dependency lists on column 80 (with \), and
3888 # we should not choose a depcomp mode which is confused by this.
3889 #
3890 # We need to recreate these files for each test, as the compiler may
3891 # overwrite some of them when testing with obscure command lines.
3892 # This happens at least with the AIX C compiler.
3893 : > sub/conftest.c
3894 for i in 1 2 3 4 5 6; do
3895 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3896 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3897 # Solaris 8's {/usr,}/bin/sh.
3898 touch sub/conftst$i.h
3899 done
3900 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3901
3902 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3903 # mode. It turns out that the SunPro C++ compiler does not properly
3904 # handle `-M -o', and we need to detect this. Also, some Intel
3905 # versions had trouble with output in subdirs
3906 am__obj=sub/conftest.${OBJEXT-o}
3907 am__minus_obj="-o $am__obj"
3908 case $depmode in
3909 gcc)
3910 # This depmode causes a compiler race in universal mode.
3911 test "$am__universal" = false || continue
3912 ;;
3913 nosideeffect)
3914 # after this tag, mechanisms are not by side-effect, so they'll
3915 # only be used when explicitly requested
3916 if test "x$enable_dependency_tracking" = xyes; then
3917 continue
3918 else
3919 break
3920 fi
3921 ;;
3922 msvisualcpp | msvcmsys)
3923 # This compiler won't grok `-c -o', but also, the minuso test has
3924 # not run yet. These depmodes are late enough in the game, and
3925 # so weak that their functioning should not be impacted.
3926 am__obj=conftest.${OBJEXT-o}
3927 am__minus_obj=
3928 ;;
3929 none) break ;;
3930 esac
3931 if depmode=$depmode \
3932 source=sub/conftest.c object=$am__obj \
3933 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3934 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3935 >/dev/null 2>conftest.err &&
3936 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3937 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3938 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3939 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3940 # icc doesn't choke on unknown options, it will just issue warnings
3941 # or remarks (even with -Werror). So we grep stderr for any message
3942 # that says an option was ignored or not supported.
3943 # When given -MP, icc 7.0 and 7.1 complain thusly:
3944 # icc: Command line warning: ignoring option '-M'; no argument required
3945 # The diagnosis changed in icc 8.0:
3946 # icc: Command line remark: option '-MP' not supported
3947 if (grep 'ignoring option' conftest.err ||
3948 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3949 am_cv_CC_dependencies_compiler_type=$depmode
3950 break
3951 fi
3952 fi
3953 done
3954
3955 cd ..
3956 rm -rf conftest.dir
3957 else
3958 am_cv_CC_dependencies_compiler_type=none
3959 fi
3960
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3963 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3964 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3965
3966 if
3967 test "x$enable_dependency_tracking" != xno \
3968 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3969 am__fastdepCC_TRUE=
3970 am__fastdepCC_FALSE='#'
3971 else
3972 am__fastdepCC_TRUE='#'
3973 am__fastdepCC_FALSE=
3974 fi
3975
3976
3977
3978 ac_ext=c
3979 ac_cpp='$CPP $CPPFLAGS'
3980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3984 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3985 # On Suns, sometimes $CPP names a directory.
3986 if test -n "$CPP" && test -d "$CPP"; then
3987 CPP=
3988 fi
3989 if test -z "$CPP"; then
3990 if test "${ac_cv_prog_CPP+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 # Double quotes because CPP needs to be expanded
3994 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3995 do
3996 ac_preproc_ok=false
3997 for ac_c_preproc_warn_flag in '' yes
3998 do
3999 # Use a header file that comes with gcc, so configuring glibc
4000 # with a fresh cross-compiler works.
4001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4002 # <limits.h> exists even on freestanding compilers.
4003 # On the NeXT, cc -E runs the code through the compiler's parser,
4004 # not just through cpp. "Syntax error" is here to catch this case.
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4007 #ifdef __STDC__
4008 # include <limits.h>
4009 #else
4010 # include <assert.h>
4011 #endif
4012 Syntax error
4013 _ACEOF
4014 if ac_fn_c_try_cpp "$LINENO"; then :
4015
4016 else
4017 # Broken: fails on valid input.
4018 continue
4019 fi
4020 rm -f conftest.err conftest.$ac_ext
4021
4022 # OK, works on sane cases. Now check whether nonexistent headers
4023 # can be detected and how.
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4026 #include <ac_nonexistent.h>
4027 _ACEOF
4028 if ac_fn_c_try_cpp "$LINENO"; then :
4029 # Broken: success on invalid input.
4030 continue
4031 else
4032 # Passes both tests.
4033 ac_preproc_ok=:
4034 break
4035 fi
4036 rm -f conftest.err conftest.$ac_ext
4037
4038 done
4039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4040 rm -f conftest.err conftest.$ac_ext
4041 if $ac_preproc_ok; then :
4042 break
4043 fi
4044
4045 done
4046 ac_cv_prog_CPP=$CPP
4047
4048 fi
4049 CPP=$ac_cv_prog_CPP
4050 else
4051 ac_cv_prog_CPP=$CPP
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4054 $as_echo "$CPP" >&6; }
4055 ac_preproc_ok=false
4056 for ac_c_preproc_warn_flag in '' yes
4057 do
4058 # Use a header file that comes with gcc, so configuring glibc
4059 # with a fresh cross-compiler works.
4060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4061 # <limits.h> exists even on freestanding compilers.
4062 # On the NeXT, cc -E runs the code through the compiler's parser,
4063 # not just through cpp. "Syntax error" is here to catch this case.
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #ifdef __STDC__
4067 # include <limits.h>
4068 #else
4069 # include <assert.h>
4070 #endif
4071 Syntax error
4072 _ACEOF
4073 if ac_fn_c_try_cpp "$LINENO"; then :
4074
4075 else
4076 # Broken: fails on valid input.
4077 continue
4078 fi
4079 rm -f conftest.err conftest.$ac_ext
4080
4081 # OK, works on sane cases. Now check whether nonexistent headers
4082 # can be detected and how.
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085 #include <ac_nonexistent.h>
4086 _ACEOF
4087 if ac_fn_c_try_cpp "$LINENO"; then :
4088 # Broken: success on invalid input.
4089 continue
4090 else
4091 # Passes both tests.
4092 ac_preproc_ok=:
4093 break
4094 fi
4095 rm -f conftest.err conftest.$ac_ext
4096
4097 done
4098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4099 rm -f conftest.err conftest.$ac_ext
4100 if $ac_preproc_ok; then :
4101
4102 else
4103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4106 See \`config.log' for more details." "$LINENO" 5; }
4107 fi
4108
4109 ac_ext=c
4110 ac_cpp='$CPP $CPPFLAGS'
4111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114
4115
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4117 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4118 if test "${ac_cv_path_GREP+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 if test -z "$GREP"; then
4122 ac_path_GREP_found=false
4123 # Loop through the user's path and test for each of PROGNAME-LIST
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4126 do
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_prog in grep ggrep; do
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4132 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4133 # Check for GNU ac_path_GREP and select it if it is found.
4134 # Check for GNU $ac_path_GREP
4135 case `"$ac_path_GREP" --version 2>&1` in
4136 *GNU*)
4137 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4138 *)
4139 ac_count=0
4140 $as_echo_n 0123456789 >"conftest.in"
4141 while :
4142 do
4143 cat "conftest.in" "conftest.in" >"conftest.tmp"
4144 mv "conftest.tmp" "conftest.in"
4145 cp "conftest.in" "conftest.nl"
4146 $as_echo 'GREP' >> "conftest.nl"
4147 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149 as_fn_arith $ac_count + 1 && ac_count=$as_val
4150 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4151 # Best one so far, save it but keep looking for a better one
4152 ac_cv_path_GREP="$ac_path_GREP"
4153 ac_path_GREP_max=$ac_count
4154 fi
4155 # 10*(2^10) chars as input seems more than enough
4156 test $ac_count -gt 10 && break
4157 done
4158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4159 esac
4160
4161 $ac_path_GREP_found && break 3
4162 done
4163 done
4164 done
4165 IFS=$as_save_IFS
4166 if test -z "$ac_cv_path_GREP"; then
4167 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4168 fi
4169 else
4170 ac_cv_path_GREP=$GREP
4171 fi
4172
4173 fi
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4175 $as_echo "$ac_cv_path_GREP" >&6; }
4176 GREP="$ac_cv_path_GREP"
4177
4178
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4180 $as_echo_n "checking for egrep... " >&6; }
4181 if test "${ac_cv_path_EGREP+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4185 then ac_cv_path_EGREP="$GREP -E"
4186 else
4187 if test -z "$EGREP"; then
4188 ac_path_EGREP_found=false
4189 # Loop through the user's path and test for each of PROGNAME-LIST
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192 do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_prog in egrep; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4198 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4199 # Check for GNU ac_path_EGREP and select it if it is found.
4200 # Check for GNU $ac_path_EGREP
4201 case `"$ac_path_EGREP" --version 2>&1` in
4202 *GNU*)
4203 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4204 *)
4205 ac_count=0
4206 $as_echo_n 0123456789 >"conftest.in"
4207 while :
4208 do
4209 cat "conftest.in" "conftest.in" >"conftest.tmp"
4210 mv "conftest.tmp" "conftest.in"
4211 cp "conftest.in" "conftest.nl"
4212 $as_echo 'EGREP' >> "conftest.nl"
4213 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215 as_fn_arith $ac_count + 1 && ac_count=$as_val
4216 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4217 # Best one so far, save it but keep looking for a better one
4218 ac_cv_path_EGREP="$ac_path_EGREP"
4219 ac_path_EGREP_max=$ac_count
4220 fi
4221 # 10*(2^10) chars as input seems more than enough
4222 test $ac_count -gt 10 && break
4223 done
4224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225 esac
4226
4227 $ac_path_EGREP_found && break 3
4228 done
4229 done
4230 done
4231 IFS=$as_save_IFS
4232 if test -z "$ac_cv_path_EGREP"; then
4233 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4234 fi
4235 else
4236 ac_cv_path_EGREP=$EGREP
4237 fi
4238
4239 fi
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4242 $as_echo "$ac_cv_path_EGREP" >&6; }
4243 EGREP="$ac_cv_path_EGREP"
4244
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4247 $as_echo_n "checking for ANSI C header files... " >&6; }
4248 if test "${ac_cv_header_stdc+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 #include <stdlib.h>
4254 #include <stdarg.h>
4255 #include <string.h>
4256 #include <float.h>
4257
4258 int
4259 main ()
4260 {
4261
4262 ;
4263 return 0;
4264 }
4265 _ACEOF
4266 if ac_fn_c_try_compile "$LINENO"; then :
4267 ac_cv_header_stdc=yes
4268 else
4269 ac_cv_header_stdc=no
4270 fi
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272
4273 if test $ac_cv_header_stdc = yes; then
4274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277 #include <string.h>
4278
4279 _ACEOF
4280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4281 $EGREP "memchr" >/dev/null 2>&1; then :
4282
4283 else
4284 ac_cv_header_stdc=no
4285 fi
4286 rm -f conftest*
4287
4288 fi
4289
4290 if test $ac_cv_header_stdc = yes; then
4291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294 #include <stdlib.h>
4295
4296 _ACEOF
4297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4298 $EGREP "free" >/dev/null 2>&1; then :
4299
4300 else
4301 ac_cv_header_stdc=no
4302 fi
4303 rm -f conftest*
4304
4305 fi
4306
4307 if test $ac_cv_header_stdc = yes; then
4308 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4309 if test "$cross_compiling" = yes; then :
4310 :
4311 else
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #include <ctype.h>
4315 #include <stdlib.h>
4316 #if ((' ' & 0x0FF) == 0x020)
4317 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4318 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4319 #else
4320 # define ISLOWER(c) \
4321 (('a' <= (c) && (c) <= 'i') \
4322 || ('j' <= (c) && (c) <= 'r') \
4323 || ('s' <= (c) && (c) <= 'z'))
4324 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4325 #endif
4326
4327 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4328 int
4329 main ()
4330 {
4331 int i;
4332 for (i = 0; i < 256; i++)
4333 if (XOR (islower (i), ISLOWER (i))
4334 || toupper (i) != TOUPPER (i))
4335 return 2;
4336 return 0;
4337 }
4338 _ACEOF
4339 if ac_fn_c_try_run "$LINENO"; then :
4340
4341 else
4342 ac_cv_header_stdc=no
4343 fi
4344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4345 conftest.$ac_objext conftest.beam conftest.$ac_ext
4346 fi
4347
4348 fi
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4351 $as_echo "$ac_cv_header_stdc" >&6; }
4352 if test $ac_cv_header_stdc = yes; then
4353
4354 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4355
4356 fi
4357
4358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4359 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4360 inttypes.h stdint.h unistd.h
4361 do :
4362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4363 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4364 "
4365 eval as_val=\$$as_ac_Header
4366 if test "x$as_val" = x""yes; then :
4367 cat >>confdefs.h <<_ACEOF
4368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4369 _ACEOF
4370
4371 fi
4372
4373 done
4374
4375
4376
4377 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4378 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4379 MINIX=yes
4380 else
4381 MINIX=
4382 fi
4383
4384
4385 if test "$MINIX" = yes; then
4386
4387 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4388
4389
4390 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4391
4392
4393 $as_echo "#define _MINIX 1" >>confdefs.h
4394
4395 fi
4396
4397
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4399 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4400 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405
4406 # define __EXTENSIONS__ 1
4407 $ac_includes_default
4408 int
4409 main ()
4410 {
4411
4412 ;
4413 return 0;
4414 }
4415 _ACEOF
4416 if ac_fn_c_try_compile "$LINENO"; then :
4417 ac_cv_safe_to_define___extensions__=yes
4418 else
4419 ac_cv_safe_to_define___extensions__=no
4420 fi
4421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4424 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4425 test $ac_cv_safe_to_define___extensions__ = yes &&
4426 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4427
4428 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4429
4430 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4431
4432 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4433
4434 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4435
4436
4437 mkdir_p="$MKDIR_P"
4438 case $mkdir_p in
4439 [\\/$]* | ?:[\\/]*) ;;
4440 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4441 esac
4442
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4445 $as_echo_n "checking whether ln -s works... " >&6; }
4446 LN_S=$as_ln_s
4447 if test "$LN_S" = "ln -s"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4449 $as_echo "yes" >&6; }
4450 else
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4452 $as_echo "no, using $LN_S" >&6; }
4453 fi
4454
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460 if test -n "$ac_tool_prefix"; then
4461 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4462 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if test "${ac_cv_prog_CC+set}" = set; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test -n "$CC"; then
4469 ac_cv_prog_CC="$CC" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4481 fi
4482 done
4483 done
4484 IFS=$as_save_IFS
4485
4486 fi
4487 fi
4488 CC=$ac_cv_prog_CC
4489 if test -n "$CC"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4491 $as_echo "$CC" >&6; }
4492 else
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4495 fi
4496
4497
4498 fi
4499 if test -z "$ac_cv_prog_CC"; then
4500 ac_ct_CC=$CC
4501 # Extract the first word of "gcc", so it can be a program name with args.
4502 set dummy gcc; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 if test -n "$ac_ct_CC"; then
4509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518 ac_cv_prog_ac_ct_CC="gcc"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4521 fi
4522 done
4523 done
4524 IFS=$as_save_IFS
4525
4526 fi
4527 fi
4528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4529 if test -n "$ac_ct_CC"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4531 $as_echo "$ac_ct_CC" >&6; }
4532 else
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4535 fi
4536
4537 if test "x$ac_ct_CC" = x; then
4538 CC=""
4539 else
4540 case $cross_compiling:$ac_tool_warned in
4541 yes:)
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4544 ac_tool_warned=yes ;;
4545 esac
4546 CC=$ac_ct_CC
4547 fi
4548 else
4549 CC="$ac_cv_prog_CC"
4550 fi
4551
4552 if test -z "$CC"; then
4553 if test -n "$ac_tool_prefix"; then
4554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4555 set dummy ${ac_tool_prefix}cc; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if test "${ac_cv_prog_CC+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$CC"; then
4562 ac_cv_prog_CC="$CC" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_prog_CC="${ac_tool_prefix}cc"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 CC=$ac_cv_prog_CC
4582 if test -n "$CC"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4584 $as_echo "$CC" >&6; }
4585 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4588 fi
4589
4590
4591 fi
4592 fi
4593 if test -z "$CC"; then
4594 # Extract the first word of "cc", so it can be a program name with args.
4595 set dummy cc; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if test "${ac_cv_prog_CC+set}" = set; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if test -n "$CC"; then
4602 ac_cv_prog_CC="$CC" # Let the user override the test.
4603 else
4604 ac_prog_rejected=no
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4613 ac_prog_rejected=yes
4614 continue
4615 fi
4616 ac_cv_prog_CC="cc"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4619 fi
4620 done
4621 done
4622 IFS=$as_save_IFS
4623
4624 if test $ac_prog_rejected = yes; then
4625 # We found a bogon in the path, so make sure we never use it.
4626 set dummy $ac_cv_prog_CC
4627 shift
4628 if test $# != 0; then
4629 # We chose a different compiler from the bogus one.
4630 # However, it has the same basename, so the bogon will be chosen
4631 # first if we set CC to just the basename; use the full file name.
4632 shift
4633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4634 fi
4635 fi
4636 fi
4637 fi
4638 CC=$ac_cv_prog_CC
4639 if test -n "$CC"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4641 $as_echo "$CC" >&6; }
4642 else
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4645 fi
4646
4647
4648 fi
4649 if test -z "$CC"; then
4650 if test -n "$ac_tool_prefix"; then
4651 for ac_prog in cl.exe
4652 do
4653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if test "${ac_cv_prog_CC+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if test -n "$CC"; then
4661 ac_cv_prog_CC="$CC" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674 done
4675 done
4676 IFS=$as_save_IFS
4677
4678 fi
4679 fi
4680 CC=$ac_cv_prog_CC
4681 if test -n "$CC"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4683 $as_echo "$CC" >&6; }
4684 else
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4687 fi
4688
4689
4690 test -n "$CC" && break
4691 done
4692 fi
4693 if test -z "$CC"; then
4694 ac_ct_CC=$CC
4695 for ac_prog in cl.exe
4696 do
4697 # Extract the first word of "$ac_prog", so it can be a program name with args.
4698 set dummy $ac_prog; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$ac_ct_CC"; then
4705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_ac_ct_CC="$ac_prog"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi
4723 fi
4724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4725 if test -n "$ac_ct_CC"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4727 $as_echo "$ac_ct_CC" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4731 fi
4732
4733
4734 test -n "$ac_ct_CC" && break
4735 done
4736
4737 if test "x$ac_ct_CC" = x; then
4738 CC=""
4739 else
4740 case $cross_compiling:$ac_tool_warned in
4741 yes:)
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4744 ac_tool_warned=yes ;;
4745 esac
4746 CC=$ac_ct_CC
4747 fi
4748 fi
4749
4750 fi
4751
4752
4753 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4755 as_fn_error "no acceptable C compiler found in \$PATH
4756 See \`config.log' for more details." "$LINENO" 5; }
4757
4758 # Provide some information about the compiler.
4759 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4760 set X $ac_compile
4761 ac_compiler=$2
4762 for ac_option in --version -v -V -qversion; do
4763 { { ac_try="$ac_compiler $ac_option >&5"
4764 case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767 esac
4768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4769 $as_echo "$ac_try_echo"; } >&5
4770 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4771 ac_status=$?
4772 if test -s conftest.err; then
4773 sed '10a\
4774 ... rest of stderr output deleted ...
4775 10q' conftest.err >conftest.er1
4776 cat conftest.er1 >&5
4777 fi
4778 rm -f conftest.er1 conftest.err
4779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4780 test $ac_status = 0; }
4781 done
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4784 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4785 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790
4791 int
4792 main ()
4793 {
4794 #ifndef __GNUC__
4795 choke me
4796 #endif
4797
4798 ;
4799 return 0;
4800 }
4801 _ACEOF
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 ac_compiler_gnu=yes
4804 else
4805 ac_compiler_gnu=no
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4809
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4812 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4813 if test $ac_compiler_gnu = yes; then
4814 GCC=yes
4815 else
4816 GCC=
4817 fi
4818 ac_test_CFLAGS=${CFLAGS+set}
4819 ac_save_CFLAGS=$CFLAGS
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4821 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4822 if test "${ac_cv_prog_cc_g+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 ac_save_c_werror_flag=$ac_c_werror_flag
4826 ac_c_werror_flag=yes
4827 ac_cv_prog_cc_g=no
4828 CFLAGS="-g"
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831
4832 int
4833 main ()
4834 {
4835
4836 ;
4837 return 0;
4838 }
4839 _ACEOF
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841 ac_cv_prog_cc_g=yes
4842 else
4843 CFLAGS=""
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4846
4847 int
4848 main ()
4849 {
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 if ac_fn_c_try_compile "$LINENO"; then :
4856
4857 else
4858 ac_c_werror_flag=$ac_save_c_werror_flag
4859 CFLAGS="-g"
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862
4863 int
4864 main ()
4865 {
4866
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 if ac_fn_c_try_compile "$LINENO"; then :
4872 ac_cv_prog_cc_g=yes
4873 fi
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 fi
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 fi
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 ac_c_werror_flag=$ac_save_c_werror_flag
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4882 $as_echo "$ac_cv_prog_cc_g" >&6; }
4883 if test "$ac_test_CFLAGS" = set; then
4884 CFLAGS=$ac_save_CFLAGS
4885 elif test $ac_cv_prog_cc_g = yes; then
4886 if test "$GCC" = yes; then
4887 CFLAGS="-g -O2"
4888 else
4889 CFLAGS="-g"
4890 fi
4891 else
4892 if test "$GCC" = yes; then
4893 CFLAGS="-O2"
4894 else
4895 CFLAGS=
4896 fi
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4899 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4900 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 ac_cv_prog_cc_c89=no
4904 ac_save_CC=$CC
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907 #include <stdarg.h>
4908 #include <stdio.h>
4909 #include <sys/types.h>
4910 #include <sys/stat.h>
4911 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4912 struct buf { int x; };
4913 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4914 static char *e (p, i)
4915 char **p;
4916 int i;
4917 {
4918 return p[i];
4919 }
4920 static char *f (char * (*g) (char **, int), char **p, ...)
4921 {
4922 char *s;
4923 va_list v;
4924 va_start (v,p);
4925 s = g (p, va_arg (v,int));
4926 va_end (v);
4927 return s;
4928 }
4929
4930 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4931 function prototypes and stuff, but not '\xHH' hex character constants.
4932 These don't provoke an error unfortunately, instead are silently treated
4933 as 'x'. The following induces an error, until -std is added to get
4934 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4935 array size at least. It's necessary to write '\x00'==0 to get something
4936 that's true only with -std. */
4937 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4938
4939 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4940 inside strings and character constants. */
4941 #define FOO(x) 'x'
4942 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4943
4944 int test (int i, double x);
4945 struct s1 {int (*f) (int a);};
4946 struct s2 {int (*f) (double a);};
4947 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4948 int argc;
4949 char **argv;
4950 int
4951 main ()
4952 {
4953 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4954 ;
4955 return 0;
4956 }
4957 _ACEOF
4958 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4959 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4960 do
4961 CC="$ac_save_CC $ac_arg"
4962 if ac_fn_c_try_compile "$LINENO"; then :
4963 ac_cv_prog_cc_c89=$ac_arg
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext
4966 test "x$ac_cv_prog_cc_c89" != "xno" && break
4967 done
4968 rm -f conftest.$ac_ext
4969 CC=$ac_save_CC
4970
4971 fi
4972 # AC_CACHE_VAL
4973 case "x$ac_cv_prog_cc_c89" in
4974 x)
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4976 $as_echo "none needed" >&6; } ;;
4977 xno)
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4979 $as_echo "unsupported" >&6; } ;;
4980 *)
4981 CC="$CC $ac_cv_prog_cc_c89"
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4983 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4984 esac
4985 if test "x$ac_cv_prog_cc_c89" != xno; then :
4986
4987 fi
4988
4989 ac_ext=c
4990 ac_cpp='$CPP $CPPFLAGS'
4991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994
4995 depcc="$CC" am_compiler_list=
4996
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4998 $as_echo_n "checking dependency style of $depcc... " >&6; }
4999 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5003 # We make a subdir and do the tests there. Otherwise we can end up
5004 # making bogus files that we don't know about and never remove. For
5005 # instance it was reported that on HP-UX the gcc test will end up
5006 # making a dummy file named `D' -- because `-MD' means `put the output
5007 # in D'.
5008 mkdir conftest.dir
5009 # Copy depcomp to subdir because otherwise we won't find it if we're
5010 # using a relative directory.
5011 cp "$am_depcomp" conftest.dir
5012 cd conftest.dir
5013 # We will build objects and dependencies in a subdirectory because
5014 # it helps to detect inapplicable dependency modes. For instance
5015 # both Tru64's cc and ICC support -MD to output dependencies as a
5016 # side effect of compilation, but ICC will put the dependencies in
5017 # the current directory while Tru64 will put them in the object
5018 # directory.
5019 mkdir sub
5020
5021 am_cv_CC_dependencies_compiler_type=none
5022 if test "$am_compiler_list" = ""; then
5023 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5024 fi
5025 am__universal=false
5026 case " $depcc " in #(
5027 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5028 esac
5029
5030 for depmode in $am_compiler_list; do
5031 # Setup a source with many dependencies, because some compilers
5032 # like to wrap large dependency lists on column 80 (with \), and
5033 # we should not choose a depcomp mode which is confused by this.
5034 #
5035 # We need to recreate these files for each test, as the compiler may
5036 # overwrite some of them when testing with obscure command lines.
5037 # This happens at least with the AIX C compiler.
5038 : > sub/conftest.c
5039 for i in 1 2 3 4 5 6; do
5040 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5041 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5042 # Solaris 8's {/usr,}/bin/sh.
5043 touch sub/conftst$i.h
5044 done
5045 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5046
5047 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5048 # mode. It turns out that the SunPro C++ compiler does not properly
5049 # handle `-M -o', and we need to detect this. Also, some Intel
5050 # versions had trouble with output in subdirs
5051 am__obj=sub/conftest.${OBJEXT-o}
5052 am__minus_obj="-o $am__obj"
5053 case $depmode in
5054 gcc)
5055 # This depmode causes a compiler race in universal mode.
5056 test "$am__universal" = false || continue
5057 ;;
5058 nosideeffect)
5059 # after this tag, mechanisms are not by side-effect, so they'll
5060 # only be used when explicitly requested
5061 if test "x$enable_dependency_tracking" = xyes; then
5062 continue
5063 else
5064 break
5065 fi
5066 ;;
5067 msvisualcpp | msvcmsys)
5068 # This compiler won't grok `-c -o', but also, the minuso test has
5069 # not run yet. These depmodes are late enough in the game, and
5070 # so weak that their functioning should not be impacted.
5071 am__obj=conftest.${OBJEXT-o}
5072 am__minus_obj=
5073 ;;
5074 none) break ;;
5075 esac
5076 if depmode=$depmode \
5077 source=sub/conftest.c object=$am__obj \
5078 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5079 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5080 >/dev/null 2>conftest.err &&
5081 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5082 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5083 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5084 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5085 # icc doesn't choke on unknown options, it will just issue warnings
5086 # or remarks (even with -Werror). So we grep stderr for any message
5087 # that says an option was ignored or not supported.
5088 # When given -MP, icc 7.0 and 7.1 complain thusly:
5089 # icc: Command line warning: ignoring option '-M'; no argument required
5090 # The diagnosis changed in icc 8.0:
5091 # icc: Command line remark: option '-MP' not supported
5092 if (grep 'ignoring option' conftest.err ||
5093 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5094 am_cv_CC_dependencies_compiler_type=$depmode
5095 break
5096 fi
5097 fi
5098 done
5099
5100 cd ..
5101 rm -rf conftest.dir
5102 else
5103 am_cv_CC_dependencies_compiler_type=none
5104 fi
5105
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5108 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5109 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5110
5111 if
5112 test "x$enable_dependency_tracking" != xno \
5113 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5114 am__fastdepCC_TRUE=
5115 am__fastdepCC_FALSE='#'
5116 else
5117 am__fastdepCC_TRUE='#'
5118 am__fastdepCC_FALSE=
5119 fi
5120
5121
5122 ac_ext=cpp
5123 ac_cpp='$CXXCPP $CPPFLAGS'
5124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127 if test -z "$CXX"; then
5128 if test -n "$CCC"; then
5129 CXX=$CCC
5130 else
5131 if test -n "$ac_tool_prefix"; then
5132 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5133 do
5134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if test "${ac_cv_prog_CXX+set}" = set; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 if test -n "$CXX"; then
5142 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5154 fi
5155 done
5156 done
5157 IFS=$as_save_IFS
5158
5159 fi
5160 fi
5161 CXX=$ac_cv_prog_CXX
5162 if test -n "$CXX"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5164 $as_echo "$CXX" >&6; }
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5168 fi
5169
5170
5171 test -n "$CXX" && break
5172 done
5173 fi
5174 if test -z "$CXX"; then
5175 ac_ct_CXX=$CXX
5176 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5177 do
5178 # Extract the first word of "$ac_prog", so it can be a program name with args.
5179 set dummy $ac_prog; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$ac_ct_CXX"; then
5186 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_prog_ac_ct_CXX="$ac_prog"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5198 fi
5199 done
5200 done
5201 IFS=$as_save_IFS
5202
5203 fi
5204 fi
5205 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5206 if test -n "$ac_ct_CXX"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5208 $as_echo "$ac_ct_CXX" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5212 fi
5213
5214
5215 test -n "$ac_ct_CXX" && break
5216 done
5217
5218 if test "x$ac_ct_CXX" = x; then
5219 CXX="g++"
5220 else
5221 case $cross_compiling:$ac_tool_warned in
5222 yes:)
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned=yes ;;
5226 esac
5227 CXX=$ac_ct_CXX
5228 fi
5229 fi
5230
5231 fi
5232 fi
5233 # Provide some information about the compiler.
5234 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5235 set X $ac_compile
5236 ac_compiler=$2
5237 for ac_option in --version -v -V -qversion; do
5238 { { ac_try="$ac_compiler $ac_option >&5"
5239 case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242 esac
5243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5244 $as_echo "$ac_try_echo"; } >&5
5245 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5246 ac_status=$?
5247 if test -s conftest.err; then
5248 sed '10a\
5249 ... rest of stderr output deleted ...
5250 10q' conftest.err >conftest.er1
5251 cat conftest.er1 >&5
5252 fi
5253 rm -f conftest.er1 conftest.err
5254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5255 test $ac_status = 0; }
5256 done
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5259 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5260 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5265
5266 int
5267 main ()
5268 {
5269 #ifndef __GNUC__
5270 choke me
5271 #endif
5272
5273 ;
5274 return 0;
5275 }
5276 _ACEOF
5277 if ac_fn_cxx_try_compile "$LINENO"; then :
5278 ac_compiler_gnu=yes
5279 else
5280 ac_compiler_gnu=no
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5284
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5287 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5288 if test $ac_compiler_gnu = yes; then
5289 GXX=yes
5290 else
5291 GXX=
5292 fi
5293 ac_test_CXXFLAGS=${CXXFLAGS+set}
5294 ac_save_CXXFLAGS=$CXXFLAGS
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5296 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5297 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5301 ac_cxx_werror_flag=yes
5302 ac_cv_prog_cxx_g=no
5303 CXXFLAGS="-g"
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306
5307 int
5308 main ()
5309 {
5310
5311 ;
5312 return 0;
5313 }
5314 _ACEOF
5315 if ac_fn_cxx_try_compile "$LINENO"; then :
5316 ac_cv_prog_cxx_g=yes
5317 else
5318 CXXFLAGS=""
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321
5322 int
5323 main ()
5324 {
5325
5326 ;
5327 return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_cxx_try_compile "$LINENO"; then :
5331
5332 else
5333 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5334 CXXFLAGS="-g"
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337
5338 int
5339 main ()
5340 {
5341
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_cxx_try_compile "$LINENO"; then :
5347 ac_cv_prog_cxx_g=yes
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 fi
5351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 fi
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5357 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5358 if test "$ac_test_CXXFLAGS" = set; then
5359 CXXFLAGS=$ac_save_CXXFLAGS
5360 elif test $ac_cv_prog_cxx_g = yes; then
5361 if test "$GXX" = yes; then
5362 CXXFLAGS="-g -O2"
5363 else
5364 CXXFLAGS="-g"
5365 fi
5366 else
5367 if test "$GXX" = yes; then
5368 CXXFLAGS="-O2"
5369 else
5370 CXXFLAGS=
5371 fi
5372 fi
5373 ac_ext=c
5374 ac_cpp='$CPP $CPPFLAGS'
5375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5378
5379 depcc="$CXX" am_compiler_list=
5380
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5382 $as_echo_n "checking dependency style of $depcc... " >&6; }
5383 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5387 # We make a subdir and do the tests there. Otherwise we can end up
5388 # making bogus files that we don't know about and never remove. For
5389 # instance it was reported that on HP-UX the gcc test will end up
5390 # making a dummy file named `D' -- because `-MD' means `put the output
5391 # in D'.
5392 mkdir conftest.dir
5393 # Copy depcomp to subdir because otherwise we won't find it if we're
5394 # using a relative directory.
5395 cp "$am_depcomp" conftest.dir
5396 cd conftest.dir
5397 # We will build objects and dependencies in a subdirectory because
5398 # it helps to detect inapplicable dependency modes. For instance
5399 # both Tru64's cc and ICC support -MD to output dependencies as a
5400 # side effect of compilation, but ICC will put the dependencies in
5401 # the current directory while Tru64 will put them in the object
5402 # directory.
5403 mkdir sub
5404
5405 am_cv_CXX_dependencies_compiler_type=none
5406 if test "$am_compiler_list" = ""; then
5407 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5408 fi
5409 am__universal=false
5410 case " $depcc " in #(
5411 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5412 esac
5413
5414 for depmode in $am_compiler_list; do
5415 # Setup a source with many dependencies, because some compilers
5416 # like to wrap large dependency lists on column 80 (with \), and
5417 # we should not choose a depcomp mode which is confused by this.
5418 #
5419 # We need to recreate these files for each test, as the compiler may
5420 # overwrite some of them when testing with obscure command lines.
5421 # This happens at least with the AIX C compiler.
5422 : > sub/conftest.c
5423 for i in 1 2 3 4 5 6; do
5424 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5425 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5426 # Solaris 8's {/usr,}/bin/sh.
5427 touch sub/conftst$i.h
5428 done
5429 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5430
5431 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5432 # mode. It turns out that the SunPro C++ compiler does not properly
5433 # handle `-M -o', and we need to detect this. Also, some Intel
5434 # versions had trouble with output in subdirs
5435 am__obj=sub/conftest.${OBJEXT-o}
5436 am__minus_obj="-o $am__obj"
5437 case $depmode in
5438 gcc)
5439 # This depmode causes a compiler race in universal mode.
5440 test "$am__universal" = false || continue
5441 ;;
5442 nosideeffect)
5443 # after this tag, mechanisms are not by side-effect, so they'll
5444 # only be used when explicitly requested
5445 if test "x$enable_dependency_tracking" = xyes; then
5446 continue
5447 else
5448 break
5449 fi
5450 ;;
5451 msvisualcpp | msvcmsys)
5452 # This compiler won't grok `-c -o', but also, the minuso test has
5453 # not run yet. These depmodes are late enough in the game, and
5454 # so weak that their functioning should not be impacted.
5455 am__obj=conftest.${OBJEXT-o}
5456 am__minus_obj=
5457 ;;
5458 none) break ;;
5459 esac
5460 if depmode=$depmode \
5461 source=sub/conftest.c object=$am__obj \
5462 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5463 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5464 >/dev/null 2>conftest.err &&
5465 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5466 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5467 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5468 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5469 # icc doesn't choke on unknown options, it will just issue warnings
5470 # or remarks (even with -Werror). So we grep stderr for any message
5471 # that says an option was ignored or not supported.
5472 # When given -MP, icc 7.0 and 7.1 complain thusly:
5473 # icc: Command line warning: ignoring option '-M'; no argument required
5474 # The diagnosis changed in icc 8.0:
5475 # icc: Command line remark: option '-MP' not supported
5476 if (grep 'ignoring option' conftest.err ||
5477 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5478 am_cv_CXX_dependencies_compiler_type=$depmode
5479 break
5480 fi
5481 fi
5482 done
5483
5484 cd ..
5485 rm -rf conftest.dir
5486 else
5487 am_cv_CXX_dependencies_compiler_type=none
5488 fi
5489
5490 fi
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5492 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5493 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5494
5495 if
5496 test "x$enable_dependency_tracking" != xno \
5497 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5498 am__fastdepCXX_TRUE=
5499 am__fastdepCXX_FALSE='#'
5500 else
5501 am__fastdepCXX_TRUE='#'
5502 am__fastdepCXX_FALSE=
5503 fi
5504
5505
5506 ac_ext=c
5507 ac_cpp='$CPP $CPPFLAGS'
5508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5512 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5513 # On Suns, sometimes $CPP names a directory.
5514 if test -n "$CPP" && test -d "$CPP"; then
5515 CPP=
5516 fi
5517 if test -z "$CPP"; then
5518 if test "${ac_cv_prog_CPP+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 # Double quotes because CPP needs to be expanded
5522 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5523 do
5524 ac_preproc_ok=false
5525 for ac_c_preproc_warn_flag in '' yes
5526 do
5527 # Use a header file that comes with gcc, so configuring glibc
5528 # with a fresh cross-compiler works.
5529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5530 # <limits.h> exists even on freestanding compilers.
5531 # On the NeXT, cc -E runs the code through the compiler's parser,
5532 # not just through cpp. "Syntax error" is here to catch this case.
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #ifdef __STDC__
5536 # include <limits.h>
5537 #else
5538 # include <assert.h>
5539 #endif
5540 Syntax error
5541 _ACEOF
5542 if ac_fn_c_try_cpp "$LINENO"; then :
5543
5544 else
5545 # Broken: fails on valid input.
5546 continue
5547 fi
5548 rm -f conftest.err conftest.$ac_ext
5549
5550 # OK, works on sane cases. Now check whether nonexistent headers
5551 # can be detected and how.
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554 #include <ac_nonexistent.h>
5555 _ACEOF
5556 if ac_fn_c_try_cpp "$LINENO"; then :
5557 # Broken: success on invalid input.
5558 continue
5559 else
5560 # Passes both tests.
5561 ac_preproc_ok=:
5562 break
5563 fi
5564 rm -f conftest.err conftest.$ac_ext
5565
5566 done
5567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5568 rm -f conftest.err conftest.$ac_ext
5569 if $ac_preproc_ok; then :
5570 break
5571 fi
5572
5573 done
5574 ac_cv_prog_CPP=$CPP
5575
5576 fi
5577 CPP=$ac_cv_prog_CPP
5578 else
5579 ac_cv_prog_CPP=$CPP
5580 fi
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5582 $as_echo "$CPP" >&6; }
5583 ac_preproc_ok=false
5584 for ac_c_preproc_warn_flag in '' yes
5585 do
5586 # Use a header file that comes with gcc, so configuring glibc
5587 # with a fresh cross-compiler works.
5588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5589 # <limits.h> exists even on freestanding compilers.
5590 # On the NeXT, cc -E runs the code through the compiler's parser,
5591 # not just through cpp. "Syntax error" is here to catch this case.
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #ifdef __STDC__
5595 # include <limits.h>
5596 #else
5597 # include <assert.h>
5598 #endif
5599 Syntax error
5600 _ACEOF
5601 if ac_fn_c_try_cpp "$LINENO"; then :
5602
5603 else
5604 # Broken: fails on valid input.
5605 continue
5606 fi
5607 rm -f conftest.err conftest.$ac_ext
5608
5609 # OK, works on sane cases. Now check whether nonexistent headers
5610 # can be detected and how.
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 #include <ac_nonexistent.h>
5614 _ACEOF
5615 if ac_fn_c_try_cpp "$LINENO"; then :
5616 # Broken: success on invalid input.
5617 continue
5618 else
5619 # Passes both tests.
5620 ac_preproc_ok=:
5621 break
5622 fi
5623 rm -f conftest.err conftest.$ac_ext
5624
5625 done
5626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5627 rm -f conftest.err conftest.$ac_ext
5628 if $ac_preproc_ok; then :
5629
5630 else
5631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5633 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5634 See \`config.log' for more details." "$LINENO" 5; }
5635 fi
5636
5637 ac_ext=c
5638 ac_cpp='$CPP $CPPFLAGS'
5639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5642
5643 ac_ext=c
5644 ac_cpp='$CPP $CPPFLAGS'
5645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5648 if test -n "$ac_tool_prefix"; then
5649 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5650 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if test "${ac_cv_prog_CC+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 if test -n "$CC"; then
5657 ac_cv_prog_CC="$CC" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5669 fi
5670 done
5671 done
5672 IFS=$as_save_IFS
5673
5674 fi
5675 fi
5676 CC=$ac_cv_prog_CC
5677 if test -n "$CC"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5679 $as_echo "$CC" >&6; }
5680 else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5683 fi
5684
5685
5686 fi
5687 if test -z "$ac_cv_prog_CC"; then
5688 ac_ct_CC=$CC
5689 # Extract the first word of "gcc", so it can be a program name with args.
5690 set dummy gcc; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 if test -n "$ac_ct_CC"; then
5697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5698 else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5701 do
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_prog_ac_ct_CC="gcc"
5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 break 2
5709 fi
5710 done
5711 done
5712 IFS=$as_save_IFS
5713
5714 fi
5715 fi
5716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5717 if test -n "$ac_ct_CC"; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5719 $as_echo "$ac_ct_CC" >&6; }
5720 else
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5723 fi
5724
5725 if test "x$ac_ct_CC" = x; then
5726 CC=""
5727 else
5728 case $cross_compiling:$ac_tool_warned in
5729 yes:)
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5732 ac_tool_warned=yes ;;
5733 esac
5734 CC=$ac_ct_CC
5735 fi
5736 else
5737 CC="$ac_cv_prog_CC"
5738 fi
5739
5740 if test -z "$CC"; then
5741 if test -n "$ac_tool_prefix"; then
5742 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5743 set dummy ${ac_tool_prefix}cc; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if test "${ac_cv_prog_CC+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 if test -n "$CC"; then
5750 ac_cv_prog_CC="$CC" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5759 ac_cv_prog_CC="${ac_tool_prefix}cc"
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763 done
5764 done
5765 IFS=$as_save_IFS
5766
5767 fi
5768 fi
5769 CC=$ac_cv_prog_CC
5770 if test -n "$CC"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5772 $as_echo "$CC" >&6; }
5773 else
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5776 fi
5777
5778
5779 fi
5780 fi
5781 if test -z "$CC"; then
5782 # Extract the first word of "cc", so it can be a program name with args.
5783 set dummy cc; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if test "${ac_cv_prog_CC+set}" = set; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789 if test -n "$CC"; then
5790 ac_cv_prog_CC="$CC" # Let the user override the test.
5791 else
5792 ac_prog_rejected=no
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796 IFS=$as_save_IFS
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5800 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5801 ac_prog_rejected=yes
5802 continue
5803 fi
5804 ac_cv_prog_CC="cc"
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808 done
5809 done
5810 IFS=$as_save_IFS
5811
5812 if test $ac_prog_rejected = yes; then
5813 # We found a bogon in the path, so make sure we never use it.
5814 set dummy $ac_cv_prog_CC
5815 shift
5816 if test $# != 0; then
5817 # We chose a different compiler from the bogus one.
5818 # However, it has the same basename, so the bogon will be chosen
5819 # first if we set CC to just the basename; use the full file name.
5820 shift
5821 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5822 fi
5823 fi
5824 fi
5825 fi
5826 CC=$ac_cv_prog_CC
5827 if test -n "$CC"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5829 $as_echo "$CC" >&6; }
5830 else
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5833 fi
5834
5835
5836 fi
5837 if test -z "$CC"; then
5838 if test -n "$ac_tool_prefix"; then
5839 for ac_prog in cl.exe
5840 do
5841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if test "${ac_cv_prog_CC+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 if test -n "$CC"; then
5849 ac_cv_prog_CC="$CC" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 CC=$ac_cv_prog_CC
5869 if test -n "$CC"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5871 $as_echo "$CC" >&6; }
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876
5877
5878 test -n "$CC" && break
5879 done
5880 fi
5881 if test -z "$CC"; then
5882 ac_ct_CC=$CC
5883 for ac_prog in cl.exe
5884 do
5885 # Extract the first word of "$ac_prog", so it can be a program name with args.
5886 set dummy $ac_prog; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 if test -n "$ac_ct_CC"; then
5893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_ac_ct_CC="$ac_prog"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 break 2
5905 fi
5906 done
5907 done
5908 IFS=$as_save_IFS
5909
5910 fi
5911 fi
5912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5913 if test -n "$ac_ct_CC"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5915 $as_echo "$ac_ct_CC" >&6; }
5916 else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5919 fi
5920
5921
5922 test -n "$ac_ct_CC" && break
5923 done
5924
5925 if test "x$ac_ct_CC" = x; then
5926 CC=""
5927 else
5928 case $cross_compiling:$ac_tool_warned in
5929 yes:)
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5932 ac_tool_warned=yes ;;
5933 esac
5934 CC=$ac_ct_CC
5935 fi
5936 fi
5937
5938 fi
5939
5940
5941 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5943 as_fn_error "no acceptable C compiler found in \$PATH
5944 See \`config.log' for more details." "$LINENO" 5; }
5945
5946 # Provide some information about the compiler.
5947 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5948 set X $ac_compile
5949 ac_compiler=$2
5950 for ac_option in --version -v -V -qversion; do
5951 { { ac_try="$ac_compiler $ac_option >&5"
5952 case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955 esac
5956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5957 $as_echo "$ac_try_echo"; } >&5
5958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5959 ac_status=$?
5960 if test -s conftest.err; then
5961 sed '10a\
5962 ... rest of stderr output deleted ...
5963 10q' conftest.err >conftest.er1
5964 cat conftest.er1 >&5
5965 fi
5966 rm -f conftest.er1 conftest.err
5967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5968 test $ac_status = 0; }
5969 done
5970
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5972 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5973 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5978
5979 int
5980 main ()
5981 {
5982 #ifndef __GNUC__
5983 choke me
5984 #endif
5985
5986 ;
5987 return 0;
5988 }
5989 _ACEOF
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991 ac_compiler_gnu=yes
5992 else
5993 ac_compiler_gnu=no
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5997
5998 fi
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6000 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6001 if test $ac_compiler_gnu = yes; then
6002 GCC=yes
6003 else
6004 GCC=
6005 fi
6006 ac_test_CFLAGS=${CFLAGS+set}
6007 ac_save_CFLAGS=$CFLAGS
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6009 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6010 if test "${ac_cv_prog_cc_g+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 ac_save_c_werror_flag=$ac_c_werror_flag
6014 ac_c_werror_flag=yes
6015 ac_cv_prog_cc_g=no
6016 CFLAGS="-g"
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019
6020 int
6021 main ()
6022 {
6023
6024 ;
6025 return 0;
6026 }
6027 _ACEOF
6028 if ac_fn_c_try_compile "$LINENO"; then :
6029 ac_cv_prog_cc_g=yes
6030 else
6031 CFLAGS=""
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034
6035 int
6036 main ()
6037 {
6038
6039 ;
6040 return 0;
6041 }
6042 _ACEOF
6043 if ac_fn_c_try_compile "$LINENO"; then :
6044
6045 else
6046 ac_c_werror_flag=$ac_save_c_werror_flag
6047 CFLAGS="-g"
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050
6051 int
6052 main ()
6053 {
6054
6055 ;
6056 return 0;
6057 }
6058 _ACEOF
6059 if ac_fn_c_try_compile "$LINENO"; then :
6060 ac_cv_prog_cc_g=yes
6061 fi
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 fi
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 fi
6066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 ac_c_werror_flag=$ac_save_c_werror_flag
6068 fi
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6070 $as_echo "$ac_cv_prog_cc_g" >&6; }
6071 if test "$ac_test_CFLAGS" = set; then
6072 CFLAGS=$ac_save_CFLAGS
6073 elif test $ac_cv_prog_cc_g = yes; then
6074 if test "$GCC" = yes; then
6075 CFLAGS="-g -O2"
6076 else
6077 CFLAGS="-g"
6078 fi
6079 else
6080 if test "$GCC" = yes; then
6081 CFLAGS="-O2"
6082 else
6083 CFLAGS=
6084 fi
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6087 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6088 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 ac_cv_prog_cc_c89=no
6092 ac_save_CC=$CC
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6095 #include <stdarg.h>
6096 #include <stdio.h>
6097 #include <sys/types.h>
6098 #include <sys/stat.h>
6099 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6100 struct buf { int x; };
6101 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6102 static char *e (p, i)
6103 char **p;
6104 int i;
6105 {
6106 return p[i];
6107 }
6108 static char *f (char * (*g) (char **, int), char **p, ...)
6109 {
6110 char *s;
6111 va_list v;
6112 va_start (v,p);
6113 s = g (p, va_arg (v,int));
6114 va_end (v);
6115 return s;
6116 }
6117
6118 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6119 function prototypes and stuff, but not '\xHH' hex character constants.
6120 These don't provoke an error unfortunately, instead are silently treated
6121 as 'x'. The following induces an error, until -std is added to get
6122 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6123 array size at least. It's necessary to write '\x00'==0 to get something
6124 that's true only with -std. */
6125 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6126
6127 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6128 inside strings and character constants. */
6129 #define FOO(x) 'x'
6130 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6131
6132 int test (int i, double x);
6133 struct s1 {int (*f) (int a);};
6134 struct s2 {int (*f) (double a);};
6135 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6136 int argc;
6137 char **argv;
6138 int
6139 main ()
6140 {
6141 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6142 ;
6143 return 0;
6144 }
6145 _ACEOF
6146 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6147 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6148 do
6149 CC="$ac_save_CC $ac_arg"
6150 if ac_fn_c_try_compile "$LINENO"; then :
6151 ac_cv_prog_cc_c89=$ac_arg
6152 fi
6153 rm -f core conftest.err conftest.$ac_objext
6154 test "x$ac_cv_prog_cc_c89" != "xno" && break
6155 done
6156 rm -f conftest.$ac_ext
6157 CC=$ac_save_CC
6158
6159 fi
6160 # AC_CACHE_VAL
6161 case "x$ac_cv_prog_cc_c89" in
6162 x)
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6164 $as_echo "none needed" >&6; } ;;
6165 xno)
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6167 $as_echo "unsupported" >&6; } ;;
6168 *)
6169 CC="$CC $ac_cv_prog_cc_c89"
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6171 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6172 esac
6173 if test "x$ac_cv_prog_cc_c89" != xno; then :
6174
6175 fi
6176
6177 ac_ext=c
6178 ac_cpp='$CPP $CPPFLAGS'
6179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6182
6183 depcc="$CC" am_compiler_list=
6184
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6186 $as_echo_n "checking dependency style of $depcc... " >&6; }
6187 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6191 # We make a subdir and do the tests there. Otherwise we can end up
6192 # making bogus files that we don't know about and never remove. For
6193 # instance it was reported that on HP-UX the gcc test will end up
6194 # making a dummy file named `D' -- because `-MD' means `put the output
6195 # in D'.
6196 mkdir conftest.dir
6197 # Copy depcomp to subdir because otherwise we won't find it if we're
6198 # using a relative directory.
6199 cp "$am_depcomp" conftest.dir
6200 cd conftest.dir
6201 # We will build objects and dependencies in a subdirectory because
6202 # it helps to detect inapplicable dependency modes. For instance
6203 # both Tru64's cc and ICC support -MD to output dependencies as a
6204 # side effect of compilation, but ICC will put the dependencies in
6205 # the current directory while Tru64 will put them in the object
6206 # directory.
6207 mkdir sub
6208
6209 am_cv_CC_dependencies_compiler_type=none
6210 if test "$am_compiler_list" = ""; then
6211 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6212 fi
6213 am__universal=false
6214 case " $depcc " in #(
6215 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6216 esac
6217
6218 for depmode in $am_compiler_list; do
6219 # Setup a source with many dependencies, because some compilers
6220 # like to wrap large dependency lists on column 80 (with \), and
6221 # we should not choose a depcomp mode which is confused by this.
6222 #
6223 # We need to recreate these files for each test, as the compiler may
6224 # overwrite some of them when testing with obscure command lines.
6225 # This happens at least with the AIX C compiler.
6226 : > sub/conftest.c
6227 for i in 1 2 3 4 5 6; do
6228 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6229 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6230 # Solaris 8's {/usr,}/bin/sh.
6231 touch sub/conftst$i.h
6232 done
6233 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6234
6235 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6236 # mode. It turns out that the SunPro C++ compiler does not properly
6237 # handle `-M -o', and we need to detect this. Also, some Intel
6238 # versions had trouble with output in subdirs
6239 am__obj=sub/conftest.${OBJEXT-o}
6240 am__minus_obj="-o $am__obj"
6241 case $depmode in
6242 gcc)
6243 # This depmode causes a compiler race in universal mode.
6244 test "$am__universal" = false || continue
6245 ;;
6246 nosideeffect)
6247 # after this tag, mechanisms are not by side-effect, so they'll
6248 # only be used when explicitly requested
6249 if test "x$enable_dependency_tracking" = xyes; then
6250 continue
6251 else
6252 break
6253 fi
6254 ;;
6255 msvisualcpp | msvcmsys)
6256 # This compiler won't grok `-c -o', but also, the minuso test has
6257 # not run yet. These depmodes are late enough in the game, and
6258 # so weak that their functioning should not be impacted.
6259 am__obj=conftest.${OBJEXT-o}
6260 am__minus_obj=
6261 ;;
6262 none) break ;;
6263 esac
6264 if depmode=$depmode \
6265 source=sub/conftest.c object=$am__obj \
6266 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6267 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6268 >/dev/null 2>conftest.err &&
6269 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6270 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6271 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6272 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6273 # icc doesn't choke on unknown options, it will just issue warnings
6274 # or remarks (even with -Werror). So we grep stderr for any message
6275 # that says an option was ignored or not supported.
6276 # When given -MP, icc 7.0 and 7.1 complain thusly:
6277 # icc: Command line warning: ignoring option '-M'; no argument required
6278 # The diagnosis changed in icc 8.0:
6279 # icc: Command line remark: option '-MP' not supported
6280 if (grep 'ignoring option' conftest.err ||
6281 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6282 am_cv_CC_dependencies_compiler_type=$depmode
6283 break
6284 fi
6285 fi
6286 done
6287
6288 cd ..
6289 rm -rf conftest.dir
6290 else
6291 am_cv_CC_dependencies_compiler_type=none
6292 fi
6293
6294 fi
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6296 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6297 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6298
6299 if
6300 test "x$enable_dependency_tracking" != xno \
6301 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6302 am__fastdepCC_TRUE=
6303 am__fastdepCC_FALSE='#'
6304 else
6305 am__fastdepCC_TRUE='#'
6306 am__fastdepCC_FALSE=
6307 fi
6308
6309
6310
6311 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6312
6313 if test "x$CC" != xcc; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6315 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6316 else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6318 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6319 fi
6320 set dummy $CC; ac_cc=`$as_echo "$2" |
6321 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6322 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327
6328 int
6329 main ()
6330 {
6331
6332 ;
6333 return 0;
6334 }
6335 _ACEOF
6336 # Make sure it works both with $CC and with simple cc.
6337 # We do the test twice because some compilers refuse to overwrite an
6338 # existing .o file with -o, though they will create one.
6339 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6340 rm -f conftest2.*
6341 if { { case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344 esac
6345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6346 $as_echo "$ac_try_echo"; } >&5
6347 (eval "$ac_try") 2>&5
6348 ac_status=$?
6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350 test $ac_status = 0; } &&
6351 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354 esac
6355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6356 $as_echo "$ac_try_echo"; } >&5
6357 (eval "$ac_try") 2>&5
6358 ac_status=$?
6359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6360 test $ac_status = 0; };
6361 then
6362 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6363 if test "x$CC" != xcc; then
6364 # Test first that cc exists at all.
6365 if { ac_try='cc -c conftest.$ac_ext >&5'
6366 { { case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369 esac
6370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6371 $as_echo "$ac_try_echo"; } >&5
6372 (eval "$ac_try") 2>&5
6373 ac_status=$?
6374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375 test $ac_status = 0; }; }; then
6376 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6377 rm -f conftest2.*
6378 if { { case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381 esac
6382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6383 $as_echo "$ac_try_echo"; } >&5
6384 (eval "$ac_try") 2>&5
6385 ac_status=$?
6386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6387 test $ac_status = 0; } &&
6388 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391 esac
6392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6393 $as_echo "$ac_try_echo"; } >&5
6394 (eval "$ac_try") 2>&5
6395 ac_status=$?
6396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6397 test $ac_status = 0; };
6398 then
6399 # cc works too.
6400 :
6401 else
6402 # cc exists but doesn't like -o.
6403 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6404 fi
6405 fi
6406 fi
6407 else
6408 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6409 fi
6410 rm -f core conftest*
6411
6412 fi
6413 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6415 $as_echo "yes" >&6; }
6416 else
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6419
6420 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6421
6422 fi
6423
6424 # FIXME: we rely on the cache variable name because
6425 # there is no other way.
6426 set dummy $CC
6427 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6428 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6429 if test "$am_t" != yes; then
6430 # Losing compiler, so override with the script.
6431 # FIXME: It is wrong to rewrite CC.
6432 # But if we don't then we get into trouble of one sort or another.
6433 # A longer-term fix would be to have automake use am__CC in this case,
6434 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6435 CC="$am_aux_dir/compile $CC"
6436 fi
6437
6438
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6440 $as_echo_n "checking for function prototypes... " >&6; }
6441 if test "$ac_cv_prog_cc_c89" != no; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6443 $as_echo "yes" >&6; }
6444
6445 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6446
6447
6448 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6449
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455
6456 if test "$ac_cv_prog_cc_stdc" != no; then
6457 U= ANSI2KNR=
6458 else
6459 U=_ ANSI2KNR=./ansi2knr
6460 fi
6461 # Ensure some checks needed by ansi2knr itself.
6462
6463 for ac_header in string.h
6464 do :
6465 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
6466 if test "x$ac_cv_header_string_h" = x""yes; then :
6467 cat >>confdefs.h <<_ACEOF
6468 #define HAVE_STRING_H 1
6469 _ACEOF
6470
6471 fi
6472
6473 done
6474
6475
6476 if test -n "$ac_tool_prefix"; then
6477 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6478 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484 if test -n "$RANLIB"; then
6485 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502 fi
6503 fi
6504 RANLIB=$ac_cv_prog_RANLIB
6505 if test -n "$RANLIB"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6507 $as_echo "$RANLIB" >&6; }
6508 else
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6512
6513
6514 fi
6515 if test -z "$ac_cv_prog_RANLIB"; then
6516 ac_ct_RANLIB=$RANLIB
6517 # Extract the first word of "ranlib", so it can be a program name with args.
6518 set dummy ranlib; ac_word=$2
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 if test -n "$ac_ct_RANLIB"; then
6525 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534 ac_cv_prog_ac_ct_RANLIB="ranlib"
6535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6537 fi
6538 done
6539 done
6540 IFS=$as_save_IFS
6541
6542 fi
6543 fi
6544 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6545 if test -n "$ac_ct_RANLIB"; then
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6547 $as_echo "$ac_ct_RANLIB" >&6; }
6548 else
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; }
6551 fi
6552
6553 if test "x$ac_ct_RANLIB" = x; then
6554 RANLIB=":"
6555 else
6556 case $cross_compiling:$ac_tool_warned in
6557 yes:)
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6560 ac_tool_warned=yes ;;
6561 esac
6562 RANLIB=$ac_ct_RANLIB
6563 fi
6564 else
6565 RANLIB="$ac_cv_prog_RANLIB"
6566 fi
6567
6568
6569
6570
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6572 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6573 set x ${MAKE-make}
6574 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6575 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 cat >conftest.make <<\_ACEOF
6579 SHELL = /bin/sh
6580 all:
6581 @echo '@@@%%%=$(MAKE)=@@@%%%'
6582 _ACEOF
6583 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6584 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6585 *@@@%%%=?*=@@@%%%*)
6586 eval ac_cv_prog_make_${ac_make}_set=yes;;
6587 *)
6588 eval ac_cv_prog_make_${ac_make}_set=no;;
6589 esac
6590 rm -f conftest.make
6591 fi
6592 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6594 $as_echo "yes" >&6; }
6595 SET_MAKE=
6596 else
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6599 SET_MAKE="MAKE=${MAKE-make}"
6600 fi
6601
6602
6603
6604
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6606 $as_echo_n "checking whether NLS is requested... " >&6; }
6607 # Check whether --enable-nls was given.
6608 if test "${enable_nls+set}" = set; then :
6609 enableval=$enable_nls; USE_NLS=$enableval
6610 else
6611 USE_NLS=yes
6612 fi
6613
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6615 $as_echo "$USE_NLS" >&6; }
6616
6617
6618
6619
6620 GETTEXT_MACRO_VERSION=0.18
6621
6622
6623
6624
6625 # Prepare PATH_SEPARATOR.
6626 # The user is always right.
6627 if test "${PATH_SEPARATOR+set}" != set; then
6628 echo "#! /bin/sh" >conf$$.sh
6629 echo "exit 0" >>conf$$.sh
6630 chmod +x conf$$.sh
6631 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6632 PATH_SEPARATOR=';'
6633 else
6634 PATH_SEPARATOR=:
6635 fi
6636 rm -f conf$$.sh
6637 fi
6638
6639 # Find out how to test for executable files. Don't use a zero-byte file,
6640 # as systems may use methods other than mode bits to determine executability.
6641 cat >conf$$.file <<_ASEOF
6642 #! /bin/sh
6643 exit 0
6644 _ASEOF
6645 chmod +x conf$$.file
6646 if test -x conf$$.file >/dev/null 2>&1; then
6647 ac_executable_p="test -x"
6648 else
6649 ac_executable_p="test -f"
6650 fi
6651 rm -f conf$$.file
6652
6653 # Extract the first word of "msgfmt", so it can be a program name with args.
6654 set dummy msgfmt; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if test "${ac_cv_path_MSGFMT+set}" = set; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 case "$MSGFMT" in
6661 [\\/]* | ?:[\\/]*)
6662 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6663 ;;
6664 *)
6665 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6666 for ac_dir in $PATH; do
6667 IFS="$ac_save_IFS"
6668 test -z "$ac_dir" && ac_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6671 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6672 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6673 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6674 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6675 break 2
6676 fi
6677 fi
6678 done
6679 done
6680 IFS="$ac_save_IFS"
6681 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6682 ;;
6683 esac
6684 fi
6685 MSGFMT="$ac_cv_path_MSGFMT"
6686 if test "$MSGFMT" != ":"; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6688 $as_echo "$MSGFMT" >&6; }
6689 else
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 $as_echo "no" >&6; }
6692 fi
6693
6694 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6695 set dummy gmsgfmt; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
6699 $as_echo_n "(cached) " >&6
6700 else
6701 case $GMSGFMT in
6702 [\\/]* | ?:[\\/]*)
6703 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6704 ;;
6705 *)
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717 done
6718 done
6719 IFS=$as_save_IFS
6720
6721 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6722 ;;
6723 esac
6724 fi
6725 GMSGFMT=$ac_cv_path_GMSGFMT
6726 if test -n "$GMSGFMT"; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6728 $as_echo "$GMSGFMT" >&6; }
6729 else
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6732 fi
6733
6734
6735
6736 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6737 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6738 *) MSGFMT_015=$MSGFMT ;;
6739 esac
6740
6741 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6742 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6743 *) GMSGFMT_015=$GMSGFMT ;;
6744 esac
6745
6746
6747
6748 # Prepare PATH_SEPARATOR.
6749 # The user is always right.
6750 if test "${PATH_SEPARATOR+set}" != set; then
6751 echo "#! /bin/sh" >conf$$.sh
6752 echo "exit 0" >>conf$$.sh
6753 chmod +x conf$$.sh
6754 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6755 PATH_SEPARATOR=';'
6756 else
6757 PATH_SEPARATOR=:
6758 fi
6759 rm -f conf$$.sh
6760 fi
6761
6762 # Find out how to test for executable files. Don't use a zero-byte file,
6763 # as systems may use methods other than mode bits to determine executability.
6764 cat >conf$$.file <<_ASEOF
6765 #! /bin/sh
6766 exit 0
6767 _ASEOF
6768 chmod +x conf$$.file
6769 if test -x conf$$.file >/dev/null 2>&1; then
6770 ac_executable_p="test -x"
6771 else
6772 ac_executable_p="test -f"
6773 fi
6774 rm -f conf$$.file
6775
6776 # Extract the first word of "xgettext", so it can be a program name with args.
6777 set dummy xgettext; ac_word=$2
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 $as_echo_n "checking for $ac_word... " >&6; }
6780 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 case "$XGETTEXT" in
6784 [\\/]* | ?:[\\/]*)
6785 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6786 ;;
6787 *)
6788 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6789 for ac_dir in $PATH; do
6790 IFS="$ac_save_IFS"
6791 test -z "$ac_dir" && ac_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6794 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6795 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6796 (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
6797 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6798 break 2
6799 fi
6800 fi
6801 done
6802 done
6803 IFS="$ac_save_IFS"
6804 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6805 ;;
6806 esac
6807 fi
6808 XGETTEXT="$ac_cv_path_XGETTEXT"
6809 if test "$XGETTEXT" != ":"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6811 $as_echo "$XGETTEXT" >&6; }
6812 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817 rm -f messages.po
6818
6819 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6820 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6821 *) XGETTEXT_015=$XGETTEXT ;;
6822 esac
6823
6824
6825
6826 # Prepare PATH_SEPARATOR.
6827 # The user is always right.
6828 if test "${PATH_SEPARATOR+set}" != set; then
6829 echo "#! /bin/sh" >conf$$.sh
6830 echo "exit 0" >>conf$$.sh
6831 chmod +x conf$$.sh
6832 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6833 PATH_SEPARATOR=';'
6834 else
6835 PATH_SEPARATOR=:
6836 fi
6837 rm -f conf$$.sh
6838 fi
6839
6840 # Find out how to test for executable files. Don't use a zero-byte file,
6841 # as systems may use methods other than mode bits to determine executability.
6842 cat >conf$$.file <<_ASEOF
6843 #! /bin/sh
6844 exit 0
6845 _ASEOF
6846 chmod +x conf$$.file
6847 if test -x conf$$.file >/dev/null 2>&1; then
6848 ac_executable_p="test -x"
6849 else
6850 ac_executable_p="test -f"
6851 fi
6852 rm -f conf$$.file
6853
6854 # Extract the first word of "msgmerge", so it can be a program name with args.
6855 set dummy msgmerge; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 case "$MSGMERGE" in
6862 [\\/]* | ?:[\\/]*)
6863 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6864 ;;
6865 *)
6866 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6867 for ac_dir in $PATH; do
6868 IFS="$ac_save_IFS"
6869 test -z "$ac_dir" && ac_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6872 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6873 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6874 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6875 break 2
6876 fi
6877 fi
6878 done
6879 done
6880 IFS="$ac_save_IFS"
6881 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6882 ;;
6883 esac
6884 fi
6885 MSGMERGE="$ac_cv_path_MSGMERGE"
6886 if test "$MSGMERGE" != ":"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6888 $as_echo "$MSGMERGE" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6892 fi
6893
6894
6895 test -n "$localedir" || localedir='${datadir}/locale'
6896
6897
6898 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6899
6900
6901 ac_config_commands="$ac_config_commands po-directories"
6902
6903
6904
6905 if test "X$prefix" = "XNONE"; then
6906 acl_final_prefix="$ac_default_prefix"
6907 else
6908 acl_final_prefix="$prefix"
6909 fi
6910 if test "X$exec_prefix" = "XNONE"; then
6911 acl_final_exec_prefix='${prefix}'
6912 else
6913 acl_final_exec_prefix="$exec_prefix"
6914 fi
6915 acl_save_prefix="$prefix"
6916 prefix="$acl_final_prefix"
6917 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6918 prefix="$acl_save_prefix"
6919
6920 # Make sure we can run config.sub.
6921 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6922 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6923
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6925 $as_echo_n "checking build system type... " >&6; }
6926 if test "${ac_cv_build+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 ac_build_alias=$build_alias
6930 test "x$ac_build_alias" = x &&
6931 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6932 test "x$ac_build_alias" = x &&
6933 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6934 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6935 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6936
6937 fi
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6939 $as_echo "$ac_cv_build" >&6; }
6940 case $ac_cv_build in
6941 *-*-*) ;;
6942 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6943 esac
6944 build=$ac_cv_build
6945 ac_save_IFS=$IFS; IFS='-'
6946 set x $ac_cv_build
6947 shift
6948 build_cpu=$1
6949 build_vendor=$2
6950 shift; shift
6951 # Remember, the first character of IFS is used to create $*,
6952 # except with old shells:
6953 build_os=$*
6954 IFS=$ac_save_IFS
6955 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6956
6957
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6959 $as_echo_n "checking host system type... " >&6; }
6960 if test "${ac_cv_host+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test "x$host_alias" = x; then
6964 ac_cv_host=$ac_cv_build
6965 else
6966 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6967 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6968 fi
6969
6970 fi
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6972 $as_echo "$ac_cv_host" >&6; }
6973 case $ac_cv_host in
6974 *-*-*) ;;
6975 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6976 esac
6977 host=$ac_cv_host
6978 ac_save_IFS=$IFS; IFS='-'
6979 set x $ac_cv_host
6980 shift
6981 host_cpu=$1
6982 host_vendor=$2
6983 shift; shift
6984 # Remember, the first character of IFS is used to create $*,
6985 # except with old shells:
6986 host_os=$*
6987 IFS=$ac_save_IFS
6988 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6989
6990
6991
6992 # Check whether --with-gnu-ld was given.
6993 if test "${with_gnu_ld+set}" = set; then :
6994 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6995 else
6996 with_gnu_ld=no
6997 fi
6998
6999 # Prepare PATH_SEPARATOR.
7000 # The user is always right.
7001 if test "${PATH_SEPARATOR+set}" != set; then
7002 echo "#! /bin/sh" >conf$$.sh
7003 echo "exit 0" >>conf$$.sh
7004 chmod +x conf$$.sh
7005 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7006 PATH_SEPARATOR=';'
7007 else
7008 PATH_SEPARATOR=:
7009 fi
7010 rm -f conf$$.sh
7011 fi
7012 ac_prog=ld
7013 if test "$GCC" = yes; then
7014 # Check if gcc -print-prog-name=ld gives a path.
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7016 $as_echo_n "checking for ld used by GCC... " >&6; }
7017 case $host in
7018 *-*-mingw*)
7019 # gcc leaves a trailing carriage return which upsets mingw
7020 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7021 *)
7022 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7023 esac
7024 case $ac_prog in
7025 # Accept absolute paths.
7026 [\\/]* | [A-Za-z]:[\\/]*)
7027 re_direlt='/[^/][^/]*/\.\./'
7028 # Canonicalize the path of ld
7029 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7030 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7031 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7032 done
7033 test -z "$LD" && LD="$ac_prog"
7034 ;;
7035 "")
7036 # If it fails, then pretend we aren't using GCC.
7037 ac_prog=ld
7038 ;;
7039 *)
7040 # If it is relative, then search for the first ld in PATH.
7041 with_gnu_ld=unknown
7042 ;;
7043 esac
7044 elif test "$with_gnu_ld" = yes; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7046 $as_echo_n "checking for GNU ld... " >&6; }
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7049 $as_echo_n "checking for non-GNU ld... " >&6; }
7050 fi
7051 if test "${acl_cv_path_LD+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 if test -z "$LD"; then
7055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7056 for ac_dir in $PATH; do
7057 test -z "$ac_dir" && ac_dir=.
7058 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7059 acl_cv_path_LD="$ac_dir/$ac_prog"
7060 # Check to see if the program is GNU ld. I'd rather use --version,
7061 # but apparently some GNU ld's only accept -v.
7062 # Break only if it was the GNU/non-GNU ld that we prefer.
7063 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7064 *GNU* | *'with BFD'*)
7065 test "$with_gnu_ld" != no && break ;;
7066 *)
7067 test "$with_gnu_ld" != yes && break ;;
7068 esac
7069 fi
7070 done
7071 IFS="$ac_save_ifs"
7072 else
7073 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7074 fi
7075 fi
7076
7077 LD="$acl_cv_path_LD"
7078 if test -n "$LD"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7080 $as_echo "$LD" >&6; }
7081 else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084 fi
7085 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7087 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7088 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7092 case `$LD -v 2>&1 </dev/null` in
7093 *GNU* | *'with BFD'*)
7094 acl_cv_prog_gnu_ld=yes ;;
7095 *)
7096 acl_cv_prog_gnu_ld=no ;;
7097 esac
7098 fi
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7100 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7101 with_gnu_ld=$acl_cv_prog_gnu_ld
7102
7103
7104
7105
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7107 $as_echo_n "checking for shared library run path origin... " >&6; }
7108 if test "${acl_cv_rpath+set}" = set; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111
7112 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7113 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7114 . ./conftest.sh
7115 rm -f ./conftest.sh
7116 acl_cv_rpath=done
7117
7118 fi
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7120 $as_echo "$acl_cv_rpath" >&6; }
7121 wl="$acl_cv_wl"
7122 acl_libext="$acl_cv_libext"
7123 acl_shlibext="$acl_cv_shlibext"
7124 acl_libname_spec="$acl_cv_libname_spec"
7125 acl_library_names_spec="$acl_cv_library_names_spec"
7126 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7127 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7128 acl_hardcode_direct="$acl_cv_hardcode_direct"
7129 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7130 # Check whether --enable-rpath was given.
7131 if test "${enable_rpath+set}" = set; then :
7132 enableval=$enable_rpath; :
7133 else
7134 enable_rpath=yes
7135 fi
7136
7137
7138
7139
7140 acl_libdirstem=lib
7141 acl_libdirstem2=
7142 case "$host_os" in
7143 solaris*)
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7145 $as_echo_n "checking for 64-bit host... " >&6; }
7146 if test "${gl_cv_solaris_64bit+set}" = set; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151
7152 #ifdef _LP64
7153 sixtyfour bits
7154 #endif
7155
7156 _ACEOF
7157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7158 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7159 gl_cv_solaris_64bit=yes
7160 else
7161 gl_cv_solaris_64bit=no
7162 fi
7163 rm -f conftest*
7164
7165
7166 fi
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7168 $as_echo "$gl_cv_solaris_64bit" >&6; }
7169 if test $gl_cv_solaris_64bit = yes; then
7170 acl_libdirstem=lib/64
7171 case "$host_cpu" in
7172 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7173 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7174 esac
7175 fi
7176 ;;
7177 *)
7178 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7179 if test -n "$searchpath"; then
7180 acl_save_IFS="${IFS= }"; IFS=":"
7181 for searchdir in $searchpath; do
7182 if test -d "$searchdir"; then
7183 case "$searchdir" in
7184 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7185 */../ | */.. )
7186 # Better ignore directories of this form. They are misleading.
7187 ;;
7188 *) searchdir=`cd "$searchdir" && pwd`
7189 case "$searchdir" in
7190 */lib64 ) acl_libdirstem=lib64 ;;
7191 esac ;;
7192 esac
7193 fi
7194 done
7195 IFS="$acl_save_IFS"
7196 fi
7197 ;;
7198 esac
7199 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212 use_additional=yes
7213
7214 acl_save_prefix="$prefix"
7215 prefix="$acl_final_prefix"
7216 acl_save_exec_prefix="$exec_prefix"
7217 exec_prefix="$acl_final_exec_prefix"
7218
7219 eval additional_includedir=\"$includedir\"
7220 eval additional_libdir=\"$libdir\"
7221
7222 exec_prefix="$acl_save_exec_prefix"
7223 prefix="$acl_save_prefix"
7224
7225
7226 # Check whether --with-libiconv-prefix was given.
7227 if test "${with_libiconv_prefix+set}" = set; then :
7228 withval=$with_libiconv_prefix;
7229 if test "X$withval" = "Xno"; then
7230 use_additional=no
7231 else
7232 if test "X$withval" = "X"; then
7233
7234 acl_save_prefix="$prefix"
7235 prefix="$acl_final_prefix"
7236 acl_save_exec_prefix="$exec_prefix"
7237 exec_prefix="$acl_final_exec_prefix"
7238
7239 eval additional_includedir=\"$includedir\"
7240 eval additional_libdir=\"$libdir\"
7241
7242 exec_prefix="$acl_save_exec_prefix"
7243 prefix="$acl_save_prefix"
7244
7245 else
7246 additional_includedir="$withval/include"
7247 additional_libdir="$withval/$acl_libdirstem"
7248 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7249 && ! test -d "$withval/$acl_libdirstem"; then
7250 additional_libdir="$withval/$acl_libdirstem2"
7251 fi
7252 fi
7253 fi
7254
7255 fi
7256
7257 LIBICONV=
7258 LTLIBICONV=
7259 INCICONV=
7260 LIBICONV_PREFIX=
7261 HAVE_LIBICONV=
7262 rpathdirs=
7263 ltrpathdirs=
7264 names_already_handled=
7265 names_next_round='iconv '
7266 while test -n "$names_next_round"; do
7267 names_this_round="$names_next_round"
7268 names_next_round=
7269 for name in $names_this_round; do
7270 already_handled=
7271 for n in $names_already_handled; do
7272 if test "$n" = "$name"; then
7273 already_handled=yes
7274 break
7275 fi
7276 done
7277 if test -z "$already_handled"; then
7278 names_already_handled="$names_already_handled $name"
7279 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7280 eval value=\"\$HAVE_LIB$uppername\"
7281 if test -n "$value"; then
7282 if test "$value" = yes; then
7283 eval value=\"\$LIB$uppername\"
7284 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7285 eval value=\"\$LTLIB$uppername\"
7286 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7287 else
7288 :
7289 fi
7290 else
7291 found_dir=
7292 found_la=
7293 found_so=
7294 found_a=
7295 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7296 if test -n "$acl_shlibext"; then
7297 shrext=".$acl_shlibext" # typically: shrext=.so
7298 else
7299 shrext=
7300 fi
7301 if test $use_additional = yes; then
7302 dir="$additional_libdir"
7303 if test -n "$acl_shlibext"; then
7304 if test -f "$dir/$libname$shrext"; then
7305 found_dir="$dir"
7306 found_so="$dir/$libname$shrext"
7307 else
7308 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7309 ver=`(cd "$dir" && \
7310 for f in "$libname$shrext".*; do echo "$f"; done \
7311 | sed -e "s,^$libname$shrext\\\\.,," \
7312 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7313 | sed 1q ) 2>/dev/null`
7314 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7315 found_dir="$dir"
7316 found_so="$dir/$libname$shrext.$ver"
7317 fi
7318 else
7319 eval library_names=\"$acl_library_names_spec\"
7320 for f in $library_names; do
7321 if test -f "$dir/$f"; then
7322 found_dir="$dir"
7323 found_so="$dir/$f"
7324 break
7325 fi
7326 done
7327 fi
7328 fi
7329 fi
7330 if test "X$found_dir" = "X"; then
7331 if test -f "$dir/$libname.$acl_libext"; then
7332 found_dir="$dir"
7333 found_a="$dir/$libname.$acl_libext"
7334 fi
7335 fi
7336 if test "X$found_dir" != "X"; then
7337 if test -f "$dir/$libname.la"; then
7338 found_la="$dir/$libname.la"
7339 fi
7340 fi
7341 fi
7342 if test "X$found_dir" = "X"; then
7343 for x in $LDFLAGS $LTLIBICONV; do
7344
7345 acl_save_prefix="$prefix"
7346 prefix="$acl_final_prefix"
7347 acl_save_exec_prefix="$exec_prefix"
7348 exec_prefix="$acl_final_exec_prefix"
7349 eval x=\"$x\"
7350 exec_prefix="$acl_save_exec_prefix"
7351 prefix="$acl_save_prefix"
7352
7353 case "$x" in
7354 -L*)
7355 dir=`echo "X$x" | sed -e 's/^X-L//'`
7356 if test -n "$acl_shlibext"; then
7357 if test -f "$dir/$libname$shrext"; then
7358 found_dir="$dir"
7359 found_so="$dir/$libname$shrext"
7360 else
7361 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7362 ver=`(cd "$dir" && \
7363 for f in "$libname$shrext".*; do echo "$f"; done \
7364 | sed -e "s,^$libname$shrext\\\\.,," \
7365 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7366 | sed 1q ) 2>/dev/null`
7367 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7368 found_dir="$dir"
7369 found_so="$dir/$libname$shrext.$ver"
7370 fi
7371 else
7372 eval library_names=\"$acl_library_names_spec\"
7373 for f in $library_names; do
7374 if test -f "$dir/$f"; then
7375 found_dir="$dir"
7376 found_so="$dir/$f"
7377 break
7378 fi
7379 done
7380 fi
7381 fi
7382 fi
7383 if test "X$found_dir" = "X"; then
7384 if test -f "$dir/$libname.$acl_libext"; then
7385 found_dir="$dir"
7386 found_a="$dir/$libname.$acl_libext"
7387 fi
7388 fi
7389 if test "X$found_dir" != "X"; then
7390 if test -f "$dir/$libname.la"; then
7391 found_la="$dir/$libname.la"
7392 fi
7393 fi
7394 ;;
7395 esac
7396 if test "X$found_dir" != "X"; then
7397 break
7398 fi
7399 done
7400 fi
7401 if test "X$found_dir" != "X"; then
7402 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7403 if test "X$found_so" != "X"; then
7404 if test "$enable_rpath" = no \
7405 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7406 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7407 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7408 else
7409 haveit=
7410 for x in $ltrpathdirs; do
7411 if test "X$x" = "X$found_dir"; then
7412 haveit=yes
7413 break
7414 fi
7415 done
7416 if test -z "$haveit"; then
7417 ltrpathdirs="$ltrpathdirs $found_dir"
7418 fi
7419 if test "$acl_hardcode_direct" = yes; then
7420 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7421 else
7422 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7423 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7424 haveit=
7425 for x in $rpathdirs; do
7426 if test "X$x" = "X$found_dir"; then
7427 haveit=yes
7428 break
7429 fi
7430 done
7431 if test -z "$haveit"; then
7432 rpathdirs="$rpathdirs $found_dir"
7433 fi
7434 else
7435 haveit=
7436 for x in $LDFLAGS $LIBICONV; do
7437
7438 acl_save_prefix="$prefix"
7439 prefix="$acl_final_prefix"
7440 acl_save_exec_prefix="$exec_prefix"
7441 exec_prefix="$acl_final_exec_prefix"
7442 eval x=\"$x\"
7443 exec_prefix="$acl_save_exec_prefix"
7444 prefix="$acl_save_prefix"
7445
7446 if test "X$x" = "X-L$found_dir"; then
7447 haveit=yes
7448 break
7449 fi
7450 done
7451 if test -z "$haveit"; then
7452 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7453 fi
7454 if test "$acl_hardcode_minus_L" != no; then
7455 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7456 else
7457 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7458 fi
7459 fi
7460 fi
7461 fi
7462 else
7463 if test "X$found_a" != "X"; then
7464 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7465 else
7466 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7467 fi
7468 fi
7469 additional_includedir=
7470 case "$found_dir" in
7471 */$acl_libdirstem | */$acl_libdirstem/)
7472 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7473 if test "$name" = 'iconv'; then
7474 LIBICONV_PREFIX="$basedir"
7475 fi
7476 additional_includedir="$basedir/include"
7477 ;;
7478 */$acl_libdirstem2 | */$acl_libdirstem2/)
7479 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7480 if test "$name" = 'iconv'; then
7481 LIBICONV_PREFIX="$basedir"
7482 fi
7483 additional_includedir="$basedir/include"
7484 ;;
7485 esac
7486 if test "X$additional_includedir" != "X"; then
7487 if test "X$additional_includedir" != "X/usr/include"; then
7488 haveit=
7489 if test "X$additional_includedir" = "X/usr/local/include"; then
7490 if test -n "$GCC"; then
7491 case $host_os in
7492 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7493 esac
7494 fi
7495 fi
7496 if test -z "$haveit"; then
7497 for x in $CPPFLAGS $INCICONV; do
7498
7499 acl_save_prefix="$prefix"
7500 prefix="$acl_final_prefix"
7501 acl_save_exec_prefix="$exec_prefix"
7502 exec_prefix="$acl_final_exec_prefix"
7503 eval x=\"$x\"
7504 exec_prefix="$acl_save_exec_prefix"
7505 prefix="$acl_save_prefix"
7506
7507 if test "X$x" = "X-I$additional_includedir"; then
7508 haveit=yes
7509 break
7510 fi
7511 done
7512 if test -z "$haveit"; then
7513 if test -d "$additional_includedir"; then
7514 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7515 fi
7516 fi
7517 fi
7518 fi
7519 fi
7520 if test -n "$found_la"; then
7521 save_libdir="$libdir"
7522 case "$found_la" in
7523 */* | *\\*) . "$found_la" ;;
7524 *) . "./$found_la" ;;
7525 esac
7526 libdir="$save_libdir"
7527 for dep in $dependency_libs; do
7528 case "$dep" in
7529 -L*)
7530 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7531 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7532 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7533 haveit=
7534 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7535 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7536 if test -n "$GCC"; then
7537 case $host_os in
7538 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7539 esac
7540 fi
7541 fi
7542 if test -z "$haveit"; then
7543 haveit=
7544 for x in $LDFLAGS $LIBICONV; do
7545
7546 acl_save_prefix="$prefix"
7547 prefix="$acl_final_prefix"
7548 acl_save_exec_prefix="$exec_prefix"
7549 exec_prefix="$acl_final_exec_prefix"
7550 eval x=\"$x\"
7551 exec_prefix="$acl_save_exec_prefix"
7552 prefix="$acl_save_prefix"
7553
7554 if test "X$x" = "X-L$additional_libdir"; then
7555 haveit=yes
7556 break
7557 fi
7558 done
7559 if test -z "$haveit"; then
7560 if test -d "$additional_libdir"; then
7561 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7562 fi
7563 fi
7564 haveit=
7565 for x in $LDFLAGS $LTLIBICONV; do
7566
7567 acl_save_prefix="$prefix"
7568 prefix="$acl_final_prefix"
7569 acl_save_exec_prefix="$exec_prefix"
7570 exec_prefix="$acl_final_exec_prefix"
7571 eval x=\"$x\"
7572 exec_prefix="$acl_save_exec_prefix"
7573 prefix="$acl_save_prefix"
7574
7575 if test "X$x" = "X-L$additional_libdir"; then
7576 haveit=yes
7577 break
7578 fi
7579 done
7580 if test -z "$haveit"; then
7581 if test -d "$additional_libdir"; then
7582 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7583 fi
7584 fi
7585 fi
7586 fi
7587 ;;
7588 -R*)
7589 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7590 if test "$enable_rpath" != no; then
7591 haveit=
7592 for x in $rpathdirs; do
7593 if test "X$x" = "X$dir"; then
7594 haveit=yes
7595 break
7596 fi
7597 done
7598 if test -z "$haveit"; then
7599 rpathdirs="$rpathdirs $dir"
7600 fi
7601 haveit=
7602 for x in $ltrpathdirs; do
7603 if test "X$x" = "X$dir"; then
7604 haveit=yes
7605 break
7606 fi
7607 done
7608 if test -z "$haveit"; then
7609 ltrpathdirs="$ltrpathdirs $dir"
7610 fi
7611 fi
7612 ;;
7613 -l*)
7614 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7615 ;;
7616 *.la)
7617 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7618 ;;
7619 *)
7620 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7621 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7622 ;;
7623 esac
7624 done
7625 fi
7626 else
7627 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7628 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7629 fi
7630 fi
7631 fi
7632 done
7633 done
7634 if test "X$rpathdirs" != "X"; then
7635 if test -n "$acl_hardcode_libdir_separator"; then
7636 alldirs=
7637 for found_dir in $rpathdirs; do
7638 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7639 done
7640 acl_save_libdir="$libdir"
7641 libdir="$alldirs"
7642 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7643 libdir="$acl_save_libdir"
7644 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7645 else
7646 for found_dir in $rpathdirs; do
7647 acl_save_libdir="$libdir"
7648 libdir="$found_dir"
7649 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7650 libdir="$acl_save_libdir"
7651 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7652 done
7653 fi
7654 fi
7655 if test "X$ltrpathdirs" != "X"; then
7656 for found_dir in $ltrpathdirs; do
7657 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7658 done
7659 fi
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694 LIBINTL=
7695 LTLIBINTL=
7696 POSUB=
7697
7698 case " $gt_needs " in
7699 *" need-formatstring-macros "*) gt_api_version=3 ;;
7700 *" need-ngettext "*) gt_api_version=2 ;;
7701 *) gt_api_version=1 ;;
7702 esac
7703 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7704 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7705
7706 if test "$USE_NLS" = "yes"; then
7707 gt_use_preinstalled_gnugettext=no
7708
7709
7710 if test $gt_api_version -ge 3; then
7711 gt_revision_test_code='
7712 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7713 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7714 #endif
7715 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7716 '
7717 else
7718 gt_revision_test_code=
7719 fi
7720 if test $gt_api_version -ge 2; then
7721 gt_expression_test_code=' + * ngettext ("", "", 0)'
7722 else
7723 gt_expression_test_code=
7724 fi
7725
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7727 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7728 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733 #include <libintl.h>
7734 $gt_revision_test_code
7735 extern int _nl_msg_cat_cntr;
7736 extern int *_nl_domain_bindings;
7737 int
7738 main ()
7739 {
7740 bindtextdomain ("", "");
7741 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7742 ;
7743 return 0;
7744 }
7745 _ACEOF
7746 if ac_fn_c_try_link "$LINENO"; then :
7747 eval "$gt_func_gnugettext_libc=yes"
7748 else
7749 eval "$gt_func_gnugettext_libc=no"
7750 fi
7751 rm -f core conftest.err conftest.$ac_objext \
7752 conftest$ac_exeext conftest.$ac_ext
7753 fi
7754 eval ac_res=\$$gt_func_gnugettext_libc
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7756 $as_echo "$ac_res" >&6; }
7757
7758 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7759
7760
7761
7762
7763
7764 am_save_CPPFLAGS="$CPPFLAGS"
7765
7766 for element in $INCICONV; do
7767 haveit=
7768 for x in $CPPFLAGS; do
7769
7770 acl_save_prefix="$prefix"
7771 prefix="$acl_final_prefix"
7772 acl_save_exec_prefix="$exec_prefix"
7773 exec_prefix="$acl_final_exec_prefix"
7774 eval x=\"$x\"
7775 exec_prefix="$acl_save_exec_prefix"
7776 prefix="$acl_save_prefix"
7777
7778 if test "X$x" = "X$element"; then
7779 haveit=yes
7780 break
7781 fi
7782 done
7783 if test -z "$haveit"; then
7784 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7785 fi
7786 done
7787
7788
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7790 $as_echo_n "checking for iconv... " >&6; }
7791 if test "${am_cv_func_iconv+set}" = set; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794
7795 am_cv_func_iconv="no, consider installing GNU libiconv"
7796 am_cv_lib_iconv=no
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7799 #include <stdlib.h>
7800 #include <iconv.h>
7801 int
7802 main ()
7803 {
7804 iconv_t cd = iconv_open("","");
7805 iconv(cd,NULL,NULL,NULL,NULL);
7806 iconv_close(cd);
7807 ;
7808 return 0;
7809 }
7810 _ACEOF
7811 if ac_fn_c_try_link "$LINENO"; then :
7812 am_cv_func_iconv=yes
7813 fi
7814 rm -f core conftest.err conftest.$ac_objext \
7815 conftest$ac_exeext conftest.$ac_ext
7816 if test "$am_cv_func_iconv" != yes; then
7817 am_save_LIBS="$LIBS"
7818 LIBS="$LIBS $LIBICONV"
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 #include <stdlib.h>
7822 #include <iconv.h>
7823 int
7824 main ()
7825 {
7826 iconv_t cd = iconv_open("","");
7827 iconv(cd,NULL,NULL,NULL,NULL);
7828 iconv_close(cd);
7829 ;
7830 return 0;
7831 }
7832 _ACEOF
7833 if ac_fn_c_try_link "$LINENO"; then :
7834 am_cv_lib_iconv=yes
7835 am_cv_func_iconv=yes
7836 fi
7837 rm -f core conftest.err conftest.$ac_objext \
7838 conftest$ac_exeext conftest.$ac_ext
7839 LIBS="$am_save_LIBS"
7840 fi
7841
7842 fi
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7844 $as_echo "$am_cv_func_iconv" >&6; }
7845 if test "$am_cv_func_iconv" = yes; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7847 $as_echo_n "checking for working iconv... " >&6; }
7848 if test "${am_cv_func_iconv_works+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851
7852 am_save_LIBS="$LIBS"
7853 if test $am_cv_lib_iconv = yes; then
7854 LIBS="$LIBS $LIBICONV"
7855 fi
7856 if test "$cross_compiling" = yes; then :
7857 case "$host_os" in
7858 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7859 *) am_cv_func_iconv_works="guessing yes" ;;
7860 esac
7861 else
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864
7865 #include <iconv.h>
7866 #include <string.h>
7867 int main ()
7868 {
7869 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7870 returns. */
7871 {
7872 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7873 if (cd_utf8_to_88591 != (iconv_t)(-1))
7874 {
7875 static const char input[] = "\342\202\254"; /* EURO SIGN */
7876 char buf[10];
7877 const char *inptr = input;
7878 size_t inbytesleft = strlen (input);
7879 char *outptr = buf;
7880 size_t outbytesleft = sizeof (buf);
7881 size_t res = iconv (cd_utf8_to_88591,
7882 (char **) &inptr, &inbytesleft,
7883 &outptr, &outbytesleft);
7884 if (res == 0)
7885 return 1;
7886 }
7887 }
7888 /* Test against Solaris 10 bug: Failures are not distinguishable from
7889 successful returns. */
7890 {
7891 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7892 if (cd_ascii_to_88591 != (iconv_t)(-1))
7893 {
7894 static const char input[] = "\263";
7895 char buf[10];
7896 const char *inptr = input;
7897 size_t inbytesleft = strlen (input);
7898 char *outptr = buf;
7899 size_t outbytesleft = sizeof (buf);
7900 size_t res = iconv (cd_ascii_to_88591,
7901 (char **) &inptr, &inbytesleft,
7902 &outptr, &outbytesleft);
7903 if (res == 0)
7904 return 1;
7905 }
7906 }
7907 #if 0 /* This bug could be worked around by the caller. */
7908 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7909 {
7910 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7911 if (cd_88591_to_utf8 != (iconv_t)(-1))
7912 {
7913 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7914 char buf[50];
7915 const char *inptr = input;
7916 size_t inbytesleft = strlen (input);
7917 char *outptr = buf;
7918 size_t outbytesleft = sizeof (buf);
7919 size_t res = iconv (cd_88591_to_utf8,
7920 (char **) &inptr, &inbytesleft,
7921 &outptr, &outbytesleft);
7922 if ((int)res > 0)
7923 return 1;
7924 }
7925 }
7926 #endif
7927 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7928 provided. */
7929 if (/* Try standardized names. */
7930 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7931 /* Try IRIX, OSF/1 names. */
7932 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7933 /* Try AIX names. */
7934 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7935 /* Try HP-UX names. */
7936 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7937 return 1;
7938 return 0;
7939 }
7940 _ACEOF
7941 if ac_fn_c_try_run "$LINENO"; then :
7942 am_cv_func_iconv_works=yes
7943 else
7944 am_cv_func_iconv_works=no
7945 fi
7946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7947 conftest.$ac_objext conftest.beam conftest.$ac_ext
7948 fi
7949
7950 LIBS="$am_save_LIBS"
7951
7952 fi
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7954 $as_echo "$am_cv_func_iconv_works" >&6; }
7955 case "$am_cv_func_iconv_works" in
7956 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7957 *) am_func_iconv=yes ;;
7958 esac
7959 else
7960 am_func_iconv=no am_cv_lib_iconv=no
7961 fi
7962 if test "$am_func_iconv" = yes; then
7963
7964 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7965
7966 fi
7967 if test "$am_cv_lib_iconv" = yes; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7969 $as_echo_n "checking how to link with libiconv... " >&6; }
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7971 $as_echo "$LIBICONV" >&6; }
7972 else
7973 CPPFLAGS="$am_save_CPPFLAGS"
7974 LIBICONV=
7975 LTLIBICONV=
7976 fi
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988 use_additional=yes
7989
7990 acl_save_prefix="$prefix"
7991 prefix="$acl_final_prefix"
7992 acl_save_exec_prefix="$exec_prefix"
7993 exec_prefix="$acl_final_exec_prefix"
7994
7995 eval additional_includedir=\"$includedir\"
7996 eval additional_libdir=\"$libdir\"
7997
7998 exec_prefix="$acl_save_exec_prefix"
7999 prefix="$acl_save_prefix"
8000
8001
8002 # Check whether --with-libintl-prefix was given.
8003 if test "${with_libintl_prefix+set}" = set; then :
8004 withval=$with_libintl_prefix;
8005 if test "X$withval" = "Xno"; then
8006 use_additional=no
8007 else
8008 if test "X$withval" = "X"; then
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
8015 eval additional_includedir=\"$includedir\"
8016 eval additional_libdir=\"$libdir\"
8017
8018 exec_prefix="$acl_save_exec_prefix"
8019 prefix="$acl_save_prefix"
8020
8021 else
8022 additional_includedir="$withval/include"
8023 additional_libdir="$withval/$acl_libdirstem"
8024 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8025 && ! test -d "$withval/$acl_libdirstem"; then
8026 additional_libdir="$withval/$acl_libdirstem2"
8027 fi
8028 fi
8029 fi
8030
8031 fi
8032
8033 LIBINTL=
8034 LTLIBINTL=
8035 INCINTL=
8036 LIBINTL_PREFIX=
8037 HAVE_LIBINTL=
8038 rpathdirs=
8039 ltrpathdirs=
8040 names_already_handled=
8041 names_next_round='intl '
8042 while test -n "$names_next_round"; do
8043 names_this_round="$names_next_round"
8044 names_next_round=
8045 for name in $names_this_round; do
8046 already_handled=
8047 for n in $names_already_handled; do
8048 if test "$n" = "$name"; then
8049 already_handled=yes
8050 break
8051 fi
8052 done
8053 if test -z "$already_handled"; then
8054 names_already_handled="$names_already_handled $name"
8055 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8056 eval value=\"\$HAVE_LIB$uppername\"
8057 if test -n "$value"; then
8058 if test "$value" = yes; then
8059 eval value=\"\$LIB$uppername\"
8060 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8061 eval value=\"\$LTLIB$uppername\"
8062 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8063 else
8064 :
8065 fi
8066 else
8067 found_dir=
8068 found_la=
8069 found_so=
8070 found_a=
8071 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8072 if test -n "$acl_shlibext"; then
8073 shrext=".$acl_shlibext" # typically: shrext=.so
8074 else
8075 shrext=
8076 fi
8077 if test $use_additional = yes; then
8078 dir="$additional_libdir"
8079 if test -n "$acl_shlibext"; then
8080 if test -f "$dir/$libname$shrext"; then
8081 found_dir="$dir"
8082 found_so="$dir/$libname$shrext"
8083 else
8084 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8085 ver=`(cd "$dir" && \
8086 for f in "$libname$shrext".*; do echo "$f"; done \
8087 | sed -e "s,^$libname$shrext\\\\.,," \
8088 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8089 | sed 1q ) 2>/dev/null`
8090 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8091 found_dir="$dir"
8092 found_so="$dir/$libname$shrext.$ver"
8093 fi
8094 else
8095 eval library_names=\"$acl_library_names_spec\"
8096 for f in $library_names; do
8097 if test -f "$dir/$f"; then
8098 found_dir="$dir"
8099 found_so="$dir/$f"
8100 break
8101 fi
8102 done
8103 fi
8104 fi
8105 fi
8106 if test "X$found_dir" = "X"; then
8107 if test -f "$dir/$libname.$acl_libext"; then
8108 found_dir="$dir"
8109 found_a="$dir/$libname.$acl_libext"
8110 fi
8111 fi
8112 if test "X$found_dir" != "X"; then
8113 if test -f "$dir/$libname.la"; then
8114 found_la="$dir/$libname.la"
8115 fi
8116 fi
8117 fi
8118 if test "X$found_dir" = "X"; then
8119 for x in $LDFLAGS $LTLIBINTL; do
8120
8121 acl_save_prefix="$prefix"
8122 prefix="$acl_final_prefix"
8123 acl_save_exec_prefix="$exec_prefix"
8124 exec_prefix="$acl_final_exec_prefix"
8125 eval x=\"$x\"
8126 exec_prefix="$acl_save_exec_prefix"
8127 prefix="$acl_save_prefix"
8128
8129 case "$x" in
8130 -L*)
8131 dir=`echo "X$x" | sed -e 's/^X-L//'`
8132 if test -n "$acl_shlibext"; then
8133 if test -f "$dir/$libname$shrext"; then
8134 found_dir="$dir"
8135 found_so="$dir/$libname$shrext"
8136 else
8137 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8138 ver=`(cd "$dir" && \
8139 for f in "$libname$shrext".*; do echo "$f"; done \
8140 | sed -e "s,^$libname$shrext\\\\.,," \
8141 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8142 | sed 1q ) 2>/dev/null`
8143 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8144 found_dir="$dir"
8145 found_so="$dir/$libname$shrext.$ver"
8146 fi
8147 else
8148 eval library_names=\"$acl_library_names_spec\"
8149 for f in $library_names; do
8150 if test -f "$dir/$f"; then
8151 found_dir="$dir"
8152 found_so="$dir/$f"
8153 break
8154 fi
8155 done
8156 fi
8157 fi
8158 fi
8159 if test "X$found_dir" = "X"; then
8160 if test -f "$dir/$libname.$acl_libext"; then
8161 found_dir="$dir"
8162 found_a="$dir/$libname.$acl_libext"
8163 fi
8164 fi
8165 if test "X$found_dir" != "X"; then
8166 if test -f "$dir/$libname.la"; then
8167 found_la="$dir/$libname.la"
8168 fi
8169 fi
8170 ;;
8171 esac
8172 if test "X$found_dir" != "X"; then
8173 break
8174 fi
8175 done
8176 fi
8177 if test "X$found_dir" != "X"; then
8178 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8179 if test "X$found_so" != "X"; then
8180 if test "$enable_rpath" = no \
8181 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8182 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8183 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8184 else
8185 haveit=
8186 for x in $ltrpathdirs; do
8187 if test "X$x" = "X$found_dir"; then
8188 haveit=yes
8189 break
8190 fi
8191 done
8192 if test -z "$haveit"; then
8193 ltrpathdirs="$ltrpathdirs $found_dir"
8194 fi
8195 if test "$acl_hardcode_direct" = yes; then
8196 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8197 else
8198 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8199 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8200 haveit=
8201 for x in $rpathdirs; do
8202 if test "X$x" = "X$found_dir"; then
8203 haveit=yes
8204 break
8205 fi
8206 done
8207 if test -z "$haveit"; then
8208 rpathdirs="$rpathdirs $found_dir"
8209 fi
8210 else
8211 haveit=
8212 for x in $LDFLAGS $LIBINTL; do
8213
8214 acl_save_prefix="$prefix"
8215 prefix="$acl_final_prefix"
8216 acl_save_exec_prefix="$exec_prefix"
8217 exec_prefix="$acl_final_exec_prefix"
8218 eval x=\"$x\"
8219 exec_prefix="$acl_save_exec_prefix"
8220 prefix="$acl_save_prefix"
8221
8222 if test "X$x" = "X-L$found_dir"; then
8223 haveit=yes
8224 break
8225 fi
8226 done
8227 if test -z "$haveit"; then
8228 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8229 fi
8230 if test "$acl_hardcode_minus_L" != no; then
8231 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8232 else
8233 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8234 fi
8235 fi
8236 fi
8237 fi
8238 else
8239 if test "X$found_a" != "X"; then
8240 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8241 else
8242 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8243 fi
8244 fi
8245 additional_includedir=
8246 case "$found_dir" in
8247 */$acl_libdirstem | */$acl_libdirstem/)
8248 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8249 if test "$name" = 'intl'; then
8250 LIBINTL_PREFIX="$basedir"
8251 fi
8252 additional_includedir="$basedir/include"
8253 ;;
8254 */$acl_libdirstem2 | */$acl_libdirstem2/)
8255 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8256 if test "$name" = 'intl'; then
8257 LIBINTL_PREFIX="$basedir"
8258 fi
8259 additional_includedir="$basedir/include"
8260 ;;
8261 esac
8262 if test "X$additional_includedir" != "X"; then
8263 if test "X$additional_includedir" != "X/usr/include"; then
8264 haveit=
8265 if test "X$additional_includedir" = "X/usr/local/include"; then
8266 if test -n "$GCC"; then
8267 case $host_os in
8268 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8269 esac
8270 fi
8271 fi
8272 if test -z "$haveit"; then
8273 for x in $CPPFLAGS $INCINTL; do
8274
8275 acl_save_prefix="$prefix"
8276 prefix="$acl_final_prefix"
8277 acl_save_exec_prefix="$exec_prefix"
8278 exec_prefix="$acl_final_exec_prefix"
8279 eval x=\"$x\"
8280 exec_prefix="$acl_save_exec_prefix"
8281 prefix="$acl_save_prefix"
8282
8283 if test "X$x" = "X-I$additional_includedir"; then
8284 haveit=yes
8285 break
8286 fi
8287 done
8288 if test -z "$haveit"; then
8289 if test -d "$additional_includedir"; then
8290 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8291 fi
8292 fi
8293 fi
8294 fi
8295 fi
8296 if test -n "$found_la"; then
8297 save_libdir="$libdir"
8298 case "$found_la" in
8299 */* | *\\*) . "$found_la" ;;
8300 *) . "./$found_la" ;;
8301 esac
8302 libdir="$save_libdir"
8303 for dep in $dependency_libs; do
8304 case "$dep" in
8305 -L*)
8306 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8307 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8308 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8309 haveit=
8310 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8311 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8312 if test -n "$GCC"; then
8313 case $host_os in
8314 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8315 esac
8316 fi
8317 fi
8318 if test -z "$haveit"; then
8319 haveit=
8320 for x in $LDFLAGS $LIBINTL; do
8321
8322 acl_save_prefix="$prefix"
8323 prefix="$acl_final_prefix"
8324 acl_save_exec_prefix="$exec_prefix"
8325 exec_prefix="$acl_final_exec_prefix"
8326 eval x=\"$x\"
8327 exec_prefix="$acl_save_exec_prefix"
8328 prefix="$acl_save_prefix"
8329
8330 if test "X$x" = "X-L$additional_libdir"; then
8331 haveit=yes
8332 break
8333 fi
8334 done
8335 if test -z "$haveit"; then
8336 if test -d "$additional_libdir"; then
8337 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8338 fi
8339 fi
8340 haveit=
8341 for x in $LDFLAGS $LTLIBINTL; do
8342
8343 acl_save_prefix="$prefix"
8344 prefix="$acl_final_prefix"
8345 acl_save_exec_prefix="$exec_prefix"
8346 exec_prefix="$acl_final_exec_prefix"
8347 eval x=\"$x\"
8348 exec_prefix="$acl_save_exec_prefix"
8349 prefix="$acl_save_prefix"
8350
8351 if test "X$x" = "X-L$additional_libdir"; then
8352 haveit=yes
8353 break
8354 fi
8355 done
8356 if test -z "$haveit"; then
8357 if test -d "$additional_libdir"; then
8358 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8359 fi
8360 fi
8361 fi
8362 fi
8363 ;;
8364 -R*)
8365 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8366 if test "$enable_rpath" != no; then
8367 haveit=
8368 for x in $rpathdirs; do
8369 if test "X$x" = "X$dir"; then
8370 haveit=yes
8371 break
8372 fi
8373 done
8374 if test -z "$haveit"; then
8375 rpathdirs="$rpathdirs $dir"
8376 fi
8377 haveit=
8378 for x in $ltrpathdirs; do
8379 if test "X$x" = "X$dir"; then
8380 haveit=yes
8381 break
8382 fi
8383 done
8384 if test -z "$haveit"; then
8385 ltrpathdirs="$ltrpathdirs $dir"
8386 fi
8387 fi
8388 ;;
8389 -l*)
8390 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8391 ;;
8392 *.la)
8393 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8394 ;;
8395 *)
8396 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8397 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8398 ;;
8399 esac
8400 done
8401 fi
8402 else
8403 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8404 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8405 fi
8406 fi
8407 fi
8408 done
8409 done
8410 if test "X$rpathdirs" != "X"; then
8411 if test -n "$acl_hardcode_libdir_separator"; then
8412 alldirs=
8413 for found_dir in $rpathdirs; do
8414 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8415 done
8416 acl_save_libdir="$libdir"
8417 libdir="$alldirs"
8418 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8419 libdir="$acl_save_libdir"
8420 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8421 else
8422 for found_dir in $rpathdirs; do
8423 acl_save_libdir="$libdir"
8424 libdir="$found_dir"
8425 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8426 libdir="$acl_save_libdir"
8427 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8428 done
8429 fi
8430 fi
8431 if test "X$ltrpathdirs" != "X"; then
8432 for found_dir in $ltrpathdirs; do
8433 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8434 done
8435 fi
8436
8437
8438
8439
8440
8441
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8443 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8444 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
8445 $as_echo_n "(cached) " >&6
8446 else
8447 gt_save_CPPFLAGS="$CPPFLAGS"
8448 CPPFLAGS="$CPPFLAGS $INCINTL"
8449 gt_save_LIBS="$LIBS"
8450 LIBS="$LIBS $LIBINTL"
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 #include <libintl.h>
8454 $gt_revision_test_code
8455 extern int _nl_msg_cat_cntr;
8456 extern
8457 #ifdef __cplusplus
8458 "C"
8459 #endif
8460 const char *_nl_expand_alias (const char *);
8461 int
8462 main ()
8463 {
8464 bindtextdomain ("", "");
8465 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8466 ;
8467 return 0;
8468 }
8469 _ACEOF
8470 if ac_fn_c_try_link "$LINENO"; then :
8471 eval "$gt_func_gnugettext_libintl=yes"
8472 else
8473 eval "$gt_func_gnugettext_libintl=no"
8474 fi
8475 rm -f core conftest.err conftest.$ac_objext \
8476 conftest$ac_exeext conftest.$ac_ext
8477 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8478 LIBS="$LIBS $LIBICONV"
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 #include <libintl.h>
8482 $gt_revision_test_code
8483 extern int _nl_msg_cat_cntr;
8484 extern
8485 #ifdef __cplusplus
8486 "C"
8487 #endif
8488 const char *_nl_expand_alias (const char *);
8489 int
8490 main ()
8491 {
8492 bindtextdomain ("", "");
8493 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8494 ;
8495 return 0;
8496 }
8497 _ACEOF
8498 if ac_fn_c_try_link "$LINENO"; then :
8499 LIBINTL="$LIBINTL $LIBICONV"
8500 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8501 eval "$gt_func_gnugettext_libintl=yes"
8502
8503 fi
8504 rm -f core conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
8506 fi
8507 CPPFLAGS="$gt_save_CPPFLAGS"
8508 LIBS="$gt_save_LIBS"
8509 fi
8510 eval ac_res=\$$gt_func_gnugettext_libintl
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8512 $as_echo "$ac_res" >&6; }
8513 fi
8514
8515 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8516 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8517 && test "$PACKAGE" != gettext-runtime \
8518 && test "$PACKAGE" != gettext-tools; }; then
8519 gt_use_preinstalled_gnugettext=yes
8520 else
8521 LIBINTL=
8522 LTLIBINTL=
8523 INCINTL=
8524 fi
8525
8526
8527
8528 if test -n "$INTL_MACOSX_LIBS"; then
8529 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8530 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8531 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8532 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8533 fi
8534 fi
8535
8536 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8537 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8538
8539 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8540
8541 else
8542 USE_NLS=no
8543 fi
8544 fi
8545
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8547 $as_echo_n "checking whether to use NLS... " >&6; }
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8549 $as_echo "$USE_NLS" >&6; }
8550 if test "$USE_NLS" = "yes"; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8552 $as_echo_n "checking where the gettext function comes from... " >&6; }
8553 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8554 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8555 gt_source="external libintl"
8556 else
8557 gt_source="libc"
8558 fi
8559 else
8560 gt_source="included intl directory"
8561 fi
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8563 $as_echo "$gt_source" >&6; }
8564 fi
8565
8566 if test "$USE_NLS" = "yes"; then
8567
8568 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8569 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8571 $as_echo_n "checking how to link with libintl... " >&6; }
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8573 $as_echo "$LIBINTL" >&6; }
8574
8575 for element in $INCINTL; do
8576 haveit=
8577 for x in $CPPFLAGS; do
8578
8579 acl_save_prefix="$prefix"
8580 prefix="$acl_final_prefix"
8581 acl_save_exec_prefix="$exec_prefix"
8582 exec_prefix="$acl_final_exec_prefix"
8583 eval x=\"$x\"
8584 exec_prefix="$acl_save_exec_prefix"
8585 prefix="$acl_save_prefix"
8586
8587 if test "X$x" = "X$element"; then
8588 haveit=yes
8589 break
8590 fi
8591 done
8592 if test -z "$haveit"; then
8593 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8594 fi
8595 done
8596
8597 fi
8598
8599
8600 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8601
8602
8603 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8604
8605 fi
8606
8607 POSUB=po
8608 fi
8609
8610
8611
8612 INTLLIBS="$LIBINTL"
8613
8614
8615
8616
8617
8618
8619
8620 for ac_func in ppoll
8621 do :
8622 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
8623 if test "x$ac_cv_func_ppoll" = x""yes; then :
8624 cat >>confdefs.h <<_ACEOF
8625 #define HAVE_PPOLL 1
8626 _ACEOF
8627
8628 fi
8629 done
8630
8631
8632 if test "${enable_prologues+set}" != set; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5
8634 $as_echo_n "checking to see if prologue searching should be the default... " >&6; }
8635 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
8636 echo ' yes '
8637 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8638 enable_prologues=yes
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8640 $as_echo "yes" >&6; }
8641 else
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8644 fi
8645 fi
8646 # Check whether --enable-prologues was given.
8647 if test "${enable_prologues+set}" = set; then :
8648 enableval=$enable_prologues;
8649 if test "$enable_prologues" = yes; then
8650
8651 $as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h
8652
8653 fi
8654 fi
8655
8656
8657 # Check whether --enable-sdt-probes was given.
8658 if test "${enable_sdt_probes+set}" = set; then :
8659 enableval=$enable_sdt_probes;
8660 fi
8661
8662 if test "x$enable_sdt_probes" != xno; then :
8663
8664
8665 $as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h
8666
8667
8668 fi
8669
8670 # Check whether --enable-ssp was given.
8671 if test "${enable_ssp+set}" = set; then :
8672 enableval=$enable_ssp;
8673 fi
8674
8675 if test "x$enable_ssp" != xno; then :
8676
8677 save_CFLAGS="$CFLAGS"
8678 save_CXXFLAGS="$CXXFLAGS"
8679 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
8680 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8683 int something ();
8684 _ACEOF
8685 if ac_fn_c_try_compile "$LINENO"; then :
8686
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
8688 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
8689 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
8690 CXXFLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
8691 else
8692
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
8694 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
8695 CFLAGS="$save_CFLAGS"
8696 CXXFLAGS="$save_CXXFLAGS"
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 fi
8700
8701
8702
8703
8704 # Compiling without fPIE by default (see PR 9922)
8705 # Check whether --enable-pie was given.
8706 if test "${enable_pie+set}" = set; then :
8707 enableval=$enable_pie;
8708 fi
8709
8710 if test "x$enable_pie" == xyes; then :
8711
8712 save_CFLAGS="$CFLAGS"
8713 save_CXXFLAGS="$CXXFLAGS"
8714 save_LDFLAGS="$LDFLAGS"
8715 CFLAGS="$CFLAGS -fPIE"
8716 CXXFLAGS="$CXXFLAGS -fPIE"
8717 LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8720 void main () {}
8721 _ACEOF
8722 if ac_fn_c_try_link "$LINENO"; then :
8723
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
8725 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
8726 # LDFLAGS is special since it may be passed down to bundled-elfutils,
8727 # and interfere with the .so's built therein
8728 PIELDFLAGS="$LDFLAGS"
8729 LDFLAGS="$save_LDFLAGS"
8730 PIECFLAGS="$CFLAGS"
8731 CFLAGS="$save_CFLAGS"
8732 PIECXXFLAGS="$CXXFLAGS"
8733 CXXFLAGS="$save_CXXFLAGS"
8734
8735 else
8736
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
8738 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
8739 PIECFLAGS=""
8740 CFLAGS="$save_CFLAGS"
8741 PIECXXFLAGS=""
8742 CXXFLAGS="$save_CXXFLAGS"
8743 PIELDFLAGS=""
8744 LDFLAGS="$save_LDFLAGS"
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext \
8747 conftest$ac_exeext conftest.$ac_ext
8748 fi
8749
8750
8751
8752
8753 # Check whether --enable-sqlite was given.
8754 if test "${enable_sqlite+set}" = set; then :
8755 enableval=$enable_sqlite;
8756 else
8757 enable_sqlite=check
8758 fi
8759 sqlite3_LIBS=
8760 if test "x$enable_sqlite" != xno; then :
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
8762 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
8763 if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 ac_check_lib_save_LIBS=$LIBS
8767 LIBS="-lsqlite3 $LIBS"
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8770
8771 /* Override any GCC internal prototype to avoid an error.
8772 Use char because int might match the return type of a GCC
8773 builtin and then its argument prototype would still apply. */
8774 #ifdef __cplusplus
8775 extern "C"
8776 #endif
8777 char sqlite3_open ();
8778 int
8779 main ()
8780 {
8781 return sqlite3_open ();
8782 ;
8783 return 0;
8784 }
8785 _ACEOF
8786 if ac_fn_c_try_link "$LINENO"; then :
8787 ac_cv_lib_sqlite3_sqlite3_open=yes
8788 else
8789 ac_cv_lib_sqlite3_sqlite3_open=no
8790 fi
8791 rm -f core conftest.err conftest.$ac_objext \
8792 conftest$ac_exeext conftest.$ac_ext
8793 LIBS=$ac_check_lib_save_LIBS
8794 fi
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
8796 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
8797 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
8798 sqlite3_LIBS=-lsqlite3
8799
8800
8801 $as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h
8802
8803 else
8804 if test "x$enable_sqlite" != xcheck; then
8805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8807 as_fn_error "--enable-sqlite was given, but test for sqlite failed
8808 See \`config.log' for more details." "$LINENO" 5; }
8809 fi
8810 fi
8811
8812 fi
8813
8814 # Check whether --enable-translator was given.
8815 if test "${enable_translator+set}" = set; then :
8816 enableval=$enable_translator;
8817 else
8818 enable_translator="yes"
8819 fi
8820
8821 if test "$enable_translator" == "yes"; then
8822 BUILD_TRANSLATOR_TRUE=
8823 BUILD_TRANSLATOR_FALSE='#'
8824 else
8825 BUILD_TRANSLATOR_TRUE='#'
8826 BUILD_TRANSLATOR_FALSE=
8827 fi
8828
8829
8830 # Check whether --enable-crash was given.
8831 if test "${enable_crash+set}" = set; then :
8832 enableval=$enable_crash; if test "$enable_crash" != "no"; then
8833 save_CPPFLAGS="$CPPFLAGS"
8834 if test "$enable_crash" != "yes"; then
8835 staplog_CPPFLAGS=-I$enable_crash
8836 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
8837
8838 fi
8839 for ac_header in crash/defs.h
8840 do :
8841 ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" "
8842 #define NR_CPUS 256
8843
8844 "
8845 if test "x$ac_cv_header_crash_defs_h" = x""yes; then :
8846 cat >>confdefs.h <<_ACEOF
8847 #define HAVE_CRASH_DEFS_H 1
8848 _ACEOF
8849
8850 else
8851 as_fn_error "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5
8852 fi
8853
8854 done
8855
8856 CPPFLAGS="$save_CPPFLAGS"
8857 fi
8858 else
8859 enable_crash="no"
8860 fi
8861
8862 if test "$enable_crash" != "no"; then
8863 BUILD_CRASHMOD_TRUE=
8864 BUILD_CRASHMOD_FALSE='#'
8865 else
8866 BUILD_CRASHMOD_TRUE='#'
8867 BUILD_CRASHMOD_FALSE=
8868 fi
8869
8870
8871 building_docs="no"
8872 # Check whether --enable-docs was given.
8873 if test "${enable_docs+set}" = set; then :
8874 enableval=$enable_docs; enable_docs=$enableval
8875 else
8876 enable_docs="check"
8877 fi
8878
8879 # Extract the first word of "latex", so it can be a program name with args.
8880 set dummy latex; ac_word=$2
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882 $as_echo_n "checking for $ac_word... " >&6; }
8883 if test "${ac_cv_prog_have_latex+set}" = set; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8886 if test -n "$have_latex"; then
8887 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
8888 else
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8891 do
8892 IFS=$as_save_IFS
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8896 ac_cv_prog_have_latex="yes"
8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 break 2
8899 fi
8900 done
8901 done
8902 IFS=$as_save_IFS
8903
8904 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
8905 fi
8906 fi
8907 have_latex=$ac_cv_prog_have_latex
8908 if test -n "$have_latex"; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5
8910 $as_echo "$have_latex" >&6; }
8911 else
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8914 fi
8915
8916
8917 # Extract the first word of "dvips", so it can be a program name with args.
8918 set dummy dvips; ac_word=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if test "${ac_cv_prog_have_dvips+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 if test -n "$have_dvips"; then
8925 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
8926 else
8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 for as_dir in $PATH
8929 do
8930 IFS=$as_save_IFS
8931 test -z "$as_dir" && as_dir=.
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8934 ac_cv_prog_have_dvips="yes"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936 break 2
8937 fi
8938 done
8939 done
8940 IFS=$as_save_IFS
8941
8942 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
8943 fi
8944 fi
8945 have_dvips=$ac_cv_prog_have_dvips
8946 if test -n "$have_dvips"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
8948 $as_echo "$have_dvips" >&6; }
8949 else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8952 fi
8953
8954
8955 # Extract the first word of "ps2pdf", so it can be a program name with args.
8956 set dummy ps2pdf; ac_word=$2
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958 $as_echo_n "checking for $ac_word... " >&6; }
8959 if test "${ac_cv_prog_have_ps2pdf+set}" = set; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 if test -n "$have_ps2pdf"; then
8963 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
8964 else
8965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966 for as_dir in $PATH
8967 do
8968 IFS=$as_save_IFS
8969 test -z "$as_dir" && as_dir=.
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8972 ac_cv_prog_have_ps2pdf="yes"
8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 break 2
8975 fi
8976 done
8977 done
8978 IFS=$as_save_IFS
8979
8980 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
8981 fi
8982 fi
8983 have_ps2pdf=$ac_cv_prog_have_ps2pdf
8984 if test -n "$have_ps2pdf"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5
8986 $as_echo "$have_ps2pdf" >&6; }
8987 else
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8990 fi
8991
8992
8993 # Extract the first word of "latex2html", so it can be a program name with args.
8994 set dummy latex2html; ac_word=$2
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996 $as_echo_n "checking for $ac_word... " >&6; }
8997 if test "${ac_cv_prog_have_latex2html+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 if test -n "$have_latex2html"; then
9001 ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test.
9002 else
9003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 for as_dir in $PATH
9005 do
9006 IFS=$as_save_IFS
9007 test -z "$as_dir" && as_dir=.
9008 for ac_exec_ext in '' $ac_executable_extensions; do
9009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9010 ac_cv_prog_have_latex2html="yes"
9011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012 break 2
9013 fi
9014 done
9015 done
9016 IFS=$as_save_IFS
9017
9018 test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no"
9019 fi
9020 fi
9021 have_latex2html=$ac_cv_prog_have_latex2html
9022 if test -n "$have_latex2html"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex2html" >&5
9024 $as_echo "$have_latex2html" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 fi
9029
9030
9031 if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then
9032 if test "$enable_docs" == "yes"; then
9033 as_fn_error "cannot find all tools for building documentation" "$LINENO" 5
9034 fi
9035 if test "$enable_docs" == "check"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5
9037 $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
9038 fi
9039 fi
9040 if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then
9041 building_docs="yes"
9042 fi
9043 if test "$building_docs" == "yes"; then
9044 BUILD_DOCS_TRUE=
9045 BUILD_DOCS_FALSE='#'
9046 else
9047 BUILD_DOCS_TRUE='#'
9048 BUILD_DOCS_FALSE=
9049 fi
9050
9051
9052 building_publican="no"
9053 # Check whether --enable-publican was given.
9054 if test "${enable_publican+set}" = set; then :
9055 enableval=$enable_publican; enable_publican=$enableval
9056 else
9057 enable_publican="check"
9058 fi
9059
9060 if test "$building_docs" == "no" -a "$enable_publican" == "yes" ; then
9061 as_fn_error "must use --enable-docs with --enable-publican" "$LINENO" 5
9062 fi
9063 # Extract the first word of "publican", so it can be a program name with args.
9064 set dummy publican; ac_word=$2
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9066 $as_echo_n "checking for $ac_word... " >&6; }
9067 if test "${ac_cv_prog_have_publican+set}" = set; then :
9068 $as_echo_n "(cached) " >&6
9069 else
9070 if test -n "$have_publican"; then
9071 ac_cv_prog_have_publican="$have_publican" # Let the user override the test.
9072 else
9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 for as_dir in $PATH
9075 do
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9080 ac_cv_prog_have_publican="yes"
9081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 break 2
9083 fi
9084 done
9085 done
9086 IFS=$as_save_IFS
9087
9088 test -z "$ac_cv_prog_have_publican" && ac_cv_prog_have_publican="no"
9089 fi
9090 fi
9091 have_publican=$ac_cv_prog_have_publican
9092 if test -n "$have_publican"; then
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_publican" >&5
9094 $as_echo "$have_publican" >&6; }
9095 else
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 $as_echo "no" >&6; }
9098 fi
9099
9100
9101 if test "$enable_publican" == "yes"; then
9102 if test "x${have_publican}" != "xyes"; then
9103 as_fn_error "cannot find publican for building publican guides" "$LINENO" 5
9104 fi
9105 fi
9106 if test "x${have_publican}" == "xyes" -a "$enable_publican" != "no" -a "${building_docs}" == "yes"; then
9107 building_publican="yes"
9108 fi
9109 if test "$building_publican" == "yes"; then
9110 BUILD_PUBLICAN_TRUE=
9111 BUILD_PUBLICAN_FALSE='#'
9112 else
9113 BUILD_PUBLICAN_TRUE='#'
9114 BUILD_PUBLICAN_FALSE=
9115 fi
9116
9117 publican_brand="common"
9118
9119 # Check whether --with-publican-brand was given.
9120 if test "${with_publican_brand+set}" = set; then :
9121 withval=$with_publican_brand; publican_brand=$withval
9122 else
9123 publican_brand="common"
9124 fi
9125
9126 PUBLICAN_BRAND=$publican_brand
9127
9128
9129 building_refdocs="no"
9130 # Check whether --enable-refdocs was given.
9131 if test "${enable_refdocs+set}" = set; then :
9132 enableval=$enable_refdocs; enable_refdocs=$enableval
9133 else
9134 enable_refdocs="check"
9135 fi
9136
9137 if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
9138 as_fn_error "must use --enable-docs with --enable-refdocs" "$LINENO" 5
9139 fi
9140 # Extract the first word of "xmlto", so it can be a program name with args.
9141 set dummy xmlto; ac_word=$2
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143 $as_echo_n "checking for $ac_word... " >&6; }
9144 if test "${ac_cv_prog_have_xmlto+set}" = set; then :
9145 $as_echo_n "(cached) " >&6
9146 else
9147 if test -n "$have_xmlto"; then
9148 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
9149 else
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 for as_dir in $PATH
9152 do
9153 IFS=$as_save_IFS
9154 test -z "$as_dir" && as_dir=.
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9157 ac_cv_prog_have_xmlto="yes"
9158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159 break 2
9160 fi
9161 done
9162 done
9163 IFS=$as_save_IFS
9164
9165 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
9166 fi
9167 fi
9168 have_xmlto=$ac_cv_prog_have_xmlto
9169 if test -n "$have_xmlto"; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
9171 $as_echo "$have_xmlto" >&6; }
9172 else
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174 $as_echo "no" >&6; }
9175 fi
9176
9177
9178 if test "$enable_refdocs" == "yes"; then
9179 if test "x${have_xmlto}" != "xyes"; then
9180 as_fn_error "cannot find xmlto for building reference documentation" "$LINENO" 5
9181 fi
9182 fi
9183 if test "x${have_xmlto}" == "xyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
9184 building_refdocs="yes"
9185 fi
9186 if test "$building_refdocs" == "yes"; then
9187 BUILD_REFDOCS_TRUE=
9188 BUILD_REFDOCS_FALSE='#'
9189 else
9190 BUILD_REFDOCS_TRUE='#'
9191 BUILD_REFDOCS_FALSE=
9192 fi
9193
9194
9195 cat > conftest.xml << 'EOF'
9196 <?xml version="1.0" encoding="UTF-8"?>
9197 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
9198 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
9199 <book lang="en">
9200 <bookinfo><title>foo</title></bookinfo>
9201 <chapter id="logging.stp"><title>Logging Tapset</title>
9202 <refentry id="API-log"><refnamediv><refname>log</refname>
9203 <refpurpose>logging</refpurpose></refnamediv>
9204 <refsect1><title>Description</title>
9205 <para>baz</para></refsect1></refentry></chapter>
9206 </book>
9207 EOF
9208
9209 if test "x${have_xmlto}" == "xyes"; then
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5
9211 $as_echo_n "checking for xmlto --stringparam support... " >&6; }
9212 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
9213 if test $? == 0; then
9214 have_xmlto_stringparam="yes"
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9216 $as_echo "yes" >&6; }
9217 else
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9220 fi
9221 rm -f conftest.html
9222 fi
9223 if test "$have_xmlto_stringparam" == "yes"; then
9224 XMLTO_STRINGPARAM_TRUE=
9225 XMLTO_STRINGPARAM_FALSE='#'
9226 else
9227 XMLTO_STRINGPARAM_TRUE='#'
9228 XMLTO_STRINGPARAM_FALSE=
9229 fi
9230
9231
9232 if test "x${building_refdocs}" == "xyes"; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto pdf support" >&5
9234 $as_echo_n "checking for xmlto pdf support... " >&6; }
9235 xmlto pdf conftest.xml >& /dev/null
9236 if test $? == 0; then
9237 have_xmlto_pdf="yes"
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9239 $as_echo "yes" >&6; }
9240 else
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242 $as_echo "no" >&6; }
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building reference documentation in PDF format" >&5
9244 $as_echo "$as_me: WARNING: Not building reference documentation in PDF format" >&2;}
9245 fi
9246 rm -f conftest.pdf
9247 fi
9248 if test "$have_xmlto_pdf" == "yes"; then
9249 BUILD_PDFREFDOCS_TRUE=
9250 BUILD_PDFREFDOCS_FALSE='#'
9251 else
9252 BUILD_PDFREFDOCS_TRUE='#'
9253 BUILD_PDFREFDOCS_FALSE=
9254 fi
9255
9256
9257 rm -f conftest.xml
9258
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/nss3" >&5
9260 $as_echo_n "checking for /usr/include/nss3... " >&6; }
9261 if test "${ac_cv_file__usr_include_nss3+set}" = set; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 test "$cross_compiling" = yes &&
9265 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
9266 if test -r "/usr/include/nss3"; then
9267 ac_cv_file__usr_include_nss3=yes
9268 else
9269 ac_cv_file__usr_include_nss3=no
9270 fi
9271 fi
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_nss3" >&5
9273 $as_echo "$ac_cv_file__usr_include_nss3" >&6; }
9274 if test "x$ac_cv_file__usr_include_nss3" = x""yes; then :
9275 nssdir=nss3
9276 else
9277
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/nss" >&5
9279 $as_echo_n "checking for /usr/include/nss... " >&6; }
9280 if test "${ac_cv_file__usr_include_nss+set}" = set; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9283 test "$cross_compiling" = yes &&
9284 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
9285 if test -r "/usr/include/nss"; then
9286 ac_cv_file__usr_include_nss=yes
9287 else
9288 ac_cv_file__usr_include_nss=no
9289 fi
9290 fi
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_nss" >&5
9292 $as_echo "$ac_cv_file__usr_include_nss" >&6; }
9293 if test "x$ac_cv_file__usr_include_nss" = x""yes; then :
9294 nssdir=nss
9295 fi
9296
9297
9298 fi
9299
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/nspr4" >&5
9301 $as_echo_n "checking for /usr/include/nspr4... " >&6; }
9302 if test "${ac_cv_file__usr_include_nspr4+set}" = set; then :
9303 $as_echo_n "(cached) " >&6
9304 else
9305 test "$cross_compiling" = yes &&
9306 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
9307 if test -r "/usr/include/nspr4"; then
9308 ac_cv_file__usr_include_nspr4=yes
9309 else
9310 ac_cv_file__usr_include_nspr4=no
9311 fi
9312 fi
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_nspr4" >&5
9314 $as_echo "$ac_cv_file__usr_include_nspr4" >&6; }
9315 if test "x$ac_cv_file__usr_include_nspr4" = x""yes; then :
9316 nsprdir=nspr4
9317 else
9318
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/nspr" >&5
9320 $as_echo_n "checking for /usr/include/nspr... " >&6; }
9321 if test "${ac_cv_file__usr_include_nspr+set}" = set; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 test "$cross_compiling" = yes &&
9325 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
9326 if test -r "/usr/include/nspr"; then
9327 ac_cv_file__usr_include_nspr=yes
9328 else
9329 ac_cv_file__usr_include_nspr=no
9330 fi
9331 fi
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_nspr" >&5
9333 $as_echo "$ac_cv_file__usr_include_nspr" >&6; }
9334 if test "x$ac_cv_file__usr_include_nspr" = x""yes; then :
9335 nsprdir=nspr
9336 fi
9337
9338
9339 fi
9340
9341 if test "x$nssdir" != "x" -a "x$nsprdir" != "x"; then
9342 nss_CFLAGS="-I/usr/include/$nssdir"
9343 nspr_CFLAGS="-I/usr/include/$nsprdir"
9344
9345
9346 save_CPPFLAGS="$CPPFLAGS"
9347 CPPFLAGS="$CFLAGS $nss_CFLAGS $nspr_CFLAGS"
9348 have_nss_includes=yes
9349 for ac_header in "$nsprdir/nspr.h" "$nsprdir/plgetopt.h" "$nsprdir/prerror.h" "$nssdir/ssl.h" "$nssdir/nss.h" "$nssdir/pk11func.h" "$nssdir/secerr.h"
9350 do :
9351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9352 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9353 eval as_val=\$$as_ac_Header
9354 if test "x$as_val" = x""yes; then :
9355 cat >>confdefs.h <<_ACEOF
9356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9357 _ACEOF
9358
9359 else
9360 have_nss_includes=no
9361 fi
9362
9363 done
9364
9365 CPPFLAGS="$save_CPPFLAGS"
9366 have_nss_libs=no
9367 fi
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Connect in -lnspr4" >&5
9369 $as_echo_n "checking for PR_Connect in -lnspr4... " >&6; }
9370 if test "${ac_cv_lib_nspr4_PR_Connect+set}" = set; then :
9371 $as_echo_n "(cached) " >&6
9372 else
9373 ac_check_lib_save_LIBS=$LIBS
9374 LIBS="-lnspr4 $LIBS"
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9377
9378 /* Override any GCC internal prototype to avoid an error.
9379 Use char because int might match the return type of a GCC
9380 builtin and then its argument prototype would still apply. */
9381 #ifdef __cplusplus
9382 extern "C"
9383 #endif
9384 char PR_Connect ();
9385 int
9386 main ()
9387 {
9388 return PR_Connect ();
9389 ;
9390 return 0;
9391 }
9392 _ACEOF
9393 if ac_fn_c_try_link "$LINENO"; then :
9394 ac_cv_lib_nspr4_PR_Connect=yes
9395 else
9396 ac_cv_lib_nspr4_PR_Connect=no
9397 fi
9398 rm -f core conftest.err conftest.$ac_objext \
9399 conftest$ac_exeext conftest.$ac_ext
9400 LIBS=$ac_check_lib_save_LIBS
9401 fi
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Connect" >&5
9403 $as_echo "$ac_cv_lib_nspr4_PR_Connect" >&6; }
9404 if test "x$ac_cv_lib_nspr4_PR_Connect" = x""yes; then :
9405
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ReHandshake in -lssl3" >&5
9407 $as_echo_n "checking for SSL_ReHandshake in -lssl3... " >&6; }
9408 if test "${ac_cv_lib_ssl3_SSL_ReHandshake+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 ac_check_lib_save_LIBS=$LIBS
9412 LIBS="-lssl3 $LIBS"
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9415
9416 /* Override any GCC internal prototype to avoid an error.
9417 Use char because int might match the return type of a GCC
9418 builtin and then its argument prototype would still apply. */
9419 #ifdef __cplusplus
9420 extern "C"
9421 #endif
9422 char SSL_ReHandshake ();
9423 int
9424 main ()
9425 {
9426 return SSL_ReHandshake ();
9427 ;
9428 return 0;
9429 }
9430 _ACEOF
9431 if ac_fn_c_try_link "$LINENO"; then :
9432 ac_cv_lib_ssl3_SSL_ReHandshake=yes
9433 else
9434 ac_cv_lib_ssl3_SSL_ReHandshake=no
9435 fi
9436 rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 LIBS=$ac_check_lib_save_LIBS
9439 fi
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ReHandshake" >&5
9441 $as_echo "$ac_cv_lib_ssl3_SSL_ReHandshake" >&6; }
9442 if test "x$ac_cv_lib_ssl3_SSL_ReHandshake" = x""yes; then :
9443 have_nss_libs=yes
9444 fi
9445
9446
9447 fi
9448
9449 if test "x${have_nss_includes}${have_nss_libs}" = "xyesyes"; then
9450
9451 $as_echo "#define HAVE_NSS 1" >>confdefs.h
9452
9453 fi
9454 if test "x${have_nss_includes}${have_nss_libs}" == "xyesyes"; then
9455 HAVE_NSS_TRUE=
9456 HAVE_NSS_FALSE='#'
9457 else
9458 HAVE_NSS_TRUE='#'
9459 HAVE_NSS_FALSE=
9460 fi
9461
9462
9463 # Check whether --enable-server was given.
9464 if test "${enable_server+set}" = set; then :
9465 enableval=$enable_server; enable_server=$enableval
9466 else
9467 enable_server="check"
9468 fi
9469
9470
9471 if test "$enable_server" != "no"; then
9472 if test "x${have_nss_includes}" != "xyes"; then
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss/nspr headers" >&5
9474 $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss/nspr headers" >&2;}
9475 fi
9476 if test "x${have_nss_libs}" != "xyes"; then
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss/nspr libraries" >&5
9478 $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss/nspr libraries" >&2;}
9479 fi
9480 fi
9481 if test "x${have_nss_includes}${have_nss_libs}" == "xyesyes" -a "$enable_server" != "no"; then
9482 BUILD_SERVER_TRUE=
9483 BUILD_SERVER_FALSE='#'
9484 else
9485 BUILD_SERVER_TRUE='#'
9486 BUILD_SERVER_FALSE=
9487 fi
9488
9489
9490 if test "x${have_nss_includes}" != "xyes"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile server client functionality will be restricted, cannot find nss/nspr headers" >&5
9492 $as_echo "$as_me: WARNING: some compile server client functionality will be restricted, cannot find nss/nspr headers" >&2;}
9493 fi
9494 if test "x${have_nss_libs}" != "xyes"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile server client functionality will be restricted, cannot find nss/nspr libraries" >&5
9496 $as_echo "$as_me: WARNING: some compile server client functionality will be restricted, cannot find nss/nspr libraries" >&2;}
9497 fi
9498
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/avahi-client" >&5
9500 $as_echo_n "checking for /usr/include/avahi-client... " >&6; }
9501 if test "${ac_cv_file__usr_include_avahi_client+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 test "$cross_compiling" = yes &&
9505 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
9506 if test -r "/usr/include/avahi-client"; then
9507 ac_cv_file__usr_include_avahi_client=yes
9508 else
9509 ac_cv_file__usr_include_avahi_client=no
9510 fi
9511 fi
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_avahi_client" >&5
9513 $as_echo "$ac_cv_file__usr_include_avahi_client" >&6; }
9514 if test "x$ac_cv_file__usr_include_avahi_client" = x""yes; then :
9515 avahi_clientdir=avahi-client
9516 fi
9517
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/avahi-common" >&5
9519 $as_echo_n "checking for /usr/include/avahi-common... " >&6; }
9520 if test "${ac_cv_file__usr_include_avahi_common+set}" = set; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 test "$cross_compiling" = yes &&
9524 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
9525 if test -r "/usr/include/avahi-common"; then
9526 ac_cv_file__usr_include_avahi_common=yes
9527 else
9528 ac_cv_file__usr_include_avahi_common=no
9529 fi
9530 fi
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_avahi_common" >&5
9532 $as_echo "$ac_cv_file__usr_include_avahi_common" >&6; }
9533 if test "x$ac_cv_file__usr_include_avahi_common" = x""yes; then :
9534 avahi_commondir=avahi-common
9535 fi
9536
9537 if test "x$avahi_clientdir" != "x" -a "x$avahi_commondir" != "x"; then
9538 have_avahi_includes=yes
9539 for ac_header in "$avahi_clientdir/client.h" "$avahi_clientdir/lookup.h" "$avahi_commondir/simple-watch.h" "$avahi_commondir/malloc.h" "$avahi_commondir/error.h"
9540 do :
9541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9542 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9543 eval as_val=\$$as_ac_Header
9544 if test "x$as_val" = x""yes; then :
9545 cat >>confdefs.h <<_ACEOF
9546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9547 _ACEOF
9548
9549 else
9550 have_avahi_includes=no
9551 fi
9552
9553 done
9554
9555 have_avahi_libs=no
9556 fi
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
9558 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
9559 if test "${ac_cv_lib_avahi_client_avahi_client_new+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 ac_check_lib_save_LIBS=$LIBS
9563 LIBS="-lavahi-client $LIBS"
9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9566
9567 /* Override any GCC internal prototype to avoid an error.
9568 Use char because int might match the return type of a GCC
9569 builtin and then its argument prototype would still apply. */
9570 #ifdef __cplusplus
9571 extern "C"
9572 #endif
9573 char avahi_client_new ();
9574 int
9575 main ()
9576 {
9577 return avahi_client_new ();
9578 ;
9579 return 0;
9580 }
9581 _ACEOF
9582 if ac_fn_c_try_link "$LINENO"; then :
9583 ac_cv_lib_avahi_client_avahi_client_new=yes
9584 else
9585 ac_cv_lib_avahi_client_avahi_client_new=no
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589 LIBS=$ac_check_lib_save_LIBS
9590 fi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
9592 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
9593 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = x""yes; then :
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_strerror in -lavahi-common" >&5
9595 $as_echo_n "checking for avahi_strerror in -lavahi-common... " >&6; }
9596 if test "${ac_cv_lib_avahi_common_avahi_strerror+set}" = set; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 ac_check_lib_save_LIBS=$LIBS
9600 LIBS="-lavahi-common $LIBS"
9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h. */
9603
9604 /* Override any GCC internal prototype to avoid an error.
9605 Use char because int might match the return type of a GCC
9606 builtin and then its argument prototype would still apply. */
9607 #ifdef __cplusplus
9608 extern "C"
9609 #endif
9610 char avahi_strerror ();
9611 int
9612 main ()
9613 {
9614 return avahi_strerror ();
9615 ;
9616 return 0;
9617 }
9618 _ACEOF
9619 if ac_fn_c_try_link "$LINENO"; then :
9620 ac_cv_lib_avahi_common_avahi_strerror=yes
9621 else
9622 ac_cv_lib_avahi_common_avahi_strerror=no
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext \
9625 conftest$ac_exeext conftest.$ac_ext
9626 LIBS=$ac_check_lib_save_LIBS
9627 fi
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_common_avahi_strerror" >&5
9629 $as_echo "$ac_cv_lib_avahi_common_avahi_strerror" >&6; }
9630 if test "x$ac_cv_lib_avahi_common_avahi_strerror" = x""yes; then :
9631 have_avahi_libs=yes
9632 fi
9633
9634 fi
9635
9636 if test "x${have_avahi_includes}" != "xyes"; then
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi headers" >&5
9638 $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi headers" >&2;}
9639 fi
9640 if test "x${have_avahi_libs}" != "xyes"; then
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi libraries" >&5
9642 $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi libraries" >&2;}
9643 fi
9644 if test "x${have_avahi_includes}${have_avahi_libs}" = "xyesyes"; then
9645
9646 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9647
9648 fi
9649 if test "x${have_avahi_includes}${have_avahi_libs}" == "xyesyes"; then
9650 HAVE_AVAHI_TRUE=
9651 HAVE_AVAHI_FALSE='#'
9652 else
9653 HAVE_AVAHI_TRUE='#'
9654 HAVE_AVAHI_FALSE=
9655 fi
9656
9657
9658 # Check whether --enable-grapher was given.
9659 if test "${enable_grapher+set}" = set; then :
9660 enableval=$enable_grapher;
9661 else
9662 enable_grapher="check"
9663 fi
9664
9665
9666 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9667 if test -n "$ac_tool_prefix"; then
9668 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9669 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 case $PKG_CONFIG in
9676 [\\/]* | ?:[\\/]*)
9677 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9678 ;;
9679 *)
9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 for as_dir in $PATH
9682 do
9683 IFS=$as_save_IFS
9684 test -z "$as_dir" && as_dir=.
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9687 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9689 break 2
9690 fi
9691 done
9692 done
9693 IFS=$as_save_IFS
9694
9695 ;;
9696 esac
9697 fi
9698 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9699 if test -n "$PKG_CONFIG"; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9701 $as_echo "$PKG_CONFIG" >&6; }
9702 else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9705 fi
9706
9707
9708 fi
9709 if test -z "$ac_cv_path_PKG_CONFIG"; then
9710 ac_pt_PKG_CONFIG=$PKG_CONFIG
9711 # Extract the first word of "pkg-config", so it can be a program name with args.
9712 set dummy pkg-config; ac_word=$2
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714 $as_echo_n "checking for $ac_word... " >&6; }
9715 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 case $ac_pt_PKG_CONFIG in
9719 [\\/]* | ?:[\\/]*)
9720 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9721 ;;
9722 *)
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724 for as_dir in $PATH
9725 do
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9730 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9732 break 2
9733 fi
9734 done
9735 done
9736 IFS=$as_save_IFS
9737
9738 ;;
9739 esac
9740 fi
9741 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9742 if test -n "$ac_pt_PKG_CONFIG"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9744 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9745 else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9748 fi
9749
9750 if test "x$ac_pt_PKG_CONFIG" = x; then
9751 PKG_CONFIG=""
9752 else
9753 case $cross_compiling:$ac_tool_warned in
9754 yes:)
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9757 ac_tool_warned=yes ;;
9758 esac
9759 PKG_CONFIG=$ac_pt_PKG_CONFIG
9760 fi
9761 else
9762 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9763 fi
9764
9765 fi
9766 if test -n "$PKG_CONFIG"; then
9767 _pkg_min_version=0.9.0
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9769 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9770 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9772 $as_echo "yes" >&6; }
9773 else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9776 PKG_CONFIG=""
9777 fi
9778
9779 fi
9780
9781 ac_ext=cpp
9782 ac_cpp='$CXXCPP $CPPFLAGS'
9783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9787 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9788 if test -z "$CXXCPP"; then
9789 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 # Double quotes because CXXCPP needs to be expanded
9793 for CXXCPP in "$CXX -E" "/lib/cpp"
9794 do
9795 ac_preproc_ok=false
9796 for ac_cxx_preproc_warn_flag in '' yes
9797 do
9798 # Use a header file that comes with gcc, so configuring glibc
9799 # with a fresh cross-compiler works.
9800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 # <limits.h> exists even on freestanding compilers.
9802 # On the NeXT, cc -E runs the code through the compiler's parser,
9803 # not just through cpp. "Syntax error" is here to catch this case.
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9806 #ifdef __STDC__
9807 # include <limits.h>
9808 #else
9809 # include <assert.h>
9810 #endif
9811 Syntax error
9812 _ACEOF
9813 if ac_fn_cxx_try_cpp "$LINENO"; then :
9814
9815 else
9816 # Broken: fails on valid input.
9817 continue
9818 fi
9819 rm -f conftest.err conftest.$ac_ext
9820
9821 # OK, works on sane cases. Now check whether nonexistent headers
9822 # can be detected and how.
9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9825 #include <ac_nonexistent.h>
9826 _ACEOF
9827 if ac_fn_cxx_try_cpp "$LINENO"; then :
9828 # Broken: success on invalid input.
9829 continue
9830 else
9831 # Passes both tests.
9832 ac_preproc_ok=:
9833 break
9834 fi
9835 rm -f conftest.err conftest.$ac_ext
9836
9837 done
9838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9839 rm -f conftest.err conftest.$ac_ext
9840 if $ac_preproc_ok; then :
9841 break
9842 fi
9843
9844 done
9845 ac_cv_prog_CXXCPP=$CXXCPP
9846
9847 fi
9848 CXXCPP=$ac_cv_prog_CXXCPP
9849 else
9850 ac_cv_prog_CXXCPP=$CXXCPP
9851 fi
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9853 $as_echo "$CXXCPP" >&6; }
9854 ac_preproc_ok=false
9855 for ac_cxx_preproc_warn_flag in '' yes
9856 do
9857 # Use a header file that comes with gcc, so configuring glibc
9858 # with a fresh cross-compiler works.
9859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9860 # <limits.h> exists even on freestanding compilers.
9861 # On the NeXT, cc -E runs the code through the compiler's parser,
9862 # not just through cpp. "Syntax error" is here to catch this case.
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9865 #ifdef __STDC__
9866 # include <limits.h>
9867 #else
9868 # include <assert.h>
9869 #endif
9870 Syntax error
9871 _ACEOF
9872 if ac_fn_cxx_try_cpp "$LINENO"; then :
9873
9874 else
9875 # Broken: fails on valid input.
9876 continue
9877 fi
9878 rm -f conftest.err conftest.$ac_ext
9879
9880 # OK, works on sane cases. Now check whether nonexistent headers
9881 # can be detected and how.
9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9884 #include <ac_nonexistent.h>
9885 _ACEOF
9886 if ac_fn_cxx_try_cpp "$LINENO"; then :
9887 # Broken: success on invalid input.
9888 continue
9889 else
9890 # Passes both tests.
9891 ac_preproc_ok=:
9892 break
9893 fi
9894 rm -f conftest.err conftest.$ac_ext
9895
9896 done
9897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9898 rm -f conftest.err conftest.$ac_ext
9899 if $ac_preproc_ok; then :
9900
9901 else
9902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9904 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
9905 See \`config.log' for more details." "$LINENO" 5; }
9906 fi
9907
9908 ac_ext=cpp
9909 ac_cpp='$CXXCPP $CPPFLAGS'
9910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9913
9914
9915 if test "x$enable_grapher" != xno; then :
9916
9917
9918 pkg_failed=no
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtkmm" >&5
9920 $as_echo_n "checking for gtkmm... " >&6; }
9921
9922 if test -n "$gtkmm_CFLAGS"; then
9923 pkg_cv_gtkmm_CFLAGS="$gtkmm_CFLAGS"
9924 elif test -n "$PKG_CONFIG"; then
9925 if test -n "$PKG_CONFIG" && \
9926 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\""; } >&5
9927 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5
9928 ac_status=$?
9929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9930 test $ac_status = 0; }; then
9931 pkg_cv_gtkmm_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.8.0" 2>/dev/null`
9932 else
9933 pkg_failed=yes
9934 fi
9935 else
9936 pkg_failed=untried
9937 fi
9938 if test -n "$gtkmm_LIBS"; then
9939 pkg_cv_gtkmm_LIBS="$gtkmm_LIBS"
9940 elif test -n "$PKG_CONFIG"; then
9941 if test -n "$PKG_CONFIG" && \
9942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\""; } >&5
9943 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5
9944 ac_status=$?
9945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9946 test $ac_status = 0; }; then
9947 pkg_cv_gtkmm_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.8.0" 2>/dev/null`
9948 else
9949 pkg_failed=yes
9950 fi
9951 else
9952 pkg_failed=untried
9953 fi
9954
9955
9956
9957 if test $pkg_failed = yes; then
9958
9959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9960 _pkg_short_errors_supported=yes
9961 else
9962 _pkg_short_errors_supported=no
9963 fi
9964 if test $_pkg_short_errors_supported = yes; then
9965 gtkmm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1`
9966 else
9967 gtkmm_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1`
9968 fi
9969 # Put the nasty error message in config.log where it belongs
9970 echo "$gtkmm_PKG_ERRORS" >&5
9971
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9974 have_gtkmm="no"
9975 elif test $pkg_failed = untried; then
9976 have_gtkmm="no"
9977 else
9978 gtkmm_CFLAGS=$pkg_cv_gtkmm_CFLAGS
9979 gtkmm_LIBS=$pkg_cv_gtkmm_LIBS
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9981 $as_echo "yes" >&6; }
9982 have_gtkmm="yes"
9983 fi
9984 if test "x${have_gtkmm}" == "xno" -a x"$enable_grapher" == "xyes"; then :
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: systemtap cannot find required gtkmm libs (gtkmm24-devel version 2.8.0 or higher may need to be installed)" >&5
9986 $as_echo "$as_me: WARNING: systemtap cannot find required gtkmm libs (gtkmm24-devel version 2.8.0 or higher may need to be installed)" >&2;}
9987 fi
9988
9989
9990 pkg_failed=no
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libglade" >&5
9992 $as_echo_n "checking for libglade... " >&6; }
9993
9994 if test -n "$libglade_CFLAGS"; then
9995 pkg_cv_libglade_CFLAGS="$libglade_CFLAGS"
9996 elif test -n "$PKG_CONFIG"; then
9997 if test -n "$PKG_CONFIG" && \
9998 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\""; } >&5
9999 ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5
10000 ac_status=$?
10001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10002 test $ac_status = 0; }; then
10003 pkg_cv_libglade_CFLAGS=`$PKG_CONFIG --cflags "libglademm-2.4 >= 2.6.7" 2>/dev/null`
10004 else
10005 pkg_failed=yes
10006 fi
10007 else
10008 pkg_failed=untried
10009 fi
10010 if test -n "$libglade_LIBS"; then
10011 pkg_cv_libglade_LIBS="$libglade_LIBS"
10012 elif test -n "$PKG_CONFIG"; then
10013 if test -n "$PKG_CONFIG" && \
10014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\""; } >&5
10015 ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5
10016 ac_status=$?
10017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10018 test $ac_status = 0; }; then
10019 pkg_cv_libglade_LIBS=`$PKG_CONFIG --libs "libglademm-2.4 >= 2.6.7" 2>/dev/null`
10020 else
10021 pkg_failed=yes
10022 fi
10023 else
10024 pkg_failed=untried
10025 fi
10026
10027
10028
10029 if test $pkg_failed = yes; then
10030
10031 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10032 _pkg_short_errors_supported=yes
10033 else
10034 _pkg_short_errors_supported=no
10035 fi
10036 if test $_pkg_short_errors_supported = yes; then
10037 libglade_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libglademm-2.4 >= 2.6.7" 2>&1`
10038 else
10039 libglade_PKG_ERRORS=`$PKG_CONFIG --print-errors "libglademm-2.4 >= 2.6.7" 2>&1`
10040 fi
10041 # Put the nasty error message in config.log where it belongs
10042 echo "$libglade_PKG_ERRORS" >&5
10043
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045 $as_echo "no" >&6; }
10046 have_libglade="no"
10047 elif test $pkg_failed = untried; then
10048 have_libglade="no"
10049 else
10050 libglade_CFLAGS=$pkg_cv_libglade_CFLAGS
10051 libglade_LIBS=$pkg_cv_libglade_LIBS
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10053 $as_echo "yes" >&6; }
10054 have_libglade="yes"
10055 fi
10056 if test "x${have_libglade}" == "xno" -a x"$enable_grapher" == "xyes"; then :
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: systemtap cannot find required libglade libs (libglademm24-devel version 2.6.7 or higher may need to be installed)" >&5
10058 $as_echo "$as_me: WARNING: systemtap cannot find required libglade libs (libglademm24-devel version 2.6.7 or higher may need to be installed)" >&2;}
10059 fi
10060
10061 have_boost_headers="yes"
10062 ac_ext=cpp
10063 ac_cpp='$CXXCPP $CPPFLAGS'
10064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10067
10068 for ac_header in boost/algorithm/string.hpp boost/range.hpp
10069 do :
10070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10071 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10072 eval as_val=\$$as_ac_Header
10073 if test "x$as_val" = x""yes; then :
10074 cat >>confdefs.h <<_ACEOF
10075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10076 _ACEOF
10077
10078 else
10079 have_boost_headers="no"
10080 fi
10081
10082 done
10083
10084 ac_ext=c
10085 ac_cpp='$CPP $CPPFLAGS'
10086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10089
10090 if test "x${have_boost_headers}" == "xno" -a x"$enable_grapher" == "xyes"; then :
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&5
10092 $as_echo "$as_me: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&2;}
10093 fi
10094
10095 if test "x${have_gtkmm}${have_libglade}${have_boost_headers}" == "xyesyesyes"; then :
10096 have_grapher_reqs="yes"
10097 else
10098 have_grapher_reqs="no"
10099 fi
10100
10101 fi
10102 if test "x${have_grapher_reqs}" == "xno" -a x"$enable_grapher" == "xyes"; then :
10103 as_fn_error "systemtap cannot find grapher build requirements (gtkmm, libglade, and boost headers)" "$LINENO" 5
10104 fi
10105 if test "x${have_grapher_reqs}" == "xyes" -a x"$enable_grapher" != "xno"; then
10106 BUILD_GRAPHER_TRUE=
10107 BUILD_GRAPHER_FALSE='#'
10108 else
10109 BUILD_GRAPHER_TRUE='#'
10110 BUILD_GRAPHER_FALSE=
10111 fi
10112
10113
10114
10115 # Check whether --with-rpm was given.
10116 if test "${with_rpm+set}" = set; then :
10117 withval=$with_rpm;
10118 else
10119 with_rpm="auto"
10120 fi
10121
10122 if test "$with_rpm" != "no"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5
10124 $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; }
10125 if test "${ac_cv_lib_rpm_rpmtsInitIterator+set}" = set; then :
10126 $as_echo_n "(cached) " >&6
10127 else
10128 ac_check_lib_save_LIBS=$LIBS
10129 LIBS="-lrpm $LIBS"
10130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131 /* end confdefs.h. */
10132
10133 /* Override any GCC internal prototype to avoid an error.
10134 Use char because int might match the return type of a GCC
10135 builtin and then its argument prototype would still apply. */
10136 #ifdef __cplusplus
10137 extern "C"
10138 #endif
10139 char rpmtsInitIterator ();
10140 int
10141 main ()
10142 {
10143 return rpmtsInitIterator ();
10144 ;
10145 return 0;
10146 }
10147 _ACEOF
10148 if ac_fn_c_try_link "$LINENO"; then :
10149 ac_cv_lib_rpm_rpmtsInitIterator=yes
10150 else
10151 ac_cv_lib_rpm_rpmtsInitIterator=no
10152 fi
10153 rm -f core conftest.err conftest.$ac_objext \
10154 conftest$ac_exeext conftest.$ac_ext
10155 LIBS=$ac_check_lib_save_LIBS
10156 fi
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
10158 $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
10159 if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = x""yes; then :
10160
10161
10162 $as_echo "#define HAVE_LIBRPM 1" >>confdefs.h
10163
10164 stap_LIBS="$stap_LIBS -lrpm"
10165 have_librpm="yes"
10166 else
10167 have_librpm="no"
10168 fi
10169
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5
10171 $as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; }
10172 if test "${ac_cv_lib_rpmio_rpmFreeCrypto+set}" = set; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 ac_check_lib_save_LIBS=$LIBS
10176 LIBS="-lrpmio $LIBS"
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179
10180 /* Override any GCC internal prototype to avoid an error.
10181 Use char because int might match the return type of a GCC
10182 builtin and then its argument prototype would still apply. */
10183 #ifdef __cplusplus
10184 extern "C"
10185 #endif
10186 char rpmFreeCrypto ();
10187 int
10188 main ()
10189 {
10190 return rpmFreeCrypto ();
10191 ;
10192 return 0;
10193 }
10194 _ACEOF
10195 if ac_fn_c_try_link "$LINENO"; then :
10196 ac_cv_lib_rpmio_rpmFreeCrypto=yes
10197 else
10198 ac_cv_lib_rpmio_rpmFreeCrypto=no
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202 LIBS=$ac_check_lib_save_LIBS
10203 fi
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5
10205 $as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; }
10206 if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = x""yes; then :
10207
10208
10209 $as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h
10210
10211 stap_LIBS="$stap_LIBS -lrpmio"
10212 have_librpmio="yes"
10213 else
10214 have_librpmio="no"
10215 fi
10216
10217 if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then
10218 as_fn_error "cannot find librpm" "$LINENO" 5
10219 fi
10220 if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5
10222 $as_echo "$as_me: WARNING: cannot find librpmio" >&2;}
10223 fi
10224 fi
10225
10226
10227 build_elfutils=no
10228
10229 # Check whether --with-elfutils was given.
10230 if test "${with_elfutils+set}" = set; then :
10231 withval=$with_elfutils;
10232 case "$with_elfutils" in
10233 yes) as_fn_error "--with-elfutils requires an argument" "$LINENO" 5 ;;
10234 ''|no) ;;
10235 *) build_elfutils=yes ;;
10236 esac
10237 fi
10238
10239 if test $build_elfutils = yes; then
10240 BUILD_ELFUTILS_TRUE=
10241 BUILD_ELFUTILS_FALSE='#'
10242 else
10243 BUILD_ELFUTILS_TRUE='#'
10244 BUILD_ELFUTILS_FALSE=
10245 fi
10246
10247 elfutils_abs_srcdir=`if test $build_elfutils = yes; then :
10248 cd $with_elfutils && pwd
10249 fi`
10250
10251
10252 if test $enable_translator = yes; then
10253 if test $build_elfutils = no; then
10254 # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/
10255
10256 # On modern debian/ubuntu, libebl has been merged into libdw
10257 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
10258 save_LIBS="$LIBS"
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5
10260 $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; }
10261 if test "${ac_cv_lib_ebl_ebl_get_elfmachine+set}" = set; then :
10262 $as_echo_n "(cached) " >&6
10263 else
10264 ac_check_lib_save_LIBS=$LIBS
10265 LIBS="-lebl $LIBS"
10266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267 /* end confdefs.h. */
10268
10269 /* Override any GCC internal prototype to avoid an error.
10270 Use char because int might match the return type of a GCC
10271 builtin and then its argument prototype would still apply. */
10272 #ifdef __cplusplus
10273 extern "C"
10274 #endif
10275 char ebl_get_elfmachine ();
10276 int
10277 main ()
10278 {
10279 return ebl_get_elfmachine ();
10280 ;
10281 return 0;
10282 }
10283 _ACEOF
10284 if ac_fn_c_try_link "$LINENO"; then :
10285 ac_cv_lib_ebl_ebl_get_elfmachine=yes
10286 else
10287 ac_cv_lib_ebl_ebl_get_elfmachine=no
10288 fi
10289 rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10291 LIBS=$ac_check_lib_save_LIBS
10292 fi
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5
10294 $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; }
10295 if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = x""yes; then :
10296 ebl_LIBS=-lebl
10297 else
10298 ebl_LIBS=
10299 fi
10300
10301 LIBS="$save_LIBS"
10302
10303 save_LIBS="$LIBS"
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
10305 $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
10306 if test "${ac_cv_lib_dw_dwfl_module_getsym+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 ac_check_lib_save_LIBS=$LIBS
10310 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10313
10314 /* Override any GCC internal prototype to avoid an error.
10315 Use char because int might match the return type of a GCC
10316 builtin and then its argument prototype would still apply. */
10317 #ifdef __cplusplus
10318 extern "C"
10319 #endif
10320 char dwfl_module_getsym ();
10321 int
10322 main ()
10323 {
10324 return dwfl_module_getsym ();
10325 ;
10326 return 0;
10327 }
10328 _ACEOF
10329 if ac_fn_c_try_link "$LINENO"; then :
10330 ac_cv_lib_dw_dwfl_module_getsym=yes
10331 else
10332 ac_cv_lib_dw_dwfl_module_getsym=no
10333 fi
10334 rm -f core conftest.err conftest.$ac_objext \
10335 conftest$ac_exeext conftest.$ac_ext
10336 LIBS=$ac_check_lib_save_LIBS
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
10339 $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
10340 if test "x$ac_cv_lib_dw_dwfl_module_getsym" = x""yes; then :
10341 cat >>confdefs.h <<_ACEOF
10342 #define HAVE_LIBDW 1
10343 _ACEOF
10344
10345 LIBS="-ldw $LIBS"
10346
10347 else
10348
10349 as_fn_error "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5
10350 fi
10351
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_getelf in -ldw" >&5
10353 $as_echo_n "checking for dwarf_getelf in -ldw... " >&6; }
10354 if test "${ac_cv_lib_dw_dwarf_getelf+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 ac_check_lib_save_LIBS=$LIBS
10358 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361
10362 /* Override any GCC internal prototype to avoid an error.
10363 Use char because int might match the return type of a GCC
10364 builtin and then its argument prototype would still apply. */
10365 #ifdef __cplusplus
10366 extern "C"
10367 #endif
10368 char dwarf_getelf ();
10369 int
10370 main ()
10371 {
10372 return dwarf_getelf ();
10373 ;
10374 return 0;
10375 }
10376 _ACEOF
10377 if ac_fn_c_try_link "$LINENO"; then :
10378 ac_cv_lib_dw_dwarf_getelf=yes
10379 else
10380 ac_cv_lib_dw_dwarf_getelf=no
10381 fi
10382 rm -f core conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_lib_save_LIBS
10385 fi
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_getelf" >&5
10387 $as_echo "$ac_cv_lib_dw_dwarf_getelf" >&6; }
10388 if test "x$ac_cv_lib_dw_dwarf_getelf" = x""yes; then :
10389 cat >>confdefs.h <<_ACEOF
10390 #define HAVE_LIBDW 1
10391 _ACEOF
10392
10393 LIBS="-ldw $LIBS"
10394
10395 else
10396
10397 as_fn_error "elfutils, libdw too old, need 0.126+" "$LINENO" 5
10398 fi
10399
10400 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
10401 LIBS="$save_LIBS"
10402 else
10403 # We built our own and stap_LDFLAGS points at the install.
10404 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
10405 fi
10406 fi
10407
10408
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
10410 $as_echo "$as_me: stap will link $stap_LIBS" >&6;}
10411
10412
10413 date=`date +%Y-%m-%d`
10414
10415 cat >>confdefs.h <<_ACEOF
10416 #define DATE "$date"
10417 _ACEOF
10418
10419 DATE="$date"
10420
10421
10422 # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
10423 # being compiled on 32-bit userspace but running against 64-bit kernels.
10424 # This is no longer necessary.
10425
10426 # Use tr1/unordered_map if available
10427 ac_ext=cpp
10428 ac_cpp='$CXXCPP $CPPFLAGS'
10429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10432
10433 for ac_header in tr1/unordered_map
10434 do :
10435 ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" "$ac_includes_default"
10436 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
10437 cat >>confdefs.h <<_ACEOF
10438 #define HAVE_TR1_UNORDERED_MAP 1
10439 _ACEOF
10440
10441 fi
10442
10443 done
10444
10445 for ac_header in tr1/memory
10446 do :
10447 ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/memory" "ac_cv_header_tr1_memory" "$ac_includes_default"
10448 if test "x$ac_cv_header_tr1_memory" = x""yes; then :
10449 cat >>confdefs.h <<_ACEOF
10450 #define HAVE_TR1_MEMORY 1
10451 _ACEOF
10452
10453 fi
10454
10455 done
10456
10457 for ac_header in boost/shared_ptr.hpp
10458 do :
10459 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default"
10460 if test "x$ac_cv_header_boost_shared_ptr_hpp" = x""yes; then :
10461 cat >>confdefs.h <<_ACEOF
10462 #define HAVE_BOOST_SHARED_PTR_HPP 1
10463 _ACEOF
10464
10465 fi
10466
10467 done
10468
10469 ac_ext=c
10470 ac_cpp='$CPP $CPPFLAGS'
10471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10474
10475
10476
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
10478 $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; }
10479 if test "${stap_cv_sectionq+set}" = set; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482
10483 old_CFLAGS="$CFLAGS"
10484 CFLAGS="$CFLAGS -Wa,--fatal-warnings"
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10487 asm(".section .note.foo,\"?\",\"note\"\n"
10488 ".byte 1, 2, 3\n"
10489 ".previous\n"
10490 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
10491 ".byte 1\n"
10492 ".pushsection .note.foo,\"?\",\"note\"\n"
10493 ".byte 4, 5, 6\n"
10494 ".popsection\n"
10495 ".byte 2\n");
10496 _ACEOF
10497 if ac_fn_c_try_compile "$LINENO"; then :
10498 stap_cv_sectionq=yes
10499 else
10500 stap_cv_sectionq=no
10501 fi
10502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10503 CFLAGS="$old_CFLAGS"
10504 fi
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
10506 $as_echo "$stap_cv_sectionq" >&6; }
10507
10508 support_section_question=0
10509 if test $stap_cv_sectionq = yes; then
10510 support_section_question=1
10511 fi
10512 ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
10513
10514
10515
10516 if test $build_elfutils = yes -a $enable_translator = yes; then
10517 case "$with_elfutils" in
10518 /*) elfutils_srcdir="$with_elfutils" ;;
10519 *) elfutils_srcdir="../$with_elfutils" ;;
10520 esac
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5
10522 $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
10523
10524 save_CFLAGS="$CFLAGS"
10525 save_CXXFLAGS="$CXXFLAGS"
10526 CXXFLAGS="$CXXFLAGS -fgnu89-inline"
10527 CFLAGS="$CFLAGS -fgnu89-inline"
10528 gnu89_inline_flag=""
10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10531 int something ();
10532 _ACEOF
10533 if ac_fn_c_try_compile "$LINENO"; then :
10534
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5
10536 $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
10537 gnu89_inline_flag="-fgnu89-inline"
10538 else
10539
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5
10541 $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
10542 fi
10543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544 CFLAGS="$save_CFLAGS"
10545 CXXFLAGS="$save_CXXFLAGS"
10546
10547 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
10548 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
10549 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
10550 # So we must make sure to pass those settings to elfutils configure.
10551 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
10552 here=`pwd`
10553 (mkdir -p build-elfutils && cd build-elfutils &&
10554 bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
10555 --includedir="${here}/include-elfutils" \
10556 --libdir="${here}/lib-elfutils" \
10557 --exec-prefix="$exec_prefix" \
10558 --prefix="$prefix" \
10559 CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag" \
10560 LDFLAGS="$LDFLAGS $elfutils_rpath" &&
10561 if test -f ${elfutils_srcdir}/config/version.h.in; then
10562 echo Trying to install elfutils version header...
10563 make install-pkgincludeHEADERS
10564 fi
10565 # so that elfutils/version.h - available from 0.138 - may be found.
10566 # Don't use install-data because that will fail (installing in $prefix).
10567 )
10568 if test $? != 0; then exit; fi
10569 save_CPPFLAGS=${CPPFLAGS}
10570 CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils
10571 for ac_header in elfutils/version.h
10572 do :
10573 ac_fn_c_check_header_mongrel "$LINENO" "elfutils/version.h" "ac_cv_header_elfutils_version_h" "$ac_includes_default"
10574 if test "x$ac_cv_header_elfutils_version_h" = x""yes; then :
10575 cat >>confdefs.h <<_ACEOF
10576 #define HAVE_ELFUTILS_VERSION_H 1
10577 _ACEOF
10578
10579 fi
10580
10581 done
10582
10583 CPPFLAGS="$save_CPPFLAGS"
10584 else
10585 for ac_header in elfutils/version.h
10586 do :
10587 ac_fn_c_check_header_mongrel "$LINENO" "elfutils/version.h" "ac_cv_header_elfutils_version_h" "$ac_includes_default"
10588 if test "x$ac_cv_header_elfutils_version_h" = x""yes; then :
10589 cat >>confdefs.h <<_ACEOF
10590 #define HAVE_ELFUTILS_VERSION_H 1
10591 _ACEOF
10592
10593 fi
10594
10595 done
10596
10597 fi
10598
10599 ENABLE_NLS="$USE_NLS"
10600
10601 localedir="$localedir"
10602
10603 LOCALEDIR="$localedir"
10604
10605
10606
10607 stap_prefix=$prefix
10608 test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix
10609
10610 cat >>confdefs.h <<_ACEOF
10611 #define STAP_PREFIX "$stap_prefix"
10612 _ACEOF
10613
10614 STAP_PREFIX="$stap_prefix"
10615
10616
10617 ac_config_headers="$ac_config_headers config.h:config.in"
10618
10619 ac_config_files="$ac_config_files Makefile doc/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile grapher/Makefile grapher/stapgraph.1 stappaths.7 initscript/systemtap initscript/stap-server"
10620
10621
10622
10623 subdirs="$subdirs testsuite runtime/staprun"
10624
10625 if test $enable_translator == "yes"; then
10626 ac_config_files="$ac_config_files run-stap"
10627
10628 fi
10629 ac_config_files="$ac_config_files dtrace"
10630
10631
10632 # Setup "shadow" directory doc/beginners that has everything setup for
10633 # publican in one directory (through directory links if necessary).
10634 # It would be nice to use AC_CONFIG_LINKS, but automake complains when
10635 # the src is a directory and not a file.
10636 ac_config_files="$ac_config_files doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in"
10637
10638 ac_config_commands="$ac_config_commands doc/beginners"
10639
10640
10641 cat >confcache <<\_ACEOF
10642 # This file is a shell script that caches the results of configure
10643 # tests run on this system so they can be shared between configure
10644 # scripts and configure runs, see configure's option --config-cache.
10645 # It is not useful on other systems. If it contains results you don't
10646 # want to keep, you may remove or edit it.
10647 #
10648 # config.status only pays attention to the cache file if you give it
10649 # the --recheck option to rerun configure.
10650 #
10651 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10653 # following values.
10654
10655 _ACEOF
10656
10657 # The following way of writing the cache mishandles newlines in values,
10658 # but we know of no workaround that is simple, portable, and efficient.
10659 # So, we kill variables containing newlines.
10660 # Ultrix sh set writes to stderr and can't be redirected directly,
10661 # and sets the high bit in the cache file unless we assign to the vars.
10662 (
10663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10664 eval ac_val=\$$ac_var
10665 case $ac_val in #(
10666 *${as_nl}*)
10667 case $ac_var in #(
10668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10669 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10670 esac
10671 case $ac_var in #(
10672 _ | IFS | as_nl) ;; #(
10673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10674 *) { eval $ac_var=; unset $ac_var;} ;;
10675 esac ;;
10676 esac
10677 done
10678
10679 (set) 2>&1 |
10680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10681 *${as_nl}ac_space=\ *)
10682 # `set' does not quote correctly, so add quotes: double-quote
10683 # substitution turns \\\\ into \\, and sed turns \\ into \.
10684 sed -n \
10685 "s/'/'\\\\''/g;
10686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10687 ;; #(
10688 *)
10689 # `set' quotes correctly as required by POSIX, so do not add quotes.
10690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10691 ;;
10692 esac |
10693 sort
10694 ) |
10695 sed '
10696 /^ac_cv_env_/b end
10697 t clear
10698 :clear
10699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10700 t end
10701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10702 :end' >>confcache
10703 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10704 if test -w "$cache_file"; then
10705 test "x$cache_file" != "x/dev/null" &&
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10707 $as_echo "$as_me: updating cache $cache_file" >&6;}
10708 cat confcache >$cache_file
10709 else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10711 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10712 fi
10713 fi
10714 rm -f confcache
10715
10716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10717 # Let make expand exec_prefix.
10718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10719
10720 DEFS=-DHAVE_CONFIG_H
10721
10722 ac_libobjs=
10723 ac_ltlibobjs=
10724 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10725 # 1. Remove the extension, and $U if already installed.
10726 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10727 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10728 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10729 # will be set to the directory where LIBOBJS objects are built.
10730 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10731 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10732 done
10733 LIBOBJS=$ac_libobjs
10734
10735 LTLIBOBJS=$ac_ltlibobjs
10736
10737
10738 if test -n "$EXEEXT"; then
10739 am__EXEEXT_TRUE=
10740 am__EXEEXT_FALSE='#'
10741 else
10742 am__EXEEXT_TRUE='#'
10743 am__EXEEXT_FALSE=
10744 fi
10745
10746 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10747 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10749 fi
10750 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10751 as_fn_error "conditional \"AMDEP\" was never defined.
10752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10753 fi
10754 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10755 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10757 fi
10758 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10759 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10761 fi
10762 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10763 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
10764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10765 fi
10766 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10767 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10769 fi
10770 if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
10771 as_fn_error "conditional \"BUILD_TRANSLATOR\" was never defined.
10772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10773 fi
10774 if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
10775 as_fn_error "conditional \"BUILD_CRASHMOD\" was never defined.
10776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10777 fi
10778 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
10779 as_fn_error "conditional \"BUILD_DOCS\" was never defined.
10780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10781 fi
10782 if test -z "${BUILD_PUBLICAN_TRUE}" && test -z "${BUILD_PUBLICAN_FALSE}"; then
10783 as_fn_error "conditional \"BUILD_PUBLICAN\" was never defined.
10784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10785 fi
10786 if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
10787 as_fn_error "conditional \"BUILD_REFDOCS\" was never defined.
10788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10789 fi
10790 if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
10791 as_fn_error "conditional \"XMLTO_STRINGPARAM\" was never defined.
10792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10793 fi
10794 if test -z "${BUILD_PDFREFDOCS_TRUE}" && test -z "${BUILD_PDFREFDOCS_FALSE}"; then
10795 as_fn_error "conditional \"BUILD_PDFREFDOCS\" was never defined.
10796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10797 fi
10798 if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
10799 as_fn_error "conditional \"HAVE_NSS\" was never defined.
10800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10801 fi
10802 if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
10803 as_fn_error "conditional \"BUILD_SERVER\" was never defined.
10804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10805 fi
10806 if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
10807 as_fn_error "conditional \"HAVE_AVAHI\" was never defined.
10808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10809 fi
10810 if test -z "${BUILD_GRAPHER_TRUE}" && test -z "${BUILD_GRAPHER_FALSE}"; then
10811 as_fn_error "conditional \"BUILD_GRAPHER\" was never defined.
10812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10813 fi
10814 if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
10815 as_fn_error "conditional \"BUILD_ELFUTILS\" was never defined.
10816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10817 fi
10818
10819 : ${CONFIG_STATUS=./config.status}
10820 ac_write_fail=0
10821 ac_clean_files_save=$ac_clean_files
10822 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10824 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10825 as_write_fail=0
10826 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10827 #! $SHELL
10828 # Generated by $as_me.
10829 # Run this file to recreate the current configuration.
10830 # Compiler output produced by configure, useful for debugging
10831 # configure, is in config.log if it exists.
10832
10833 debug=false
10834 ac_cs_recheck=false
10835 ac_cs_silent=false
10836
10837 SHELL=\${CONFIG_SHELL-$SHELL}
10838 export SHELL
10839 _ASEOF
10840 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10841 ## -------------------- ##
10842 ## M4sh Initialization. ##
10843 ## -------------------- ##
10844
10845 # Be more Bourne compatible
10846 DUALCASE=1; export DUALCASE # for MKS sh
10847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10848 emulate sh
10849 NULLCMD=:
10850 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10851 # is contrary to our usage. Disable this feature.
10852 alias -g '${1+"$@"}'='"$@"'
10853 setopt NO_GLOB_SUBST
10854 else
10855 case `(set -o) 2>/dev/null` in #(
10856 *posix*) :
10857 set -o posix ;; #(
10858 *) :
10859 ;;
10860 esac
10861 fi
10862
10863
10864 as_nl='
10865 '
10866 export as_nl
10867 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10868 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10869 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10871 # Prefer a ksh shell builtin over an external printf program on Solaris,
10872 # but without wasting forks for bash or zsh.
10873 if test -z "$BASH_VERSION$ZSH_VERSION" \
10874 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10875 as_echo='print -r --'
10876 as_echo_n='print -rn --'
10877 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10878 as_echo='printf %s\n'
10879 as_echo_n='printf %s'
10880 else
10881 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10882 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10883 as_echo_n='/usr/ucb/echo -n'
10884 else
10885 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10886 as_echo_n_body='eval
10887 arg=$1;
10888 case $arg in #(
10889 *"$as_nl"*)
10890 expr "X$arg" : "X\\(.*\\)$as_nl";
10891 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10892 esac;
10893 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10894 '
10895 export as_echo_n_body
10896 as_echo_n='sh -c $as_echo_n_body as_echo'
10897 fi
10898 export as_echo_body
10899 as_echo='sh -c $as_echo_body as_echo'
10900 fi
10901
10902 # The user is always right.
10903 if test "${PATH_SEPARATOR+set}" != set; then
10904 PATH_SEPARATOR=:
10905 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10906 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10907 PATH_SEPARATOR=';'
10908 }
10909 fi
10910
10911
10912 # IFS
10913 # We need space, tab and new line, in precisely that order. Quoting is
10914 # there to prevent editors from complaining about space-tab.
10915 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10916 # splitting by setting IFS to empty value.)
10917 IFS=" "" $as_nl"
10918
10919 # Find who we are. Look in the path if we contain no directory separator.
10920 case $0 in #((
10921 *[\\/]* ) as_myself=$0 ;;
10922 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
10924 do
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10928 done
10929 IFS=$as_save_IFS
10930
10931 ;;
10932 esac
10933 # We did not find ourselves, most probably we were run as `sh COMMAND'
10934 # in which case we are not to be found in the path.
10935 if test "x$as_myself" = x; then
10936 as_myself=$0
10937 fi
10938 if test ! -f "$as_myself"; then
10939 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10940 exit 1
10941 fi
10942
10943 # Unset variables that we do not need and which cause bugs (e.g. in
10944 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10945 # suppresses any "Segmentation fault" message there. '((' could
10946 # trigger a bug in pdksh 5.2.14.
10947 for as_var in BASH_ENV ENV MAIL MAILPATH
10948 do eval test x\${$as_var+set} = xset \
10949 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10950 done
10951 PS1='$ '
10952 PS2='> '
10953 PS4='+ '
10954
10955 # NLS nuisances.
10956 LC_ALL=C
10957 export LC_ALL
10958 LANGUAGE=C
10959 export LANGUAGE
10960
10961 # CDPATH.
10962 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10963
10964
10965 # as_fn_error ERROR [LINENO LOG_FD]
10966 # ---------------------------------
10967 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10968 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10969 # script with status $?, using 1 if that was 0.
10970 as_fn_error ()
10971 {
10972 as_status=$?; test $as_status -eq 0 && as_status=1
10973 if test "$3"; then
10974 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10975 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
10976 fi
10977 $as_echo "$as_me: error: $1" >&2
10978 as_fn_exit $as_status
10979 } # as_fn_error
10980
10981
10982 # as_fn_set_status STATUS
10983 # -----------------------
10984 # Set $? to STATUS, without forking.
10985 as_fn_set_status ()
10986 {
10987 return $1
10988 } # as_fn_set_status
10989
10990 # as_fn_exit STATUS
10991 # -----------------
10992 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10993 as_fn_exit ()
10994 {
10995 set +e
10996 as_fn_set_status $1
10997 exit $1
10998 } # as_fn_exit
10999
11000 # as_fn_unset VAR
11001 # ---------------
11002 # Portably unset VAR.
11003 as_fn_unset ()
11004 {
11005 { eval $1=; unset $1;}
11006 }
11007 as_unset=as_fn_unset
11008 # as_fn_append VAR VALUE
11009 # ----------------------
11010 # Append the text in VALUE to the end of the definition contained in VAR. Take
11011 # advantage of any shell optimizations that allow amortized linear growth over
11012 # repeated appends, instead of the typical quadratic growth present in naive
11013 # implementations.
11014 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11015 eval 'as_fn_append ()
11016 {
11017 eval $1+=\$2
11018 }'
11019 else
11020 as_fn_append ()
11021 {
11022 eval $1=\$$1\$2
11023 }
11024 fi # as_fn_append
11025
11026 # as_fn_arith ARG...
11027 # ------------------
11028 # Perform arithmetic evaluation on the ARGs, and store the result in the
11029 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11030 # must be portable across $(()) and expr.
11031 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11032 eval 'as_fn_arith ()
11033 {
11034 as_val=$(( $* ))
11035 }'
11036 else
11037 as_fn_arith ()
11038 {
11039 as_val=`expr "$@" || test $? -eq 1`
11040 }
11041 fi # as_fn_arith
11042
11043
11044 if expr a : '\(a\)' >/dev/null 2>&1 &&
11045 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11046 as_expr=expr
11047 else
11048 as_expr=false
11049 fi
11050
11051 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11052 as_basename=basename
11053 else
11054 as_basename=false
11055 fi
11056
11057 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11058 as_dirname=dirname
11059 else
11060 as_dirname=false
11061 fi
11062
11063 as_me=`$as_basename -- "$0" ||
11064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11065 X"$0" : 'X\(//\)$' \| \
11066 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11067 $as_echo X/"$0" |
11068 sed '/^.*\/\([^/][^/]*\)\/*$/{
11069 s//\1/
11070 q
11071 }
11072 /^X\/\(\/\/\)$/{
11073 s//\1/
11074 q
11075 }
11076 /^X\/\(\/\).*/{
11077 s//\1/
11078 q
11079 }
11080 s/.*/./; q'`
11081
11082 # Avoid depending upon Character Ranges.
11083 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11084 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11085 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11086 as_cr_digits='0123456789'
11087 as_cr_alnum=$as_cr_Letters$as_cr_digits
11088
11089 ECHO_C= ECHO_N= ECHO_T=
11090 case `echo -n x` in #(((((
11091 -n*)
11092 case `echo 'xy\c'` in
11093 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11094 xy) ECHO_C='\c';;
11095 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11096 ECHO_T=' ';;
11097 esac;;
11098 *)
11099 ECHO_N='-n';;
11100 esac
11101
11102 rm -f conf$$ conf$$.exe conf$$.file
11103 if test -d conf$$.dir; then
11104 rm -f conf$$.dir/conf$$.file
11105 else
11106 rm -f conf$$.dir
11107 mkdir conf$$.dir 2>/dev/null
11108 fi
11109 if (echo >conf$$.file) 2>/dev/null; then
11110 if ln -s conf$$.file conf$$ 2>/dev/null; then
11111 as_ln_s='ln -s'
11112 # ... but there are two gotchas:
11113 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11114 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11115 # In both cases, we have to default to `cp -p'.
11116 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11117 as_ln_s='cp -p'
11118 elif ln conf$$.file conf$$ 2>/dev/null; then
11119 as_ln_s=ln
11120 else
11121 as_ln_s='cp -p'
11122 fi
11123 else
11124 as_ln_s='cp -p'
11125 fi
11126 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11127 rmdir conf$$.dir 2>/dev/null
11128
11129
11130 # as_fn_mkdir_p
11131 # -------------
11132 # Create "$as_dir" as a directory, including parents if necessary.
11133 as_fn_mkdir_p ()
11134 {
11135
11136 case $as_dir in #(
11137 -*) as_dir=./$as_dir;;
11138 esac
11139 test -d "$as_dir" || eval $as_mkdir_p || {
11140 as_dirs=
11141 while :; do
11142 case $as_dir in #(
11143 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11144 *) as_qdir=$as_dir;;
11145 esac
11146 as_dirs="'$as_qdir' $as_dirs"
11147 as_dir=`$as_dirname -- "$as_dir" ||
11148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11149 X"$as_dir" : 'X\(//\)[^/]' \| \
11150 X"$as_dir" : 'X\(//\)$' \| \
11151 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11152 $as_echo X"$as_dir" |
11153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11154 s//\1/
11155 q
11156 }
11157 /^X\(\/\/\)[^/].*/{
11158 s//\1/
11159 q
11160 }
11161 /^X\(\/\/\)$/{
11162 s//\1/
11163 q
11164 }
11165 /^X\(\/\).*/{
11166 s//\1/
11167 q
11168 }
11169 s/.*/./; q'`
11170 test -d "$as_dir" && break
11171 done
11172 test -z "$as_dirs" || eval "mkdir $as_dirs"
11173 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11174
11175
11176 } # as_fn_mkdir_p
11177 if mkdir -p . 2>/dev/null; then
11178 as_mkdir_p='mkdir -p "$as_dir"'
11179 else
11180 test -d ./-p && rmdir ./-p
11181 as_mkdir_p=false
11182 fi
11183
11184 if test -x / >/dev/null 2>&1; then
11185 as_test_x='test -x'
11186 else
11187 if ls -dL / >/dev/null 2>&1; then
11188 as_ls_L_option=L
11189 else
11190 as_ls_L_option=
11191 fi
11192 as_test_x='
11193 eval sh -c '\''
11194 if test -d "$1"; then
11195 test -d "$1/.";
11196 else
11197 case $1 in #(
11198 -*)set "./$1";;
11199 esac;
11200 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11201 ???[sx]*):;;*)false;;esac;fi
11202 '\'' sh
11203 '
11204 fi
11205 as_executable_p=$as_test_x
11206
11207 # Sed expression to map a string onto a valid CPP name.
11208 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11209
11210 # Sed expression to map a string onto a valid variable name.
11211 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11212
11213
11214 exec 6>&1
11215 ## ----------------------------------- ##
11216 ## Main body of $CONFIG_STATUS script. ##
11217 ## ----------------------------------- ##
11218 _ASEOF
11219 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11220
11221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11222 # Save the log message, to keep $0 and so on meaningful, and to
11223 # report actual input values of CONFIG_FILES etc. instead of their
11224 # values after options handling.
11225 ac_log="
11226 This file was extended by systemtap $as_me 1.6, which was
11227 generated by GNU Autoconf 2.65. Invocation command line was
11228
11229 CONFIG_FILES = $CONFIG_FILES
11230 CONFIG_HEADERS = $CONFIG_HEADERS
11231 CONFIG_LINKS = $CONFIG_LINKS
11232 CONFIG_COMMANDS = $CONFIG_COMMANDS
11233 $ $0 $@
11234
11235 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11236 "
11237
11238 _ACEOF
11239
11240 case $ac_config_files in *"
11241 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11242 esac
11243
11244 case $ac_config_headers in *"
11245 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11246 esac
11247
11248
11249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11250 # Files that config.status was made for.
11251 config_files="$ac_config_files"
11252 config_headers="$ac_config_headers"
11253 config_commands="$ac_config_commands"
11254
11255 _ACEOF
11256
11257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11258 ac_cs_usage="\
11259 \`$as_me' instantiates files and other configuration actions
11260 from templates according to the current configuration. Unless the files
11261 and actions are specified as TAGs, all are instantiated by default.
11262
11263 Usage: $0 [OPTION]... [TAG]...
11264
11265 -h, --help print this help, then exit
11266 -V, --version print version number and configuration settings, then exit
11267 --config print configuration, then exit
11268 -q, --quiet, --silent
11269 do not print progress messages
11270 -d, --debug don't remove temporary files
11271 --recheck update $as_me by reconfiguring in the same conditions
11272 --file=FILE[:TEMPLATE]
11273 instantiate the configuration file FILE
11274 --header=FILE[:TEMPLATE]
11275 instantiate the configuration header FILE
11276
11277 Configuration files:
11278 $config_files
11279
11280 Configuration headers:
11281 $config_headers
11282
11283 Configuration commands:
11284 $config_commands
11285
11286 Report bugs to <systemtap@sourceware.org>."
11287
11288 _ACEOF
11289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11290 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11291 ac_cs_version="\\
11292 systemtap config.status 1.6
11293 configured by $0, generated by GNU Autoconf 2.65,
11294 with options \\"\$ac_cs_config\\"
11295
11296 Copyright (C) 2009 Free Software Foundation, Inc.
11297 This config.status script is free software; the Free Software Foundation
11298 gives unlimited permission to copy, distribute and modify it."
11299
11300 ac_pwd='$ac_pwd'
11301 srcdir='$srcdir'
11302 INSTALL='$INSTALL'
11303 MKDIR_P='$MKDIR_P'
11304 AWK='$AWK'
11305 test -n "\$AWK" || AWK=awk
11306 _ACEOF
11307
11308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11309 # The default lists apply if the user does not specify any file.
11310 ac_need_defaults=:
11311 while test $# != 0
11312 do
11313 case $1 in
11314 --*=*)
11315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11316 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11317 ac_shift=:
11318 ;;
11319 *)
11320 ac_option=$1
11321 ac_optarg=$2
11322 ac_shift=shift
11323 ;;
11324 esac
11325
11326 case $ac_option in
11327 # Handling of the options.
11328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11329 ac_cs_recheck=: ;;
11330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11331 $as_echo "$ac_cs_version"; exit ;;
11332 --config | --confi | --conf | --con | --co | --c )
11333 $as_echo "$ac_cs_config"; exit ;;
11334 --debug | --debu | --deb | --de | --d | -d )
11335 debug=: ;;
11336 --file | --fil | --fi | --f )
11337 $ac_shift
11338 case $ac_optarg in
11339 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11340 esac
11341 as_fn_append CONFIG_FILES " '$ac_optarg'"
11342 ac_need_defaults=false;;
11343 --header | --heade | --head | --hea )
11344 $ac_shift
11345 case $ac_optarg in
11346 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11347 esac
11348 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11349 ac_need_defaults=false;;
11350 --he | --h)
11351 # Conflict between --help and --header
11352 as_fn_error "ambiguous option: \`$1'
11353 Try \`$0 --help' for more information.";;
11354 --help | --hel | -h )
11355 $as_echo "$ac_cs_usage"; exit ;;
11356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11357 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11358 ac_cs_silent=: ;;
11359
11360 # This is an error.
11361 -*) as_fn_error "unrecognized option: \`$1'
11362 Try \`$0 --help' for more information." ;;
11363
11364 *) as_fn_append ac_config_targets " $1"
11365 ac_need_defaults=false ;;
11366
11367 esac
11368 shift
11369 done
11370
11371 ac_configure_extra_args=
11372
11373 if $ac_cs_silent; then
11374 exec 6>/dev/null
11375 ac_configure_extra_args="$ac_configure_extra_args --silent"
11376 fi
11377
11378 _ACEOF
11379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11380 if \$ac_cs_recheck; then
11381 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11382 shift
11383 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11384 CONFIG_SHELL='$SHELL'
11385 export CONFIG_SHELL
11386 exec "\$@"
11387 fi
11388
11389 _ACEOF
11390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11391 exec 5>>config.log
11392 {
11393 echo
11394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11395 ## Running $as_me. ##
11396 _ASBOX
11397 $as_echo "$ac_log"
11398 } >&5
11399
11400 _ACEOF
11401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11402 #
11403 # INIT-COMMANDS
11404 #
11405 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11406 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11407 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11408 # from automake < 1.5.
11409 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11410 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11411 LINGUAS="${LINGUAS-%UNSET%}"
11412
11413
11414 _ACEOF
11415
11416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11417
11418 # Handling of arguments.
11419 for ac_config_target in $ac_config_targets
11420 do
11421 case $ac_config_target in
11422 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11423 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
11424 "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;;
11425 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11426 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11427 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11428 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11429 "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;;
11430 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
11431 "grapher/Makefile") CONFIG_FILES="$CONFIG_FILES grapher/Makefile" ;;
11432 "grapher/stapgraph.1") CONFIG_FILES="$CONFIG_FILES grapher/stapgraph.1" ;;
11433 "stappaths.7") CONFIG_FILES="$CONFIG_FILES stappaths.7" ;;
11434 "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;;
11435 "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;;
11436 "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;;
11437 "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;;
11438 "doc/beginners/publican.cfg") CONFIG_FILES="$CONFIG_FILES doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in" ;;
11439 "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;;
11440
11441 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11442 esac
11443 done
11444
11445
11446 # If the user did not use the arguments to specify the items to instantiate,
11447 # then the envvar interface is used. Set only those that are not.
11448 # We use the long form for the default assignment because of an extremely
11449 # bizarre bug on SunOS 4.1.3.
11450 if $ac_need_defaults; then
11451 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11452 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11453 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11454 fi
11455
11456 # Have a temporary directory for convenience. Make it in the build tree
11457 # simply because there is no reason against having it here, and in addition,
11458 # creating and moving files from /tmp can sometimes cause problems.
11459 # Hook for its removal unless debugging.
11460 # Note that there is a small window in which the directory will not be cleaned:
11461 # after its creation but before its name has been assigned to `$tmp'.
11462 $debug ||
11463 {
11464 tmp=
11465 trap 'exit_status=$?
11466 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11467 ' 0
11468 trap 'as_fn_exit 1' 1 2 13 15
11469 }
11470 # Create a (secure) tmp directory for tmp files.
11471
11472 {
11473 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11474 test -n "$tmp" && test -d "$tmp"
11475 } ||
11476 {
11477 tmp=./conf$$-$RANDOM
11478 (umask 077 && mkdir "$tmp")
11479 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11480
11481 # Set up the scripts for CONFIG_FILES section.
11482 # No need to generate them if there are no CONFIG_FILES.
11483 # This happens for instance with `./config.status config.h'.
11484 if test -n "$CONFIG_FILES"; then
11485
11486
11487 ac_cr=`echo X | tr X '\015'`
11488 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11489 # But we know of no other shell where ac_cr would be empty at this
11490 # point, so we can use a bashism as a fallback.
11491 if test "x$ac_cr" = x; then
11492 eval ac_cr=\$\'\\r\'
11493 fi
11494 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11495 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11496 ac_cs_awk_cr='\r'
11497 else
11498 ac_cs_awk_cr=$ac_cr
11499 fi
11500
11501 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11502 _ACEOF
11503
11504
11505 {
11506 echo "cat >conf$$subs.awk <<_ACEOF" &&
11507 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11508 echo "_ACEOF"
11509 } >conf$$subs.sh ||
11510 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11511 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11512 ac_delim='%!_!# '
11513 for ac_last_try in false false false false false :; do
11514 . ./conf$$subs.sh ||
11515 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11516
11517 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11518 if test $ac_delim_n = $ac_delim_num; then
11519 break
11520 elif $ac_last_try; then
11521 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11522 else
11523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11524 fi
11525 done
11526 rm -f conf$$subs.sh
11527
11528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11529 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11530 _ACEOF
11531 sed -n '
11532 h
11533 s/^/S["/; s/!.*/"]=/
11534 p
11535 g
11536 s/^[^!]*!//
11537 :repl
11538 t repl
11539 s/'"$ac_delim"'$//
11540 t delim
11541 :nl
11542 h
11543 s/\(.\{148\}\)..*/\1/
11544 t more1
11545 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11546 p
11547 n
11548 b repl
11549 :more1
11550 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11551 p
11552 g
11553 s/.\{148\}//
11554 t nl
11555 :delim
11556 h
11557 s/\(.\{148\}\)..*/\1/
11558 t more2
11559 s/["\\]/\\&/g; s/^/"/; s/$/"/
11560 p
11561 b
11562 :more2
11563 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11564 p
11565 g
11566 s/.\{148\}//
11567 t delim
11568 ' <conf$$subs.awk | sed '
11569 /^[^""]/{
11570 N
11571 s/\n//
11572 }
11573 ' >>$CONFIG_STATUS || ac_write_fail=1
11574 rm -f conf$$subs.awk
11575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11576 _ACAWK
11577 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11578 for (key in S) S_is_set[key] = 1
11579 FS = "\a"
11580
11581 }
11582 {
11583 line = $ 0
11584 nfields = split(line, field, "@")
11585 substed = 0
11586 len = length(field[1])
11587 for (i = 2; i < nfields; i++) {
11588 key = field[i]
11589 keylen = length(key)
11590 if (S_is_set[key]) {
11591 value = S[key]
11592 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11593 len += length(value) + length(field[++i])
11594 substed = 1
11595 } else
11596 len += 1 + keylen
11597 }
11598
11599 print line
11600 }
11601
11602 _ACAWK
11603 _ACEOF
11604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11605 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11606 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11607 else
11608 cat
11609 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11610 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11611 _ACEOF
11612
11613 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11614 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11615 # trailing colons and then remove the whole line if VPATH becomes empty
11616 # (actually we leave an empty line to preserve line numbers).
11617 if test "x$srcdir" = x.; then
11618 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11619 s/:*\$(srcdir):*/:/
11620 s/:*\${srcdir}:*/:/
11621 s/:*@srcdir@:*/:/
11622 s/^\([^=]*=[ ]*\):*/\1/
11623 s/:*$//
11624 s/^[^=]*=[ ]*$//
11625 }'
11626 fi
11627
11628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11629 fi # test -n "$CONFIG_FILES"
11630
11631 # Set up the scripts for CONFIG_HEADERS section.
11632 # No need to generate them if there are no CONFIG_HEADERS.
11633 # This happens for instance with `./config.status Makefile'.
11634 if test -n "$CONFIG_HEADERS"; then
11635 cat >"$tmp/defines.awk" <<\_ACAWK ||
11636 BEGIN {
11637 _ACEOF
11638
11639 # Transform confdefs.h into an awk script `defines.awk', embedded as
11640 # here-document in config.status, that substitutes the proper values into
11641 # config.h.in to produce config.h.
11642
11643 # Create a delimiter string that does not exist in confdefs.h, to ease
11644 # handling of long lines.
11645 ac_delim='%!_!# '
11646 for ac_last_try in false false :; do
11647 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11648 if test -z "$ac_t"; then
11649 break
11650 elif $ac_last_try; then
11651 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11652 else
11653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11654 fi
11655 done
11656
11657 # For the awk script, D is an array of macro values keyed by name,
11658 # likewise P contains macro parameters if any. Preserve backslash
11659 # newline sequences.
11660
11661 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11662 sed -n '
11663 s/.\{148\}/&'"$ac_delim"'/g
11664 t rset
11665 :rset
11666 s/^[ ]*#[ ]*define[ ][ ]*/ /
11667 t def
11668 d
11669 :def
11670 s/\\$//
11671 t bsnl
11672 s/["\\]/\\&/g
11673 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11674 D["\1"]=" \3"/p
11675 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11676 d
11677 :bsnl
11678 s/["\\]/\\&/g
11679 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11680 D["\1"]=" \3\\\\\\n"\\/p
11681 t cont
11682 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11683 t cont
11684 d
11685 :cont
11686 n
11687 s/.\{148\}/&'"$ac_delim"'/g
11688 t clear
11689 :clear
11690 s/\\$//
11691 t bsnlc
11692 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11693 d
11694 :bsnlc
11695 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11696 b cont
11697 ' <confdefs.h | sed '
11698 s/'"$ac_delim"'/"\\\
11699 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11700
11701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11702 for (key in D) D_is_set[key] = 1
11703 FS = "\a"
11704 }
11705 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11706 line = \$ 0
11707 split(line, arg, " ")
11708 if (arg[1] == "#") {
11709 defundef = arg[2]
11710 mac1 = arg[3]
11711 } else {
11712 defundef = substr(arg[1], 2)
11713 mac1 = arg[2]
11714 }
11715 split(mac1, mac2, "(") #)
11716 macro = mac2[1]
11717 prefix = substr(line, 1, index(line, defundef) - 1)
11718 if (D_is_set[macro]) {
11719 # Preserve the white space surrounding the "#".
11720 print prefix "define", macro P[macro] D[macro]
11721 next
11722 } else {
11723 # Replace #undef with comments. This is necessary, for example,
11724 # in the case of _POSIX_SOURCE, which is predefined and required
11725 # on some systems where configure will not decide to define it.
11726 if (defundef == "undef") {
11727 print "/*", prefix defundef, macro, "*/"
11728 next
11729 }
11730 }
11731 }
11732 { print }
11733 _ACAWK
11734 _ACEOF
11735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11736 as_fn_error "could not setup config headers machinery" "$LINENO" 5
11737 fi # test -n "$CONFIG_HEADERS"
11738
11739
11740 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11741 shift
11742 for ac_tag
11743 do
11744 case $ac_tag in
11745 :[FHLC]) ac_mode=$ac_tag; continue;;
11746 esac
11747 case $ac_mode$ac_tag in
11748 :[FHL]*:*);;
11749 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11750 :[FH]-) ac_tag=-:-;;
11751 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11752 esac
11753 ac_save_IFS=$IFS
11754 IFS=:
11755 set x $ac_tag
11756 IFS=$ac_save_IFS
11757 shift
11758 ac_file=$1
11759 shift
11760
11761 case $ac_mode in
11762 :L) ac_source=$1;;
11763 :[FH])
11764 ac_file_inputs=
11765 for ac_f
11766 do
11767 case $ac_f in
11768 -) ac_f="$tmp/stdin";;
11769 *) # Look for the file first in the build tree, then in the source tree
11770 # (if the path is not absolute). The absolute path cannot be DOS-style,
11771 # because $ac_f cannot contain `:'.
11772 test -f "$ac_f" ||
11773 case $ac_f in
11774 [\\/$]*) false;;
11775 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11776 esac ||
11777 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11778 esac
11779 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11780 as_fn_append ac_file_inputs " '$ac_f'"
11781 done
11782
11783 # Let's still pretend it is `configure' which instantiates (i.e., don't
11784 # use $as_me), people would be surprised to read:
11785 # /* config.h. Generated by config.status. */
11786 configure_input='Generated from '`
11787 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11788 `' by configure.'
11789 if test x"$ac_file" != x-; then
11790 configure_input="$ac_file. $configure_input"
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11792 $as_echo "$as_me: creating $ac_file" >&6;}
11793 fi
11794 # Neutralize special characters interpreted by sed in replacement strings.
11795 case $configure_input in #(
11796 *\&* | *\|* | *\\* )
11797 ac_sed_conf_input=`$as_echo "$configure_input" |
11798 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11799 *) ac_sed_conf_input=$configure_input;;
11800 esac
11801
11802 case $ac_tag in
11803 *:-:* | *:-) cat >"$tmp/stdin" \
11804 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
11805 esac
11806 ;;
11807 esac
11808
11809 ac_dir=`$as_dirname -- "$ac_file" ||
11810 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11811 X"$ac_file" : 'X\(//\)[^/]' \| \
11812 X"$ac_file" : 'X\(//\)$' \| \
11813 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11814 $as_echo X"$ac_file" |
11815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11816 s//\1/
11817 q
11818 }
11819 /^X\(\/\/\)[^/].*/{
11820 s//\1/
11821 q
11822 }
11823 /^X\(\/\/\)$/{
11824 s//\1/
11825 q
11826 }
11827 /^X\(\/\).*/{
11828 s//\1/
11829 q
11830 }
11831 s/.*/./; q'`
11832 as_dir="$ac_dir"; as_fn_mkdir_p
11833 ac_builddir=.
11834
11835 case "$ac_dir" in
11836 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11837 *)
11838 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11839 # A ".." for each directory in $ac_dir_suffix.
11840 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11841 case $ac_top_builddir_sub in
11842 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11843 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11844 esac ;;
11845 esac
11846 ac_abs_top_builddir=$ac_pwd
11847 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11848 # for backward compatibility:
11849 ac_top_builddir=$ac_top_build_prefix
11850
11851 case $srcdir in
11852 .) # We are building in place.
11853 ac_srcdir=.
11854 ac_top_srcdir=$ac_top_builddir_sub
11855 ac_abs_top_srcdir=$ac_pwd ;;
11856 [\\/]* | ?:[\\/]* ) # Absolute name.
11857 ac_srcdir=$srcdir$ac_dir_suffix;
11858 ac_top_srcdir=$srcdir
11859 ac_abs_top_srcdir=$srcdir ;;
11860 *) # Relative name.
11861 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11862 ac_top_srcdir=$ac_top_build_prefix$srcdir
11863 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11864 esac
11865 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11866
11867
11868 case $ac_mode in
11869 :F)
11870 #
11871 # CONFIG_FILE
11872 #
11873
11874 case $INSTALL in
11875 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11876 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11877 esac
11878 ac_MKDIR_P=$MKDIR_P
11879 case $MKDIR_P in
11880 [\\/$]* | ?:[\\/]* ) ;;
11881 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11882 esac
11883 _ACEOF
11884
11885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11886 # If the template does not know about datarootdir, expand it.
11887 # FIXME: This hack should be removed a few years after 2.60.
11888 ac_datarootdir_hack=; ac_datarootdir_seen=
11889 ac_sed_dataroot='
11890 /datarootdir/ {
11891 p
11892 q
11893 }
11894 /@datadir@/p
11895 /@docdir@/p
11896 /@infodir@/p
11897 /@localedir@/p
11898 /@mandir@/p'
11899 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11900 *datarootdir*) ac_datarootdir_seen=yes;;
11901 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11903 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11904 _ACEOF
11905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11906 ac_datarootdir_hack='
11907 s&@datadir@&$datadir&g
11908 s&@docdir@&$docdir&g
11909 s&@infodir@&$infodir&g
11910 s&@localedir@&$localedir&g
11911 s&@mandir@&$mandir&g
11912 s&\\\${datarootdir}&$datarootdir&g' ;;
11913 esac
11914 _ACEOF
11915
11916 # Neutralize VPATH when `$srcdir' = `.'.
11917 # Shell code in configure.ac might set extrasub.
11918 # FIXME: do we really want to maintain this feature?
11919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11920 ac_sed_extra="$ac_vpsub
11921 $extrasub
11922 _ACEOF
11923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11924 :t
11925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11926 s|@configure_input@|$ac_sed_conf_input|;t t
11927 s&@top_builddir@&$ac_top_builddir_sub&;t t
11928 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11929 s&@srcdir@&$ac_srcdir&;t t
11930 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11931 s&@top_srcdir@&$ac_top_srcdir&;t t
11932 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11933 s&@builddir@&$ac_builddir&;t t
11934 s&@abs_builddir@&$ac_abs_builddir&;t t
11935 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11936 s&@INSTALL@&$ac_INSTALL&;t t
11937 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11938 $ac_datarootdir_hack
11939 "
11940 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11941 || as_fn_error "could not create $ac_file" "$LINENO" 5
11942
11943 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11944 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11945 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11947 which seems to be undefined. Please make sure it is defined." >&5
11948 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11949 which seems to be undefined. Please make sure it is defined." >&2;}
11950
11951 rm -f "$tmp/stdin"
11952 case $ac_file in
11953 -) cat "$tmp/out" && rm -f "$tmp/out";;
11954 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11955 esac \
11956 || as_fn_error "could not create $ac_file" "$LINENO" 5
11957 ;;
11958 :H)
11959 #
11960 # CONFIG_HEADER
11961 #
11962 if test x"$ac_file" != x-; then
11963 {
11964 $as_echo "/* $configure_input */" \
11965 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11966 } >"$tmp/config.h" \
11967 || as_fn_error "could not create $ac_file" "$LINENO" 5
11968 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11970 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11971 else
11972 rm -f "$ac_file"
11973 mv "$tmp/config.h" "$ac_file" \
11974 || as_fn_error "could not create $ac_file" "$LINENO" 5
11975 fi
11976 else
11977 $as_echo "/* $configure_input */" \
11978 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11979 || as_fn_error "could not create -" "$LINENO" 5
11980 fi
11981 # Compute "$ac_file"'s index in $config_headers.
11982 _am_arg="$ac_file"
11983 _am_stamp_count=1
11984 for _am_header in $config_headers :; do
11985 case $_am_header in
11986 $_am_arg | $_am_arg:* )
11987 break ;;
11988 * )
11989 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11990 esac
11991 done
11992 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11993 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11994 X"$_am_arg" : 'X\(//\)[^/]' \| \
11995 X"$_am_arg" : 'X\(//\)$' \| \
11996 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11997 $as_echo X"$_am_arg" |
11998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11999 s//\1/
12000 q
12001 }
12002 /^X\(\/\/\)[^/].*/{
12003 s//\1/
12004 q
12005 }
12006 /^X\(\/\/\)$/{
12007 s//\1/
12008 q
12009 }
12010 /^X\(\/\).*/{
12011 s//\1/
12012 q
12013 }
12014 s/.*/./; q'`/stamp-h$_am_stamp_count
12015 ;;
12016
12017 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12018 $as_echo "$as_me: executing $ac_file commands" >&6;}
12019 ;;
12020 esac
12021
12022
12023 case $ac_file$ac_mode in
12024 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12025 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12026 # are listed without --file. Let's play safe and only enable the eval
12027 # if we detect the quoting.
12028 case $CONFIG_FILES in
12029 *\'*) eval set x "$CONFIG_FILES" ;;
12030 *) set x $CONFIG_FILES ;;
12031 esac
12032 shift
12033 for mf
12034 do
12035 # Strip MF so we end up with the name of the file.
12036 mf=`echo "$mf" | sed -e 's/:.*$//'`
12037 # Check whether this is an Automake generated Makefile or not.
12038 # We used to match only the files named `Makefile.in', but
12039 # some people rename them; so instead we look at the file content.
12040 # Grep'ing the first line is not enough: some people post-process
12041 # each Makefile.in and add a new line on top of each file to say so.
12042 # Grep'ing the whole file is not good either: AIX grep has a line
12043 # limit of 2048, but all sed's we know have understand at least 4000.
12044 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12045 dirpart=`$as_dirname -- "$mf" ||
12046 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12047 X"$mf" : 'X\(//\)[^/]' \| \
12048 X"$mf" : 'X\(//\)$' \| \
12049 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12050 $as_echo X"$mf" |
12051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12052 s//\1/
12053 q
12054 }
12055 /^X\(\/\/\)[^/].*/{
12056 s//\1/
12057 q
12058 }
12059 /^X\(\/\/\)$/{
12060 s//\1/
12061 q
12062 }
12063 /^X\(\/\).*/{
12064 s//\1/
12065 q
12066 }
12067 s/.*/./; q'`
12068 else
12069 continue
12070 fi
12071 # Extract the definition of DEPDIR, am__include, and am__quote
12072 # from the Makefile without running `make'.
12073 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12074 test -z "$DEPDIR" && continue
12075 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12076 test -z "am__include" && continue
12077 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12078 # When using ansi2knr, U may be empty or an underscore; expand it
12079 U=`sed -n 's/^U = //p' < "$mf"`
12080 # Find all dependency output files, they are included files with
12081 # $(DEPDIR) in their names. We invoke sed twice because it is the
12082 # simplest approach to changing $(DEPDIR) to its actual value in the
12083 # expansion.
12084 for file in `sed -n "
12085 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12086 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12087 # Make sure the directory exists.
12088 test -f "$dirpart/$file" && continue
12089 fdir=`$as_dirname -- "$file" ||
12090 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12091 X"$file" : 'X\(//\)[^/]' \| \
12092 X"$file" : 'X\(//\)$' \| \
12093 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12094 $as_echo X"$file" |
12095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12096 s//\1/
12097 q
12098 }
12099 /^X\(\/\/\)[^/].*/{
12100 s//\1/
12101 q
12102 }
12103 /^X\(\/\/\)$/{
12104 s//\1/
12105 q
12106 }
12107 /^X\(\/\).*/{
12108 s//\1/
12109 q
12110 }
12111 s/.*/./; q'`
12112 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12113 # echo "creating $dirpart/$file"
12114 echo '# dummy' > "$dirpart/$file"
12115 done
12116 done
12117 }
12118 ;;
12119 "po-directories":C)
12120 for ac_file in $CONFIG_FILES; do
12121 # Support "outfile[:infile[:infile...]]"
12122 case "$ac_file" in
12123 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12124 esac
12125 # PO directories have a Makefile.in generated from Makefile.in.in.
12126 case "$ac_file" in */Makefile.in)
12127 # Adjust a relative srcdir.
12128 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12129 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12130 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12131 # In autoconf-2.13 it is called $ac_given_srcdir.
12132 # In autoconf-2.50 it is called $srcdir.
12133 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12134 case "$ac_given_srcdir" in
12135 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12136 /*) top_srcdir="$ac_given_srcdir" ;;
12137 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12138 esac
12139 # Treat a directory as a PO directory if and only if it has a
12140 # POTFILES.in file. This allows packages to have multiple PO
12141 # directories under different names or in different locations.
12142 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12143 rm -f "$ac_dir/POTFILES"
12144 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12145 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12146 POMAKEFILEDEPS="POTFILES.in"
12147 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12148 # on $ac_dir but don't depend on user-specified configuration
12149 # parameters.
12150 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12151 # The LINGUAS file contains the set of available languages.
12152 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12153 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12154 fi
12155 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12156 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12157 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12158 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12159 else
12160 # The set of available languages was given in configure.in.
12161 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12162 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12163 fi
12164 # Compute POFILES
12165 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12166 # Compute UPDATEPOFILES
12167 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12168 # Compute DUMMYPOFILES
12169 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12170 # Compute GMOFILES
12171 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12172 case "$ac_given_srcdir" in
12173 .) srcdirpre= ;;
12174 *) srcdirpre='$(srcdir)/' ;;
12175 esac
12176 POFILES=
12177 UPDATEPOFILES=
12178 DUMMYPOFILES=
12179 GMOFILES=
12180 for lang in $ALL_LINGUAS; do
12181 POFILES="$POFILES $srcdirpre$lang.po"
12182 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12183 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12184 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12185 done
12186 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12187 # environment variable.
12188 INST_LINGUAS=
12189 if test -n "$ALL_LINGUAS"; then
12190 for presentlang in $ALL_LINGUAS; do
12191 useit=no
12192 if test "%UNSET%" != "$LINGUAS"; then
12193 desiredlanguages="$LINGUAS"
12194 else
12195 desiredlanguages="$ALL_LINGUAS"
12196 fi
12197 for desiredlang in $desiredlanguages; do
12198 # Use the presentlang catalog if desiredlang is
12199 # a. equal to presentlang, or
12200 # b. a variant of presentlang (because in this case,
12201 # presentlang can be used as a fallback for messages
12202 # which are not translated in the desiredlang catalog).
12203 case "$desiredlang" in
12204 "$presentlang"*) useit=yes;;
12205 esac
12206 done
12207 if test $useit = yes; then
12208 INST_LINGUAS="$INST_LINGUAS $presentlang"
12209 fi
12210 done
12211 fi
12212 CATALOGS=
12213 if test -n "$INST_LINGUAS"; then
12214 for lang in $INST_LINGUAS; do
12215 CATALOGS="$CATALOGS $lang.gmo"
12216 done
12217 fi
12218 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12219 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"
12220 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12221 if test -f "$f"; then
12222 case "$f" in
12223 *.orig | *.bak | *~) ;;
12224 *) cat "$f" >> "$ac_dir/Makefile" ;;
12225 esac
12226 fi
12227 done
12228 fi
12229 ;;
12230 esac
12231 done ;;
12232 "run-stap":F) chmod +x run-stap ;;
12233 "dtrace":F) chmod +x dtrace ;;
12234 "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 ;;
12235
12236 esac
12237 done # for ac_tag
12238
12239
12240 as_fn_exit 0
12241 _ACEOF
12242 ac_clean_files=$ac_clean_files_save
12243
12244 test $ac_write_fail = 0 ||
12245 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12246
12247
12248 # configure is writing to config.log, and then calls config.status.
12249 # config.status does its own redirection, appending to config.log.
12250 # Unfortunately, on DOS this fails, as config.log is still kept open
12251 # by configure, so config.status won't be able to write to it; its
12252 # output is simply discarded. So we exec the FD to /dev/null,
12253 # effectively closing config.log, so it can be properly (re)opened and
12254 # appended to by config.status. When coming back to configure, we
12255 # need to make the FD available again.
12256 if test "$no_create" != yes; then
12257 ac_cs_success=:
12258 ac_config_status_args=
12259 test "$silent" = yes &&
12260 ac_config_status_args="$ac_config_status_args --quiet"
12261 exec 5>/dev/null
12262 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12263 exec 5>>config.log
12264 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12265 # would make configure fail if this is the last instruction.
12266 $ac_cs_success || as_fn_exit $?
12267 fi
12268
12269 #
12270 # CONFIG_SUBDIRS section.
12271 #
12272 if test "$no_recursion" != yes; then
12273
12274 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
12275 # so they do not pile up.
12276 ac_sub_configure_args=
12277 ac_prev=
12278 eval "set x $ac_configure_args"
12279 shift
12280 for ac_arg
12281 do
12282 if test -n "$ac_prev"; then
12283 ac_prev=
12284 continue
12285 fi
12286 case $ac_arg in
12287 -cache-file | --cache-file | --cache-fil | --cache-fi \
12288 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
12289 ac_prev=cache_file ;;
12290 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
12291 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
12292 | --c=*)
12293 ;;
12294 --config-cache | -C)
12295 ;;
12296 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
12297 ac_prev=srcdir ;;
12298 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
12299 ;;
12300 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
12301 ac_prev=prefix ;;
12302 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
12303 ;;
12304 --disable-option-checking)
12305 ;;
12306 *)
12307 case $ac_arg in
12308 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12309 esac
12310 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
12311 esac
12312 done
12313
12314 # Always prepend --prefix to ensure using the same prefix
12315 # in subdir configurations.
12316 ac_arg="--prefix=$prefix"
12317 case $ac_arg in
12318 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12319 esac
12320 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
12321
12322 # Pass --silent
12323 if test "$silent" = yes; then
12324 ac_sub_configure_args="--silent $ac_sub_configure_args"
12325 fi
12326
12327 # Always prepend --disable-option-checking to silence warnings, since
12328 # different subdirs can have different --enable and --with options.
12329 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
12330
12331 ac_popdir=`pwd`
12332 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
12333
12334 # Do not complain, so a configure script can configure whichever
12335 # parts of a large source tree are present.
12336 test -d "$srcdir/$ac_dir" || continue
12337
12338 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
12339 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
12340 $as_echo "$ac_msg" >&6
12341 as_dir="$ac_dir"; as_fn_mkdir_p
12342 ac_builddir=.
12343
12344 case "$ac_dir" in
12345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12346 *)
12347 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12348 # A ".." for each directory in $ac_dir_suffix.
12349 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12350 case $ac_top_builddir_sub in
12351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12353 esac ;;
12354 esac
12355 ac_abs_top_builddir=$ac_pwd
12356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12357 # for backward compatibility:
12358 ac_top_builddir=$ac_top_build_prefix
12359
12360 case $srcdir in
12361 .) # We are building in place.
12362 ac_srcdir=.
12363 ac_top_srcdir=$ac_top_builddir_sub
12364 ac_abs_top_srcdir=$ac_pwd ;;
12365 [\\/]* | ?:[\\/]* ) # Absolute name.
12366 ac_srcdir=$srcdir$ac_dir_suffix;
12367 ac_top_srcdir=$srcdir
12368 ac_abs_top_srcdir=$srcdir ;;
12369 *) # Relative name.
12370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12371 ac_top_srcdir=$ac_top_build_prefix$srcdir
12372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12373 esac
12374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12375
12376
12377 cd "$ac_dir"
12378
12379 # Check for guested configure; otherwise get Cygnus style configure.
12380 if test -f "$ac_srcdir/configure.gnu"; then
12381 ac_sub_configure=$ac_srcdir/configure.gnu
12382 elif test -f "$ac_srcdir/configure"; then
12383 ac_sub_configure=$ac_srcdir/configure
12384 elif test -f "$ac_srcdir/configure.in"; then
12385 # This should be Cygnus configure.
12386 ac_sub_configure=$ac_aux_dir/configure
12387 else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
12389 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
12390 ac_sub_configure=
12391 fi
12392
12393 # The recursion is here.
12394 if test -n "$ac_sub_configure"; then
12395 # Make the cache file name correct relative to the subdirectory.
12396 case $cache_file in
12397 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
12398 *) # Relative name.
12399 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
12400 esac
12401
12402 { $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
12403 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
12404 # The eval makes quoting arguments work.
12405 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
12406 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
12407 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
12408 fi
12409
12410 cd "$ac_popdir"
12411 done
12412 fi
12413 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12415 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12416 fi
12417
12418
12419 if test "${prefix}" = "/usr/local"; then
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
12421 $as_echo "$as_me: " >&6;}
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
12423 $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
12425 $as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
12427 $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
12429 $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5
12431 $as_echo "$as_me: is not supported." >&6;}
12432 fi
This page took 0.717459 seconds and 5 git commands to generate.