Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac 1.6.1.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for XMLStarlet 1.6.1.
5 #
6 # Report bugs to <http://sourceforge.net/projects/xmlstar/support>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
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 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1"
203 if (eval "$as_required") 2>/dev/null; then :
204 as_have_required=yes
205 else
206 as_have_required=no
207 fi
208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210 else
211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 as_found=false
213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 do
215 IFS=$as_save_IFS
216 test -z "$as_dir" && as_dir=.
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir/$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 CONFIG_SHELL=$as_shell as_have_required=yes
226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi; }
238 IFS=$as_save_IFS
239
240
241 if test "x$CONFIG_SHELL" != x; then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed `exec'.
259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
261 fi
262
263 if test x$as_have_required = xno; then :
264 $as_echo "$0: This script requires a shell more modern than all"
265 $as_echo "$0: the shells that I found on your system."
266 if test x${ZSH_VERSION+set} = xset ; then
267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 $as_echo "$0: Please tell [email protected] and
271 $0: http://sourceforge.net/projects/xmlstar/support about
272 $0: your system, including any error possibly output before
273 $0: this message. Then install a modern shell, or manually
274 $0: run the script under such a shell if you do have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560 as_awk_strverscmp='
561 # Use only awk features that work with 7th edition Unix awk (1978).
562 # My, what an old awk you have, Mr. Solaris!
563 END {
564 while (length(v1) && length(v2)) {
565 # Set d1 to be the next thing to compare from v1, and likewise for d2.
566 # Normally this is a single character, but if v1 and v2 contain digits,
567 # compare them as integers and fractions as strverscmp does.
568 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
569 # Split v1 and v2 into their leading digit string components d1 and d2,
570 # and advance v1 and v2 past the leading digit strings.
571 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
572 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
573 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
574 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
575 if (d1 ~ /^0/) {
576 if (d2 ~ /^0/) {
577 # Compare two fractions.
578 while (d1 ~ /^0/ && d2 ~ /^0/) {
579 d1 = substr(d1, 2); len1--
580 d2 = substr(d2, 2); len2--
581 }
582 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
583 # The two components differ in length, and the common prefix
584 # contains only leading zeros. Consider the longer to be less.
585 d1 = -len1
586 d2 = -len2
587 } else {
588 # Otherwise, compare as strings.
589 d1 = "x" d1
590 d2 = "x" d2
591 }
592 } else {
593 # A fraction is less than an integer.
594 exit 1
595 }
596 } else {
597 if (d2 ~ /^0/) {
598 # An integer is greater than a fraction.
599 exit 2
600 } else {
601 # Compare two integers.
602 d1 += 0
603 d2 += 0
604 }
605 }
606 } else {
607 # The normal case, without worrying about digits.
608 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
609 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
610 }
611 if (d1 < d2) exit 1
612 if (d1 > d2) exit 2
613 }
614 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
615 # which mishandles some comparisons of empty strings to integers.
616 if (length(v2)) exit 1
617 if (length(v1)) exit 2
618 }
619 '
620
621 test -n "$DJDIR" || exec 7<&0 </dev/null
622 exec 6>&1
623
624 # Name of the host.
625 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
626 # so uname gets run too.
627 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
628
629 #
630 # Initializations.
631 #
632 ac_default_prefix=/usr/local
633 ac_clean_files=
634 ac_config_libobj_dir=.
635 LIBOBJS=
636 cross_compiling=no
637 subdirs=
638 MFLAGS=
639 MAKEFLAGS=
640
641 # Identity of this package.
642 PACKAGE_NAME='XMLStarlet'
643 PACKAGE_TARNAME='xmlstarlet'
644 PACKAGE_VERSION='1.6.1'
645 PACKAGE_STRING='XMLStarlet 1.6.1'
646 PACKAGE_BUGREPORT='http://sourceforge.net/projects/xmlstar/support'
647 PACKAGE_URL='http://xmlstar.sourceforge.net/'
648
649 # Factoring default headers for most tests.
650 ac_includes_default="\
651 #include <stdio.h>
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef STDC_HEADERS
659 # include <stdlib.h>
660 # include <stddef.h>
661 #else
662 # ifdef HAVE_STDLIB_H
663 # include <stdlib.h>
664 # endif
665 #endif
666 #ifdef HAVE_STRING_H
667 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
668 # include <memory.h>
669 # endif
670 # include <string.h>
671 #endif
672 #ifdef HAVE_STRINGS_H
673 # include <strings.h>
674 #endif
675 #ifdef HAVE_INTTYPES_H
676 # include <inttypes.h>
677 #endif
678 #ifdef HAVE_STDINT_H
679 # include <stdint.h>
680 #endif
681 #ifdef HAVE_UNISTD_H
682 # include <unistd.h>
683 #endif"
684
685 ac_func_list=
686 ac_subst_vars='am__EXEEXT_FALSE
687 am__EXEEXT_TRUE
688 LTLIBOBJS
689 V_DOCBOOK_0
690 V_DOCBOOK_
691 V_DOCBOOK
692 V_FOP_0
693 V_FOP_
694 V_FOP
695 LIBXSLT_REQUIRED_VERSION
696 LIBXML_REQUIRED_VERSION
697 LDADD
698 AM_LDFLAGS
699 AM_CPPFLAGS
700 HAVE_EXSLT_XPATH_REGISTER_FALSE
701 HAVE_EXSLT_XPATH_REGISTER_TRUE
702 LIBOBJS
703 EGREP
704 GREP
705 CPP
706 BUILD_DOCS_FALSE
707 BUILD_DOCS_TRUE
708 HAVE_PDF2PS_FALSE
709 HAVE_PDF2PS_TRUE
710 PDF2PS
711 HAVE_FOP_FALSE
712 HAVE_FOP_TRUE
713 FOP
714 XSLTPROC
715 LIBXSLT_CONFIG
716 LIBXML_CONFIG
717 SED
718 GCC_FALSE
719 GCC_TRUE
720 am__fastdepCC_FALSE
721 am__fastdepCC_TRUE
722 CCDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__quote
728 am__include
729 DEPDIR
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
736 CC
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 MAINT
746 MAINTAINER_MODE_FALSE
747 MAINTAINER_MODE_TRUE
748 AM_BACKSLASH
749 AM_DEFAULT_VERBOSITY
750 AM_DEFAULT_V
751 AM_V
752 am__untar
753 am__tar
754 AMTAR
755 am__leading_dot
756 SET_MAKE
757 AWK
758 mkdir_p
759 MKDIR_P
760 INSTALL_STRIP_PROGRAM
761 STRIP
762 install_sh
763 MAKEINFO
764 AUTOHEADER
765 AUTOMAKE
766 AUTOCONF
767 ACLOCAL
768 VERSION
769 PACKAGE
770 CYGPATH_W
771 am__isrc
772 INSTALL_DATA
773 INSTALL_SCRIPT
774 INSTALL_PROGRAM
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_URL
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_silent_rules
817 enable_maintainer_mode
818 with_libxml_prefix
819 with_libxml_include_prefix
820 with_libxml_libs_prefix
821 with_libxml_src
822 with_libxslt_prefix
823 with_libxslt_include_prefix
824 with_libxslt_libs_prefix
825 with_libxslt_src
826 with_libiconv_prefix
827 with_libiconv_include_prefix
828 with_libiconv_libs_prefix
829 enable_static_libs
830 enable_build_docs
831 enable_dependency_tracking
832 '
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
836 CC
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 CPP'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
891
892 ac_prev=
893 ac_dashdash=
894 for ac_option
895 do
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
901 fi
902
903 case $ac_option in
904 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *=) ac_optarg= ;;
906 *) ac_optarg=yes ;;
907 esac
908
909 # Accept the important Cygnus configure options, so we can diagnose typos.
910
911 case $ac_dashdash$ac_option in
912 --)
913 ac_dashdash=yes ;;
914
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
916 ac_prev=bindir ;;
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918 bindir=$ac_optarg ;;
919
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
924
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
931
932 --config-cache | -C)
933 cache_file=config.cache ;;
934
935 -datadir | --datadir | --datadi | --datad)
936 ac_prev=datadir ;;
937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
938 datadir=$ac_optarg ;;
939
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
946
947 -disable-* | --disable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=no ;;
962
963 -docdir | --docdir | --docdi | --doc | --do)
964 ac_prev=docdir ;;
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 docdir=$ac_optarg ;;
967
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 ac_prev=dvidir ;;
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 dvidir=$ac_optarg ;;
972
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error $? "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
981 *"
982 "enable_$ac_useropt"
983 "*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=\$ac_optarg ;;
988
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
997
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1000 with_gas=yes ;;
1001
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1008
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1013
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015 ac_prev=htmldir ;;
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017 | --ht=*)
1018 htmldir=$ac_optarg ;;
1019
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1026
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1028 ac_prev=infodir ;;
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1031
1032 -libdir | --libdir | --libdi | --libd)
1033 ac_prev=libdir ;;
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1036
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1043
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1048
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1055
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057 ac_prev=mandir ;;
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1060
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1063 with_fp=no ;;
1064
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1067 no_create=yes ;;
1068
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 no_recursion=yes ;;
1072
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1081
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083 ac_prev=prefix ;;
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1086
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1093
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1100
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1117
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119 ac_prev=pdfdir ;;
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1122
1123 -psdir | --psdir | --psdi | --psd | --ps)
1124 ac_prev=psdir ;;
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 psdir=$ac_optarg ;;
1127
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1130 silent=yes ;;
1131
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1137
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1148
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1153
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1158
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1165
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1170
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1173
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1176
1177 -with-* | --with-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1192
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1208
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1212
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1219
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1226
1227 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1229 ;;
1230
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237 esac
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1240
1241 *)
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247 ;;
1248
1249 esac
1250 done
1251
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error $? "missing argument to $ac_option"
1255 fi
1256
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1263 fi
1264
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1270 do
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1285
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1292
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300 fi
1301
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305 test "$silent" = yes && exec 6>/dev/null
1306
1307
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\).*/{
1339 s//\1/
1340 q
1341 }
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1346 fi
1347 else
1348 ac_srcdir_defaulted=no
1349 fi
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1361 fi
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1374
1375 #
1376 # Report the --help message.
1377 #
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382 \`configure' configures XMLStarlet 1.6.1 to adapt to many kinds of systems.
1383
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1388
1389 Defaults for the options are specified in brackets.
1390
1391 Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking ...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 [PREFIX]
1407
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1412
1413 For better control, use the options below.
1414
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/xmlstarlet]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1435 _ACEOF
1436
1437 cat <<\_ACEOF
1438
1439 Program names:
1440 --program-prefix=PREFIX prepend PREFIX to installed program names
1441 --program-suffix=SUFFIX append SUFFIX to installed program names
1442 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443
1444 System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1448 fi
1449
1450 if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of XMLStarlet 1.6.1:";;
1453 esac
1454 cat <<\_ACEOF
1455
1456 Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --enable-silent-rules less verbose build output (undo: "make V=1")
1461 --disable-silent-rules verbose build output (undo: "make V=0")
1462 --enable-maintainer-mode
1463 enable make rules and dependencies not useful (and
1464 sometimes confusing) to the casual installer
1465 --enable-static-libs link statically with libxml2 and lib(e)xslt
1466 [default=no]
1467 --enable-build-docs include rules to build documentation files
1468 --enable-dependency-tracking
1469 do not reject slow dependency extractors
1470 --disable-dependency-tracking
1471 speeds up one-time build
1472
1473 Optional Packages:
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1476 --with-libxml-prefix=PFX
1477 Specify location of libxml
1478 --with-libxml-include-prefix=PFX
1479 Specify location of libxml headers
1480 --with-libxml-libs-prefix=PFX
1481 Specify location of libxml libs
1482 --with-libxml-src=DIR For libxml that's not installed yet (sets all three
1483 above)
1484 --with-libxslt-prefix=PFX
1485 Specify location of libxslt
1486 --with-libxslt-include-prefix=PFX
1487 Specify location of libxslt headers
1488 --with-libxslt-libs-prefix=PFX
1489 Specify location of libxslt libs
1490 --with-libxslt-src=DIR For libxslt that's not installed yet (sets all three
1491 above)
1492 --with-libiconv-prefix=PFX
1493 Specify location of libiconv
1494 --with-libiconv-include-prefix=PFX
1495 Specify location of libiconv headers
1496 --with-libiconv-libs-prefix=PFX
1497 Specify location of libiconv libs
1498
1499 Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1507 CPP C preprocessor
1508
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1511
1512 Report bugs to <http://sourceforge.net/projects/xmlstar/support>.
1513 XMLStarlet home page: <http://xmlstar.sourceforge.net/>.
1514 _ACEOF
1515 ac_status=$?
1516 fi
1517
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 XMLStarlet configure 1.6.1
1577 generated by GNU Autoconf 2.69
1578
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622 fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_compile
1627
1628 # ac_fn_c_try_run LINENO
1629 # ----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1631 # that executables *can* be run.
1632 ac_fn_c_try_run ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { { ac_try="$ac_link"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>&5
1643 ac_status=$?
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1646 { { case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_try") 2>&5
1653 ac_status=$?
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; }; }; then :
1656 ac_retval=0
1657 else
1658 $as_echo "$as_me: program exited with status $ac_status" >&5
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=$ac_status
1663 fi
1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_run
1669
1670 # ac_fn_c_try_cpp LINENO
1671 # ----------------------
1672 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_cpp ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_cpp conftest.$ac_ext"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } > conftest.i && {
1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701 fi
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_cpp
1706
1707 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists and can be compiled using the include files in
1710 # INCLUDES, setting the cache variable VAR accordingly.
1711 ac_fn_c_check_header_compile ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1718 else
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 $4
1722 #include <$2>
1723 _ACEOF
1724 if ac_fn_c_try_compile "$LINENO"; then :
1725 eval "$3=yes"
1726 else
1727 eval "$3=no"
1728 fi
1729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 fi
1731 eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736 } # ac_fn_c_check_header_compile
1737
1738 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1739 # -------------------------------------------------------
1740 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1741 # the include files in INCLUDES and setting the cache variable VAR
1742 # accordingly.
1743 ac_fn_c_check_header_mongrel ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if eval \${$3+:} false; then :
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1751 fi
1752 eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 else
1756 # Is the header compilable?
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1758 $as_echo_n "checking $2 usability... " >&6; }
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 $4
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765 ac_header_compiler=yes
1766 else
1767 ac_header_compiler=no
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1771 $as_echo "$ac_header_compiler" >&6; }
1772
1773 # Is the header present?
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1775 $as_echo_n "checking $2 presence... " >&6; }
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_cpp "$LINENO"; then :
1781 ac_header_preproc=yes
1782 else
1783 ac_header_preproc=no
1784 fi
1785 rm -f conftest.err conftest.i conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1787 $as_echo "$ac_header_preproc" >&6; }
1788
1789 # So? What about this header?
1790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1791 yes:no: )
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1793 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1795 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 ;;
1797 no:yes:* )
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1799 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1801 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1803 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1805 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 ( $as_echo "## -------------------------------------------------------------- ##
1809 ## Report this to http://sourceforge.net/projects/xmlstar/support ##
1810 ## -------------------------------------------------------------- ##"
1811 ) | sed "s/^/$as_me: WARNING: /" >&2
1812 ;;
1813 esac
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817 $as_echo_n "(cached) " >&6
1818 else
1819 eval "$3=\$ac_header_compiler"
1820 fi
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 fi
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826
1827 } # ac_fn_c_check_header_mongrel
1828
1829 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1830 # -------------------------------------------
1831 # Tests whether TYPE exists after having included INCLUDES, setting cache
1832 # variable VAR accordingly.
1833 ac_fn_c_check_type ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 eval "$3=no"
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 $4
1845 int
1846 main ()
1847 {
1848 if (sizeof ($2))
1849 return 0;
1850 ;
1851 return 0;
1852 }
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 $4
1858 int
1859 main ()
1860 {
1861 if (sizeof (($2)))
1862 return 0;
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868
1869 else
1870 eval "$3=yes"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 fi
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881 } # ac_fn_c_check_type
1882
1883 # ac_fn_c_try_link LINENO
1884 # -----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_link ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext conftest$ac_exeext
1890 if { { ac_try="$ac_link"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1903 fi
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest$ac_exeext && {
1909 test "$cross_compiling" = yes ||
1910 test -x conftest$ac_exeext
1911 }; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 ac_retval=1
1918 fi
1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921 # interfere with the next link command; also delete a directory that is
1922 # left behind by Apple's compiler. We do this before executing the actions.
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1926
1927 } # ac_fn_c_try_link
1928
1929 # ac_fn_c_check_func LINENO FUNC VAR
1930 # ----------------------------------
1931 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1932 ac_fn_c_check_func ()
1933 {
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939 else
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1944 #define $2 innocuous_$2
1945
1946 /* System header to define __stub macros and hopefully few prototypes,
1947 which can conflict with char $2 (); below.
1948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1949 <limits.h> exists even on freestanding compilers. */
1950
1951 #ifdef __STDC__
1952 # include <limits.h>
1953 #else
1954 # include <assert.h>
1955 #endif
1956
1957 #undef $2
1958
1959 /* Override any GCC internal prototype to avoid an error.
1960 Use char because int might match the return type of a GCC
1961 builtin and then its argument prototype would still apply. */
1962 #ifdef __cplusplus
1963 extern "C"
1964 #endif
1965 char $2 ();
1966 /* The GNU C library defines this for functions which it implements
1967 to always fail with ENOSYS. Some functions are actually named
1968 something starting with __ and the normal name is an alias. */
1969 #if defined __stub_$2 || defined __stub___$2
1970 choke me
1971 #endif
1972
1973 int
1974 main ()
1975 {
1976 return $2 ();
1977 ;
1978 return 0;
1979 }
1980 _ACEOF
1981 if ac_fn_c_try_link "$LINENO"; then :
1982 eval "$3=yes"
1983 else
1984 eval "$3=no"
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext \
1987 conftest$ac_exeext conftest.$ac_ext
1988 fi
1989 eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1994 } # ac_fn_c_check_func
1995
1996 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1997 # ---------------------------------------------
1998 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1999 # accordingly.
2000 ac_fn_c_check_decl ()
2001 {
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 as_decl_name=`echo $2|sed 's/ *(.*//'`
2004 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2006 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2007 if eval \${$3+:} false; then :
2008 $as_echo_n "(cached) " >&6
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $4
2013 int
2014 main ()
2015 {
2016 #ifndef $as_decl_name
2017 #ifdef __cplusplus
2018 (void) $as_decl_use;
2019 #else
2020 (void) $as_decl_name;
2021 #endif
2022 #endif
2023
2024 ;
2025 return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 eval "$3=yes"
2030 else
2031 eval "$3=no"
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 fi
2035 eval ac_res=\$$3
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039
2040 } # ac_fn_c_check_decl
2041 cat >config.log <<_ACEOF
2042 This file contains any messages produced by compilers while
2043 running configure, to aid debugging if configure makes a mistake.
2044
2045 It was created by XMLStarlet $as_me 1.6.1, which was
2046 generated by GNU Autoconf 2.69. Invocation command line was
2047
2048 $ $0 $@
2049
2050 _ACEOF
2051 exec 5>>config.log
2052 {
2053 cat <<_ASUNAME
2054 ## --------- ##
2055 ## Platform. ##
2056 ## --------- ##
2057
2058 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2059 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2060 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2061 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2062 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2063
2064 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2065 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2066
2067 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2068 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2069 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2070 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2071 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2072 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2073 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2074
2075 _ASUNAME
2076
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 $as_echo "PATH: $as_dir"
2083 done
2084 IFS=$as_save_IFS
2085
2086 } >&5
2087
2088 cat >&5 <<_ACEOF
2089
2090
2091 ## ----------- ##
2092 ## Core tests. ##
2093 ## ----------- ##
2094
2095 _ACEOF
2096
2097
2098 # Keep a trace of the command line.
2099 # Strip out --no-create and --no-recursion so they do not pile up.
2100 # Strip out --silent because we don't want to record it for future runs.
2101 # Also quote any args containing shell meta-characters.
2102 # Make two passes to allow for proper duplicate-argument suppression.
2103 ac_configure_args=
2104 ac_configure_args0=
2105 ac_configure_args1=
2106 ac_must_keep_next=false
2107 for ac_pass in 1 2
2108 do
2109 for ac_arg
2110 do
2111 case $ac_arg in
2112 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2114 | -silent | --silent | --silen | --sile | --sil)
2115 continue ;;
2116 *\'*)
2117 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2118 esac
2119 case $ac_pass in
2120 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2121 2)
2122 as_fn_append ac_configure_args1 " '$ac_arg'"
2123 if test $ac_must_keep_next = true; then
2124 ac_must_keep_next=false # Got value, back to normal.
2125 else
2126 case $ac_arg in
2127 *=* | --config-cache | -C | -disable-* | --disable-* \
2128 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2129 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2130 | -with-* | --with-* | -without-* | --without-* | --x)
2131 case "$ac_configure_args0 " in
2132 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2133 esac
2134 ;;
2135 -* ) ac_must_keep_next=true ;;
2136 esac
2137 fi
2138 as_fn_append ac_configure_args " '$ac_arg'"
2139 ;;
2140 esac
2141 done
2142 done
2143 { ac_configure_args0=; unset ac_configure_args0;}
2144 { ac_configure_args1=; unset ac_configure_args1;}
2145
2146 # When interrupted or exit'd, cleanup temporary files, and complete
2147 # config.log. We remove comments because anyway the quotes in there
2148 # would cause problems or look ugly.
2149 # WARNING: Use '\'' to represent an apostrophe within the trap.
2150 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2151 trap 'exit_status=$?
2152 # Save into config.log some information that might help in debugging.
2153 {
2154 echo
2155
2156 $as_echo "## ---------------- ##
2157 ## Cache variables. ##
2158 ## ---------------- ##"
2159 echo
2160 # The following way of writing the cache mishandles newlines in values,
2161 (
2162 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2163 eval ac_val=\$$ac_var
2164 case $ac_val in #(
2165 *${as_nl}*)
2166 case $ac_var in #(
2167 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2168 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2169 esac
2170 case $ac_var in #(
2171 _ | IFS | as_nl) ;; #(
2172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2173 *) { eval $ac_var=; unset $ac_var;} ;;
2174 esac ;;
2175 esac
2176 done
2177 (set) 2>&1 |
2178 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2179 *${as_nl}ac_space=\ *)
2180 sed -n \
2181 "s/'\''/'\''\\\\'\'''\''/g;
2182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2183 ;; #(
2184 *)
2185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2186 ;;
2187 esac |
2188 sort
2189 )
2190 echo
2191
2192 $as_echo "## ----------------- ##
2193 ## Output variables. ##
2194 ## ----------------- ##"
2195 echo
2196 for ac_var in $ac_subst_vars
2197 do
2198 eval ac_val=\$$ac_var
2199 case $ac_val in
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 esac
2202 $as_echo "$ac_var='\''$ac_val'\''"
2203 done | sort
2204 echo
2205
2206 if test -n "$ac_subst_files"; then
2207 $as_echo "## ------------------- ##
2208 ## File substitutions. ##
2209 ## ------------------- ##"
2210 echo
2211 for ac_var in $ac_subst_files
2212 do
2213 eval ac_val=\$$ac_var
2214 case $ac_val in
2215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2216 esac
2217 $as_echo "$ac_var='\''$ac_val'\''"
2218 done | sort
2219 echo
2220 fi
2221
2222 if test -s confdefs.h; then
2223 $as_echo "## ----------- ##
2224 ## confdefs.h. ##
2225 ## ----------- ##"
2226 echo
2227 cat confdefs.h
2228 echo
2229 fi
2230 test "$ac_signal" != 0 &&
2231 $as_echo "$as_me: caught signal $ac_signal"
2232 $as_echo "$as_me: exit $exit_status"
2233 } >&5
2234 rm -f core *.core core.conftest.* &&
2235 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2236 exit $exit_status
2237 ' 0
2238 for ac_signal in 1 2 13 15; do
2239 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2240 done
2241 ac_signal=0
2242
2243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2244 rm -f -r conftest* confdefs.h
2245
2246 $as_echo "/* confdefs.h */" > confdefs.h
2247
2248 # Predefined preprocessor variables.
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_NAME "$PACKAGE_NAME"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_STRING "$PACKAGE_STRING"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_URL "$PACKAGE_URL"
2272 _ACEOF
2273
2274
2275 # Let the site file select an alternate cache file if it wants to.
2276 # Prefer an explicitly selected file to automatically selected ones.
2277 ac_site_file1=NONE
2278 ac_site_file2=NONE
2279 if test -n "$CONFIG_SITE"; then
2280 # We do not want a PATH search for config.site.
2281 case $CONFIG_SITE in #((
2282 -*) ac_site_file1=./$CONFIG_SITE;;
2283 */*) ac_site_file1=$CONFIG_SITE;;
2284 *) ac_site_file1=./$CONFIG_SITE;;
2285 esac
2286 elif test "x$prefix" != xNONE; then
2287 ac_site_file1=$prefix/share/config.site
2288 ac_site_file2=$prefix/etc/config.site
2289 else
2290 ac_site_file1=$ac_default_prefix/share/config.site
2291 ac_site_file2=$ac_default_prefix/etc/config.site
2292 fi
2293 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2294 do
2295 test "x$ac_site_file" = xNONE && continue
2296 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2298 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2299 sed 's/^/| /' "$ac_site_file" >&5
2300 . "$ac_site_file" \
2301 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 as_fn_error $? "failed to load site script $ac_site_file
2304 See \`config.log' for more details" "$LINENO" 5; }
2305 fi
2306 done
2307
2308 if test -r "$cache_file"; then
2309 # Some versions of bash will fail to source /dev/null (special files
2310 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2311 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2313 $as_echo "$as_me: loading cache $cache_file" >&6;}
2314 case $cache_file in
2315 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2316 *) . "./$cache_file";;
2317 esac
2318 fi
2319 else
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2321 $as_echo "$as_me: creating cache $cache_file" >&6;}
2322 >$cache_file
2323 fi
2324
2325 as_fn_append ac_func_list " lstat"
2326 as_fn_append ac_func_list " stat"
2327 as_fn_append ac_func_list " setmode"
2328 # Check that the precious variables saved in the cache have kept the same
2329 # value.
2330 ac_cache_corrupted=false
2331 for ac_var in $ac_precious_vars; do
2332 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2333 eval ac_new_set=\$ac_env_${ac_var}_set
2334 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2335 eval ac_new_val=\$ac_env_${ac_var}_value
2336 case $ac_old_set,$ac_new_set in
2337 set,)
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2339 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2340 ac_cache_corrupted=: ;;
2341 ,set)
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2343 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2344 ac_cache_corrupted=: ;;
2345 ,);;
2346 *)
2347 if test "x$ac_old_val" != "x$ac_new_val"; then
2348 # differences in whitespace do not lead to failure.
2349 ac_old_val_w=`echo x $ac_old_val`
2350 ac_new_val_w=`echo x $ac_new_val`
2351 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2353 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2354 ac_cache_corrupted=:
2355 else
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2357 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2358 eval $ac_var=\$ac_old_val
2359 fi
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2361 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2363 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2364 fi;;
2365 esac
2366 # Pass precious variables to config.status.
2367 if test "$ac_new_set" = set; then
2368 case $ac_new_val in
2369 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2370 *) ac_arg=$ac_var=$ac_new_val ;;
2371 esac
2372 case " $ac_configure_args " in
2373 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2374 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2375 esac
2376 fi
2377 done
2378 if $ac_cache_corrupted; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2382 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2383 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2384 fi
2385 ## -------------------- ##
2386 ## Main body of script. ##
2387 ## -------------------- ##
2388
2389 ac_ext=c
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394
2395
2396
2397
2398 am__api_version='1.14'
2399
2400 ac_aux_dir=
2401 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2402 if test -f "$ac_dir/install-sh"; then
2403 ac_aux_dir=$ac_dir
2404 ac_install_sh="$ac_aux_dir/install-sh -c"
2405 break
2406 elif test -f "$ac_dir/install.sh"; then
2407 ac_aux_dir=$ac_dir
2408 ac_install_sh="$ac_aux_dir/install.sh -c"
2409 break
2410 elif test -f "$ac_dir/shtool"; then
2411 ac_aux_dir=$ac_dir
2412 ac_install_sh="$ac_aux_dir/shtool install -c"
2413 break
2414 fi
2415 done
2416 if test -z "$ac_aux_dir"; then
2417 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2418 fi
2419
2420 # These three variables are undocumented and unsupported,
2421 # and are intended to be withdrawn in a future Autoconf release.
2422 # They can cause serious problems if a builder's source tree is in a directory
2423 # whose full name contains unusual characters.
2424 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2425 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2426 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2427
2428
2429 # Find a good install program. We prefer a C program (faster),
2430 # so one script is as good as another. But avoid the broken or
2431 # incompatible versions:
2432 # SysV /etc/install, /usr/sbin/install
2433 # SunOS /usr/etc/install
2434 # IRIX /sbin/install
2435 # AIX /bin/install
2436 # AmigaOS /C/install, which installs bootblocks on floppy discs
2437 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2438 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2439 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2440 # OS/2's system install, which has a completely different semantic
2441 # ./install, which can be erroneously created by make from ./install.sh.
2442 # Reject install programs that cannot install multiple files.
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2444 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2445 if test -z "$INSTALL"; then
2446 if ${ac_cv_path_install+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 # Account for people who put trailing slashes in PATH elements.
2455 case $as_dir/ in #((
2456 ./ | .// | /[cC]/* | \
2457 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2458 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2459 /usr/ucb/* ) ;;
2460 *)
2461 # OSF1 and SCO ODT 3.0 have their own names for install.
2462 # Don't use installbsd from OSF since it installs stuff as root
2463 # by default.
2464 for ac_prog in ginstall scoinst install; do
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2467 if test $ac_prog = install &&
2468 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469 # AIX install. It has an incompatible calling convention.
2470 :
2471 elif test $ac_prog = install &&
2472 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2473 # program-specific install script used by HP pwplus--don't use.
2474 :
2475 else
2476 rm -rf conftest.one conftest.two conftest.dir
2477 echo one > conftest.one
2478 echo two > conftest.two
2479 mkdir conftest.dir
2480 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2481 test -s conftest.one && test -s conftest.two &&
2482 test -s conftest.dir/conftest.one &&
2483 test -s conftest.dir/conftest.two
2484 then
2485 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2486 break 3
2487 fi
2488 fi
2489 fi
2490 done
2491 done
2492 ;;
2493 esac
2494
2495 done
2496 IFS=$as_save_IFS
2497
2498 rm -rf conftest.one conftest.two conftest.dir
2499
2500 fi
2501 if test "${ac_cv_path_install+set}" = set; then
2502 INSTALL=$ac_cv_path_install
2503 else
2504 # As a last resort, use the slow shell script. Don't cache a
2505 # value for INSTALL within a source directory, because that will
2506 # break other packages using the cache if that directory is
2507 # removed, or if the value is a relative name.
2508 INSTALL=$ac_install_sh
2509 fi
2510 fi
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2512 $as_echo "$INSTALL" >&6; }
2513
2514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2515 # It thinks the first close brace ends the variable substitution.
2516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2517
2518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2519
2520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2521
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2523 $as_echo_n "checking whether build environment is sane... " >&6; }
2524 # Reject unsafe characters in $srcdir or the absolute working directory
2525 # name. Accept space and tab only in the latter.
2526 am_lf='
2527 '
2528 case `pwd` in
2529 *[\\\"\#\$\&\'\`$am_lf]*)
2530 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2531 esac
2532 case $srcdir in
2533 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2534 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2535 esac
2536
2537 # Do 'set' in a subshell so we don't clobber the current shell's
2538 # arguments. Must try -L first in case configure is actually a
2539 # symlink; some systems play weird games with the mod time of symlinks
2540 # (eg FreeBSD returns the mod time of the symlink's containing
2541 # directory).
2542 if (
2543 am_has_slept=no
2544 for am_try in 1 2; do
2545 echo "timestamp, slept: $am_has_slept" > conftest.file
2546 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2547 if test "$*" = "X"; then
2548 # -L didn't work.
2549 set X `ls -t "$srcdir/configure" conftest.file`
2550 fi
2551 if test "$*" != "X $srcdir/configure conftest.file" \
2552 && test "$*" != "X conftest.file $srcdir/configure"; then
2553
2554 # If neither matched, then we have a broken ls. This can happen
2555 # if, for instance, CONFIG_SHELL is bash and it inherits a
2556 # broken ls alias from the environment. This has actually
2557 # happened. Such a system could not be considered "sane".
2558 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2559 alias in your environment" "$LINENO" 5
2560 fi
2561 if test "$2" = conftest.file || test $am_try -eq 2; then
2562 break
2563 fi
2564 # Just in case.
2565 sleep 1
2566 am_has_slept=yes
2567 done
2568 test "$2" = conftest.file
2569 )
2570 then
2571 # Ok.
2572 :
2573 else
2574 as_fn_error $? "newly created file is older than distributed files!
2575 Check your system clock" "$LINENO" 5
2576 fi
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578 $as_echo "yes" >&6; }
2579 # If we didn't sleep, we still need to ensure time stamps of config.status and
2580 # generated files are strictly newer.
2581 am_sleep_pid=
2582 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2583 ( sleep 1 ) &
2584 am_sleep_pid=$!
2585 fi
2586
2587 rm -f conftest.file
2588
2589 test "$program_prefix" != NONE &&
2590 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2591 # Use a double $ so make ignores it.
2592 test "$program_suffix" != NONE &&
2593 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2594 # Double any \ or $.
2595 # By default was `s,x,x', remove it if useless.
2596 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2597 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2598
2599 # expand $ac_aux_dir to an absolute path
2600 am_aux_dir=`cd $ac_aux_dir && pwd`
2601
2602 if test x"${MISSING+set}" != xset; then
2603 case $am_aux_dir in
2604 *\ * | *\ *)
2605 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2606 *)
2607 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2608 esac
2609 fi
2610 # Use eval to expand $SHELL
2611 if eval "$MISSING --is-lightweight"; then
2612 am_missing_run="$MISSING "
2613 else
2614 am_missing_run=
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2616 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2617 fi
2618
2619 if test x"${install_sh}" != xset; then
2620 case $am_aux_dir in
2621 *\ * | *\ *)
2622 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2623 *)
2624 install_sh="\${SHELL} $am_aux_dir/install-sh"
2625 esac
2626 fi
2627
2628 # Installed binaries are usually stripped using 'strip' when the user
2629 # run "make install-strip". However 'strip' might not be the right
2630 # tool to use in cross-compilation environments, therefore Automake
2631 # will honor the 'STRIP' environment variable to overrule this program.
2632 if test "$cross_compiling" != no; then
2633 if test -n "$ac_tool_prefix"; then
2634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2635 set dummy ${ac_tool_prefix}strip; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_STRIP+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 if test -n "$STRIP"; then
2642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2654 fi
2655 done
2656 done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 STRIP=$ac_cv_prog_STRIP
2662 if test -n "$STRIP"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2664 $as_echo "$STRIP" >&6; }
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670
2671 fi
2672 if test -z "$ac_cv_prog_STRIP"; then
2673 ac_ct_STRIP=$STRIP
2674 # Extract the first word of "strip", so it can be a program name with args.
2675 set dummy 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 ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$ac_ct_STRIP"; then
2682 ac_cv_prog_ac_ct_STRIP="$ac_ct_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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_ac_ct_STRIP="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 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2702 if test -n "$ac_ct_STRIP"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2704 $as_echo "$ac_ct_STRIP" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710 if test "x$ac_ct_STRIP" = x; then
2711 STRIP=":"
2712 else
2713 case $cross_compiling:$ac_tool_warned in
2714 yes:)
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2717 ac_tool_warned=yes ;;
2718 esac
2719 STRIP=$ac_ct_STRIP
2720 fi
2721 else
2722 STRIP="$ac_cv_prog_STRIP"
2723 fi
2724
2725 fi
2726 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2727
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2729 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2730 if test -z "$MKDIR_P"; then
2731 if ${ac_cv_path_mkdir+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2736 do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_prog in mkdir gmkdir; do
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2742 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2743 'mkdir (GNU coreutils) '* | \
2744 'mkdir (coreutils) '* | \
2745 'mkdir (fileutils) '4.1*)
2746 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2747 break 3;;
2748 esac
2749 done
2750 done
2751 done
2752 IFS=$as_save_IFS
2753
2754 fi
2755
2756 test -d ./--version && rmdir ./--version
2757 if test "${ac_cv_path_mkdir+set}" = set; then
2758 MKDIR_P="$ac_cv_path_mkdir -p"
2759 else
2760 # As a last resort, use the slow shell script. Don't cache a
2761 # value for MKDIR_P within a source directory, because that will
2762 # break other packages using the cache if that directory is
2763 # removed, or if the value is a relative name.
2764 MKDIR_P="$ac_install_sh -d"
2765 fi
2766 fi
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2768 $as_echo "$MKDIR_P" >&6; }
2769
2770 for ac_prog in gawk mawk nawk awk
2771 do
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_AWK+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test -n "$AWK"; then
2780 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_AWK="$ac_prog"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 AWK=$ac_cv_prog_AWK
2800 if test -n "$AWK"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2802 $as_echo "$AWK" >&6; }
2803 else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808
2809 test -n "$AWK" && break
2810 done
2811
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2813 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2814 set x ${MAKE-make}
2815 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2816 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 cat >conftest.make <<\_ACEOF
2820 SHELL = /bin/sh
2821 all:
2822 @echo '@@@%%%=$(MAKE)=@@@%%%'
2823 _ACEOF
2824 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2825 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2826 *@@@%%%=?*=@@@%%%*)
2827 eval ac_cv_prog_make_${ac_make}_set=yes;;
2828 *)
2829 eval ac_cv_prog_make_${ac_make}_set=no;;
2830 esac
2831 rm -f conftest.make
2832 fi
2833 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2835 $as_echo "yes" >&6; }
2836 SET_MAKE=
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 SET_MAKE="MAKE=${MAKE-make}"
2841 fi
2842
2843 rm -rf .tst 2>/dev/null
2844 mkdir .tst 2>/dev/null
2845 if test -d .tst; then
2846 am__leading_dot=.
2847 else
2848 am__leading_dot=_
2849 fi
2850 rmdir .tst 2>/dev/null
2851
2852 # Check whether --enable-silent-rules was given.
2853 if test "${enable_silent_rules+set}" = set; then :
2854 enableval=$enable_silent_rules;
2855 fi
2856
2857 case $enable_silent_rules in # (((
2858 yes) AM_DEFAULT_VERBOSITY=0;;
2859 no) AM_DEFAULT_VERBOSITY=1;;
2860 *) AM_DEFAULT_VERBOSITY=1;;
2861 esac
2862 am_make=${MAKE-make}
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2864 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2865 if ${am_cv_make_support_nested_variables+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if $as_echo 'TRUE=$(BAR$(V))
2869 BAR0=false
2870 BAR1=true
2871 V=1
2872 am__doit:
2873 @$(TRUE)
2874 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2875 am_cv_make_support_nested_variables=yes
2876 else
2877 am_cv_make_support_nested_variables=no
2878 fi
2879 fi
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2881 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2882 if test $am_cv_make_support_nested_variables = yes; then
2883 AM_V='$(V)'
2884 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2885 else
2886 AM_V=$AM_DEFAULT_VERBOSITY
2887 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2888 fi
2889 AM_BACKSLASH='\'
2890
2891 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2893 # is not polluted with repeated "-I."
2894 am__isrc=' -I$(srcdir)'
2895 # test to see if srcdir already configured
2896 if test -f $srcdir/config.status; then
2897 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2898 fi
2899 fi
2900
2901 # test whether we have cygpath
2902 if test -z "$CYGPATH_W"; then
2903 if (cygpath --version) >/dev/null 2>/dev/null; then
2904 CYGPATH_W='cygpath -w'
2905 else
2906 CYGPATH_W=echo
2907 fi
2908 fi
2909
2910
2911 # Define the identity of the package.
2912 PACKAGE='xmlstarlet'
2913 VERSION='1.6.1'
2914
2915
2916 # Some tools Automake needs.
2917
2918 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2919
2920
2921 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2922
2923
2924 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2925
2926
2927 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2928
2929
2930 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2931
2932 # For better backward compatibility. To be removed once Automake 1.9.x
2933 # dies out for good. For more background, see:
2934 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2935 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2936 mkdir_p='$(MKDIR_P)'
2937
2938 # We need awk for the "check" target. The system "awk" is bad on
2939 # some platforms.
2940 # Always define AMTAR for backward compatibility. Yes, it's still used
2941 # in the wild :-( We should find a proper way to deprecate it ...
2942 AMTAR='$${TAR-tar}'
2943
2944
2945 # We'll loop over all known methods to create a tar archive until one works.
2946 _am_tools='gnutar pax cpio none'
2947
2948 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2949
2950
2951
2952
2953
2954
2955 # POSIX will say in a future version that running "rm -f" with no argument
2956 # is OK; and we want to be able to make that assumption in our Makefile
2957 # recipes. So use an aggressive probe to check that the usage we want is
2958 # actually supported "in the wild" to an acceptable degree.
2959 # See automake bug#10828.
2960 # To make any issue more visible, cause the running configure to be aborted
2961 # by default if the 'rm' program in use doesn't match our expectations; the
2962 # user can still override this though.
2963 if rm -f && rm -fr && rm -rf; then : OK; else
2964 cat >&2 <<'END'
2965 Oops!
2966
2967 Your 'rm' program seems unable to run without file operands specified
2968 on the command line, even when the '-f' option is present. This is contrary
2969 to the behaviour of most rm programs out there, and not conforming with
2970 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2971
2972 Please tell [email protected] about your system, including the value
2973 of your $PATH and any error possibly output before this message. This
2974 can help us improve future automake versions.
2975
2976 END
2977 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2978 echo 'Configuration will proceed anyway, since you have set the' >&2
2979 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2980 echo >&2
2981 else
2982 cat >&2 <<'END'
2983 Aborting the configuration process, to ensure you take notice of the issue.
2984
2985 You can download and install GNU coreutils to get an 'rm' implementation
2986 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2987
2988 If you want to complete the configuration process using your problematic
2989 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2990 to "yes", and re-run configure.
2991
2992 END
2993 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2994 fi
2995 fi
2996 # Check whether --enable-silent-rules was given.
2997 if test "${enable_silent_rules+set}" = set; then :
2998 enableval=$enable_silent_rules;
2999 fi
3000
3001 case $enable_silent_rules in # (((
3002 yes) AM_DEFAULT_VERBOSITY=0;;
3003 no) AM_DEFAULT_VERBOSITY=1;;
3004 *) AM_DEFAULT_VERBOSITY=0;;
3005 esac
3006 am_make=${MAKE-make}
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3008 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3009 if ${am_cv_make_support_nested_variables+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 if $as_echo 'TRUE=$(BAR$(V))
3013 BAR0=false
3014 BAR1=true
3015 V=1
3016 am__doit:
3017 @$(TRUE)
3018 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3019 am_cv_make_support_nested_variables=yes
3020 else
3021 am_cv_make_support_nested_variables=no
3022 fi
3023 fi
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3025 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3026 if test $am_cv_make_support_nested_variables = yes; then
3027 AM_V='$(V)'
3028 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3029 else
3030 AM_V=$AM_DEFAULT_VERBOSITY
3031 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3032 fi
3033 AM_BACKSLASH='\'
3034
3035
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3037 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3038 # Check whether --enable-maintainer-mode was given.
3039 if test "${enable_maintainer_mode+set}" = set; then :
3040 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3041 else
3042 USE_MAINTAINER_MODE=no
3043 fi
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3046 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3047 if test $USE_MAINTAINER_MODE = yes; then
3048 MAINTAINER_MODE_TRUE=
3049 MAINTAINER_MODE_FALSE='#'
3050 else
3051 MAINTAINER_MODE_TRUE='#'
3052 MAINTAINER_MODE_FALSE=
3053 fi
3054
3055 MAINT=$MAINTAINER_MODE_TRUE
3056
3057
3058
3059 LIBXML_REQUIRED_VERSION=2.6.27
3060 LIBXSLT_REQUIRED_VERSION=1.1.9
3061
3062
3063 # Check whether --with-libxml-prefix was given.
3064 if test "${with_libxml_prefix+set}" = set; then :
3065 withval=$with_libxml_prefix; LIBXML_PREFIX="$withval"
3066 fi
3067
3068
3069 # Check whether --with-libxml-include-prefix was given.
3070 if test "${with_libxml_include_prefix+set}" = set; then :
3071 withval=$with_libxml_include_prefix; LIBXML_INCDIR="$withval"
3072 fi
3073
3074
3075 # Check whether --with-libxml-libs-prefix was given.
3076 if test "${with_libxml_libs_prefix+set}" = set; then :
3077 withval=$with_libxml_libs_prefix; LIBXML_LIBDIR="$withval"
3078 fi
3079
3080
3081 # Check whether --with-libxml-src was given.
3082 if test "${with_libxml_src+set}" = set; then :
3083 withval=$with_libxml_src; LIBXML_SRCDIR="$withval"
3084 LIBXML_LIBDIR="$LIBXML_SRCDIR/.libs"
3085 fi
3086
3087
3088
3089 # Check whether --with-libxslt-prefix was given.
3090 if test "${with_libxslt_prefix+set}" = set; then :
3091 withval=$with_libxslt_prefix; LIBXSLT_PREFIX="$withval"
3092 fi
3093
3094
3095 # Check whether --with-libxslt-include-prefix was given.
3096 if test "${with_libxslt_include_prefix+set}" = set; then :
3097 withval=$with_libxslt_include_prefix; LIBXSLT_INCDIR="$withval"
3098 fi
3099
3100
3101 # Check whether --with-libxslt-libs-prefix was given.
3102 if test "${with_libxslt_libs_prefix+set}" = set; then :
3103 withval=$with_libxslt_libs_prefix; LIBXSLT_LIBDIR="$withval"
3104 fi
3105
3106
3107 # Check whether --with-libxslt-src was given.
3108 if test "${with_libxslt_src+set}" = set; then :
3109 withval=$with_libxslt_src; LIBXSLT_SRCDIR="$withval"
3110 LIBXSLT_LIBDIR="$LIBXSLT_SRCDIR/.libs"
3111 fi
3112
3113
3114
3115 # Check whether --with-libiconv-prefix was given.
3116 if test "${with_libiconv_prefix+set}" = set; then :
3117 withval=$with_libiconv_prefix; LIBICONV_PREFIX="$withval"
3118 fi
3119
3120
3121 # Check whether --with-libiconv-include-prefix was given.
3122 if test "${with_libiconv_include_prefix+set}" = set; then :
3123 withval=$with_libiconv_include_prefix; LIBICONV_INCDIR="$withval"
3124 fi
3125
3126
3127 # Check whether --with-libiconv-libs-prefix was given.
3128 if test "${with_libiconv_libs_prefix+set}" = set; then :
3129 withval=$with_libiconv_libs_prefix; LIBICONV_LIBDIR="$withval"
3130 fi
3131
3132
3133
3134
3135 # Check whether --enable-static-libs was given.
3136 if test "${enable_static_libs+set}" = set; then :
3137 enableval=$enable_static_libs; STATIC_LIBS=$enableval
3138 else
3139 STATIC_LIBS=no
3140 fi
3141
3142
3143 if test -r doc/xmlstarlet.1; then :
3144 LACK_DOCS=no
3145 else
3146 LACK_DOCS=yes
3147 fi
3148
3149 # Check whether --enable-build_docs was given.
3150 if test "${enable_build_docs+set}" = set; then :
3151 enableval=$enable_build_docs;
3152 else
3153 enable_build_docs=$LACK_DOCS
3154 fi
3155
3156
3157
3158
3159 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3160
3161
3162 # Make sure we can run config.sub.
3163 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3164 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3165
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3167 $as_echo_n "checking build system type... " >&6; }
3168 if ${ac_cv_build+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 ac_build_alias=$build_alias
3172 test "x$ac_build_alias" = x &&
3173 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3174 test "x$ac_build_alias" = x &&
3175 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3176 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3177 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3178
3179 fi
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3181 $as_echo "$ac_cv_build" >&6; }
3182 case $ac_cv_build in
3183 *-*-*) ;;
3184 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3185 esac
3186 build=$ac_cv_build
3187 ac_save_IFS=$IFS; IFS='-'
3188 set x $ac_cv_build
3189 shift
3190 build_cpu=$1
3191 build_vendor=$2
3192 shift; shift
3193 # Remember, the first character of IFS is used to create $*,
3194 # except with old shells:
3195 build_os=$*
3196 IFS=$ac_save_IFS
3197 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3198
3199
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3201 $as_echo_n "checking host system type... " >&6; }
3202 if ${ac_cv_host+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test "x$host_alias" = x; then
3206 ac_cv_host=$ac_cv_build
3207 else
3208 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3209 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3210 fi
3211
3212 fi
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3214 $as_echo "$ac_cv_host" >&6; }
3215 case $ac_cv_host in
3216 *-*-*) ;;
3217 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3218 esac
3219 host=$ac_cv_host
3220 ac_save_IFS=$IFS; IFS='-'
3221 set x $ac_cv_host
3222 shift
3223 host_cpu=$1
3224 host_vendor=$2
3225 shift; shift
3226 # Remember, the first character of IFS is used to create $*,
3227 # except with old shells:
3228 host_os=$*
3229 IFS=$ac_save_IFS
3230 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3231
3232
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 if test -n "$ac_tool_prefix"; then
3239 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3240 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if ${ac_cv_prog_CC+:} false; then :
3244 $as_echo_n "(cached) " >&6
3245 else
3246 if test -n "$CC"; then
3247 ac_cv_prog_CC="$CC" # Let the user override the test.
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 break 2
3259 fi
3260 done
3261 done
3262 IFS=$as_save_IFS
3263
3264 fi
3265 fi
3266 CC=$ac_cv_prog_CC
3267 if test -n "$CC"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3269 $as_echo "$CC" >&6; }
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 fi
3274
3275
3276 fi
3277 if test -z "$ac_cv_prog_CC"; then
3278 ac_ct_CC=$CC
3279 # Extract the first word of "gcc", so it can be a program name with args.
3280 set dummy gcc; ac_word=$2
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282 $as_echo_n "checking for $ac_word... " >&6; }
3283 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3284 $as_echo_n "(cached) " >&6
3285 else
3286 if test -n "$ac_ct_CC"; then
3287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296 ac_cv_prog_ac_ct_CC="gcc"
3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 break 2
3299 fi
3300 done
3301 done
3302 IFS=$as_save_IFS
3303
3304 fi
3305 fi
3306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3307 if test -n "$ac_ct_CC"; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3309 $as_echo "$ac_ct_CC" >&6; }
3310 else
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 fi
3314
3315 if test "x$ac_ct_CC" = x; then
3316 CC=""
3317 else
3318 case $cross_compiling:$ac_tool_warned in
3319 yes:)
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3322 ac_tool_warned=yes ;;
3323 esac
3324 CC=$ac_ct_CC
3325 fi
3326 else
3327 CC="$ac_cv_prog_CC"
3328 fi
3329
3330 if test -z "$CC"; then
3331 if test -n "$ac_tool_prefix"; then
3332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3333 set dummy ${ac_tool_prefix}cc; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_CC="${ac_tool_prefix}cc"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3352 fi
3353 done
3354 done
3355 IFS=$as_save_IFS
3356
3357 fi
3358 fi
3359 CC=$ac_cv_prog_CC
3360 if test -n "$CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362 $as_echo "$CC" >&6; }
3363 else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 fi
3367
3368
3369 fi
3370 fi
3371 if test -z "$CC"; then
3372 # Extract the first word of "cc", so it can be a program name with args.
3373 set dummy cc; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if ${ac_cv_prog_CC+:} false; then :
3377 $as_echo_n "(cached) " >&6
3378 else
3379 if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3381 else
3382 ac_prog_rejected=no
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3391 ac_prog_rejected=yes
3392 continue
3393 fi
3394 ac_cv_prog_CC="cc"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398 done
3399 done
3400 IFS=$as_save_IFS
3401
3402 if test $ac_prog_rejected = yes; then
3403 # We found a bogon in the path, so make sure we never use it.
3404 set dummy $ac_cv_prog_CC
3405 shift
3406 if test $# != 0; then
3407 # We chose a different compiler from the bogus one.
3408 # However, it has the same basename, so the bogon will be chosen
3409 # first if we set CC to just the basename; use the full file name.
3410 shift
3411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3412 fi
3413 fi
3414 fi
3415 fi
3416 CC=$ac_cv_prog_CC
3417 if test -n "$CC"; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3419 $as_echo "$CC" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 fi
3424
3425
3426 fi
3427 if test -z "$CC"; then
3428 if test -n "$ac_tool_prefix"; then
3429 for ac_prog in cl.exe
3430 do
3431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_CC+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 CC=$ac_cv_prog_CC
3459 if test -n "$CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461 $as_echo "$CC" >&6; }
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467
3468 test -n "$CC" && break
3469 done
3470 fi
3471 if test -z "$CC"; then
3472 ac_ct_CC=$CC
3473 for ac_prog in cl.exe
3474 do
3475 # Extract the first word of "$ac_prog", so it can be a program name with args.
3476 set dummy $ac_prog; ac_word=$2
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 $as_echo_n "checking for $ac_word... " >&6; }
3479 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3480 $as_echo_n "(cached) " >&6
3481 else
3482 if test -n "$ac_ct_CC"; then
3483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3484 else
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH
3487 do
3488 IFS=$as_save_IFS
3489 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492 ac_cv_prog_ac_ct_CC="$ac_prog"
3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 break 2
3495 fi
3496 done
3497 done
3498 IFS=$as_save_IFS
3499
3500 fi
3501 fi
3502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3503 if test -n "$ac_ct_CC"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3505 $as_echo "$ac_ct_CC" >&6; }
3506 else
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3509 fi
3510
3511
3512 test -n "$ac_ct_CC" && break
3513 done
3514
3515 if test "x$ac_ct_CC" = x; then
3516 CC=""
3517 else
3518 case $cross_compiling:$ac_tool_warned in
3519 yes:)
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3522 ac_tool_warned=yes ;;
3523 esac
3524 CC=$ac_ct_CC
3525 fi
3526 fi
3527
3528 fi
3529
3530
3531 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error $? "no acceptable C compiler found in \$PATH
3534 See \`config.log' for more details" "$LINENO" 5; }
3535
3536 # Provide some information about the compiler.
3537 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3538 set X $ac_compile
3539 ac_compiler=$2
3540 for ac_option in --version -v -V -qversion; do
3541 { { ac_try="$ac_compiler $ac_option >&5"
3542 case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3549 ac_status=$?
3550 if test -s conftest.err; then
3551 sed '10a\
3552 ... rest of stderr output deleted ...
3553 10q' conftest.err >conftest.er1
3554 cat conftest.er1 >&5
3555 fi
3556 rm -f conftest.er1 conftest.err
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }
3559 done
3560
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563
3564 int
3565 main ()
3566 {
3567
3568 ;
3569 return 0;
3570 }
3571 _ACEOF
3572 ac_clean_files_save=$ac_clean_files
3573 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3574 # Try to create an executable without -o first, disregard a.out.
3575 # It will help us diagnose broken compilers, and finding out an intuition
3576 # of exeext.
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3578 $as_echo_n "checking whether the C compiler works... " >&6; }
3579 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3580
3581 # The possible output files:
3582 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3583
3584 ac_rmfiles=
3585 for ac_file in $ac_files
3586 do
3587 case $ac_file in
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3589 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3590 esac
3591 done
3592 rm -f $ac_rmfiles
3593
3594 if { { ac_try="$ac_link_default"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600 $as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_link_default") 2>&5
3602 ac_status=$?
3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }; then :
3605 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3606 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3607 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3608 # so that the user can short-circuit this test for compilers unknown to
3609 # Autoconf.
3610 for ac_file in $ac_files ''
3611 do
3612 test -f "$ac_file" || continue
3613 case $ac_file in
3614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3615 ;;
3616 [ab].out )
3617 # We found the default executable, but exeext='' is most
3618 # certainly right.
3619 break;;
3620 *.* )
3621 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3622 then :; else
3623 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3624 fi
3625 # We set ac_cv_exeext here because the later test for it is not
3626 # safe: cross compilers may not add the suffix if given an `-o'
3627 # argument, so we may need to know it at that point already.
3628 # Even if this section looks crufty: it has the advantage of
3629 # actually working.
3630 break;;
3631 * )
3632 break;;
3633 esac
3634 done
3635 test "$ac_cv_exeext" = no && ac_cv_exeext=
3636
3637 else
3638 ac_file=''
3639 fi
3640 if test -z "$ac_file"; then :
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3643 $as_echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error 77 "C compiler cannot create executables
3649 See \`config.log' for more details" "$LINENO" 5; }
3650 else
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3652 $as_echo "yes" >&6; }
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3655 $as_echo_n "checking for C compiler default output file name... " >&6; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3657 $as_echo "$ac_file" >&6; }
3658 ac_exeext=$ac_cv_exeext
3659
3660 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3661 ac_clean_files=$ac_clean_files_save
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3663 $as_echo_n "checking for suffix of executables... " >&6; }
3664 if { { ac_try="$ac_link"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_link") 2>&5
3672 ac_status=$?
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; then :
3675 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3676 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3677 # work properly (i.e., refer to `conftest.exe'), while it won't with
3678 # `rm'.
3679 for ac_file in conftest.exe conftest conftest.*; do
3680 test -f "$ac_file" || continue
3681 case $ac_file in
3682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3683 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684 break;;
3685 * ) break;;
3686 esac
3687 done
3688 else
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3692 See \`config.log' for more details" "$LINENO" 5; }
3693 fi
3694 rm -f conftest conftest$ac_cv_exeext
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3696 $as_echo "$ac_cv_exeext" >&6; }
3697
3698 rm -f conftest.$ac_ext
3699 EXEEXT=$ac_cv_exeext
3700 ac_exeext=$EXEEXT
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3703 #include <stdio.h>
3704 int
3705 main ()
3706 {
3707 FILE *f = fopen ("conftest.out", "w");
3708 return ferror (f) || fclose (f) != 0;
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 ac_clean_files="$ac_clean_files conftest.out"
3715 # Check that the compiler produces executables we can run. If not, either
3716 # the compiler is broken, or we cross compile.
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3718 $as_echo_n "checking whether we are cross compiling... " >&6; }
3719 if test "$cross_compiling" != yes; then
3720 { { ac_try="$ac_link"
3721 case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726 $as_echo "$ac_try_echo"; } >&5
3727 (eval "$ac_link") 2>&5
3728 ac_status=$?
3729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730 test $ac_status = 0; }
3731 if { ac_try='./conftest$ac_cv_exeext'
3732 { { case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735 esac
3736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737 $as_echo "$ac_try_echo"; } >&5
3738 (eval "$ac_try") 2>&5
3739 ac_status=$?
3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741 test $ac_status = 0; }; }; then
3742 cross_compiling=no
3743 else
3744 if test "$cross_compiling" = maybe; then
3745 cross_compiling=yes
3746 else
3747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error $? "cannot run C compiled programs.
3750 If you meant to cross compile, use \`--host'.
3751 See \`config.log' for more details" "$LINENO" 5; }
3752 fi
3753 fi
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3756 $as_echo "$cross_compiling" >&6; }
3757
3758 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3759 ac_clean_files=$ac_clean_files_save
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3761 $as_echo_n "checking for suffix of object files... " >&6; }
3762 if ${ac_cv_objext+:} false; then :
3763 $as_echo_n "(cached) " >&6
3764 else
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767
3768 int
3769 main ()
3770 {
3771
3772 ;
3773 return 0;
3774 }
3775 _ACEOF
3776 rm -f conftest.o conftest.obj
3777 if { { ac_try="$ac_compile"
3778 case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_compile") 2>&5
3785 ac_status=$?
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }; then :
3788 for ac_file in conftest.o conftest.obj conftest.*; do
3789 test -f "$ac_file" || continue;
3790 case $ac_file in
3791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3792 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3793 break;;
3794 esac
3795 done
3796 else
3797 $as_echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3799
3800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error $? "cannot compute suffix of object files: cannot compile
3803 See \`config.log' for more details" "$LINENO" 5; }
3804 fi
3805 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3808 $as_echo "$ac_cv_objext" >&6; }
3809 OBJEXT=$ac_cv_objext
3810 ac_objext=$OBJEXT
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3812 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3813 if ${ac_cv_c_compiler_gnu+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818
3819 int
3820 main ()
3821 {
3822 #ifndef __GNUC__
3823 choke me
3824 #endif
3825
3826 ;
3827 return 0;
3828 }
3829 _ACEOF
3830 if ac_fn_c_try_compile "$LINENO"; then :
3831 ac_compiler_gnu=yes
3832 else
3833 ac_compiler_gnu=no
3834 fi
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3837
3838 fi
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3840 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3841 if test $ac_compiler_gnu = yes; then
3842 GCC=yes
3843 else
3844 GCC=
3845 fi
3846 ac_test_CFLAGS=${CFLAGS+set}
3847 ac_save_CFLAGS=$CFLAGS
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3849 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3850 if ${ac_cv_prog_cc_g+:} false; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 ac_save_c_werror_flag=$ac_c_werror_flag
3854 ac_c_werror_flag=yes
3855 ac_cv_prog_cc_g=no
3856 CFLAGS="-g"
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859
3860 int
3861 main ()
3862 {
3863
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 if ac_fn_c_try_compile "$LINENO"; then :
3869 ac_cv_prog_cc_g=yes
3870 else
3871 CFLAGS=""
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3874
3875 int
3876 main ()
3877 {
3878
3879 ;
3880 return 0;
3881 }
3882 _ACEOF
3883 if ac_fn_c_try_compile "$LINENO"; then :
3884
3885 else
3886 ac_c_werror_flag=$ac_save_c_werror_flag
3887 CFLAGS="-g"
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3890
3891 int
3892 main ()
3893 {
3894
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 if ac_fn_c_try_compile "$LINENO"; then :
3900 ac_cv_prog_cc_g=yes
3901 fi
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 fi
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 fi
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 ac_c_werror_flag=$ac_save_c_werror_flag
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3910 $as_echo "$ac_cv_prog_cc_g" >&6; }
3911 if test "$ac_test_CFLAGS" = set; then
3912 CFLAGS=$ac_save_CFLAGS
3913 elif test $ac_cv_prog_cc_g = yes; then
3914 if test "$GCC" = yes; then
3915 CFLAGS="-g -O2"
3916 else
3917 CFLAGS="-g"
3918 fi
3919 else
3920 if test "$GCC" = yes; then
3921 CFLAGS="-O2"
3922 else
3923 CFLAGS=
3924 fi
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3927 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3928 if ${ac_cv_prog_cc_c89+:} false; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 ac_cv_prog_cc_c89=no
3932 ac_save_CC=$CC
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3935 #include <stdarg.h>
3936 #include <stdio.h>
3937 struct stat;
3938 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3939 struct buf { int x; };
3940 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3941 static char *e (p, i)
3942 char **p;
3943 int i;
3944 {
3945 return p[i];
3946 }
3947 static char *f (char * (*g) (char **, int), char **p, ...)
3948 {
3949 char *s;
3950 va_list v;
3951 va_start (v,p);
3952 s = g (p, va_arg (v,int));
3953 va_end (v);
3954 return s;
3955 }
3956
3957 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3958 function prototypes and stuff, but not '\xHH' hex character constants.
3959 These don't provoke an error unfortunately, instead are silently treated
3960 as 'x'. The following induces an error, until -std is added to get
3961 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3962 array size at least. It's necessary to write '\x00'==0 to get something
3963 that's true only with -std. */
3964 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3965
3966 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3967 inside strings and character constants. */
3968 #define FOO(x) 'x'
3969 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3970
3971 int test (int i, double x);
3972 struct s1 {int (*f) (int a);};
3973 struct s2 {int (*f) (double a);};
3974 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3975 int argc;
3976 char **argv;
3977 int
3978 main ()
3979 {
3980 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3981 ;
3982 return 0;
3983 }
3984 _ACEOF
3985 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3986 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3987 do
3988 CC="$ac_save_CC $ac_arg"
3989 if ac_fn_c_try_compile "$LINENO"; then :
3990 ac_cv_prog_cc_c89=$ac_arg
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext
3993 test "x$ac_cv_prog_cc_c89" != "xno" && break
3994 done
3995 rm -f conftest.$ac_ext
3996 CC=$ac_save_CC
3997
3998 fi
3999 # AC_CACHE_VAL
4000 case "x$ac_cv_prog_cc_c89" in
4001 x)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4003 $as_echo "none needed" >&6; } ;;
4004 xno)
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4006 $as_echo "unsupported" >&6; } ;;
4007 *)
4008 CC="$CC $ac_cv_prog_cc_c89"
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4010 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4011 esac
4012 if test "x$ac_cv_prog_cc_c89" != xno; then :
4013
4014 fi
4015
4016 ac_ext=c
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021
4022 ac_ext=c
4023 ac_cpp='$CPP $CPPFLAGS'
4024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4028 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4029 if ${am_cv_prog_cc_c_o+:} false; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034
4035 int
4036 main ()
4037 {
4038
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 # Make sure it works both with $CC and with simple cc.
4044 # Following AC_PROG_CC_C_O, we do the test twice because some
4045 # compilers refuse to overwrite an existing .o file with -o,
4046 # though they will create one.
4047 am_cv_prog_cc_c_o=yes
4048 for am_i in 1 2; do
4049 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4050 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4051 ac_status=$?
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } \
4054 && test -f conftest2.$ac_objext; then
4055 : OK
4056 else
4057 am_cv_prog_cc_c_o=no
4058 break
4059 fi
4060 done
4061 rm -f core conftest*
4062 unset am_i
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4065 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4066 if test "$am_cv_prog_cc_c_o" != yes; then
4067 # Losing compiler, so override with the script.
4068 # FIXME: It is wrong to rewrite CC.
4069 # But if we don't then we get into trouble of one sort or another.
4070 # A longer-term fix would be to have automake use am__CC in this case,
4071 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4072 CC="$am_aux_dir/compile $CC"
4073 fi
4074 ac_ext=c
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079
4080 DEPDIR="${am__leading_dot}deps"
4081
4082 ac_config_commands="$ac_config_commands depfiles"
4083
4084
4085 am_make=${MAKE-make}
4086 cat > confinc << 'END'
4087 am__doit:
4088 @echo this is the am__doit target
4089 .PHONY: am__doit
4090 END
4091 # If we don't find an include directive, just comment out the code.
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4093 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4094 am__include="#"
4095 am__quote=
4096 _am_result=none
4097 # First try GNU make style include.
4098 echo "include confinc" > confmf
4099 # Ignore all kinds of additional output from 'make'.
4100 case `$am_make -s -f confmf 2> /dev/null` in #(
4101 *the\ am__doit\ target*)
4102 am__include=include
4103 am__quote=
4104 _am_result=GNU
4105 ;;
4106 esac
4107 # Now try BSD make style include.
4108 if test "$am__include" = "#"; then
4109 echo '.include "confinc"' > confmf
4110 case `$am_make -s -f confmf 2> /dev/null` in #(
4111 *the\ am__doit\ target*)
4112 am__include=.include
4113 am__quote="\""
4114 _am_result=BSD
4115 ;;
4116 esac
4117 fi
4118
4119
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4121 $as_echo "$_am_result" >&6; }
4122 rm -f confinc confmf
4123
4124 # Check whether --enable-dependency-tracking was given.
4125 if test "${enable_dependency_tracking+set}" = set; then :
4126 enableval=$enable_dependency_tracking;
4127 fi
4128
4129 if test "x$enable_dependency_tracking" != xno; then
4130 am_depcomp="$ac_aux_dir/depcomp"
4131 AMDEPBACKSLASH='\'
4132 am__nodep='_no'
4133 fi
4134 if test "x$enable_dependency_tracking" != xno; then
4135 AMDEP_TRUE=
4136 AMDEP_FALSE='#'
4137 else
4138 AMDEP_TRUE='#'
4139 AMDEP_FALSE=
4140 fi
4141
4142
4143
4144 depcc="$CC" am_compiler_list=
4145
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4147 $as_echo_n "checking dependency style of $depcc... " >&6; }
4148 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4152 # We make a subdir and do the tests there. Otherwise we can end up
4153 # making bogus files that we don't know about and never remove. For
4154 # instance it was reported that on HP-UX the gcc test will end up
4155 # making a dummy file named 'D' -- because '-MD' means "put the output
4156 # in D".
4157 rm -rf conftest.dir
4158 mkdir conftest.dir
4159 # Copy depcomp to subdir because otherwise we won't find it if we're
4160 # using a relative directory.
4161 cp "$am_depcomp" conftest.dir
4162 cd conftest.dir
4163 # We will build objects and dependencies in a subdirectory because
4164 # it helps to detect inapplicable dependency modes. For instance
4165 # both Tru64's cc and ICC support -MD to output dependencies as a
4166 # side effect of compilation, but ICC will put the dependencies in
4167 # the current directory while Tru64 will put them in the object
4168 # directory.
4169 mkdir sub
4170
4171 am_cv_CC_dependencies_compiler_type=none
4172 if test "$am_compiler_list" = ""; then
4173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4174 fi
4175 am__universal=false
4176 case " $depcc " in #(
4177 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4178 esac
4179
4180 for depmode in $am_compiler_list; do
4181 # Setup a source with many dependencies, because some compilers
4182 # like to wrap large dependency lists on column 80 (with \), and
4183 # we should not choose a depcomp mode which is confused by this.
4184 #
4185 # We need to recreate these files for each test, as the compiler may
4186 # overwrite some of them when testing with obscure command lines.
4187 # This happens at least with the AIX C compiler.
4188 : > sub/conftest.c
4189 for i in 1 2 3 4 5 6; do
4190 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4191 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4192 # Solaris 10 /bin/sh.
4193 echo '/* dummy */' > sub/conftst$i.h
4194 done
4195 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4196
4197 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4198 # mode. It turns out that the SunPro C++ compiler does not properly
4199 # handle '-M -o', and we need to detect this. Also, some Intel
4200 # versions had trouble with output in subdirs.
4201 am__obj=sub/conftest.${OBJEXT-o}
4202 am__minus_obj="-o $am__obj"
4203 case $depmode in
4204 gcc)
4205 # This depmode causes a compiler race in universal mode.
4206 test "$am__universal" = false || continue
4207 ;;
4208 nosideeffect)
4209 # After this tag, mechanisms are not by side-effect, so they'll
4210 # only be used when explicitly requested.
4211 if test "x$enable_dependency_tracking" = xyes; then
4212 continue
4213 else
4214 break
4215 fi
4216 ;;
4217 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4218 # This compiler won't grok '-c -o', but also, the minuso test has
4219 # not run yet. These depmodes are late enough in the game, and
4220 # so weak that their functioning should not be impacted.
4221 am__obj=conftest.${OBJEXT-o}
4222 am__minus_obj=
4223 ;;
4224 none) break ;;
4225 esac
4226 if depmode=$depmode \
4227 source=sub/conftest.c object=$am__obj \
4228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4229 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4230 >/dev/null 2>conftest.err &&
4231 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4233 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4235 # icc doesn't choke on unknown options, it will just issue warnings
4236 # or remarks (even with -Werror). So we grep stderr for any message
4237 # that says an option was ignored or not supported.
4238 # When given -MP, icc 7.0 and 7.1 complain thusly:
4239 # icc: Command line warning: ignoring option '-M'; no argument required
4240 # The diagnosis changed in icc 8.0:
4241 # icc: Command line remark: option '-MP' not supported
4242 if (grep 'ignoring option' conftest.err ||
4243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4244 am_cv_CC_dependencies_compiler_type=$depmode
4245 break
4246 fi
4247 fi
4248 done
4249
4250 cd ..
4251 rm -rf conftest.dir
4252 else
4253 am_cv_CC_dependencies_compiler_type=none
4254 fi
4255
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4258 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4260
4261 if
4262 test "x$enable_dependency_tracking" != xno \
4263 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4264 am__fastdepCC_TRUE=
4265 am__fastdepCC_FALSE='#'
4266 else
4267 am__fastdepCC_TRUE='#'
4268 am__fastdepCC_FALSE=
4269 fi
4270
4271
4272 if test x$GCC = xyes; then
4273 GCC_TRUE=
4274 GCC_FALSE='#'
4275 else
4276 GCC_TRUE='#'
4277 GCC_FALSE=
4278 fi
4279
4280 if test x$GCC = xyes; then :
4281 CFLAGS="-ansi $CFLAGS"
4282 fi
4283
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4285 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4286 if ${ac_cv_path_SED+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4290 for ac_i in 1 2 3 4 5 6 7; do
4291 ac_script="$ac_script$as_nl$ac_script"
4292 done
4293 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4294 { ac_script=; unset ac_script;}
4295 if test -z "$SED"; then
4296 ac_path_SED_found=false
4297 # Loop through the user's path and test for each of PROGNAME-LIST
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_prog in sed gsed; do
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4306 as_fn_executable_p "$ac_path_SED" || continue
4307 # Check for GNU ac_path_SED and select it if it is found.
4308 # Check for GNU $ac_path_SED
4309 case `"$ac_path_SED" --version 2>&1` in
4310 *GNU*)
4311 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4312 *)
4313 ac_count=0
4314 $as_echo_n 0123456789 >"conftest.in"
4315 while :
4316 do
4317 cat "conftest.in" "conftest.in" >"conftest.tmp"
4318 mv "conftest.tmp" "conftest.in"
4319 cp "conftest.in" "conftest.nl"
4320 $as_echo '' >> "conftest.nl"
4321 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4323 as_fn_arith $ac_count + 1 && ac_count=$as_val
4324 if test $ac_count -gt ${ac_path_SED_max-0}; then
4325 # Best one so far, save it but keep looking for a better one
4326 ac_cv_path_SED="$ac_path_SED"
4327 ac_path_SED_max=$ac_count
4328 fi
4329 # 10*(2^10) chars as input seems more than enough
4330 test $ac_count -gt 10 && break
4331 done
4332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4333 esac
4334
4335 $ac_path_SED_found && break 3
4336 done
4337 done
4338 done
4339 IFS=$as_save_IFS
4340 if test -z "$ac_cv_path_SED"; then
4341 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4342 fi
4343 else
4344 ac_cv_path_SED=$SED
4345 fi
4346
4347 fi
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4349 $as_echo "$ac_cv_path_SED" >&6; }
4350 SED="$ac_cv_path_SED"
4351 rm -f conftest.sed
4352
4353 for ac_prog in gawk mawk nawk awk
4354 do
4355 # Extract the first word of "$ac_prog", so it can be a program name with args.
4356 set dummy $ac_prog; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if ${ac_cv_prog_AWK+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -n "$AWK"; then
4363 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_AWK="$ac_prog"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380 fi
4381 fi
4382 AWK=$ac_cv_prog_AWK
4383 if test -n "$AWK"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4385 $as_echo "$AWK" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 fi
4390
4391
4392 test -n "$AWK" && break
4393 done
4394
4395
4396
4397
4398
4399 if test "x$LIBXML_SRCDIR" != x; then :
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: using libxml src dir \"$LIBXML_SRCDIR\"" >&5
4401 $as_echo "$as_me: using libxml src dir \"$LIBXML_SRCDIR\"" >&6;}
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not checking libxml version" >&5
4403 $as_echo "$as_me: WARNING: not checking libxml version" >&2;}
4404 else
4405 # Extract the first word of "xml2-config", so it can be a program name with args.
4406 set dummy xml2-config; ac_word=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if ${ac_cv_path_LIBXML_CONFIG+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 case $LIBXML_CONFIG in
4413 [\\/]* | ?:[\\/]*)
4414 ac_cv_path_LIBXML_CONFIG="$LIBXML_CONFIG" # Let the user override the test with a path.
4415 ;;
4416 *)
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $LIBXML_PREFIX/bin$PATH_SEPARATOR$PATH
4419 do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 ac_cv_path_LIBXML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4427 fi
4428 done
4429 done
4430 IFS=$as_save_IFS
4431
4432 ;;
4433 esac
4434 fi
4435 LIBXML_CONFIG=$ac_cv_path_LIBXML_CONFIG
4436 if test -n "$LIBXML_CONFIG"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML_CONFIG" >&5
4438 $as_echo "$LIBXML_CONFIG" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442 fi
4443
4444
4445 if test "x$LIBXML_CONFIG" = x; then :
4446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4448 as_fn_error $? "xml2-config not found,
4449 libxml is not installed or LIBXML_PREFIX is not correctly defined
4450 See \`config.log' for more details" "$LINENO" 5; }
4451 fi
4452 LIBXML_VERSION=$($LIBXML_CONFIG --version)
4453 as_arg_v1=$LIBXML_VERSION
4454 as_arg_v2=$LIBXML_REQUIRED_VERSION
4455 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
4456 case $? in #(
4457 1) :
4458 as_fn_error $? "xmlstarlet needs at least libxml version $LIBXML_REQUIRED_VERSION (http://www.xmlsoft.org/)" "$LINENO" 5 ;; #(
4459 0) :
4460 ;; #(
4461 2) :
4462 ;; #(
4463 *) :
4464 ;;
4465 esac
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: using libxml-$LIBXML_VERSION" >&5
4467 $as_echo "$as_me: using libxml-$LIBXML_VERSION" >&6;}
4468 LIBXML_PREFIX=`$as_dirname -- $LIBXML_CONFIG ||
4469 $as_expr X$LIBXML_CONFIG : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4470 X$LIBXML_CONFIG : 'X\(//\)[^/]' \| \
4471 X$LIBXML_CONFIG : 'X\(//\)$' \| \
4472 X$LIBXML_CONFIG : 'X\(/\)' \| . 2>/dev/null ||
4473 $as_echo X$LIBXML_CONFIG |
4474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4475 s//\1/
4476 q
4477 }
4478 /^X\(\/\/\)[^/].*/{
4479 s//\1/
4480 q
4481 }
4482 /^X\(\/\/\)$/{
4483 s//\1/
4484 q
4485 }
4486 /^X\(\/\).*/{
4487 s//\1/
4488 q
4489 }
4490 s/.*/./; q'`
4491 LIBXML_PREFIX=`$as_dirname -- $LIBXML_PREFIX ||
4492 $as_expr X$LIBXML_PREFIX : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4493 X$LIBXML_PREFIX : 'X\(//\)[^/]' \| \
4494 X$LIBXML_PREFIX : 'X\(//\)$' \| \
4495 X$LIBXML_PREFIX : 'X\(/\)' \| . 2>/dev/null ||
4496 $as_echo X$LIBXML_PREFIX |
4497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4498 s//\1/
4499 q
4500 }
4501 /^X\(\/\/\)[^/].*/{
4502 s//\1/
4503 q
4504 }
4505 /^X\(\/\/\)$/{
4506 s//\1/
4507 q
4508 }
4509 /^X\(\/\).*/{
4510 s//\1/
4511 q
4512 }
4513 s/.*/./; q'`
4514 : ${LIBXML_LIBDIR="$LIBXML_PREFIX/lib"}
4515 fi
4516
4517
4518 if test "x$LIBXML_SRCDIR" != x; then :
4519 LIBXML_INCDIR="$LIBXML_SRCDIR/include"
4520 fi
4521 : ${LIBXML_INCDIR="$LIBXML_PREFIX/include/libxml2"}
4522
4523 if test "x$STATIC_LIBS" != xno; then :
4524 LIBXML_CPPFLAGS="-I$LIBXML_INCDIR -DLIBXML_STATIC"
4525 else
4526 LIBXML_CPPFLAGS="-I$LIBXML_INCDIR"
4527 fi
4528
4529 if test "x$STATIC_LIBS" != xno; then :
4530 LIBXML_LIBS="$LIBXML_LIBDIR/libxml2.a"
4531 else
4532 LIBXML_LIBS="-lxml2"
4533 fi
4534 LIBXML_LDFLAGS="-L$LIBXML_LIBDIR"
4535
4536
4537
4538
4539
4540 if test "x$LIBXSLT_SRCDIR" != x; then :
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: using libxslt src dir \"$LIBXSLT_SRCDIR\"" >&5
4542 $as_echo "$as_me: using libxslt src dir \"$LIBXSLT_SRCDIR\"" >&6;}
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not checking libxslt version" >&5
4544 $as_echo "$as_me: WARNING: not checking libxslt version" >&2;}
4545 else
4546 # Extract the first word of "xslt-config", so it can be a program name with args.
4547 set dummy xslt-config; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_path_LIBXSLT_CONFIG+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 case $LIBXSLT_CONFIG in
4554 [\\/]* | ?:[\\/]*)
4555 ac_cv_path_LIBXSLT_CONFIG="$LIBXSLT_CONFIG" # Let the user override the test with a path.
4556 ;;
4557 *)
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $LIBXSLT_PREFIX/bin$PATH_SEPARATOR$PATH
4560 do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_path_LIBXSLT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4568 fi
4569 done
4570 done
4571 IFS=$as_save_IFS
4572
4573 ;;
4574 esac
4575 fi
4576 LIBXSLT_CONFIG=$ac_cv_path_LIBXSLT_CONFIG
4577 if test -n "$LIBXSLT_CONFIG"; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXSLT_CONFIG" >&5
4579 $as_echo "$LIBXSLT_CONFIG" >&6; }
4580 else
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4583 fi
4584
4585
4586 if test "x$LIBXSLT_CONFIG" = x; then :
4587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4589 as_fn_error $? "xslt-config not found,
4590 libxslt is not installed or LIBXSLT_PREFIX is not correctly defined
4591 See \`config.log' for more details" "$LINENO" 5; }
4592 fi
4593 LIBXSLT_VERSION=$($LIBXSLT_CONFIG --version)
4594 as_arg_v1=$LIBXSLT_VERSION
4595 as_arg_v2=$LIBXSLT_REQUIRED_VERSION
4596 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
4597 case $? in #(
4598 1) :
4599 as_fn_error $? "xmlstarlet needs at least libxslt version $LIBXSLT_REQUIRED_VERSION (http://www.xmlsoft.org/)" "$LINENO" 5 ;; #(
4600 0) :
4601 ;; #(
4602 2) :
4603 ;; #(
4604 *) :
4605 ;;
4606 esac
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: using libxslt-$LIBXSLT_VERSION" >&5
4608 $as_echo "$as_me: using libxslt-$LIBXSLT_VERSION" >&6;}
4609 LIBXSLT_PREFIX=`$as_dirname -- $LIBXSLT_CONFIG ||
4610 $as_expr X$LIBXSLT_CONFIG : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4611 X$LIBXSLT_CONFIG : 'X\(//\)[^/]' \| \
4612 X$LIBXSLT_CONFIG : 'X\(//\)$' \| \
4613 X$LIBXSLT_CONFIG : 'X\(/\)' \| . 2>/dev/null ||
4614 $as_echo X$LIBXSLT_CONFIG |
4615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4616 s//\1/
4617 q
4618 }
4619 /^X\(\/\/\)[^/].*/{
4620 s//\1/
4621 q
4622 }
4623 /^X\(\/\/\)$/{
4624 s//\1/
4625 q
4626 }
4627 /^X\(\/\).*/{
4628 s//\1/
4629 q
4630 }
4631 s/.*/./; q'`
4632 LIBXSLT_PREFIX=`$as_dirname -- $LIBXSLT_PREFIX ||
4633 $as_expr X$LIBXSLT_PREFIX : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4634 X$LIBXSLT_PREFIX : 'X\(//\)[^/]' \| \
4635 X$LIBXSLT_PREFIX : 'X\(//\)$' \| \
4636 X$LIBXSLT_PREFIX : 'X\(/\)' \| . 2>/dev/null ||
4637 $as_echo X$LIBXSLT_PREFIX |
4638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4639 s//\1/
4640 q
4641 }
4642 /^X\(\/\/\)[^/].*/{
4643 s//\1/
4644 q
4645 }
4646 /^X\(\/\/\)$/{
4647 s//\1/
4648 q
4649 }
4650 /^X\(\/\).*/{
4651 s//\1/
4652 q
4653 }
4654 s/.*/./; q'`
4655 : ${LIBXSLT_LIBDIR="$LIBXSLT_PREFIX/lib"}
4656 fi
4657
4658
4659 if test "x$LIBXSLT_SRCDIR" != x; then :
4660 XSLTPROC_PATH="$LIBXSLT_SRCDIR/xsltproc:$PATH"
4661 LIBXSLT_INCDIR="$LIBXSLT_SRCDIR"
4662 LIBXSLT_LDFLAGS="-L$LIBXSLT_SRCDIR/libexslt/.libs -L$LIBXSLT_SRCDIR/libxslt/.libs"
4663 if test "x$STATIC_LIBS" != xno; then :
4664 LIBXSLT_LIBS="$LIBXSLT_SRCDIR/libexslt/.libs/libexslt.a $LIBXSLT_SRCDIR/libxslt/.libs/libxslt.a"
4665 fi
4666 else
4667 XSLTPROC_PATH="$PATH"
4668 LIBXSLT_LDFLAGS="-L$LIBXSLT_LIBDIR"
4669 if test "x$STATIC_LIBS" != xno; then :
4670 LIBXSLT_LIBS="$LIBXSLT_LIBDIR/libexslt.a $LIBXSLT_LIBDIR/libxslt.a"
4671 fi
4672 fi
4673
4674 if test x"$enable_build_docs" = xyes; then :
4675 # Extract the first word of "xsltproc", so it can be a program name with args.
4676 set dummy xsltproc; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_path_XSLTPROC+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 case $XSLTPROC in
4683 [\\/]* | ?:[\\/]*)
4684 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4685 ;;
4686 *)
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $XSLTPROC_PATH
4689 do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 break 2
4697 fi
4698 done
4699 done
4700 IFS=$as_save_IFS
4701
4702 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="none"
4703 ;;
4704 esac
4705 fi
4706 XSLTPROC=$ac_cv_path_XSLTPROC
4707 if test -n "$XSLTPROC"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4709 $as_echo "$XSLTPROC" >&6; }
4710 else
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4713 fi
4714
4715
4716 if test "$XSLTPROC" = none; then :
4717 as_fn_error $? "xsltproc not found, unable to build documentation" "$LINENO" 5
4718 fi
4719
4720 # Extract the first word of "fop", so it can be a program name with args.
4721 set dummy fop; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if ${ac_cv_path_FOP+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 case $FOP in
4728 [\\/]* | ?:[\\/]*)
4729 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
4730 ;;
4731 *)
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2
4742 fi
4743 done
4744 done
4745 IFS=$as_save_IFS
4746
4747 test -z "$ac_cv_path_FOP" && ac_cv_path_FOP="none"
4748 ;;
4749 esac
4750 fi
4751 FOP=$ac_cv_path_FOP
4752 if test -n "$FOP"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
4754 $as_echo "$FOP" >&6; }
4755 else
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758 fi
4759
4760
4761 if test x"$FOP" != xnone; then
4762 HAVE_FOP_TRUE=
4763 HAVE_FOP_FALSE='#'
4764 else
4765 HAVE_FOP_TRUE='#'
4766 HAVE_FOP_FALSE=
4767 fi
4768
4769
4770 # Extract the first word of "pdf2ps", so it can be a program name with args.
4771 set dummy pdf2ps; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_path_PDF2PS+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 case $PDF2PS in
4778 [\\/]* | ?:[\\/]*)
4779 ac_cv_path_PDF2PS="$PDF2PS" # Let the user override the test with a path.
4780 ;;
4781 *)
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789 ac_cv_path_PDF2PS="$as_dir/$ac_word$ac_exec_ext"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793 done
4794 done
4795 IFS=$as_save_IFS
4796
4797 test -z "$ac_cv_path_PDF2PS" && ac_cv_path_PDF2PS="none"
4798 ;;
4799 esac
4800 fi
4801 PDF2PS=$ac_cv_path_PDF2PS
4802 if test -n "$PDF2PS"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDF2PS" >&5
4804 $as_echo "$PDF2PS" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810
4811 if test x"$PDF2PS" != xnone; then
4812 HAVE_PDF2PS_TRUE=
4813 HAVE_PDF2PS_FALSE='#'
4814 else
4815 HAVE_PDF2PS_TRUE='#'
4816 HAVE_PDF2PS_FALSE=
4817 fi
4818
4819 else
4820 # these don't get used when BUILD_DOCS is false but Automake
4821 # will get cranky if we don't set the conditional
4822 if false; then
4823 HAVE_FOP_TRUE=
4824 HAVE_FOP_FALSE='#'
4825 else
4826 HAVE_FOP_TRUE='#'
4827 HAVE_FOP_FALSE=
4828 fi
4829
4830 if false; then
4831 HAVE_PDF2PS_TRUE=
4832 HAVE_PDF2PS_FALSE='#'
4833 else
4834 HAVE_PDF2PS_TRUE='#'
4835 HAVE_PDF2PS_FALSE=
4836 fi
4837
4838 fi
4839
4840 if test x"$enable_build_docs" = xyes; then
4841 BUILD_DOCS_TRUE=
4842 BUILD_DOCS_FALSE='#'
4843 else
4844 BUILD_DOCS_TRUE='#'
4845 BUILD_DOCS_FALSE=
4846 fi
4847
4848
4849
4850 if test "x$STATIC_LIBS" = xno; then :
4851 LIBXSLT_LIBS="-lexslt -lxslt"
4852 fi
4853
4854 : ${LIBXSLT_INCDIR="$LIBXSLT_PREFIX/include"}
4855 LIBXSLT_CPPFLAGS="-I$LIBXSLT_INCDIR"
4856
4857
4858 WIN32_EXTRA_LDFLAGS=
4859 WIN32_EXTRA_LIBS=
4860
4861 case "${host}" in #(
4862 *-hpux*) :
4863 if test "x$GCC" != "xyes"; then :
4864 CFLAGS="-Ae"
4865 fi ;; #(
4866 *mingw*) :
4867 WIN32_EXTRA_LIBS='-lwsock32'
4868
4869 $as_echo "#define _WINSOCKAPI_ 1" >>confdefs.h
4870 ;; #(
4871 *) :
4872 ;;
4873 esac
4874
4875
4876 ac_ext=c
4877 ac_cpp='$CPP $CPPFLAGS'
4878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4882 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4883 # On Suns, sometimes $CPP names a directory.
4884 if test -n "$CPP" && test -d "$CPP"; then
4885 CPP=
4886 fi
4887 if test -z "$CPP"; then
4888 if ${ac_cv_prog_CPP+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 # Double quotes because CPP needs to be expanded
4892 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4893 do
4894 ac_preproc_ok=false
4895 for ac_c_preproc_warn_flag in '' yes
4896 do
4897 # Use a header file that comes with gcc, so configuring glibc
4898 # with a fresh cross-compiler works.
4899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4900 # <limits.h> exists even on freestanding compilers.
4901 # On the NeXT, cc -E runs the code through the compiler's parser,
4902 # not just through cpp. "Syntax error" is here to catch this case.
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905 #ifdef __STDC__
4906 # include <limits.h>
4907 #else
4908 # include <assert.h>
4909 #endif
4910 Syntax error
4911 _ACEOF
4912 if ac_fn_c_try_cpp "$LINENO"; then :
4913
4914 else
4915 # Broken: fails on valid input.
4916 continue
4917 fi
4918 rm -f conftest.err conftest.i conftest.$ac_ext
4919
4920 # OK, works on sane cases. Now check whether nonexistent headers
4921 # can be detected and how.
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 #include <ac_nonexistent.h>
4925 _ACEOF
4926 if ac_fn_c_try_cpp "$LINENO"; then :
4927 # Broken: success on invalid input.
4928 continue
4929 else
4930 # Passes both tests.
4931 ac_preproc_ok=:
4932 break
4933 fi
4934 rm -f conftest.err conftest.i conftest.$ac_ext
4935
4936 done
4937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4938 rm -f conftest.i conftest.err conftest.$ac_ext
4939 if $ac_preproc_ok; then :
4940 break
4941 fi
4942
4943 done
4944 ac_cv_prog_CPP=$CPP
4945
4946 fi
4947 CPP=$ac_cv_prog_CPP
4948 else
4949 ac_cv_prog_CPP=$CPP
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4952 $as_echo "$CPP" >&6; }
4953 ac_preproc_ok=false
4954 for ac_c_preproc_warn_flag in '' yes
4955 do
4956 # Use a header file that comes with gcc, so configuring glibc
4957 # with a fresh cross-compiler works.
4958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4959 # <limits.h> exists even on freestanding compilers.
4960 # On the NeXT, cc -E runs the code through the compiler's parser,
4961 # not just through cpp. "Syntax error" is here to catch this case.
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 #ifdef __STDC__
4965 # include <limits.h>
4966 #else
4967 # include <assert.h>
4968 #endif
4969 Syntax error
4970 _ACEOF
4971 if ac_fn_c_try_cpp "$LINENO"; then :
4972
4973 else
4974 # Broken: fails on valid input.
4975 continue
4976 fi
4977 rm -f conftest.err conftest.i conftest.$ac_ext
4978
4979 # OK, works on sane cases. Now check whether nonexistent headers
4980 # can be detected and how.
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4983 #include <ac_nonexistent.h>
4984 _ACEOF
4985 if ac_fn_c_try_cpp "$LINENO"; then :
4986 # Broken: success on invalid input.
4987 continue
4988 else
4989 # Passes both tests.
4990 ac_preproc_ok=:
4991 break
4992 fi
4993 rm -f conftest.err conftest.i conftest.$ac_ext
4994
4995 done
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.i conftest.err conftest.$ac_ext
4998 if $ac_preproc_ok; then :
4999
5000 else
5001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5003 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5004 See \`config.log' for more details" "$LINENO" 5; }
5005 fi
5006
5007 ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5015 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5016 if ${ac_cv_path_GREP+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 if test -z "$GREP"; then
5020 ac_path_GREP_found=false
5021 # Loop through the user's path and test for each of PROGNAME-LIST
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5024 do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_prog in grep ggrep; do
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5030 as_fn_executable_p "$ac_path_GREP" || continue
5031 # Check for GNU ac_path_GREP and select it if it is found.
5032 # Check for GNU $ac_path_GREP
5033 case `"$ac_path_GREP" --version 2>&1` in
5034 *GNU*)
5035 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5036 *)
5037 ac_count=0
5038 $as_echo_n 0123456789 >"conftest.in"
5039 while :
5040 do
5041 cat "conftest.in" "conftest.in" >"conftest.tmp"
5042 mv "conftest.tmp" "conftest.in"
5043 cp "conftest.in" "conftest.nl"
5044 $as_echo 'GREP' >> "conftest.nl"
5045 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047 as_fn_arith $ac_count + 1 && ac_count=$as_val
5048 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5049 # Best one so far, save it but keep looking for a better one
5050 ac_cv_path_GREP="$ac_path_GREP"
5051 ac_path_GREP_max=$ac_count
5052 fi
5053 # 10*(2^10) chars as input seems more than enough
5054 test $ac_count -gt 10 && break
5055 done
5056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5057 esac
5058
5059 $ac_path_GREP_found && break 3
5060 done
5061 done
5062 done
5063 IFS=$as_save_IFS
5064 if test -z "$ac_cv_path_GREP"; then
5065 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5066 fi
5067 else
5068 ac_cv_path_GREP=$GREP
5069 fi
5070
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5073 $as_echo "$ac_cv_path_GREP" >&6; }
5074 GREP="$ac_cv_path_GREP"
5075
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5078 $as_echo_n "checking for egrep... " >&6; }
5079 if ${ac_cv_path_EGREP+:} false; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5083 then ac_cv_path_EGREP="$GREP -E"
5084 else
5085 if test -z "$EGREP"; then
5086 ac_path_EGREP_found=false
5087 # Loop through the user's path and test for each of PROGNAME-LIST
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5090 do
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_prog in egrep; do
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5096 as_fn_executable_p "$ac_path_EGREP" || continue
5097 # Check for GNU ac_path_EGREP and select it if it is found.
5098 # Check for GNU $ac_path_EGREP
5099 case `"$ac_path_EGREP" --version 2>&1` in
5100 *GNU*)
5101 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5102 *)
5103 ac_count=0
5104 $as_echo_n 0123456789 >"conftest.in"
5105 while :
5106 do
5107 cat "conftest.in" "conftest.in" >"conftest.tmp"
5108 mv "conftest.tmp" "conftest.in"
5109 cp "conftest.in" "conftest.nl"
5110 $as_echo 'EGREP' >> "conftest.nl"
5111 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113 as_fn_arith $ac_count + 1 && ac_count=$as_val
5114 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5115 # Best one so far, save it but keep looking for a better one
5116 ac_cv_path_EGREP="$ac_path_EGREP"
5117 ac_path_EGREP_max=$ac_count
5118 fi
5119 # 10*(2^10) chars as input seems more than enough
5120 test $ac_count -gt 10 && break
5121 done
5122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5123 esac
5124
5125 $ac_path_EGREP_found && break 3
5126 done
5127 done
5128 done
5129 IFS=$as_save_IFS
5130 if test -z "$ac_cv_path_EGREP"; then
5131 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5132 fi
5133 else
5134 ac_cv_path_EGREP=$EGREP
5135 fi
5136
5137 fi
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5140 $as_echo "$ac_cv_path_EGREP" >&6; }
5141 EGREP="$ac_cv_path_EGREP"
5142
5143
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5145 $as_echo_n "checking for ANSI C header files... " >&6; }
5146 if ${ac_cv_header_stdc+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151 #include <stdlib.h>
5152 #include <stdarg.h>
5153 #include <string.h>
5154 #include <float.h>
5155
5156 int
5157 main ()
5158 {
5159
5160 ;
5161 return 0;
5162 }
5163 _ACEOF
5164 if ac_fn_c_try_compile "$LINENO"; then :
5165 ac_cv_header_stdc=yes
5166 else
5167 ac_cv_header_stdc=no
5168 fi
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170
5171 if test $ac_cv_header_stdc = yes; then
5172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175 #include <string.h>
5176
5177 _ACEOF
5178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179 $EGREP "memchr" >/dev/null 2>&1; then :
5180
5181 else
5182 ac_cv_header_stdc=no
5183 fi
5184 rm -f conftest*
5185
5186 fi
5187
5188 if test $ac_cv_header_stdc = yes; then
5189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 #include <stdlib.h>
5193
5194 _ACEOF
5195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5196 $EGREP "free" >/dev/null 2>&1; then :
5197
5198 else
5199 ac_cv_header_stdc=no
5200 fi
5201 rm -f conftest*
5202
5203 fi
5204
5205 if test $ac_cv_header_stdc = yes; then
5206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5207 if test "$cross_compiling" = yes; then :
5208 :
5209 else
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 #include <ctype.h>
5213 #include <stdlib.h>
5214 #if ((' ' & 0x0FF) == 0x020)
5215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5217 #else
5218 # define ISLOWER(c) \
5219 (('a' <= (c) && (c) <= 'i') \
5220 || ('j' <= (c) && (c) <= 'r') \
5221 || ('s' <= (c) && (c) <= 'z'))
5222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5223 #endif
5224
5225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5226 int
5227 main ()
5228 {
5229 int i;
5230 for (i = 0; i < 256; i++)
5231 if (XOR (islower (i), ISLOWER (i))
5232 || toupper (i) != TOUPPER (i))
5233 return 2;
5234 return 0;
5235 }
5236 _ACEOF
5237 if ac_fn_c_try_run "$LINENO"; then :
5238
5239 else
5240 ac_cv_header_stdc=no
5241 fi
5242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5243 conftest.$ac_objext conftest.beam conftest.$ac_ext
5244 fi
5245
5246 fi
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5249 $as_echo "$ac_cv_header_stdc" >&6; }
5250 if test $ac_cv_header_stdc = yes; then
5251
5252 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5253
5254 fi
5255
5256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5258 inttypes.h stdint.h unistd.h
5259 do :
5260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5262 "
5263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5264 cat >>confdefs.h <<_ACEOF
5265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5266 _ACEOF
5267
5268 fi
5269
5270 done
5271
5272
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5274 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5275 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 rm -f conftest.sym conftest.file
5279 echo >conftest.file
5280 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5281 if test "$cross_compiling" = yes; then :
5282 ac_cv_func_lstat_dereferences_slashed_symlink=no
5283 else
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 $ac_includes_default
5287 int
5288 main ()
5289 {
5290 struct stat sbuf;
5291 /* Linux will dereference the symlink and fail, as required by POSIX.
5292 That is better in the sense that it means we will not
5293 have to compile and use the lstat wrapper. */
5294 return lstat ("conftest.sym/", &sbuf) == 0;
5295 ;
5296 return 0;
5297 }
5298 _ACEOF
5299 if ac_fn_c_try_run "$LINENO"; then :
5300 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5301 else
5302 ac_cv_func_lstat_dereferences_slashed_symlink=no
5303 fi
5304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5305 conftest.$ac_objext conftest.beam conftest.$ac_ext
5306 fi
5307
5308 else
5309 # If the `ln -s' command failed, then we probably don't even
5310 # have an lstat function.
5311 ac_cv_func_lstat_dereferences_slashed_symlink=no
5312 fi
5313 rm -f conftest.sym conftest.file
5314
5315 fi
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5317 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5318
5319 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5320
5321 cat >>confdefs.h <<_ACEOF
5322 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5323 _ACEOF
5324
5325
5326 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5327 case " $LIBOBJS " in
5328 *" lstat.$ac_objext "* ) ;;
5329 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5330 ;;
5331 esac
5332
5333 fi
5334
5335 for ac_header in stdlib.h
5336 do :
5337 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5338 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5339 cat >>confdefs.h <<_ACEOF
5340 #define HAVE_STDLIB_H 1
5341 _ACEOF
5342
5343 fi
5344
5345 done
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5348 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5349 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 if test "$cross_compiling" = yes; then :
5353 ac_cv_func_malloc_0_nonnull=no
5354 else
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5358 # include <stdlib.h>
5359 #else
5360 char *malloc ();
5361 #endif
5362
5363 int
5364 main ()
5365 {
5366 return ! malloc (0);
5367 ;
5368 return 0;
5369 }
5370 _ACEOF
5371 if ac_fn_c_try_run "$LINENO"; then :
5372 ac_cv_func_malloc_0_nonnull=yes
5373 else
5374 ac_cv_func_malloc_0_nonnull=no
5375 fi
5376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5377 conftest.$ac_objext conftest.beam conftest.$ac_ext
5378 fi
5379
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5382 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5383 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5384
5385 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5386
5387 else
5388 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5389
5390 case " $LIBOBJS " in
5391 *" malloc.$ac_objext "* ) ;;
5392 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5393 ;;
5394 esac
5395
5396
5397 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5398
5399 fi
5400
5401
5402 for ac_header in stdlib.h
5403 do :
5404 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5405 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5406 cat >>confdefs.h <<_ACEOF
5407 #define HAVE_STDLIB_H 1
5408 _ACEOF
5409
5410 fi
5411
5412 done
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
5415 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
5416 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 if test "$cross_compiling" = yes; then :
5420 ac_cv_func_realloc_0_nonnull=no
5421 else
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5424 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5425 # include <stdlib.h>
5426 #else
5427 char *realloc ();
5428 #endif
5429
5430 int
5431 main ()
5432 {
5433 return ! realloc (0, 0);
5434 ;
5435 return 0;
5436 }
5437 _ACEOF
5438 if ac_fn_c_try_run "$LINENO"; then :
5439 ac_cv_func_realloc_0_nonnull=yes
5440 else
5441 ac_cv_func_realloc_0_nonnull=no
5442 fi
5443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5444 conftest.$ac_objext conftest.beam conftest.$ac_ext
5445 fi
5446
5447 fi
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
5449 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
5450 if test $ac_cv_func_realloc_0_nonnull = yes; then :
5451
5452 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
5453
5454 else
5455 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
5456
5457 case " $LIBOBJS " in
5458 *" realloc.$ac_objext "* ) ;;
5459 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5460 ;;
5461 esac
5462
5463
5464 $as_echo "#define realloc rpl_realloc" >>confdefs.h
5465
5466 fi
5467
5468
5469 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5470 if test "x$ac_cv_type_mode_t" = xyes; then :
5471
5472 else
5473
5474 cat >>confdefs.h <<_ACEOF
5475 #define mode_t int
5476 _ACEOF
5477
5478 fi
5479
5480 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5481 if test "x$ac_cv_type_size_t" = xyes; then :
5482
5483 else
5484
5485 cat >>confdefs.h <<_ACEOF
5486 #define size_t unsigned int
5487 _ACEOF
5488
5489 fi
5490
5491
5492 # The trick with USER_LIBS allows make LIBS=-lfoo to add rather than
5493 # replace the libraries from ./configure
5494 USER_LIBS="$LIBS"
5495 LIBS=
5496 # shared libraries link to dependant libraries automatically
5497 if test "x$STATIC_LIBS" != xno; then :
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5499 $as_echo_n "checking for library containing dlopen... " >&6; }
5500 if ${ac_cv_search_dlopen+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 ac_func_search_save_LIBS=$LIBS
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506
5507 /* Override any GCC internal prototype to avoid an error.
5508 Use char because int might match the return type of a GCC
5509 builtin and then its argument prototype would still apply. */
5510 #ifdef __cplusplus
5511 extern "C"
5512 #endif
5513 char dlopen ();
5514 int
5515 main ()
5516 {
5517 return dlopen ();
5518 ;
5519 return 0;
5520 }
5521 _ACEOF
5522 for ac_lib in '' dl; do
5523 if test -z "$ac_lib"; then
5524 ac_res="none required"
5525 else
5526 ac_res=-l$ac_lib
5527 LIBS="-l$ac_lib "$USER_LIBS" $ac_func_search_save_LIBS"
5528 fi
5529 if ac_fn_c_try_link "$LINENO"; then :
5530 ac_cv_search_dlopen=$ac_res
5531 fi
5532 rm -f core conftest.err conftest.$ac_objext \
5533 conftest$ac_exeext
5534 if ${ac_cv_search_dlopen+:} false; then :
5535 break
5536 fi
5537 done
5538 if ${ac_cv_search_dlopen+:} false; then :
5539
5540 else
5541 ac_cv_search_dlopen=no
5542 fi
5543 rm conftest.$ac_ext
5544 LIBS=$ac_func_search_save_LIBS
5545 fi
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5547 $as_echo "$ac_cv_search_dlopen" >&6; }
5548 ac_res=$ac_cv_search_dlopen
5549 if test "$ac_res" != no; then :
5550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5551
5552 fi
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
5555 $as_echo_n "checking for library containing sqrt... " >&6; }
5556 if ${ac_cv_search_sqrt+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 ac_func_search_save_LIBS=$LIBS
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562
5563 /* Override any GCC internal prototype to avoid an error.
5564 Use char because int might match the return type of a GCC
5565 builtin and then its argument prototype would still apply. */
5566 #ifdef __cplusplus
5567 extern "C"
5568 #endif
5569 char sqrt ();
5570 int
5571 main ()
5572 {
5573 return sqrt ();
5574 ;
5575 return 0;
5576 }
5577 _ACEOF
5578 for ac_lib in '' m; do
5579 if test -z "$ac_lib"; then
5580 ac_res="none required"
5581 else
5582 ac_res=-l$ac_lib
5583 LIBS="-l$ac_lib "$USER_LIBS" $ac_func_search_save_LIBS"
5584 fi
5585 if ac_fn_c_try_link "$LINENO"; then :
5586 ac_cv_search_sqrt=$ac_res
5587 fi
5588 rm -f core conftest.err conftest.$ac_objext \
5589 conftest$ac_exeext
5590 if ${ac_cv_search_sqrt+:} false; then :
5591 break
5592 fi
5593 done
5594 if ${ac_cv_search_sqrt+:} false; then :
5595
5596 else
5597 ac_cv_search_sqrt=no
5598 fi
5599 rm conftest.$ac_ext
5600 LIBS=$ac_func_search_save_LIBS
5601 fi
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
5603 $as_echo "$ac_cv_search_sqrt" >&6; }
5604 ac_res=$ac_cv_search_sqrt
5605 if test "$ac_res" != no; then :
5606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5607
5608 fi
5609
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5611 $as_echo_n "checking for library containing iconv_open... " >&6; }
5612 if ${ac_cv_search_iconv_open+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 ac_func_search_save_LIBS=$LIBS
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618
5619 /* Override any GCC internal prototype to avoid an error.
5620 Use char because int might match the return type of a GCC
5621 builtin and then its argument prototype would still apply. */
5622 #ifdef __cplusplus
5623 extern "C"
5624 #endif
5625 char iconv_open ();
5626 int
5627 main ()
5628 {
5629 return iconv_open ();
5630 ;
5631 return 0;
5632 }
5633 _ACEOF
5634 for ac_lib in '' iconv; do
5635 if test -z "$ac_lib"; then
5636 ac_res="none required"
5637 else
5638 ac_res=-l$ac_lib
5639 LIBS="-l$ac_lib "$USER_LIBS" $ac_func_search_save_LIBS"
5640 fi
5641 if ac_fn_c_try_link "$LINENO"; then :
5642 ac_cv_search_iconv_open=$ac_res
5643 fi
5644 rm -f core conftest.err conftest.$ac_objext \
5645 conftest$ac_exeext
5646 if ${ac_cv_search_iconv_open+:} false; then :
5647 break
5648 fi
5649 done
5650 if ${ac_cv_search_iconv_open+:} false; then :
5651
5652 else
5653 ac_cv_search_iconv_open=no
5654 fi
5655 rm conftest.$ac_ext
5656 LIBS=$ac_func_search_save_LIBS
5657 fi
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5659 $as_echo "$ac_cv_search_iconv_open" >&6; }
5660 ac_res=$ac_cv_search_iconv_open
5661 if test "$ac_res" != no; then :
5662 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5663
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5666 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5667 if ${ac_cv_search_libiconv_open+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 ac_func_search_save_LIBS=$LIBS
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673
5674 /* Override any GCC internal prototype to avoid an error.
5675 Use char because int might match the return type of a GCC
5676 builtin and then its argument prototype would still apply. */
5677 #ifdef __cplusplus
5678 extern "C"
5679 #endif
5680 char libiconv_open ();
5681 int
5682 main ()
5683 {
5684 return libiconv_open ();
5685 ;
5686 return 0;
5687 }
5688 _ACEOF
5689 for ac_lib in '' iconv; do
5690 if test -z "$ac_lib"; then
5691 ac_res="none required"
5692 else
5693 ac_res=-l$ac_lib
5694 LIBS="-l$ac_lib "$USER_LIBS" $ac_func_search_save_LIBS"
5695 fi
5696 if ac_fn_c_try_link "$LINENO"; then :
5697 ac_cv_search_libiconv_open=$ac_res
5698 fi
5699 rm -f core conftest.err conftest.$ac_objext \
5700 conftest$ac_exeext
5701 if ${ac_cv_search_libiconv_open+:} false; then :
5702 break
5703 fi
5704 done
5705 if ${ac_cv_search_libiconv_open+:} false; then :
5706
5707 else
5708 ac_cv_search_libiconv_open=no
5709 fi
5710 rm conftest.$ac_ext
5711 LIBS=$ac_func_search_save_LIBS
5712 fi
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5714 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5715 ac_res=$ac_cv_search_libiconv_open
5716 if test "$ac_res" != no; then :
5717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5718
5719 fi
5720
5721 fi
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5724 $as_echo_n "checking for library containing clock_gettime... " >&6; }
5725 if ${ac_cv_search_clock_gettime+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 ac_func_search_save_LIBS=$LIBS
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731
5732 /* Override any GCC internal prototype to avoid an error.
5733 Use char because int might match the return type of a GCC
5734 builtin and then its argument prototype would still apply. */
5735 #ifdef __cplusplus
5736 extern "C"
5737 #endif
5738 char clock_gettime ();
5739 int
5740 main ()
5741 {
5742 return clock_gettime ();
5743 ;
5744 return 0;
5745 }
5746 _ACEOF
5747 for ac_lib in '' rt; do
5748 if test -z "$ac_lib"; then
5749 ac_res="none required"
5750 else
5751 ac_res=-l$ac_lib
5752 LIBS="-l$ac_lib "$USER_LIBS" $ac_func_search_save_LIBS"
5753 fi
5754 if ac_fn_c_try_link "$LINENO"; then :
5755 ac_cv_search_clock_gettime=$ac_res
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext \
5758 conftest$ac_exeext
5759 if ${ac_cv_search_clock_gettime+:} false; then :
5760 break
5761 fi
5762 done
5763 if ${ac_cv_search_clock_gettime+:} false; then :
5764
5765 else
5766 ac_cv_search_clock_gettime=no
5767 fi
5768 rm conftest.$ac_ext
5769 LIBS=$ac_func_search_save_LIBS
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5772 $as_echo "$ac_cv_search_clock_gettime" >&6; }
5773 ac_res=$ac_cv_search_clock_gettime
5774 if test "$ac_res" != no; then :
5775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5776
5777 fi
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
5780 $as_echo_n "checking for library containing deflate... " >&6; }
5781 if ${ac_cv_search_deflate+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 ac_func_search_save_LIBS=$LIBS
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787
5788 /* Override any GCC internal prototype to avoid an error.
5789 Use char because int might match the return type of a GCC
5790 builtin and then its argument prototype would still apply. */
5791 #ifdef __cplusplus
5792 extern "C"
5793 #endif
5794 char deflate ();
5795 int
5796 main ()
5797 {
5798 return deflate ();
5799 ;
5800 return 0;
5801 }
5802 _ACEOF
5803 for ac_lib in '' z; do
5804 if test -z "$ac_lib"; then
5805 ac_res="none required"
5806 else
5807 ac_res=-l$ac_lib
5808 LIBS="-l$ac_lib "$USER_LIBS" $ac_func_search_save_LIBS"
5809 fi
5810 if ac_fn_c_try_link "$LINENO"; then :
5811 ac_cv_search_deflate=$ac_res
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext \
5814 conftest$ac_exeext
5815 if ${ac_cv_search_deflate+:} false; then :
5816 break
5817 fi
5818 done
5819 if ${ac_cv_search_deflate+:} false; then :
5820
5821 else
5822 ac_cv_search_deflate=no
5823 fi
5824 rm conftest.$ac_ext
5825 LIBS=$ac_func_search_save_LIBS
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
5828 $as_echo "$ac_cv_search_deflate" >&6; }
5829 ac_res=$ac_cv_search_deflate
5830 if test "$ac_res" != no; then :
5831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5832
5833 fi
5834
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gcry_cipher_encrypt" >&5
5836 $as_echo_n "checking for library containing gcry_cipher_encrypt... " >&6; }
5837 if ${ac_cv_search_gcry_cipher_encrypt+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 ac_func_search_save_LIBS=$LIBS
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843
5844 /* Override any GCC internal prototype to avoid an error.
5845 Use char because int might match the return type of a GCC
5846 builtin and then its argument prototype would still apply. */
5847 #ifdef __cplusplus
5848 extern "C"
5849 #endif
5850 char gcry_cipher_encrypt ();
5851 int
5852 main ()
5853 {
5854 return gcry_cipher_encrypt ();
5855 ;
5856 return 0;
5857 }
5858 _ACEOF
5859 for ac_lib in '' gcrypt; do
5860 if test -z "$ac_lib"; then
5861 ac_res="none required"
5862 else
5863 ac_res=-l$ac_lib
5864 LIBS="-l$ac_lib "$USER_LIBS" $ac_func_search_save_LIBS"
5865 fi
5866 if ac_fn_c_try_link "$LINENO"; then :
5867 ac_cv_search_gcry_cipher_encrypt=$ac_res
5868 fi
5869 rm -f core conftest.err conftest.$ac_objext \
5870 conftest$ac_exeext
5871 if ${ac_cv_search_gcry_cipher_encrypt+:} false; then :
5872 break
5873 fi
5874 done
5875 if ${ac_cv_search_gcry_cipher_encrypt+:} false; then :
5876
5877 else
5878 ac_cv_search_gcry_cipher_encrypt=no
5879 fi
5880 rm conftest.$ac_ext
5881 LIBS=$ac_func_search_save_LIBS
5882 fi
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gcry_cipher_encrypt" >&5
5884 $as_echo "$ac_cv_search_gcry_cipher_encrypt" >&6; }
5885 ac_res=$ac_cv_search_gcry_cipher_encrypt
5886 if test "$ac_res" != no; then :
5887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5888
5889 fi
5890
5891
5892 # Checks for inet libraries:
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
5894 $as_echo_n "checking for library containing gethostent... " >&6; }
5895 if ${ac_cv_search_gethostent+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 ac_func_search_save_LIBS=$LIBS
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5901
5902 /* Override any GCC internal prototype to avoid an error.
5903 Use char because int might match the return type of a GCC
5904 builtin and then its argument prototype would still apply. */
5905 #ifdef __cplusplus
5906 extern "C"
5907 #endif
5908 char gethostent ();
5909 int
5910 main ()
5911 {
5912 return gethostent ();
5913 ;
5914 return 0;
5915 }
5916 _ACEOF
5917 for ac_lib in '' nsl; do
5918 if test -z "$ac_lib"; then
5919 ac_res="none required"
5920 else
5921 ac_res=-l$ac_lib
5922 LIBS="-l$ac_lib "$USER_LIBS" $ac_func_search_save_LIBS"
5923 fi
5924 if ac_fn_c_try_link "$LINENO"; then :
5925 ac_cv_search_gethostent=$ac_res
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext \
5928 conftest$ac_exeext
5929 if ${ac_cv_search_gethostent+:} false; then :
5930 break
5931 fi
5932 done
5933 if ${ac_cv_search_gethostent+:} false; then :
5934
5935 else
5936 ac_cv_search_gethostent=no
5937 fi
5938 rm conftest.$ac_ext
5939 LIBS=$ac_func_search_save_LIBS
5940 fi
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
5942 $as_echo "$ac_cv_search_gethostent" >&6; }
5943 ac_res=$ac_cv_search_gethostent
5944 if test "$ac_res" != no; then :
5945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5946
5947 fi
5948
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
5950 $as_echo_n "checking for library containing setsockopt... " >&6; }
5951 if ${ac_cv_search_setsockopt+:} false; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 ac_func_search_save_LIBS=$LIBS
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957
5958 /* Override any GCC internal prototype to avoid an error.
5959 Use char because int might match the return type of a GCC
5960 builtin and then its argument prototype would still apply. */
5961 #ifdef __cplusplus
5962 extern "C"
5963 #endif
5964 char setsockopt ();
5965 int
5966 main ()
5967 {
5968 return setsockopt ();
5969 ;
5970 return 0;
5971 }
5972 _ACEOF
5973 for ac_lib in '' socket net network; do
5974 if test -z "$ac_lib"; then
5975 ac_res="none required"
5976 else
5977 ac_res=-l$ac_lib
5978 LIBS="-l$ac_lib "$USER_LIBS" $ac_func_search_save_LIBS"
5979 fi
5980 if ac_fn_c_try_link "$LINENO"; then :
5981 ac_cv_search_setsockopt=$ac_res
5982 fi
5983 rm -f core conftest.err conftest.$ac_objext \
5984 conftest$ac_exeext
5985 if ${ac_cv_search_setsockopt+:} false; then :
5986 break
5987 fi
5988 done
5989 if ${ac_cv_search_setsockopt+:} false; then :
5990
5991 else
5992 ac_cv_search_setsockopt=no
5993 fi
5994 rm conftest.$ac_ext
5995 LIBS=$ac_func_search_save_LIBS
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
5998 $as_echo "$ac_cv_search_setsockopt" >&6; }
5999 ac_res=$ac_cv_search_setsockopt
6000 if test "$ac_res" != no; then :
6001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6002
6003 fi
6004
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
6006 $as_echo_n "checking for library containing connect... " >&6; }
6007 if ${ac_cv_search_connect+:} false; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 ac_func_search_save_LIBS=$LIBS
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013
6014 /* Override any GCC internal prototype to avoid an error.
6015 Use char because int might match the return type of a GCC
6016 builtin and then its argument prototype would still apply. */
6017 #ifdef __cplusplus
6018 extern "C"
6019 #endif
6020 char connect ();
6021 int
6022 main ()
6023 {
6024 return connect ();
6025 ;
6026 return 0;
6027 }
6028 _ACEOF
6029 for ac_lib in '' inet; do
6030 if test -z "$ac_lib"; then
6031 ac_res="none required"
6032 else
6033 ac_res=-l$ac_lib
6034 LIBS="-l$ac_lib "$USER_LIBS" $ac_func_search_save_LIBS"
6035 fi
6036 if ac_fn_c_try_link "$LINENO"; then :
6037 ac_cv_search_connect=$ac_res
6038 fi
6039 rm -f core conftest.err conftest.$ac_objext \
6040 conftest$ac_exeext
6041 if ${ac_cv_search_connect+:} false; then :
6042 break
6043 fi
6044 done
6045 if ${ac_cv_search_connect+:} false; then :
6046
6047 else
6048 ac_cv_search_connect=no
6049 fi
6050 rm conftest.$ac_ext
6051 LIBS=$ac_func_search_save_LIBS
6052 fi
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
6054 $as_echo "$ac_cv_search_connect" >&6; }
6055 ac_res=$ac_cv_search_connect
6056 if test "$ac_res" != no; then :
6057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6058
6059 fi
6060
6061 fi
6062
6063
6064
6065
6066 for ac_func in $ac_func_list
6067 do :
6068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6069 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6070 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6071 cat >>confdefs.h <<_ACEOF
6072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6073 _ACEOF
6074
6075 fi
6076 done
6077
6078
6079
6080
6081
6082
6083
6084 ac_fn_c_check_decl "$LINENO" "O_BINARY" "ac_cv_have_decl_O_BINARY" "
6085 #include <io.h>
6086 #include <fcntl.h>
6087
6088 "
6089 if test "x$ac_cv_have_decl_O_BINARY" = xyes; then :
6090
6091 $as_echo "#define HAVE_DECL_O_BINARY 1" >>confdefs.h
6092
6093 else
6094
6095 $as_echo "#define HAVE_DECL_O_BINARY 0" >>confdefs.h
6096
6097 fi
6098
6099
6100
6101
6102
6103 # check for exslt*XpathCtxtRegister() functions
6104 OLD_CPPFLAGS="$CPPFLAGS"
6105 CPPFLAGS="$LIBXSLT_CPPFLAGS $LIBXML_CPPFLAGS $CPPFLAGS"
6106 ac_fn_c_check_decl "$LINENO" "exsltDateXpathCtxtRegister" "ac_cv_have_decl_exsltDateXpathCtxtRegister" "#include <libexslt/exslt.h>
6107 "
6108 if test "x$ac_cv_have_decl_exsltDateXpathCtxtRegister" = xyes; then :
6109
6110 $as_echo "#define HAVE_EXSLT_XPATH_REGISTER 1" >>confdefs.h
6111
6112 HAVE_EXSLT_XPATH_REGISTER=1
6113 else
6114
6115 $as_echo "#define HAVE_EXSLT_XPATH_REGISTER 0" >>confdefs.h
6116
6117 HAVE_EXSLT_XPATH_REGISTER=0
6118 fi
6119
6120
6121 if test $HAVE_EXSLT_XPATH_REGISTER = 1; then
6122 HAVE_EXSLT_XPATH_REGISTER_TRUE=
6123 HAVE_EXSLT_XPATH_REGISTER_FALSE='#'
6124 else
6125 HAVE_EXSLT_XPATH_REGISTER_TRUE='#'
6126 HAVE_EXSLT_XPATH_REGISTER_FALSE=
6127 fi
6128
6129 CPPFLAGS="$OLD_CPPFLAGS"
6130
6131 # put warnings about missing docs at the end, so there is a better
6132 # chance of seeing them.
6133 if test x$LACK_DOCS = xyes; then :
6134 if test "$FOP" = none; then :
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not installed, unable to build pdf documentation" >&5
6136 $as_echo "$as_me: WARNING: fop not installed, unable to build pdf documentation" >&2;}
6137 fi
6138 if test "$PDF2PS" = none; then :
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdf2ps not installed, unable to build postscript documentation" >&5
6140 $as_echo "$as_me: WARNING: pdf2ps not installed, unable to build postscript documentation" >&2;}
6141 fi
6142 fi
6143
6144 # make flags
6145 AM_CPPFLAGS="$LIBXSLT_CPPFLAGS $LIBXML_CPPFLAGS"
6146
6147 AM_LDFLAGS="$LIBXSLT_LDFLAGS $LIBXML_LDFLAGS"
6148
6149 LDADD="$LIBXSLT_LIBS $LIBXML_LIBS $WIN32_EXTRA_LIBS $LIBS"
6150
6151 LIBS="$USER_LIBS"
6152
6153
6154
6155
6156
6157
6158 # make silent rule for FOP
6159 V_FOP="\$(V_FOP_$AM_V)"
6160 V_FOP_="\$(V_FOP_$AM_DEFAULT_VERBOSITY)"
6161 V_FOP_0='@echo " FOP $@";'
6162
6163 # make silent rule for DOCBOOK
6164 V_DOCBOOK="\$(V_DOCBOOK_$AM_V)"
6165 V_DOCBOOK_="\$(V_DOCBOOK_$AM_DEFAULT_VERBOSITY)"
6166 V_DOCBOOK_0='@echo " DBOOK $@";'
6167
6168
6169
6170
6171
6172
6173
6174 ac_config_headers="$ac_config_headers config.h"
6175
6176 ac_config_files="$ac_config_files xmlstarlet.spec Makefile solaris/package/sol8-sparc/pkginfo solaris/package/sol9-sparc/pkginfo"
6177
6178 cat >confcache <<\_ACEOF
6179 # This file is a shell script that caches the results of configure
6180 # tests run on this system so they can be shared between configure
6181 # scripts and configure runs, see configure's option --config-cache.
6182 # It is not useful on other systems. If it contains results you don't
6183 # want to keep, you may remove or edit it.
6184 #
6185 # config.status only pays attention to the cache file if you give it
6186 # the --recheck option to rerun configure.
6187 #
6188 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6189 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6190 # following values.
6191
6192 _ACEOF
6193
6194 # The following way of writing the cache mishandles newlines in values,
6195 # but we know of no workaround that is simple, portable, and efficient.
6196 # So, we kill variables containing newlines.
6197 # Ultrix sh set writes to stderr and can't be redirected directly,
6198 # and sets the high bit in the cache file unless we assign to the vars.
6199 (
6200 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6201 eval ac_val=\$$ac_var
6202 case $ac_val in #(
6203 *${as_nl}*)
6204 case $ac_var in #(
6205 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6206 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6207 esac
6208 case $ac_var in #(
6209 _ | IFS | as_nl) ;; #(
6210 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6211 *) { eval $ac_var=; unset $ac_var;} ;;
6212 esac ;;
6213 esac
6214 done
6215
6216 (set) 2>&1 |
6217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6218 *${as_nl}ac_space=\ *)
6219 # `set' does not quote correctly, so add quotes: double-quote
6220 # substitution turns \\\\ into \\, and sed turns \\ into \.
6221 sed -n \
6222 "s/'/'\\\\''/g;
6223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6224 ;; #(
6225 *)
6226 # `set' quotes correctly as required by POSIX, so do not add quotes.
6227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6228 ;;
6229 esac |
6230 sort
6231 ) |
6232 sed '
6233 /^ac_cv_env_/b end
6234 t clear
6235 :clear
6236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6237 t end
6238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6239 :end' >>confcache
6240 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6241 if test -w "$cache_file"; then
6242 if test "x$cache_file" != "x/dev/null"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6244 $as_echo "$as_me: updating cache $cache_file" >&6;}
6245 if test ! -f "$cache_file" || test -h "$cache_file"; then
6246 cat confcache >"$cache_file"
6247 else
6248 case $cache_file in #(
6249 */* | ?:*)
6250 mv -f confcache "$cache_file"$$ &&
6251 mv -f "$cache_file"$$ "$cache_file" ;; #(
6252 *)
6253 mv -f confcache "$cache_file" ;;
6254 esac
6255 fi
6256 fi
6257 else
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6259 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6260 fi
6261 fi
6262 rm -f confcache
6263
6264 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6265 # Let make expand exec_prefix.
6266 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6267
6268 DEFS=-DHAVE_CONFIG_H
6269
6270 ac_libobjs=
6271 ac_ltlibobjs=
6272 U=
6273 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6274 # 1. Remove the extension, and $U if already installed.
6275 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6276 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6278 # will be set to the directory where LIBOBJS objects are built.
6279 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6280 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6281 done
6282 LIBOBJS=$ac_libobjs
6283
6284 LTLIBOBJS=$ac_ltlibobjs
6285
6286
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6288 $as_echo_n "checking that generated files are newer than configure... " >&6; }
6289 if test -n "$am_sleep_pid"; then
6290 # Hide warnings about reused PIDs.
6291 wait $am_sleep_pid 2>/dev/null
6292 fi
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6294 $as_echo "done" >&6; }
6295 if test -n "$EXEEXT"; then
6296 am__EXEEXT_TRUE=
6297 am__EXEEXT_FALSE='#'
6298 else
6299 am__EXEEXT_TRUE='#'
6300 am__EXEEXT_FALSE=
6301 fi
6302
6303 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6304 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6306 fi
6307 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6308 as_fn_error $? "conditional \"AMDEP\" was never defined.
6309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6310 fi
6311 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6312 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6314 fi
6315 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
6316 as_fn_error $? "conditional \"GCC\" was never defined.
6317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6318 fi
6319 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
6320 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
6321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6322 fi
6323 if test -z "${HAVE_PDF2PS_TRUE}" && test -z "${HAVE_PDF2PS_FALSE}"; then
6324 as_fn_error $? "conditional \"HAVE_PDF2PS\" was never defined.
6325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6326 fi
6327 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
6328 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
6329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6330 fi
6331 if test -z "${HAVE_PDF2PS_TRUE}" && test -z "${HAVE_PDF2PS_FALSE}"; then
6332 as_fn_error $? "conditional \"HAVE_PDF2PS\" was never defined.
6333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6334 fi
6335 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
6336 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
6337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6338 fi
6339 if test -z "${HAVE_EXSLT_XPATH_REGISTER_TRUE}" && test -z "${HAVE_EXSLT_XPATH_REGISTER_FALSE}"; then
6340 as_fn_error $? "conditional \"HAVE_EXSLT_XPATH_REGISTER\" was never defined.
6341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6342 fi
6343
6344 : "${CONFIG_STATUS=./config.status}"
6345 ac_write_fail=0
6346 ac_clean_files_save=$ac_clean_files
6347 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6349 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6350 as_write_fail=0
6351 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6352 #! $SHELL
6353 # Generated by $as_me.
6354 # Run this file to recreate the current configuration.
6355 # Compiler output produced by configure, useful for debugging
6356 # configure, is in config.log if it exists.
6357
6358 debug=false
6359 ac_cs_recheck=false
6360 ac_cs_silent=false
6361
6362 SHELL=\${CONFIG_SHELL-$SHELL}
6363 export SHELL
6364 _ASEOF
6365 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6366 ## -------------------- ##
6367 ## M4sh Initialization. ##
6368 ## -------------------- ##
6369
6370 # Be more Bourne compatible
6371 DUALCASE=1; export DUALCASE # for MKS sh
6372 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6373 emulate sh
6374 NULLCMD=:
6375 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6376 # is contrary to our usage. Disable this feature.
6377 alias -g '${1+"$@"}'='"$@"'
6378 setopt NO_GLOB_SUBST
6379 else
6380 case `(set -o) 2>/dev/null` in #(
6381 *posix*) :
6382 set -o posix ;; #(
6383 *) :
6384 ;;
6385 esac
6386 fi
6387
6388
6389 as_nl='
6390 '
6391 export as_nl
6392 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6393 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6394 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6396 # Prefer a ksh shell builtin over an external printf program on Solaris,
6397 # but without wasting forks for bash or zsh.
6398 if test -z "$BASH_VERSION$ZSH_VERSION" \
6399 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6400 as_echo='print -r --'
6401 as_echo_n='print -rn --'
6402 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6403 as_echo='printf %s\n'
6404 as_echo_n='printf %s'
6405 else
6406 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6407 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6408 as_echo_n='/usr/ucb/echo -n'
6409 else
6410 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6411 as_echo_n_body='eval
6412 arg=$1;
6413 case $arg in #(
6414 *"$as_nl"*)
6415 expr "X$arg" : "X\\(.*\\)$as_nl";
6416 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6417 esac;
6418 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6419 '
6420 export as_echo_n_body
6421 as_echo_n='sh -c $as_echo_n_body as_echo'
6422 fi
6423 export as_echo_body
6424 as_echo='sh -c $as_echo_body as_echo'
6425 fi
6426
6427 # The user is always right.
6428 if test "${PATH_SEPARATOR+set}" != set; then
6429 PATH_SEPARATOR=:
6430 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6431 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6432 PATH_SEPARATOR=';'
6433 }
6434 fi
6435
6436
6437 # IFS
6438 # We need space, tab and new line, in precisely that order. Quoting is
6439 # there to prevent editors from complaining about space-tab.
6440 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6441 # splitting by setting IFS to empty value.)
6442 IFS=" "" $as_nl"
6443
6444 # Find who we are. Look in the path if we contain no directory separator.
6445 as_myself=
6446 case $0 in #((
6447 *[\\/]* ) as_myself=$0 ;;
6448 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6454 done
6455 IFS=$as_save_IFS
6456
6457 ;;
6458 esac
6459 # We did not find ourselves, most probably we were run as `sh COMMAND'
6460 # in which case we are not to be found in the path.
6461 if test "x$as_myself" = x; then
6462 as_myself=$0
6463 fi
6464 if test ! -f "$as_myself"; then
6465 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6466 exit 1
6467 fi
6468
6469 # Unset variables that we do not need and which cause bugs (e.g. in
6470 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6471 # suppresses any "Segmentation fault" message there. '((' could
6472 # trigger a bug in pdksh 5.2.14.
6473 for as_var in BASH_ENV ENV MAIL MAILPATH
6474 do eval test x\${$as_var+set} = xset \
6475 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6476 done
6477 PS1='$ '
6478 PS2='> '
6479 PS4='+ '
6480
6481 # NLS nuisances.
6482 LC_ALL=C
6483 export LC_ALL
6484 LANGUAGE=C
6485 export LANGUAGE
6486
6487 # CDPATH.
6488 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6489
6490
6491 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6492 # ----------------------------------------
6493 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6494 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6495 # script with STATUS, using 1 if that was 0.
6496 as_fn_error ()
6497 {
6498 as_status=$1; test $as_status -eq 0 && as_status=1
6499 if test "$4"; then
6500 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6501 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6502 fi
6503 $as_echo "$as_me: error: $2" >&2
6504 as_fn_exit $as_status
6505 } # as_fn_error
6506
6507
6508 # as_fn_set_status STATUS
6509 # -----------------------
6510 # Set $? to STATUS, without forking.
6511 as_fn_set_status ()
6512 {
6513 return $1
6514 } # as_fn_set_status
6515
6516 # as_fn_exit STATUS
6517 # -----------------
6518 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6519 as_fn_exit ()
6520 {
6521 set +e
6522 as_fn_set_status $1
6523 exit $1
6524 } # as_fn_exit
6525
6526 # as_fn_unset VAR
6527 # ---------------
6528 # Portably unset VAR.
6529 as_fn_unset ()
6530 {
6531 { eval $1=; unset $1;}
6532 }
6533 as_unset=as_fn_unset
6534 # as_fn_append VAR VALUE
6535 # ----------------------
6536 # Append the text in VALUE to the end of the definition contained in VAR. Take
6537 # advantage of any shell optimizations that allow amortized linear growth over
6538 # repeated appends, instead of the typical quadratic growth present in naive
6539 # implementations.
6540 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6541 eval 'as_fn_append ()
6542 {
6543 eval $1+=\$2
6544 }'
6545 else
6546 as_fn_append ()
6547 {
6548 eval $1=\$$1\$2
6549 }
6550 fi # as_fn_append
6551
6552 # as_fn_arith ARG...
6553 # ------------------
6554 # Perform arithmetic evaluation on the ARGs, and store the result in the
6555 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6556 # must be portable across $(()) and expr.
6557 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6558 eval 'as_fn_arith ()
6559 {
6560 as_val=$(( $* ))
6561 }'
6562 else
6563 as_fn_arith ()
6564 {
6565 as_val=`expr "$@" || test $? -eq 1`
6566 }
6567 fi # as_fn_arith
6568
6569
6570 if expr a : '\(a\)' >/dev/null 2>&1 &&
6571 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6572 as_expr=expr
6573 else
6574 as_expr=false
6575 fi
6576
6577 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6578 as_basename=basename
6579 else
6580 as_basename=false
6581 fi
6582
6583 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6584 as_dirname=dirname
6585 else
6586 as_dirname=false
6587 fi
6588
6589 as_me=`$as_basename -- "$0" ||
6590 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6591 X"$0" : 'X\(//\)$' \| \
6592 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6593 $as_echo X/"$0" |
6594 sed '/^.*\/\([^/][^/]*\)\/*$/{
6595 s//\1/
6596 q
6597 }
6598 /^X\/\(\/\/\)$/{
6599 s//\1/
6600 q
6601 }
6602 /^X\/\(\/\).*/{
6603 s//\1/
6604 q
6605 }
6606 s/.*/./; q'`
6607
6608 # Avoid depending upon Character Ranges.
6609 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6610 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6611 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6612 as_cr_digits='0123456789'
6613 as_cr_alnum=$as_cr_Letters$as_cr_digits
6614
6615 ECHO_C= ECHO_N= ECHO_T=
6616 case `echo -n x` in #(((((
6617 -n*)
6618 case `echo 'xy\c'` in
6619 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6620 xy) ECHO_C='\c';;
6621 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6622 ECHO_T=' ';;
6623 esac;;
6624 *)
6625 ECHO_N='-n';;
6626 esac
6627
6628 rm -f conf$$ conf$$.exe conf$$.file
6629 if test -d conf$$.dir; then
6630 rm -f conf$$.dir/conf$$.file
6631 else
6632 rm -f conf$$.dir
6633 mkdir conf$$.dir 2>/dev/null
6634 fi
6635 if (echo >conf$$.file) 2>/dev/null; then
6636 if ln -s conf$$.file conf$$ 2>/dev/null; then
6637 as_ln_s='ln -s'
6638 # ... but there are two gotchas:
6639 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6640 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6641 # In both cases, we have to default to `cp -pR'.
6642 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6643 as_ln_s='cp -pR'
6644 elif ln conf$$.file conf$$ 2>/dev/null; then
6645 as_ln_s=ln
6646 else
6647 as_ln_s='cp -pR'
6648 fi
6649 else
6650 as_ln_s='cp -pR'
6651 fi
6652 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6653 rmdir conf$$.dir 2>/dev/null
6654
6655
6656 # as_fn_mkdir_p
6657 # -------------
6658 # Create "$as_dir" as a directory, including parents if necessary.
6659 as_fn_mkdir_p ()
6660 {
6661
6662 case $as_dir in #(
6663 -*) as_dir=./$as_dir;;
6664 esac
6665 test -d "$as_dir" || eval $as_mkdir_p || {
6666 as_dirs=
6667 while :; do
6668 case $as_dir in #(
6669 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6670 *) as_qdir=$as_dir;;
6671 esac
6672 as_dirs="'$as_qdir' $as_dirs"
6673 as_dir=`$as_dirname -- "$as_dir" ||
6674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6675 X"$as_dir" : 'X\(//\)[^/]' \| \
6676 X"$as_dir" : 'X\(//\)$' \| \
6677 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6678 $as_echo X"$as_dir" |
6679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6680 s//\1/
6681 q
6682 }
6683 /^X\(\/\/\)[^/].*/{
6684 s//\1/
6685 q
6686 }
6687 /^X\(\/\/\)$/{
6688 s//\1/
6689 q
6690 }
6691 /^X\(\/\).*/{
6692 s//\1/
6693 q
6694 }
6695 s/.*/./; q'`
6696 test -d "$as_dir" && break
6697 done
6698 test -z "$as_dirs" || eval "mkdir $as_dirs"
6699 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6700
6701
6702 } # as_fn_mkdir_p
6703 if mkdir -p . 2>/dev/null; then
6704 as_mkdir_p='mkdir -p "$as_dir"'
6705 else
6706 test -d ./-p && rmdir ./-p
6707 as_mkdir_p=false
6708 fi
6709
6710
6711 # as_fn_executable_p FILE
6712 # -----------------------
6713 # Test if FILE is an executable regular file.
6714 as_fn_executable_p ()
6715 {
6716 test -f "$1" && test -x "$1"
6717 } # as_fn_executable_p
6718 as_test_x='test -x'
6719 as_executable_p=as_fn_executable_p
6720
6721 # Sed expression to map a string onto a valid CPP name.
6722 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6723
6724 # Sed expression to map a string onto a valid variable name.
6725 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6726
6727
6728 exec 6>&1
6729 ## ----------------------------------- ##
6730 ## Main body of $CONFIG_STATUS script. ##
6731 ## ----------------------------------- ##
6732 _ASEOF
6733 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6734
6735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6736 # Save the log message, to keep $0 and so on meaningful, and to
6737 # report actual input values of CONFIG_FILES etc. instead of their
6738 # values after options handling.
6739 ac_log="
6740 This file was extended by XMLStarlet $as_me 1.6.1, which was
6741 generated by GNU Autoconf 2.69. Invocation command line was
6742
6743 CONFIG_FILES = $CONFIG_FILES
6744 CONFIG_HEADERS = $CONFIG_HEADERS
6745 CONFIG_LINKS = $CONFIG_LINKS
6746 CONFIG_COMMANDS = $CONFIG_COMMANDS
6747 $ $0 $@
6748
6749 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6750 "
6751
6752 _ACEOF
6753
6754 case $ac_config_files in *"
6755 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6756 esac
6757
6758 case $ac_config_headers in *"
6759 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6760 esac
6761
6762
6763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6764 # Files that config.status was made for.
6765 config_files="$ac_config_files"
6766 config_headers="$ac_config_headers"
6767 config_commands="$ac_config_commands"
6768
6769 _ACEOF
6770
6771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6772 ac_cs_usage="\
6773 \`$as_me' instantiates files and other configuration actions
6774 from templates according to the current configuration. Unless the files
6775 and actions are specified as TAGs, all are instantiated by default.
6776
6777 Usage: $0 [OPTION]... [TAG]...
6778
6779 -h, --help print this help, then exit
6780 -V, --version print version number and configuration settings, then exit
6781 --config print configuration, then exit
6782 -q, --quiet, --silent
6783 do not print progress messages
6784 -d, --debug don't remove temporary files
6785 --recheck update $as_me by reconfiguring in the same conditions
6786 --file=FILE[:TEMPLATE]
6787 instantiate the configuration file FILE
6788 --header=FILE[:TEMPLATE]
6789 instantiate the configuration header FILE
6790
6791 Configuration files:
6792 $config_files
6793
6794 Configuration headers:
6795 $config_headers
6796
6797 Configuration commands:
6798 $config_commands
6799
6800 Report bugs to <http://sourceforge.net/projects/xmlstar/support>.
6801 XMLStarlet home page: <http://xmlstar.sourceforge.net/>."
6802
6803 _ACEOF
6804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6805 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6806 ac_cs_version="\\
6807 XMLStarlet config.status 1.6.1
6808 configured by $0, generated by GNU Autoconf 2.69,
6809 with options \\"\$ac_cs_config\\"
6810
6811 Copyright (C) 2012 Free Software Foundation, Inc.
6812 This config.status script is free software; the Free Software Foundation
6813 gives unlimited permission to copy, distribute and modify it."
6814
6815 ac_pwd='$ac_pwd'
6816 srcdir='$srcdir'
6817 INSTALL='$INSTALL'
6818 MKDIR_P='$MKDIR_P'
6819 AWK='$AWK'
6820 test -n "\$AWK" || AWK=awk
6821 _ACEOF
6822
6823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6824 # The default lists apply if the user does not specify any file.
6825 ac_need_defaults=:
6826 while test $# != 0
6827 do
6828 case $1 in
6829 --*=?*)
6830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6831 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6832 ac_shift=:
6833 ;;
6834 --*=)
6835 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6836 ac_optarg=
6837 ac_shift=:
6838 ;;
6839 *)
6840 ac_option=$1
6841 ac_optarg=$2
6842 ac_shift=shift
6843 ;;
6844 esac
6845
6846 case $ac_option in
6847 # Handling of the options.
6848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6849 ac_cs_recheck=: ;;
6850 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6851 $as_echo "$ac_cs_version"; exit ;;
6852 --config | --confi | --conf | --con | --co | --c )
6853 $as_echo "$ac_cs_config"; exit ;;
6854 --debug | --debu | --deb | --de | --d | -d )
6855 debug=: ;;
6856 --file | --fil | --fi | --f )
6857 $ac_shift
6858 case $ac_optarg in
6859 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6860 '') as_fn_error $? "missing file argument" ;;
6861 esac
6862 as_fn_append CONFIG_FILES " '$ac_optarg'"
6863 ac_need_defaults=false;;
6864 --header | --heade | --head | --hea )
6865 $ac_shift
6866 case $ac_optarg in
6867 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6868 esac
6869 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6870 ac_need_defaults=false;;
6871 --he | --h)
6872 # Conflict between --help and --header
6873 as_fn_error $? "ambiguous option: \`$1'
6874 Try \`$0 --help' for more information.";;
6875 --help | --hel | -h )
6876 $as_echo "$ac_cs_usage"; exit ;;
6877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6879 ac_cs_silent=: ;;
6880
6881 # This is an error.
6882 -*) as_fn_error $? "unrecognized option: \`$1'
6883 Try \`$0 --help' for more information." ;;
6884
6885 *) as_fn_append ac_config_targets " $1"
6886 ac_need_defaults=false ;;
6887
6888 esac
6889 shift
6890 done
6891
6892 ac_configure_extra_args=
6893
6894 if $ac_cs_silent; then
6895 exec 6>/dev/null
6896 ac_configure_extra_args="$ac_configure_extra_args --silent"
6897 fi
6898
6899 _ACEOF
6900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6901 if \$ac_cs_recheck; then
6902 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6903 shift
6904 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6905 CONFIG_SHELL='$SHELL'
6906 export CONFIG_SHELL
6907 exec "\$@"
6908 fi
6909
6910 _ACEOF
6911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6912 exec 5>>config.log
6913 {
6914 echo
6915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6916 ## Running $as_me. ##
6917 _ASBOX
6918 $as_echo "$ac_log"
6919 } >&5
6920
6921 _ACEOF
6922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6923 #
6924 # INIT-COMMANDS
6925 #
6926 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6927
6928 _ACEOF
6929
6930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6931
6932 # Handling of arguments.
6933 for ac_config_target in $ac_config_targets
6934 do
6935 case $ac_config_target in
6936 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6937 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6938 "xmlstarlet.spec") CONFIG_FILES="$CONFIG_FILES xmlstarlet.spec" ;;
6939 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6940 "solaris/package/sol8-sparc/pkginfo") CONFIG_FILES="$CONFIG_FILES solaris/package/sol8-sparc/pkginfo" ;;
6941 "solaris/package/sol9-sparc/pkginfo") CONFIG_FILES="$CONFIG_FILES solaris/package/sol9-sparc/pkginfo" ;;
6942
6943 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6944 esac
6945 done
6946
6947
6948 # If the user did not use the arguments to specify the items to instantiate,
6949 # then the envvar interface is used. Set only those that are not.
6950 # We use the long form for the default assignment because of an extremely
6951 # bizarre bug on SunOS 4.1.3.
6952 if $ac_need_defaults; then
6953 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6954 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6955 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6956 fi
6957
6958 # Have a temporary directory for convenience. Make it in the build tree
6959 # simply because there is no reason against having it here, and in addition,
6960 # creating and moving files from /tmp can sometimes cause problems.
6961 # Hook for its removal unless debugging.
6962 # Note that there is a small window in which the directory will not be cleaned:
6963 # after its creation but before its name has been assigned to `$tmp'.
6964 $debug ||
6965 {
6966 tmp= ac_tmp=
6967 trap 'exit_status=$?
6968 : "${ac_tmp:=$tmp}"
6969 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6970 ' 0
6971 trap 'as_fn_exit 1' 1 2 13 15
6972 }
6973 # Create a (secure) tmp directory for tmp files.
6974
6975 {
6976 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6977 test -d "$tmp"
6978 } ||
6979 {
6980 tmp=./conf$$-$RANDOM
6981 (umask 077 && mkdir "$tmp")
6982 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6983 ac_tmp=$tmp
6984
6985 # Set up the scripts for CONFIG_FILES section.
6986 # No need to generate them if there are no CONFIG_FILES.
6987 # This happens for instance with `./config.status config.h'.
6988 if test -n "$CONFIG_FILES"; then
6989
6990
6991 ac_cr=`echo X | tr X '\015'`
6992 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6993 # But we know of no other shell where ac_cr would be empty at this
6994 # point, so we can use a bashism as a fallback.
6995 if test "x$ac_cr" = x; then
6996 eval ac_cr=\$\'\\r\'
6997 fi
6998 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6999 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7000 ac_cs_awk_cr='\\r'
7001 else
7002 ac_cs_awk_cr=$ac_cr
7003 fi
7004
7005 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7006 _ACEOF
7007
7008
7009 {
7010 echo "cat >conf$$subs.awk <<_ACEOF" &&
7011 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7012 echo "_ACEOF"
7013 } >conf$$subs.sh ||
7014 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7015 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7016 ac_delim='%!_!# '
7017 for ac_last_try in false false false false false :; do
7018 . ./conf$$subs.sh ||
7019 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7020
7021 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7022 if test $ac_delim_n = $ac_delim_num; then
7023 break
7024 elif $ac_last_try; then
7025 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7026 else
7027 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7028 fi
7029 done
7030 rm -f conf$$subs.sh
7031
7032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7033 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7034 _ACEOF
7035 sed -n '
7036 h
7037 s/^/S["/; s/!.*/"]=/
7038 p
7039 g
7040 s/^[^!]*!//
7041 :repl
7042 t repl
7043 s/'"$ac_delim"'$//
7044 t delim
7045 :nl
7046 h
7047 s/\(.\{148\}\)..*/\1/
7048 t more1
7049 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7050 p
7051 n
7052 b repl
7053 :more1
7054 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7055 p
7056 g
7057 s/.\{148\}//
7058 t nl
7059 :delim
7060 h
7061 s/\(.\{148\}\)..*/\1/
7062 t more2
7063 s/["\\]/\\&/g; s/^/"/; s/$/"/
7064 p
7065 b
7066 :more2
7067 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7068 p
7069 g
7070 s/.\{148\}//
7071 t delim
7072 ' <conf$$subs.awk | sed '
7073 /^[^""]/{
7074 N
7075 s/\n//
7076 }
7077 ' >>$CONFIG_STATUS || ac_write_fail=1
7078 rm -f conf$$subs.awk
7079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7080 _ACAWK
7081 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7082 for (key in S) S_is_set[key] = 1
7083 FS = ""
7084
7085 }
7086 {
7087 line = $ 0
7088 nfields = split(line, field, "@")
7089 substed = 0
7090 len = length(field[1])
7091 for (i = 2; i < nfields; i++) {
7092 key = field[i]
7093 keylen = length(key)
7094 if (S_is_set[key]) {
7095 value = S[key]
7096 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7097 len += length(value) + length(field[++i])
7098 substed = 1
7099 } else
7100 len += 1 + keylen
7101 }
7102
7103 print line
7104 }
7105
7106 _ACAWK
7107 _ACEOF
7108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7109 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7110 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7111 else
7112 cat
7113 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7114 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7115 _ACEOF
7116
7117 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7118 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7119 # trailing colons and then remove the whole line if VPATH becomes empty
7120 # (actually we leave an empty line to preserve line numbers).
7121 if test "x$srcdir" = x.; then
7122 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7123 h
7124 s///
7125 s/^/:/
7126 s/[ ]*$/:/
7127 s/:\$(srcdir):/:/g
7128 s/:\${srcdir}:/:/g
7129 s/:@srcdir@:/:/g
7130 s/^:*//
7131 s/:*$//
7132 x
7133 s/\(=[ ]*\).*/\1/
7134 G
7135 s/\n//
7136 s/^[^=]*=[ ]*$//
7137 }'
7138 fi
7139
7140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7141 fi # test -n "$CONFIG_FILES"
7142
7143 # Set up the scripts for CONFIG_HEADERS section.
7144 # No need to generate them if there are no CONFIG_HEADERS.
7145 # This happens for instance with `./config.status Makefile'.
7146 if test -n "$CONFIG_HEADERS"; then
7147 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7148 BEGIN {
7149 _ACEOF
7150
7151 # Transform confdefs.h into an awk script `defines.awk', embedded as
7152 # here-document in config.status, that substitutes the proper values into
7153 # config.h.in to produce config.h.
7154
7155 # Create a delimiter string that does not exist in confdefs.h, to ease
7156 # handling of long lines.
7157 ac_delim='%!_!# '
7158 for ac_last_try in false false :; do
7159 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7160 if test -z "$ac_tt"; then
7161 break
7162 elif $ac_last_try; then
7163 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7164 else
7165 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7166 fi
7167 done
7168
7169 # For the awk script, D is an array of macro values keyed by name,
7170 # likewise P contains macro parameters if any. Preserve backslash
7171 # newline sequences.
7172
7173 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7174 sed -n '
7175 s/.\{148\}/&'"$ac_delim"'/g
7176 t rset
7177 :rset
7178 s/^[ ]*#[ ]*define[ ][ ]*/ /
7179 t def
7180 d
7181 :def
7182 s/\\$//
7183 t bsnl
7184 s/["\\]/\\&/g
7185 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7186 D["\1"]=" \3"/p
7187 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7188 d
7189 :bsnl
7190 s/["\\]/\\&/g
7191 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7192 D["\1"]=" \3\\\\\\n"\\/p
7193 t cont
7194 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7195 t cont
7196 d
7197 :cont
7198 n
7199 s/.\{148\}/&'"$ac_delim"'/g
7200 t clear
7201 :clear
7202 s/\\$//
7203 t bsnlc
7204 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7205 d
7206 :bsnlc
7207 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7208 b cont
7209 ' <confdefs.h | sed '
7210 s/'"$ac_delim"'/"\\\
7211 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7212
7213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7214 for (key in D) D_is_set[key] = 1
7215 FS = ""
7216 }
7217 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7218 line = \$ 0
7219 split(line, arg, " ")
7220 if (arg[1] == "#") {
7221 defundef = arg[2]
7222 mac1 = arg[3]
7223 } else {
7224 defundef = substr(arg[1], 2)
7225 mac1 = arg[2]
7226 }
7227 split(mac1, mac2, "(") #)
7228 macro = mac2[1]
7229 prefix = substr(line, 1, index(line, defundef) - 1)
7230 if (D_is_set[macro]) {
7231 # Preserve the white space surrounding the "#".
7232 print prefix "define", macro P[macro] D[macro]
7233 next
7234 } else {
7235 # Replace #undef with comments. This is necessary, for example,
7236 # in the case of _POSIX_SOURCE, which is predefined and required
7237 # on some systems where configure will not decide to define it.
7238 if (defundef == "undef") {
7239 print "/*", prefix defundef, macro, "*/"
7240 next
7241 }
7242 }
7243 }
7244 { print }
7245 _ACAWK
7246 _ACEOF
7247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7248 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7249 fi # test -n "$CONFIG_HEADERS"
7250
7251
7252 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7253 shift
7254 for ac_tag
7255 do
7256 case $ac_tag in
7257 :[FHLC]) ac_mode=$ac_tag; continue;;
7258 esac
7259 case $ac_mode$ac_tag in
7260 :[FHL]*:*);;
7261 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7262 :[FH]-) ac_tag=-:-;;
7263 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7264 esac
7265 ac_save_IFS=$IFS
7266 IFS=:
7267 set x $ac_tag
7268 IFS=$ac_save_IFS
7269 shift
7270 ac_file=$1
7271 shift
7272
7273 case $ac_mode in
7274 :L) ac_source=$1;;
7275 :[FH])
7276 ac_file_inputs=
7277 for ac_f
7278 do
7279 case $ac_f in
7280 -) ac_f="$ac_tmp/stdin";;
7281 *) # Look for the file first in the build tree, then in the source tree
7282 # (if the path is not absolute). The absolute path cannot be DOS-style,
7283 # because $ac_f cannot contain `:'.
7284 test -f "$ac_f" ||
7285 case $ac_f in
7286 [\\/$]*) false;;
7287 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7288 esac ||
7289 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7290 esac
7291 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7292 as_fn_append ac_file_inputs " '$ac_f'"
7293 done
7294
7295 # Let's still pretend it is `configure' which instantiates (i.e., don't
7296 # use $as_me), people would be surprised to read:
7297 # /* config.h. Generated by config.status. */
7298 configure_input='Generated from '`
7299 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7300 `' by configure.'
7301 if test x"$ac_file" != x-; then
7302 configure_input="$ac_file. $configure_input"
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7304 $as_echo "$as_me: creating $ac_file" >&6;}
7305 fi
7306 # Neutralize special characters interpreted by sed in replacement strings.
7307 case $configure_input in #(
7308 *\&* | *\|* | *\\* )
7309 ac_sed_conf_input=`$as_echo "$configure_input" |
7310 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7311 *) ac_sed_conf_input=$configure_input;;
7312 esac
7313
7314 case $ac_tag in
7315 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7317 esac
7318 ;;
7319 esac
7320
7321 ac_dir=`$as_dirname -- "$ac_file" ||
7322 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7323 X"$ac_file" : 'X\(//\)[^/]' \| \
7324 X"$ac_file" : 'X\(//\)$' \| \
7325 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7326 $as_echo X"$ac_file" |
7327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7328 s//\1/
7329 q
7330 }
7331 /^X\(\/\/\)[^/].*/{
7332 s//\1/
7333 q
7334 }
7335 /^X\(\/\/\)$/{
7336 s//\1/
7337 q
7338 }
7339 /^X\(\/\).*/{
7340 s//\1/
7341 q
7342 }
7343 s/.*/./; q'`
7344 as_dir="$ac_dir"; as_fn_mkdir_p
7345 ac_builddir=.
7346
7347 case "$ac_dir" in
7348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7349 *)
7350 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7351 # A ".." for each directory in $ac_dir_suffix.
7352 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7353 case $ac_top_builddir_sub in
7354 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7355 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7356 esac ;;
7357 esac
7358 ac_abs_top_builddir=$ac_pwd
7359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7360 # for backward compatibility:
7361 ac_top_builddir=$ac_top_build_prefix
7362
7363 case $srcdir in
7364 .) # We are building in place.
7365 ac_srcdir=.
7366 ac_top_srcdir=$ac_top_builddir_sub
7367 ac_abs_top_srcdir=$ac_pwd ;;
7368 [\\/]* | ?:[\\/]* ) # Absolute name.
7369 ac_srcdir=$srcdir$ac_dir_suffix;
7370 ac_top_srcdir=$srcdir
7371 ac_abs_top_srcdir=$srcdir ;;
7372 *) # Relative name.
7373 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7374 ac_top_srcdir=$ac_top_build_prefix$srcdir
7375 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7376 esac
7377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7378
7379
7380 case $ac_mode in
7381 :F)
7382 #
7383 # CONFIG_FILE
7384 #
7385
7386 case $INSTALL in
7387 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7388 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7389 esac
7390 ac_MKDIR_P=$MKDIR_P
7391 case $MKDIR_P in
7392 [\\/$]* | ?:[\\/]* ) ;;
7393 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7394 esac
7395 _ACEOF
7396
7397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7398 # If the template does not know about datarootdir, expand it.
7399 # FIXME: This hack should be removed a few years after 2.60.
7400 ac_datarootdir_hack=; ac_datarootdir_seen=
7401 ac_sed_dataroot='
7402 /datarootdir/ {
7403 p
7404 q
7405 }
7406 /@datadir@/p
7407 /@docdir@/p
7408 /@infodir@/p
7409 /@localedir@/p
7410 /@mandir@/p'
7411 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7412 *datarootdir*) ac_datarootdir_seen=yes;;
7413 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7415 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7416 _ACEOF
7417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7418 ac_datarootdir_hack='
7419 s&@datadir@&$datadir&g
7420 s&@docdir@&$docdir&g
7421 s&@infodir@&$infodir&g
7422 s&@localedir@&$localedir&g
7423 s&@mandir@&$mandir&g
7424 s&\\\${datarootdir}&$datarootdir&g' ;;
7425 esac
7426 _ACEOF
7427
7428 # Neutralize VPATH when `$srcdir' = `.'.
7429 # Shell code in configure.ac might set extrasub.
7430 # FIXME: do we really want to maintain this feature?
7431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7432 ac_sed_extra="$ac_vpsub
7433 $extrasub
7434 _ACEOF
7435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7436 :t
7437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7438 s|@configure_input@|$ac_sed_conf_input|;t t
7439 s&@top_builddir@&$ac_top_builddir_sub&;t t
7440 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7441 s&@srcdir@&$ac_srcdir&;t t
7442 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7443 s&@top_srcdir@&$ac_top_srcdir&;t t
7444 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7445 s&@builddir@&$ac_builddir&;t t
7446 s&@abs_builddir@&$ac_abs_builddir&;t t
7447 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7448 s&@INSTALL@&$ac_INSTALL&;t t
7449 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7450 $ac_datarootdir_hack
7451 "
7452 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7453 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7454
7455 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7456 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7457 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7458 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7460 which seems to be undefined. Please make sure it is defined" >&5
7461 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7462 which seems to be undefined. Please make sure it is defined" >&2;}
7463
7464 rm -f "$ac_tmp/stdin"
7465 case $ac_file in
7466 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7467 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7468 esac \
7469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7470 ;;
7471 :H)
7472 #
7473 # CONFIG_HEADER
7474 #
7475 if test x"$ac_file" != x-; then
7476 {
7477 $as_echo "/* $configure_input */" \
7478 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7479 } >"$ac_tmp/config.h" \
7480 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7481 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7483 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7484 else
7485 rm -f "$ac_file"
7486 mv "$ac_tmp/config.h" "$ac_file" \
7487 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7488 fi
7489 else
7490 $as_echo "/* $configure_input */" \
7491 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7492 || as_fn_error $? "could not create -" "$LINENO" 5
7493 fi
7494 # Compute "$ac_file"'s index in $config_headers.
7495 _am_arg="$ac_file"
7496 _am_stamp_count=1
7497 for _am_header in $config_headers :; do
7498 case $_am_header in
7499 $_am_arg | $_am_arg:* )
7500 break ;;
7501 * )
7502 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7503 esac
7504 done
7505 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7506 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7507 X"$_am_arg" : 'X\(//\)[^/]' \| \
7508 X"$_am_arg" : 'X\(//\)$' \| \
7509 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7510 $as_echo X"$_am_arg" |
7511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7512 s//\1/
7513 q
7514 }
7515 /^X\(\/\/\)[^/].*/{
7516 s//\1/
7517 q
7518 }
7519 /^X\(\/\/\)$/{
7520 s//\1/
7521 q
7522 }
7523 /^X\(\/\).*/{
7524 s//\1/
7525 q
7526 }
7527 s/.*/./; q'`/stamp-h$_am_stamp_count
7528 ;;
7529
7530 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7531 $as_echo "$as_me: executing $ac_file commands" >&6;}
7532 ;;
7533 esac
7534
7535
7536 case $ac_file$ac_mode in
7537 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7538 # Older Autoconf quotes --file arguments for eval, but not when files
7539 # are listed without --file. Let's play safe and only enable the eval
7540 # if we detect the quoting.
7541 case $CONFIG_FILES in
7542 *\'*) eval set x "$CONFIG_FILES" ;;
7543 *) set x $CONFIG_FILES ;;
7544 esac
7545 shift
7546 for mf
7547 do
7548 # Strip MF so we end up with the name of the file.
7549 mf=`echo "$mf" | sed -e 's/:.*$//'`
7550 # Check whether this is an Automake generated Makefile or not.
7551 # We used to match only the files named 'Makefile.in', but
7552 # some people rename them; so instead we look at the file content.
7553 # Grep'ing the first line is not enough: some people post-process
7554 # each Makefile.in and add a new line on top of each file to say so.
7555 # Grep'ing the whole file is not good either: AIX grep has a line
7556 # limit of 2048, but all sed's we know have understand at least 4000.
7557 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7558 dirpart=`$as_dirname -- "$mf" ||
7559 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7560 X"$mf" : 'X\(//\)[^/]' \| \
7561 X"$mf" : 'X\(//\)$' \| \
7562 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7563 $as_echo X"$mf" |
7564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7565 s//\1/
7566 q
7567 }
7568 /^X\(\/\/\)[^/].*/{
7569 s//\1/
7570 q
7571 }
7572 /^X\(\/\/\)$/{
7573 s//\1/
7574 q
7575 }
7576 /^X\(\/\).*/{
7577 s//\1/
7578 q
7579 }
7580 s/.*/./; q'`
7581 else
7582 continue
7583 fi
7584 # Extract the definition of DEPDIR, am__include, and am__quote
7585 # from the Makefile without running 'make'.
7586 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7587 test -z "$DEPDIR" && continue
7588 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7589 test -z "$am__include" && continue
7590 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7591 # Find all dependency output files, they are included files with
7592 # $(DEPDIR) in their names. We invoke sed twice because it is the
7593 # simplest approach to changing $(DEPDIR) to its actual value in the
7594 # expansion.
7595 for file in `sed -n "
7596 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7597 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7598 # Make sure the directory exists.
7599 test -f "$dirpart/$file" && continue
7600 fdir=`$as_dirname -- "$file" ||
7601 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7602 X"$file" : 'X\(//\)[^/]' \| \
7603 X"$file" : 'X\(//\)$' \| \
7604 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7605 $as_echo X"$file" |
7606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7607 s//\1/
7608 q
7609 }
7610 /^X\(\/\/\)[^/].*/{
7611 s//\1/
7612 q
7613 }
7614 /^X\(\/\/\)$/{
7615 s//\1/
7616 q
7617 }
7618 /^X\(\/\).*/{
7619 s//\1/
7620 q
7621 }
7622 s/.*/./; q'`
7623 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7624 # echo "creating $dirpart/$file"
7625 echo '# dummy' > "$dirpart/$file"
7626 done
7627 done
7628 }
7629 ;;
7630
7631 esac
7632 done # for ac_tag
7633
7634
7635 as_fn_exit 0
7636 _ACEOF
7637 ac_clean_files=$ac_clean_files_save
7638
7639 test $ac_write_fail = 0 ||
7640 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7641
7642
7643 # configure is writing to config.log, and then calls config.status.
7644 # config.status does its own redirection, appending to config.log.
7645 # Unfortunately, on DOS this fails, as config.log is still kept open
7646 # by configure, so config.status won't be able to write to it; its
7647 # output is simply discarded. So we exec the FD to /dev/null,
7648 # effectively closing config.log, so it can be properly (re)opened and
7649 # appended to by config.status. When coming back to configure, we
7650 # need to make the FD available again.
7651 if test "$no_create" != yes; then
7652 ac_cs_success=:
7653 ac_config_status_args=
7654 test "$silent" = yes &&
7655 ac_config_status_args="$ac_config_status_args --quiet"
7656 exec 5>/dev/null
7657 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7658 exec 5>>config.log
7659 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7660 # would make configure fail if this is the last instruction.
7661 $ac_cs_success || as_fn_exit 1
7662 fi
7663 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7665 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7666 fi
7667
7668