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
19DUALCASE=1; export DUALCASE # for MKS sh
20if 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
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_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.
46if 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 --'
50elif (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'
53else
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'
73fi
74
75# The user is always right.
76if 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  }
82fi
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.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93as_myself=
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
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
103IFS=$as_save_IFS
104
105     ;;
106esac
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.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
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.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export 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.
146BASH_ENV=/dev/null
147ENV=/dev/null
148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149case $- in # ((((
150  *v*x* | *x*v* ) as_opts=-vx ;;
151  *v* ) as_opts=-v ;;
152  *x* ) as_opts=-x ;;
153  * ) as_opts= ;;
154esac
155exec $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
159as_fn_exit 255
160  fi
161  # We don't want this to propagate to other subprocesses.
162          { _as_can_reexec=; unset _as_can_reexec;}
163if 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
171else
172  case \`(set -o) 2>/dev/null\` in #(
173  *posix*) :
174    set -o posix ;; #(
175  *) :
176     ;;
177esac
178fi
179"
180  as_required="as_fn_return () { (exit \$1); }
181as_fn_success () { as_fn_return 0; }
182as_fn_failure () { as_fn_return 1; }
183as_fn_ret_success () { return 0; }
184as_fn_ret_failure () { return 1; }
185
186exitcode=0
187as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193else
194  exitcode=1; echo positional parameters were not saved.
195fi
196test x\$exitcode = x0 || exit 1
197test -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
202test \$(( 1 + 1 )) = 2 || exit 1"
203  if (eval "$as_required") 2>/dev/null; then :
204  as_have_required=yes
205else
206  as_have_required=no
207fi
208  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209
210else
211  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212as_found=false
213for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214do
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
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
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
237fi; }
238IFS=$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.
247BASH_ENV=/dev/null
248ENV=/dev/null
249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250case $- in # ((((
251  *v*x* | *x*v* ) as_opts=-vx ;;
252  *v* ) as_opts=-v ;;
253  *x* ) as_opts=-x ;;
254  * ) as_opts= ;;
255esac
256exec $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
260exit 255
261fi
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 bug-autoconf@gnu.org 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
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_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.
309as_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.
319as_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.
367as_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.
377if (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  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # 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.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # 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.
412as_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
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_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.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_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
504ECHO_C= ECHO_N= ECHO_T=
505case `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';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (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
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_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.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560as_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
621test -n "$DJDIR" || exec 7<&0 </dev/null
622exec 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.
627ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
628
629#
630# Initializations.
631#
632ac_default_prefix=/usr/local
633ac_clean_files=
634ac_config_libobj_dir=.
635LIBOBJS=
636cross_compiling=no
637subdirs=
638MFLAGS=
639MAKEFLAGS=
640
641# Identity of this package.
642PACKAGE_NAME='XMLStarlet'
643PACKAGE_TARNAME='xmlstarlet'
644PACKAGE_VERSION='1.6.1'
645PACKAGE_STRING='XMLStarlet 1.6.1'
646PACKAGE_BUGREPORT='http://sourceforge.net/projects/xmlstar/support'
647PACKAGE_URL='http://xmlstar.sourceforge.net/'
648
649# Factoring default headers for most tests.
650ac_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
685ac_func_list=
686ac_subst_vars='am__EXEEXT_FALSE
687am__EXEEXT_TRUE
688LTLIBOBJS
689V_DOCBOOK_0
690V_DOCBOOK_
691V_DOCBOOK
692V_FOP_0
693V_FOP_
694V_FOP
695LIBXSLT_REQUIRED_VERSION
696LIBXML_REQUIRED_VERSION
697LDADD
698AM_LDFLAGS
699AM_CPPFLAGS
700HAVE_EXSLT_XPATH_REGISTER_FALSE
701HAVE_EXSLT_XPATH_REGISTER_TRUE
702LIBOBJS
703EGREP
704GREP
705CPP
706BUILD_DOCS_FALSE
707BUILD_DOCS_TRUE
708HAVE_PDF2PS_FALSE
709HAVE_PDF2PS_TRUE
710PDF2PS
711HAVE_FOP_FALSE
712HAVE_FOP_TRUE
713FOP
714XSLTPROC
715LIBXSLT_CONFIG
716LIBXML_CONFIG
717SED
718GCC_FALSE
719GCC_TRUE
720am__fastdepCC_FALSE
721am__fastdepCC_TRUE
722CCDEPMODE
723am__nodep
724AMDEPBACKSLASH
725AMDEP_FALSE
726AMDEP_TRUE
727am__quote
728am__include
729DEPDIR
730OBJEXT
731EXEEXT
732ac_ct_CC
733CPPFLAGS
734LDFLAGS
735CFLAGS
736CC
737host_os
738host_vendor
739host_cpu
740host
741build_os
742build_vendor
743build_cpu
744build
745MAINT
746MAINTAINER_MODE_FALSE
747MAINTAINER_MODE_TRUE
748AM_BACKSLASH
749AM_DEFAULT_VERBOSITY
750AM_DEFAULT_V
751AM_V
752am__untar
753am__tar
754AMTAR
755am__leading_dot
756SET_MAKE
757AWK
758mkdir_p
759MKDIR_P
760INSTALL_STRIP_PROGRAM
761STRIP
762install_sh
763MAKEINFO
764AUTOHEADER
765AUTOMAKE
766AUTOCONF
767ACLOCAL
768VERSION
769PACKAGE
770CYGPATH_W
771am__isrc
772INSTALL_DATA
773INSTALL_SCRIPT
774INSTALL_PROGRAM
775target_alias
776host_alias
777build_alias
778LIBS
779ECHO_T
780ECHO_N
781ECHO_C
782DEFS
783mandir
784localedir
785libdir
786psdir
787pdfdir
788dvidir
789htmldir
790infodir
791docdir
792oldincludedir
793includedir
794localstatedir
795sharedstatedir
796sysconfdir
797datadir
798datarootdir
799libexecdir
800sbindir
801bindir
802program_transform_name
803prefix
804exec_prefix
805PACKAGE_URL
806PACKAGE_BUGREPORT
807PACKAGE_STRING
808PACKAGE_VERSION
809PACKAGE_TARNAME
810PACKAGE_NAME
811PATH_SEPARATOR
812SHELL'
813ac_subst_files=''
814ac_user_opts='
815enable_option_checking
816enable_silent_rules
817enable_maintainer_mode
818with_libxml_prefix
819with_libxml_include_prefix
820with_libxml_libs_prefix
821with_libxml_src
822with_libxslt_prefix
823with_libxslt_include_prefix
824with_libxslt_libs_prefix
825with_libxslt_src
826with_libiconv_prefix
827with_libiconv_include_prefix
828with_libiconv_libs_prefix
829enable_static_libs
830enable_build_docs
831enable_dependency_tracking
832'
833      ac_precious_vars='build_alias
834host_alias
835target_alias
836CC
837CFLAGS
838LDFLAGS
839LIBS
840CPPFLAGS
841CPP'
842
843
844# Initialize some variables set by options.
845ac_init_help=
846ac_init_version=false
847ac_unrecognized_opts=
848ac_unrecognized_sep=
849# The variables have the same names as the options, with
850# dashes changed to underlines.
851cache_file=/dev/null
852exec_prefix=NONE
853no_create=
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
862verbose=
863x_includes=NONE
864x_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.)
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
880includedir='${prefix}/include'
881oldincludedir='/usr/include'
882docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
891
892ac_prev=
893ac_dashdash=
894for ac_option
895do
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'
1228Try \`$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
1250done
1251
1252if test -n "$ac_prev"; then
1253  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254  as_fn_error $? "missing argument to $ac_option"
1255fi
1256
1257if 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
1263fi
1264
1265# Check all directory arguments for consistency.
1266for 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
1270do
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"
1284done
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.
1289build=$build_alias
1290host=$host_alias
1291target=$target_alias
1292
1293# FIXME: To remove some day.
1294if 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
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
1307
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311  as_fn_error $? "working directory cannot be determined"
1312test "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.
1317if 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
1347else
1348  ac_srcdir_defaulted=no
1349fi
1350if 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"
1353fi
1354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355ac_abs_confdir=`(
1356	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357	pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360  srcdir=.
1361fi
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.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
1368for 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}
1373done
1374
1375#
1376# Report the --help message.
1377#
1378if 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
1384Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387VAR=VALUE.  See below for descriptions of some of the useful variables.
1388
1389Defaults for the options are specified in brackets.
1390
1391Configuration:
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
1402Installation 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
1408By default, \`make install' will install all the files in
1409\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1410an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411for instance \`--prefix=\$HOME'.
1412
1413For better control, use the options below.
1414
1415Fine 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
1439Program 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
1444System 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
1448fi
1449
1450if 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
1456Optional 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
1473Optional 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
1499Some 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
1509Use these variables to override the choices made by `configure' or to help
1510it to find libraries and programs with nonstandard names/locations.
1511
1512Report bugs to <http://sourceforge.net/projects/xmlstar/support>.
1513XMLStarlet home page: <http://xmlstar.sourceforge.net/>.
1514_ACEOF
1515ac_status=$?
1516fi
1517
1518if 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
1526case "$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 ;;
1536esac
1537ac_abs_top_builddir=$ac_pwd
1538ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539# for backward compatibility:
1540ac_top_builddir=$ac_top_build_prefix
1541
1542case $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 ;;
1555esac
1556ac_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
1571fi
1572
1573test -n "$ac_init_help" && exit $ac_status
1574if $ac_init_version; then
1575  cat <<\_ACEOF
1576XMLStarlet configure 1.6.1
1577generated by GNU Autoconf 2.69
1578
1579Copyright (C) 2012 Free Software Foundation, Inc.
1580This configure script is free software; the Free Software Foundation
1581gives unlimited permission to copy, distribute and modify it.
1582_ACEOF
1583  exit
1584fi
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.
1593ac_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"
1598case "(($ac_try" in
1599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600  *) ac_try_echo=$ac_try;;
1601esac
1602eval 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
1617else
1618  $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621	ac_retval=1
1622fi
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.
1632ac_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"
1636case "(($ac_try" in
1637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638  *) ac_try_echo=$ac_try;;
1639esac
1640eval 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;;
1649esac
1650eval 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
1657else
1658  $as_echo "$as_me: program exited with status $ac_status" >&5
1659       $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662       ac_retval=$ac_status
1663fi
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.
1673ac_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"
1677case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval 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
1696else
1697  $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700    ac_retval=1
1701fi
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.
1711ac_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; }
1716if eval \${$3+:} false; then :
1717  $as_echo_n "(cached) " >&6
1718else
1719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h.  */
1721$4
1722#include <$2>
1723_ACEOF
1724if ac_fn_c_try_compile "$LINENO"; then :
1725  eval "$3=yes"
1726else
1727  eval "$3=no"
1728fi
1729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730fi
1731eval 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.
1743ac_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; }
1749if eval \${$3+:} false; then :
1750  $as_echo_n "(cached) " >&6
1751fi
1752eval ac_res=\$$3
1753	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754$as_echo "$ac_res" >&6; }
1755else
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; }
1759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h.  */
1761$4
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_compile "$LINENO"; then :
1765  ac_header_compiler=yes
1766else
1767  ac_header_compiler=no
1768fi
1769rm -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; }
1776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h.  */
1778#include <$2>
1779_ACEOF
1780if ac_fn_c_try_cpp "$LINENO"; then :
1781  ac_header_preproc=yes
1782else
1783  ac_header_preproc=no
1784fi
1785rm -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?
1790case $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    ;;
1813esac
1814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815$as_echo_n "checking for $2... " >&6; }
1816if eval \${$3+:} false; then :
1817  $as_echo_n "(cached) " >&6
1818else
1819  eval "$3=\$ac_header_compiler"
1820fi
1821eval ac_res=\$$3
1822	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823$as_echo "$ac_res" >&6; }
1824fi
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.
1833ac_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; }
1838if eval \${$3+:} false; then :
1839  $as_echo_n "(cached) " >&6
1840else
1841  eval "$3=no"
1842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844$4
1845int
1846main ()
1847{
1848if (sizeof ($2))
1849	 return 0;
1850  ;
1851  return 0;
1852}
1853_ACEOF
1854if ac_fn_c_try_compile "$LINENO"; then :
1855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h.  */
1857$4
1858int
1859main ()
1860{
1861if (sizeof (($2)))
1862	    return 0;
1863  ;
1864  return 0;
1865}
1866_ACEOF
1867if ac_fn_c_try_compile "$LINENO"; then :
1868
1869else
1870  eval "$3=yes"
1871fi
1872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873fi
1874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875fi
1876eval 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.
1886ac_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"
1891case "(($ac_try" in
1892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893  *) ac_try_echo=$ac_try;;
1894esac
1895eval 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
1913else
1914  $as_echo "$as_me: failed program was:" >&5
1915sed 's/^/| /' conftest.$ac_ext >&5
1916
1917	ac_retval=1
1918fi
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
1932ac_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; }
1937if eval \${$3+:} false; then :
1938  $as_echo_n "(cached) " >&6
1939else
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
1963extern "C"
1964#endif
1965char $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
1970choke me
1971#endif
1972
1973int
1974main ()
1975{
1976return $2 ();
1977  ;
1978  return 0;
1979}
1980_ACEOF
1981if ac_fn_c_try_link "$LINENO"; then :
1982  eval "$3=yes"
1983else
1984  eval "$3=no"
1985fi
1986rm -f core conftest.err conftest.$ac_objext \
1987    conftest$ac_exeext conftest.$ac_ext
1988fi
1989eval 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.
2000ac_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; }
2007if eval \${$3+:} false; then :
2008  $as_echo_n "(cached) " >&6
2009else
2010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h.  */
2012$4
2013int
2014main ()
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
2028if ac_fn_c_try_compile "$LINENO"; then :
2029  eval "$3=yes"
2030else
2031  eval "$3=no"
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034fi
2035eval 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
2041cat >config.log <<_ACEOF
2042This file contains any messages produced by compilers while
2043running configure, to aid debugging if configure makes a mistake.
2044
2045It was created by XMLStarlet $as_me 1.6.1, which was
2046generated by GNU Autoconf 2.69.  Invocation command line was
2047
2048  $ $0 $@
2049
2050_ACEOF
2051exec 5>>config.log
2052{
2053cat <<_ASUNAME
2054## --------- ##
2055## Platform. ##
2056## --------- ##
2057
2058hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2059uname -m = `(uname -m) 2>/dev/null || echo unknown`
2060uname -r = `(uname -r) 2>/dev/null || echo unknown`
2061uname -s = `(uname -s) 2>/dev/null || echo unknown`
2062uname -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
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080  IFS=$as_save_IFS
2081  test -z "$as_dir" && as_dir=.
2082    $as_echo "PATH: $as_dir"
2083  done
2084IFS=$as_save_IFS
2085
2086} >&5
2087
2088cat >&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.
2103ac_configure_args=
2104ac_configure_args0=
2105ac_configure_args1=
2106ac_must_keep_next=false
2107for ac_pass in 1 2
2108do
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
2142done
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.
2151trap '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
2238for ac_signal in 1 2 13 15; do
2239  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2240done
2241ac_signal=0
2242
2243# confdefs.h avoids OS command line length limits that DEFS can exceed.
2244rm -f -r conftest* confdefs.h
2245
2246$as_echo "/* confdefs.h */" > confdefs.h
2247
2248# Predefined preprocessor variables.
2249
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE_NAME "$PACKAGE_NAME"
2252_ACEOF
2253
2254cat >>confdefs.h <<_ACEOF
2255#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2256_ACEOF
2257
2258cat >>confdefs.h <<_ACEOF
2259#define PACKAGE_VERSION "$PACKAGE_VERSION"
2260_ACEOF
2261
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE_STRING "$PACKAGE_STRING"
2264_ACEOF
2265
2266cat >>confdefs.h <<_ACEOF
2267#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2268_ACEOF
2269
2270cat >>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.
2277ac_site_file1=NONE
2278ac_site_file2=NONE
2279if 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
2286elif test "x$prefix" != xNONE; then
2287  ac_site_file1=$prefix/share/config.site
2288  ac_site_file2=$prefix/etc/config.site
2289else
2290  ac_site_file1=$ac_default_prefix/share/config.site
2291  ac_site_file2=$ac_default_prefix/etc/config.site
2292fi
2293for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2294do
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;}
2303as_fn_error $? "failed to load site script $ac_site_file
2304See \`config.log' for more details" "$LINENO" 5; }
2305  fi
2306done
2307
2308if 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
2319else
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
2323fi
2324
2325as_fn_append ac_func_list " lstat"
2326as_fn_append ac_func_list " stat"
2327as_fn_append ac_func_list " setmode"
2328# Check that the precious variables saved in the cache have kept the same
2329# value.
2330ac_cache_corrupted=false
2331for 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
2377done
2378if $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
2384fi
2385## -------------------- ##
2386## Main body of script. ##
2387## -------------------- ##
2388
2389ac_ext=c
2390ac_cpp='$CPP $CPPFLAGS'
2391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394
2395
2396
2397
2398am__api_version='1.14'
2399
2400ac_aux_dir=
2401for 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
2415done
2416if test -z "$ac_aux_dir"; then
2417  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2418fi
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.
2424ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2425ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2426ac_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; }
2445if test -z "$INSTALL"; then
2446if ${ac_cv_path_install+:} false; then :
2447  $as_echo_n "(cached) " >&6
2448else
2449  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450for as_dir in $PATH
2451do
2452  IFS=$as_save_IFS
2453  test -z "$as_dir" && as_dir=.
2454    # Account for people who put trailing slashes in PATH elements.
2455case $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    ;;
2493esac
2494
2495  done
2496IFS=$as_save_IFS
2497
2498rm -rf conftest.one conftest.two conftest.dir
2499
2500fi
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
2510fi
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.
2516test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2517
2518test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2519
2520test -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.
2526am_lf='
2527'
2528case `pwd` in
2529  *[\\\"\#\$\&\'\`$am_lf]*)
2530    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2531esac
2532case $srcdir in
2533  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2534    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2535esac
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).
2542if (
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   )
2570then
2571   # Ok.
2572   :
2573else
2574   as_fn_error $? "newly created file is older than distributed files!
2575Check your system clock" "$LINENO" 5
2576fi
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.
2581am_sleep_pid=
2582if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2583  ( sleep 1 ) &
2584  am_sleep_pid=$!
2585fi
2586
2587rm -f conftest.file
2588
2589test "$program_prefix" != NONE &&
2590  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2591# Use a double $ so make ignores it.
2592test "$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.
2596ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2597program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2598
2599# expand $ac_aux_dir to an absolute path
2600am_aux_dir=`cd $ac_aux_dir && pwd`
2601
2602if 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
2609fi
2610# Use eval to expand $SHELL
2611if eval "$MISSING --is-lightweight"; then
2612  am_missing_run="$MISSING "
2613else
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;}
2617fi
2618
2619if 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
2626fi
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.
2632if 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.
2635set 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; }
2638if ${ac_cv_prog_STRIP+:} false; then :
2639  $as_echo_n "(cached) " >&6
2640else
2641  if test -n "$STRIP"; then
2642  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2643else
2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
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
2655done
2656  done
2657IFS=$as_save_IFS
2658
2659fi
2660fi
2661STRIP=$ac_cv_prog_STRIP
2662if test -n "$STRIP"; then
2663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2664$as_echo "$STRIP" >&6; }
2665else
2666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667$as_echo "no" >&6; }
2668fi
2669
2670
2671fi
2672if 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.
2675set 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; }
2678if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2679  $as_echo_n "(cached) " >&6
2680else
2681  if test -n "$ac_ct_STRIP"; then
2682  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
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
2695done
2696  done
2697IFS=$as_save_IFS
2698
2699fi
2700fi
2701ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2702if 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; }
2705else
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
2708fi
2709
2710  if test "x$ac_ct_STRIP" = x; then
2711    STRIP=":"
2712  else
2713    case $cross_compiling:$ac_tool_warned in
2714yes:)
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;}
2717ac_tool_warned=yes ;;
2718esac
2719    STRIP=$ac_ct_STRIP
2720  fi
2721else
2722  STRIP="$ac_cv_prog_STRIP"
2723fi
2724
2725fi
2726INSTALL_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; }
2730if test -z "$MKDIR_P"; then
2731  if ${ac_cv_path_mkdir+:} false; then :
2732  $as_echo_n "(cached) " >&6
2733else
2734  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2736do
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
2752IFS=$as_save_IFS
2753
2754fi
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
2766fi
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2768$as_echo "$MKDIR_P" >&6; }
2769
2770for ac_prog in gawk mawk nawk awk
2771do
2772  # Extract the first word of "$ac_prog", so it can be a program name with args.
2773set 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; }
2776if ${ac_cv_prog_AWK+:} false; then :
2777  $as_echo_n "(cached) " >&6
2778else
2779  if test -n "$AWK"; then
2780  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
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
2793done
2794  done
2795IFS=$as_save_IFS
2796
2797fi
2798fi
2799AWK=$ac_cv_prog_AWK
2800if test -n "$AWK"; then
2801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2802$as_echo "$AWK" >&6; }
2803else
2804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805$as_echo "no" >&6; }
2806fi
2807
2808
2809  test -n "$AWK" && break
2810done
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; }
2814set x ${MAKE-make}
2815ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2816if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2817  $as_echo_n "(cached) " >&6
2818else
2819  cat >conftest.make <<\_ACEOF
2820SHELL = /bin/sh
2821all:
2822	@echo '@@@%%%=$(MAKE)=@@@%%%'
2823_ACEOF
2824# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2825case `${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;;
2830esac
2831rm -f conftest.make
2832fi
2833if 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=
2837else
2838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; }
2840  SET_MAKE="MAKE=${MAKE-make}"
2841fi
2842
2843rm -rf .tst 2>/dev/null
2844mkdir .tst 2>/dev/null
2845if test -d .tst; then
2846  am__leading_dot=.
2847else
2848  am__leading_dot=_
2849fi
2850rmdir .tst 2>/dev/null
2851
2852# Check whether --enable-silent-rules was given.
2853if test "${enable_silent_rules+set}" = set; then :
2854  enableval=$enable_silent_rules;
2855fi
2856
2857case $enable_silent_rules in # (((
2858  yes) AM_DEFAULT_VERBOSITY=0;;
2859   no) AM_DEFAULT_VERBOSITY=1;;
2860    *) AM_DEFAULT_VERBOSITY=1;;
2861esac
2862am_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; }
2865if ${am_cv_make_support_nested_variables+:} false; then :
2866  $as_echo_n "(cached) " >&6
2867else
2868  if $as_echo 'TRUE=$(BAR$(V))
2869BAR0=false
2870BAR1=true
2871V=1
2872am__doit:
2873	@$(TRUE)
2874.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2875  am_cv_make_support_nested_variables=yes
2876else
2877  am_cv_make_support_nested_variables=no
2878fi
2879fi
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; }
2882if test $am_cv_make_support_nested_variables = yes; then
2883    AM_V='$(V)'
2884  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2885else
2886  AM_V=$AM_DEFAULT_VERBOSITY
2887  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2888fi
2889AM_BACKSLASH='\'
2890
2891if 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
2899fi
2900
2901# test whether we have cygpath
2902if 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
2908fi
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
2918ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2919
2920
2921AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2922
2923
2924AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2925
2926
2927AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2928
2929
2930MAKEINFO=${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>
2936mkdir_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 ...
2942AMTAR='$${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
2948am__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.
2963if rm -f && rm -fr && rm -rf; then : OK; else
2964  cat >&2 <<'END'
2965Oops!
2966
2967Your 'rm' program seems unable to run without file operands specified
2968on the command line, even when the '-f' option is present.  This is contrary
2969to the behaviour of most rm programs out there, and not conforming with
2970the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2971
2972Please tell bug-automake@gnu.org about your system, including the value
2973of your $PATH and any error possibly output before this message.  This
2974can help us improve future automake versions.
2975
2976END
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'
2983Aborting the configuration process, to ensure you take notice of the issue.
2984
2985You can download and install GNU coreutils to get an 'rm' implementation
2986that behaves properly: <http://www.gnu.org/software/coreutils/>.
2987
2988If you want to complete the configuration process using your problematic
2989'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2990to "yes", and re-run configure.
2991
2992END
2993    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2994  fi
2995fi
2996# Check whether --enable-silent-rules was given.
2997if test "${enable_silent_rules+set}" = set; then :
2998  enableval=$enable_silent_rules;
2999fi
3000
3001case $enable_silent_rules in # (((
3002  yes) AM_DEFAULT_VERBOSITY=0;;
3003   no) AM_DEFAULT_VERBOSITY=1;;
3004    *) AM_DEFAULT_VERBOSITY=0;;
3005esac
3006am_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; }
3009if ${am_cv_make_support_nested_variables+:} false; then :
3010  $as_echo_n "(cached) " >&6
3011else
3012  if $as_echo 'TRUE=$(BAR$(V))
3013BAR0=false
3014BAR1=true
3015V=1
3016am__doit:
3017	@$(TRUE)
3018.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3019  am_cv_make_support_nested_variables=yes
3020else
3021  am_cv_make_support_nested_variables=no
3022fi
3023fi
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; }
3026if test $am_cv_make_support_nested_variables = yes; then
3027    AM_V='$(V)'
3028  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3029else
3030  AM_V=$AM_DEFAULT_VERBOSITY
3031  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3032fi
3033AM_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.
3039if test "${enable_maintainer_mode+set}" = set; then :
3040  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3041else
3042  USE_MAINTAINER_MODE=no
3043fi
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='#'
3050else
3051  MAINTAINER_MODE_TRUE='#'
3052  MAINTAINER_MODE_FALSE=
3053fi
3054
3055  MAINT=$MAINTAINER_MODE_TRUE
3056
3057
3058
3059LIBXML_REQUIRED_VERSION=2.6.27
3060LIBXSLT_REQUIRED_VERSION=1.1.9
3061
3062
3063# Check whether --with-libxml-prefix was given.
3064if test "${with_libxml_prefix+set}" = set; then :
3065  withval=$with_libxml_prefix; LIBXML_PREFIX="$withval"
3066fi
3067
3068
3069# Check whether --with-libxml-include-prefix was given.
3070if test "${with_libxml_include_prefix+set}" = set; then :
3071  withval=$with_libxml_include_prefix; LIBXML_INCDIR="$withval"
3072fi
3073
3074
3075# Check whether --with-libxml-libs-prefix was given.
3076if test "${with_libxml_libs_prefix+set}" = set; then :
3077  withval=$with_libxml_libs_prefix; LIBXML_LIBDIR="$withval"
3078fi
3079
3080
3081# Check whether --with-libxml-src was given.
3082if test "${with_libxml_src+set}" = set; then :
3083  withval=$with_libxml_src; LIBXML_SRCDIR="$withval"
3084         LIBXML_LIBDIR="$LIBXML_SRCDIR/.libs"
3085fi
3086
3087
3088
3089# Check whether --with-libxslt-prefix was given.
3090if test "${with_libxslt_prefix+set}" = set; then :
3091  withval=$with_libxslt_prefix; LIBXSLT_PREFIX="$withval"
3092fi
3093
3094
3095# Check whether --with-libxslt-include-prefix was given.
3096if test "${with_libxslt_include_prefix+set}" = set; then :
3097  withval=$with_libxslt_include_prefix; LIBXSLT_INCDIR="$withval"
3098fi
3099
3100
3101# Check whether --with-libxslt-libs-prefix was given.
3102if test "${with_libxslt_libs_prefix+set}" = set; then :
3103  withval=$with_libxslt_libs_prefix; LIBXSLT_LIBDIR="$withval"
3104fi
3105
3106
3107# Check whether --with-libxslt-src was given.
3108if test "${with_libxslt_src+set}" = set; then :
3109  withval=$with_libxslt_src; LIBXSLT_SRCDIR="$withval"
3110         LIBXSLT_LIBDIR="$LIBXSLT_SRCDIR/.libs"
3111fi
3112
3113
3114
3115# Check whether --with-libiconv-prefix was given.
3116if test "${with_libiconv_prefix+set}" = set; then :
3117  withval=$with_libiconv_prefix; LIBICONV_PREFIX="$withval"
3118fi
3119
3120
3121# Check whether --with-libiconv-include-prefix was given.
3122if test "${with_libiconv_include_prefix+set}" = set; then :
3123  withval=$with_libiconv_include_prefix; LIBICONV_INCDIR="$withval"
3124fi
3125
3126
3127# Check whether --with-libiconv-libs-prefix was given.
3128if test "${with_libiconv_libs_prefix+set}" = set; then :
3129  withval=$with_libiconv_libs_prefix; LIBICONV_LIBDIR="$withval"
3130fi
3131
3132
3133
3134
3135# Check whether --enable-static-libs was given.
3136if test "${enable_static_libs+set}" = set; then :
3137  enableval=$enable_static_libs; STATIC_LIBS=$enableval
3138else
3139  STATIC_LIBS=no
3140fi
3141
3142
3143if test -r doc/xmlstarlet.1; then :
3144  LACK_DOCS=no
3145else
3146  LACK_DOCS=yes
3147fi
3148
3149# Check whether --enable-build_docs was given.
3150if test "${enable_build_docs+set}" = set; then :
3151  enableval=$enable_build_docs;
3152else
3153  enable_build_docs=$LACK_DOCS
3154fi
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; }
3168if ${ac_cv_build+:} false; then :
3169  $as_echo_n "(cached) " >&6
3170else
3171  ac_build_alias=$build_alias
3172test "x$ac_build_alias" = x &&
3173  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3174test "x$ac_build_alias" = x &&
3175  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3176ac_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
3179fi
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3181$as_echo "$ac_cv_build" >&6; }
3182case $ac_cv_build in
3183*-*-*) ;;
3184*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3185esac
3186build=$ac_cv_build
3187ac_save_IFS=$IFS; IFS='-'
3188set x $ac_cv_build
3189shift
3190build_cpu=$1
3191build_vendor=$2
3192shift; shift
3193# Remember, the first character of IFS is used to create $*,
3194# except with old shells:
3195build_os=$*
3196IFS=$ac_save_IFS
3197case $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; }
3202if ${ac_cv_host+:} false; then :
3203  $as_echo_n "(cached) " >&6
3204else
3205  if test "x$host_alias" = x; then
3206  ac_cv_host=$ac_cv_build
3207else
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
3210fi
3211
3212fi
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3214$as_echo "$ac_cv_host" >&6; }
3215case $ac_cv_host in
3216*-*-*) ;;
3217*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3218esac
3219host=$ac_cv_host
3220ac_save_IFS=$IFS; IFS='-'
3221set x $ac_cv_host
3222shift
3223host_cpu=$1
3224host_vendor=$2
3225shift; shift
3226# Remember, the first character of IFS is used to create $*,
3227# except with old shells:
3228host_os=$*
3229IFS=$ac_save_IFS
3230case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3231
3232
3233ac_ext=c
3234ac_cpp='$CPP $CPPFLAGS'
3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238if 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.
3240set 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; }
3243if ${ac_cv_prog_CC+:} false; then :
3244  $as_echo_n "(cached) " >&6
3245else
3246  if test -n "$CC"; then
3247  ac_cv_prog_CC="$CC" # Let the user override the test.
3248else
3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250for as_dir in $PATH
3251do
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
3260done
3261  done
3262IFS=$as_save_IFS
3263
3264fi
3265fi
3266CC=$ac_cv_prog_CC
3267if test -n "$CC"; then
3268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3269$as_echo "$CC" >&6; }
3270else
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273fi
3274
3275
3276fi
3277if 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.
3280set 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; }
3283if ${ac_cv_prog_ac_ct_CC+:} false; then :
3284  $as_echo_n "(cached) " >&6
3285else
3286  if test -n "$ac_ct_CC"; then
3287  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
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
3300done
3301  done
3302IFS=$as_save_IFS
3303
3304fi
3305fi
3306ac_ct_CC=$ac_cv_prog_ac_ct_CC
3307if 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; }
3310else
3311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313fi
3314
3315  if test "x$ac_ct_CC" = x; then
3316    CC=""
3317  else
3318    case $cross_compiling:$ac_tool_warned in
3319yes:)
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;}
3322ac_tool_warned=yes ;;
3323esac
3324    CC=$ac_ct_CC
3325  fi
3326else
3327  CC="$ac_cv_prog_CC"
3328fi
3329
3330if 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.
3333set 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; }
3336if ${ac_cv_prog_CC+:} false; then :
3337  $as_echo_n "(cached) " >&6
3338else
3339  if test -n "$CC"; then
3340  ac_cv_prog_CC="$CC" # Let the user override the test.
3341else
3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
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
3353done
3354  done
3355IFS=$as_save_IFS
3356
3357fi
3358fi
3359CC=$ac_cv_prog_CC
3360if test -n "$CC"; then
3361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362$as_echo "$CC" >&6; }
3363else
3364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365$as_echo "no" >&6; }
3366fi
3367
3368
3369  fi
3370fi
3371if test -z "$CC"; then
3372  # Extract the first word of "cc", so it can be a program name with args.
3373set 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; }
3376if ${ac_cv_prog_CC+:} false; then :
3377  $as_echo_n "(cached) " >&6
3378else
3379  if test -n "$CC"; then
3380  ac_cv_prog_CC="$CC" # Let the user override the test.
3381else
3382  ac_prog_rejected=no
3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
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
3398done
3399  done
3400IFS=$as_save_IFS
3401
3402if 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
3413fi
3414fi
3415fi
3416CC=$ac_cv_prog_CC
3417if test -n "$CC"; then
3418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3419$as_echo "$CC" >&6; }
3420else
3421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422$as_echo "no" >&6; }
3423fi
3424
3425
3426fi
3427if 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.
3432set 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; }
3435if ${ac_cv_prog_CC+:} false; then :
3436  $as_echo_n "(cached) " >&6
3437else
3438  if test -n "$CC"; then
3439  ac_cv_prog_CC="$CC" # Let the user override the test.
3440else
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
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
3452done
3453  done
3454IFS=$as_save_IFS
3455
3456fi
3457fi
3458CC=$ac_cv_prog_CC
3459if test -n "$CC"; then
3460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461$as_echo "$CC" >&6; }
3462else
3463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464$as_echo "no" >&6; }
3465fi
3466
3467
3468    test -n "$CC" && break
3469  done
3470fi
3471if test -z "$CC"; then
3472  ac_ct_CC=$CC
3473  for ac_prog in cl.exe
3474do
3475  # Extract the first word of "$ac_prog", so it can be a program name with args.
3476set 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; }
3479if ${ac_cv_prog_ac_ct_CC+:} false; then :
3480  $as_echo_n "(cached) " >&6
3481else
3482  if test -n "$ac_ct_CC"; then
3483  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3484else
3485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486for as_dir in $PATH
3487do
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
3496done
3497  done
3498IFS=$as_save_IFS
3499
3500fi
3501fi
3502ac_ct_CC=$ac_cv_prog_ac_ct_CC
3503if 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; }
3506else
3507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508$as_echo "no" >&6; }
3509fi
3510
3511
3512  test -n "$ac_ct_CC" && break
3513done
3514
3515  if test "x$ac_ct_CC" = x; then
3516    CC=""
3517  else
3518    case $cross_compiling:$ac_tool_warned in
3519yes:)
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;}
3522ac_tool_warned=yes ;;
3523esac
3524    CC=$ac_ct_CC
3525  fi
3526fi
3527
3528fi
3529
3530
3531test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533as_fn_error $? "no acceptable C compiler found in \$PATH
3534See \`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
3538set X $ac_compile
3539ac_compiler=$2
3540for ac_option in --version -v -V -qversion; do
3541  { { ac_try="$ac_compiler $ac_option >&5"
3542case "(($ac_try" in
3543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544  *) ac_try_echo=$ac_try;;
3545esac
3546eval 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; }
3559done
3560
3561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562/* end confdefs.h.  */
3563
3564int
3565main ()
3566{
3567
3568  ;
3569  return 0;
3570}
3571_ACEOF
3572ac_clean_files_save=$ac_clean_files
3573ac_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; }
3579ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3580
3581# The possible output files:
3582ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3583
3584ac_rmfiles=
3585for ac_file in $ac_files
3586do
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
3591done
3592rm -f $ac_rmfiles
3593
3594if { { ac_try="$ac_link_default"
3595case "(($ac_try" in
3596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597  *) ac_try_echo=$ac_try;;
3598esac
3599eval 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.
3610for ac_file in $ac_files ''
3611do
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
3634done
3635test "$ac_cv_exeext" = no && ac_cv_exeext=
3636
3637else
3638  ac_file=''
3639fi
3640if 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
3644sed '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;}
3648as_fn_error 77 "C compiler cannot create executables
3649See \`config.log' for more details" "$LINENO" 5; }
3650else
3651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3652$as_echo "yes" >&6; }
3653fi
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; }
3658ac_exeext=$ac_cv_exeext
3659
3660rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3661ac_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; }
3664if { { ac_try="$ac_link"
3665case "(($ac_try" in
3666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667  *) ac_try_echo=$ac_try;;
3668esac
3669eval 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'.
3679for 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
3687done
3688else
3689  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3692See \`config.log' for more details" "$LINENO" 5; }
3693fi
3694rm -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
3698rm -f conftest.$ac_ext
3699EXEEXT=$ac_cv_exeext
3700ac_exeext=$EXEEXT
3701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h.  */
3703#include <stdio.h>
3704int
3705main ()
3706{
3707FILE *f = fopen ("conftest.out", "w");
3708 return ferror (f) || fclose (f) != 0;
3709
3710  ;
3711  return 0;
3712}
3713_ACEOF
3714ac_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; }
3719if test "$cross_compiling" != yes; then
3720  { { ac_try="$ac_link"
3721case "(($ac_try" in
3722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723  *) ac_try_echo=$ac_try;;
3724esac
3725eval 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;;
3735esac
3736eval 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;}
3749as_fn_error $? "cannot run C compiled programs.
3750If you meant to cross compile, use \`--host'.
3751See \`config.log' for more details" "$LINENO" 5; }
3752    fi
3753  fi
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3756$as_echo "$cross_compiling" >&6; }
3757
3758rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3759ac_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; }
3762if ${ac_cv_objext+:} false; then :
3763  $as_echo_n "(cached) " >&6
3764else
3765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766/* end confdefs.h.  */
3767
3768int
3769main ()
3770{
3771
3772  ;
3773  return 0;
3774}
3775_ACEOF
3776rm -f conftest.o conftest.obj
3777if { { ac_try="$ac_compile"
3778case "(($ac_try" in
3779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780  *) ac_try_echo=$ac_try;;
3781esac
3782eval 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
3795done
3796else
3797  $as_echo "$as_me: failed program was:" >&5
3798sed '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;}
3802as_fn_error $? "cannot compute suffix of object files: cannot compile
3803See \`config.log' for more details" "$LINENO" 5; }
3804fi
3805rm -f conftest.$ac_cv_objext conftest.$ac_ext
3806fi
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3808$as_echo "$ac_cv_objext" >&6; }
3809OBJEXT=$ac_cv_objext
3810ac_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; }
3813if ${ac_cv_c_compiler_gnu+:} false; then :
3814  $as_echo_n "(cached) " >&6
3815else
3816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h.  */
3818
3819int
3820main ()
3821{
3822#ifndef __GNUC__
3823       choke me
3824#endif
3825
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830if ac_fn_c_try_compile "$LINENO"; then :
3831  ac_compiler_gnu=yes
3832else
3833  ac_compiler_gnu=no
3834fi
3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836ac_cv_c_compiler_gnu=$ac_compiler_gnu
3837
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3840$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3841if test $ac_compiler_gnu = yes; then
3842  GCC=yes
3843else
3844  GCC=
3845fi
3846ac_test_CFLAGS=${CFLAGS+set}
3847ac_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; }
3850if ${ac_cv_prog_cc_g+:} false; then :
3851  $as_echo_n "(cached) " >&6
3852else
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
3860int
3861main ()
3862{
3863
3864  ;
3865  return 0;
3866}
3867_ACEOF
3868if ac_fn_c_try_compile "$LINENO"; then :
3869  ac_cv_prog_cc_g=yes
3870else
3871  CFLAGS=""
3872      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873/* end confdefs.h.  */
3874
3875int
3876main ()
3877{
3878
3879  ;
3880  return 0;
3881}
3882_ACEOF
3883if ac_fn_c_try_compile "$LINENO"; then :
3884
3885else
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
3891int
3892main ()
3893{
3894
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899if ac_fn_c_try_compile "$LINENO"; then :
3900  ac_cv_prog_cc_g=yes
3901fi
3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905fi
3906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907   ac_c_werror_flag=$ac_save_c_werror_flag
3908fi
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3910$as_echo "$ac_cv_prog_cc_g" >&6; }
3911if test "$ac_test_CFLAGS" = set; then
3912  CFLAGS=$ac_save_CFLAGS
3913elif 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
3919else
3920  if test "$GCC" = yes; then
3921    CFLAGS="-O2"
3922  else
3923    CFLAGS=
3924  fi
3925fi
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; }
3928if ${ac_cv_prog_cc_c89+:} false; then :
3929  $as_echo_n "(cached) " >&6
3930else
3931  ac_cv_prog_cc_c89=no
3932ac_save_CC=$CC
3933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934/* end confdefs.h.  */
3935#include <stdarg.h>
3936#include <stdio.h>
3937struct stat;
3938/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3939struct buf { int x; };
3940FILE * (*rcsopen) (struct buf *, struct stat *, int);
3941static char *e (p, i)
3942     char **p;
3943     int i;
3944{
3945  return p[i];
3946}
3947static 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.  */
3964int 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'
3969int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3970
3971int test (int i, double x);
3972struct s1 {int (*f) (int a);};
3973struct s2 {int (*f) (double a);};
3974int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3975int argc;
3976char **argv;
3977int
3978main ()
3979{
3980return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3981  ;
3982  return 0;
3983}
3984_ACEOF
3985for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3986	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3987do
3988  CC="$ac_save_CC $ac_arg"
3989  if ac_fn_c_try_compile "$LINENO"; then :
3990  ac_cv_prog_cc_c89=$ac_arg
3991fi
3992rm -f core conftest.err conftest.$ac_objext
3993  test "x$ac_cv_prog_cc_c89" != "xno" && break
3994done
3995rm -f conftest.$ac_ext
3996CC=$ac_save_CC
3997
3998fi
3999# AC_CACHE_VAL
4000case "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; } ;;
4011esac
4012if test "x$ac_cv_prog_cc_c89" != xno; then :
4013
4014fi
4015
4016ac_ext=c
4017ac_cpp='$CPP $CPPFLAGS'
4018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021
4022ac_ext=c
4023ac_cpp='$CPP $CPPFLAGS'
4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026ac_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; }
4029if ${am_cv_prog_cc_c_o+:} false; then :
4030  $as_echo_n "(cached) " >&6
4031else
4032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033/* end confdefs.h.  */
4034
4035int
4036main ()
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
4063fi
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; }
4066if 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"
4073fi
4074ac_ext=c
4075ac_cpp='$CPP $CPPFLAGS'
4076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079
4080DEPDIR="${am__leading_dot}deps"
4081
4082ac_config_commands="$ac_config_commands depfiles"
4083
4084
4085am_make=${MAKE-make}
4086cat > confinc << 'END'
4087am__doit:
4088	@echo this is the am__doit target
4089.PHONY: am__doit
4090END
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; }
4094am__include="#"
4095am__quote=
4096_am_result=none
4097# First try GNU make style include.
4098echo "include confinc" > confmf
4099# Ignore all kinds of additional output from 'make'.
4100case `$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  ;;
4106esac
4107# Now try BSD make style include.
4108if 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
4117fi
4118
4119
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4121$as_echo "$_am_result" >&6; }
4122rm -f confinc confmf
4123
4124# Check whether --enable-dependency-tracking was given.
4125if test "${enable_dependency_tracking+set}" = set; then :
4126  enableval=$enable_dependency_tracking;
4127fi
4128
4129if test "x$enable_dependency_tracking" != xno; then
4130  am_depcomp="$ac_aux_dir/depcomp"
4131  AMDEPBACKSLASH='\'
4132  am__nodep='_no'
4133fi
4134 if test "x$enable_dependency_tracking" != xno; then
4135  AMDEP_TRUE=
4136  AMDEP_FALSE='#'
4137else
4138  AMDEP_TRUE='#'
4139  AMDEP_FALSE=
4140fi
4141
4142
4143
4144depcc="$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; }
4148if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4149  $as_echo_n "(cached) " >&6
4150else
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
4252else
4253  am_cv_CC_dependencies_compiler_type=none
4254fi
4255
4256fi
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; }
4259CCDEPMODE=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='#'
4266else
4267  am__fastdepCC_TRUE='#'
4268  am__fastdepCC_FALSE=
4269fi
4270
4271
4272 if test x$GCC = xyes; then
4273  GCC_TRUE=
4274  GCC_FALSE='#'
4275else
4276  GCC_TRUE='#'
4277  GCC_FALSE=
4278fi
4279
4280if test x$GCC = xyes; then :
4281  CFLAGS="-ansi $CFLAGS"
4282fi
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; }
4286if ${ac_cv_path_SED+:} false; then :
4287  $as_echo_n "(cached) " >&6
4288else
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
4299for as_dir in $PATH
4300do
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
4309case `"$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;;
4333esac
4334
4335      $ac_path_SED_found && break 3
4336    done
4337  done
4338  done
4339IFS=$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
4343else
4344  ac_cv_path_SED=$SED
4345fi
4346
4347fi
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
4353for ac_prog in gawk mawk nawk awk
4354do
4355  # Extract the first word of "$ac_prog", so it can be a program name with args.
4356set 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; }
4359if ${ac_cv_prog_AWK+:} false; then :
4360  $as_echo_n "(cached) " >&6
4361else
4362  if test -n "$AWK"; then
4363  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4364else
4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
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
4376done
4377  done
4378IFS=$as_save_IFS
4379
4380fi
4381fi
4382AWK=$ac_cv_prog_AWK
4383if test -n "$AWK"; then
4384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4385$as_echo "$AWK" >&6; }
4386else
4387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388$as_echo "no" >&6; }
4389fi
4390
4391
4392  test -n "$AWK" && break
4393done
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;}
4404else
4405  # Extract the first word of "xml2-config", so it can be a program name with args.
4406set 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; }
4409if ${ac_cv_path_LIBXML_CONFIG+:} false; then :
4410  $as_echo_n "(cached) " >&6
4411else
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
4418for as_dir in $LIBXML_PREFIX/bin$PATH_SEPARATOR$PATH
4419do
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
4428done
4429  done
4430IFS=$as_save_IFS
4431
4432  ;;
4433esac
4434fi
4435LIBXML_CONFIG=$ac_cv_path_LIBXML_CONFIG
4436if test -n "$LIBXML_CONFIG"; then
4437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML_CONFIG" >&5
4438$as_echo "$LIBXML_CONFIG" >&6; }
4439else
4440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441$as_echo "no" >&6; }
4442fi
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;}
4448as_fn_error $? "xml2-config not found,
4449  libxml is not installed or LIBXML_PREFIX is not correctly defined
4450See \`config.log' for more details" "$LINENO" 5; }
4451fi
4452  LIBXML_VERSION=$($LIBXML_CONFIG --version)
4453  as_arg_v1=$LIBXML_VERSION
4454as_arg_v2=$LIBXML_REQUIRED_VERSION
4455awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
4456case $? 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     ;;
4465esac
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"}
4515fi
4516
4517
4518if test "x$LIBXML_SRCDIR" != x; then :
4519  LIBXML_INCDIR="$LIBXML_SRCDIR/include"
4520fi
4521: ${LIBXML_INCDIR="$LIBXML_PREFIX/include/libxml2"}
4522
4523if test "x$STATIC_LIBS" != xno; then :
4524  LIBXML_CPPFLAGS="-I$LIBXML_INCDIR -DLIBXML_STATIC"
4525else
4526  LIBXML_CPPFLAGS="-I$LIBXML_INCDIR"
4527fi
4528
4529if test "x$STATIC_LIBS" != xno; then :
4530  LIBXML_LIBS="$LIBXML_LIBDIR/libxml2.a"
4531else
4532  LIBXML_LIBS="-lxml2"
4533fi
4534LIBXML_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;}
4545else
4546  # Extract the first word of "xslt-config", so it can be a program name with args.
4547set 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; }
4550if ${ac_cv_path_LIBXSLT_CONFIG+:} false; then :
4551  $as_echo_n "(cached) " >&6
4552else
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
4559for as_dir in $LIBXSLT_PREFIX/bin$PATH_SEPARATOR$PATH
4560do
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
4569done
4570  done
4571IFS=$as_save_IFS
4572
4573  ;;
4574esac
4575fi
4576LIBXSLT_CONFIG=$ac_cv_path_LIBXSLT_CONFIG
4577if test -n "$LIBXSLT_CONFIG"; then
4578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXSLT_CONFIG" >&5
4579$as_echo "$LIBXSLT_CONFIG" >&6; }
4580else
4581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582$as_echo "no" >&6; }
4583fi
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;}
4589as_fn_error $? "xslt-config not found,
4590  libxslt is not installed or LIBXSLT_PREFIX is not correctly defined
4591See \`config.log' for more details" "$LINENO" 5; }
4592fi
4593  LIBXSLT_VERSION=$($LIBXSLT_CONFIG --version)
4594  as_arg_v1=$LIBXSLT_VERSION
4595as_arg_v2=$LIBXSLT_REQUIRED_VERSION
4596awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
4597case $? 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     ;;
4606esac
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"}
4656fi
4657
4658
4659if 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"
4665fi
4666else
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"
4671fi
4672fi
4673
4674if test x"$enable_build_docs" = xyes; then :
4675  # Extract the first word of "xsltproc", so it can be a program name with args.
4676set 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; }
4679if ${ac_cv_path_XSLTPROC+:} false; then :
4680  $as_echo_n "(cached) " >&6
4681else
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
4688for as_dir in $XSLTPROC_PATH
4689do
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
4698done
4699  done
4700IFS=$as_save_IFS
4701
4702  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="none"
4703  ;;
4704esac
4705fi
4706XSLTPROC=$ac_cv_path_XSLTPROC
4707if test -n "$XSLTPROC"; then
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4709$as_echo "$XSLTPROC" >&6; }
4710else
4711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712$as_echo "no" >&6; }
4713fi
4714
4715
4716       if test "$XSLTPROC" = none; then :
4717  as_fn_error $? "xsltproc not found, unable to build documentation" "$LINENO" 5
4718fi
4719
4720       # Extract the first word of "fop", so it can be a program name with args.
4721set 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; }
4724if ${ac_cv_path_FOP+:} false; then :
4725  $as_echo_n "(cached) " >&6
4726else
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
4733for as_dir in $PATH
4734do
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
4743done
4744  done
4745IFS=$as_save_IFS
4746
4747  test -z "$ac_cv_path_FOP" && ac_cv_path_FOP="none"
4748  ;;
4749esac
4750fi
4751FOP=$ac_cv_path_FOP
4752if test -n "$FOP"; then
4753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
4754$as_echo "$FOP" >&6; }
4755else
4756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757$as_echo "no" >&6; }
4758fi
4759
4760
4761        if test x"$FOP" != xnone; then
4762  HAVE_FOP_TRUE=
4763  HAVE_FOP_FALSE='#'
4764else
4765  HAVE_FOP_TRUE='#'
4766  HAVE_FOP_FALSE=
4767fi
4768
4769
4770       # Extract the first word of "pdf2ps", so it can be a program name with args.
4771set 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; }
4774if ${ac_cv_path_PDF2PS+:} false; then :
4775  $as_echo_n "(cached) " >&6
4776else
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
4783for as_dir in $PATH
4784do
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
4793done
4794  done
4795IFS=$as_save_IFS
4796
4797  test -z "$ac_cv_path_PDF2PS" && ac_cv_path_PDF2PS="none"
4798  ;;
4799esac
4800fi
4801PDF2PS=$ac_cv_path_PDF2PS
4802if test -n "$PDF2PS"; then
4803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDF2PS" >&5
4804$as_echo "$PDF2PS" >&6; }
4805else
4806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807$as_echo "no" >&6; }
4808fi
4809
4810
4811        if test x"$PDF2PS" != xnone; then
4812  HAVE_PDF2PS_TRUE=
4813  HAVE_PDF2PS_FALSE='#'
4814else
4815  HAVE_PDF2PS_TRUE='#'
4816  HAVE_PDF2PS_FALSE=
4817fi
4818
4819else
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='#'
4825else
4826  HAVE_FOP_TRUE='#'
4827  HAVE_FOP_FALSE=
4828fi
4829
4830         if false; then
4831  HAVE_PDF2PS_TRUE=
4832  HAVE_PDF2PS_FALSE='#'
4833else
4834  HAVE_PDF2PS_TRUE='#'
4835  HAVE_PDF2PS_FALSE=
4836fi
4837
4838fi
4839
4840 if test x"$enable_build_docs" = xyes; then
4841  BUILD_DOCS_TRUE=
4842  BUILD_DOCS_FALSE='#'
4843else
4844  BUILD_DOCS_TRUE='#'
4845  BUILD_DOCS_FALSE=
4846fi
4847
4848
4849
4850if test "x$STATIC_LIBS" = xno; then :
4851  LIBXSLT_LIBS="-lexslt -lxslt"
4852fi
4853
4854: ${LIBXSLT_INCDIR="$LIBXSLT_PREFIX/include"}
4855LIBXSLT_CPPFLAGS="-I$LIBXSLT_INCDIR"
4856
4857
4858WIN32_EXTRA_LDFLAGS=
4859WIN32_EXTRA_LIBS=
4860
4861case "${host}" in #(
4862  *-hpux*) :
4863    if test "x$GCC" != "xyes"; then :
4864  CFLAGS="-Ae"
4865fi ;; #(
4866  *mingw*) :
4867    WIN32_EXTRA_LIBS='-lwsock32'
4868
4869$as_echo "#define _WINSOCKAPI_ 1" >>confdefs.h
4870 ;; #(
4871  *) :
4872     ;;
4873esac
4874
4875
4876ac_ext=c
4877ac_cpp='$CPP $CPPFLAGS'
4878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880ac_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.
4884if test -n "$CPP" && test -d "$CPP"; then
4885  CPP=
4886fi
4887if test -z "$CPP"; then
4888  if ${ac_cv_prog_CPP+:} false; then :
4889  $as_echo_n "(cached) " >&6
4890else
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
4895for ac_c_preproc_warn_flag in '' yes
4896do
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
4912if ac_fn_c_try_cpp "$LINENO"; then :
4913
4914else
4915  # Broken: fails on valid input.
4916continue
4917fi
4918rm -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
4926if ac_fn_c_try_cpp "$LINENO"; then :
4927  # Broken: success on invalid input.
4928continue
4929else
4930  # Passes both tests.
4931ac_preproc_ok=:
4932break
4933fi
4934rm -f conftest.err conftest.i conftest.$ac_ext
4935
4936done
4937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4938rm -f conftest.i conftest.err conftest.$ac_ext
4939if $ac_preproc_ok; then :
4940  break
4941fi
4942
4943    done
4944    ac_cv_prog_CPP=$CPP
4945
4946fi
4947  CPP=$ac_cv_prog_CPP
4948else
4949  ac_cv_prog_CPP=$CPP
4950fi
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4952$as_echo "$CPP" >&6; }
4953ac_preproc_ok=false
4954for ac_c_preproc_warn_flag in '' yes
4955do
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
4971if ac_fn_c_try_cpp "$LINENO"; then :
4972
4973else
4974  # Broken: fails on valid input.
4975continue
4976fi
4977rm -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
4985if ac_fn_c_try_cpp "$LINENO"; then :
4986  # Broken: success on invalid input.
4987continue
4988else
4989  # Passes both tests.
4990ac_preproc_ok=:
4991break
4992fi
4993rm -f conftest.err conftest.i conftest.$ac_ext
4994
4995done
4996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997rm -f conftest.i conftest.err conftest.$ac_ext
4998if $ac_preproc_ok; then :
4999
5000else
5001  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5003as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5004See \`config.log' for more details" "$LINENO" 5; }
5005fi
5006
5007ac_ext=c
5008ac_cpp='$CPP $CPPFLAGS'
5009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011ac_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; }
5016if ${ac_cv_path_GREP+:} false; then :
5017  $as_echo_n "(cached) " >&6
5018else
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
5023for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5024do
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
5033case `"$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;;
5057esac
5058
5059      $ac_path_GREP_found && break 3
5060    done
5061  done
5062  done
5063IFS=$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
5067else
5068  ac_cv_path_GREP=$GREP
5069fi
5070
5071fi
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; }
5079if ${ac_cv_path_EGREP+:} false; then :
5080  $as_echo_n "(cached) " >&6
5081else
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
5089for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5090do
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
5099case `"$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;;
5123esac
5124
5125      $ac_path_EGREP_found && break 3
5126    done
5127  done
5128  done
5129IFS=$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
5133else
5134  ac_cv_path_EGREP=$EGREP
5135fi
5136
5137   fi
5138fi
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; }
5146if ${ac_cv_header_stdc+:} false; then :
5147  $as_echo_n "(cached) " >&6
5148else
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
5156int
5157main ()
5158{
5159
5160  ;
5161  return 0;
5162}
5163_ACEOF
5164if ac_fn_c_try_compile "$LINENO"; then :
5165  ac_cv_header_stdc=yes
5166else
5167  ac_cv_header_stdc=no
5168fi
5169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170
5171if 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
5178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179  $EGREP "memchr" >/dev/null 2>&1; then :
5180
5181else
5182  ac_cv_header_stdc=no
5183fi
5184rm -f conftest*
5185
5186fi
5187
5188if 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
5195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5196  $EGREP "free" >/dev/null 2>&1; then :
5197
5198else
5199  ac_cv_header_stdc=no
5200fi
5201rm -f conftest*
5202
5203fi
5204
5205if 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  :
5209else
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)))
5226int
5227main ()
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
5237if ac_fn_c_try_run "$LINENO"; then :
5238
5239else
5240  ac_cv_header_stdc=no
5241fi
5242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5243  conftest.$ac_objext conftest.beam conftest.$ac_ext
5244fi
5245
5246fi
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5249$as_echo "$ac_cv_header_stdc" >&6; }
5250if test $ac_cv_header_stdc = yes; then
5251
5252$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5253
5254fi
5255
5256# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5257for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5258		  inttypes.h stdint.h unistd.h
5259do :
5260  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5261ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5262"
5263if 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
5268fi
5269
5270done
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; }
5275if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
5276  $as_echo_n "(cached) " >&6
5277else
5278  rm -f conftest.sym conftest.file
5279echo >conftest.file
5280if 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
5283else
5284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286$ac_includes_default
5287int
5288main ()
5289{
5290struct 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
5299if ac_fn_c_try_run "$LINENO"; then :
5300  ac_cv_func_lstat_dereferences_slashed_symlink=yes
5301else
5302  ac_cv_func_lstat_dereferences_slashed_symlink=no
5303fi
5304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5305  conftest.$ac_objext conftest.beam conftest.$ac_ext
5306fi
5307
5308else
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
5312fi
5313rm -f conftest.sym conftest.file
5314
5315fi
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
5319test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5320
5321cat >>confdefs.h <<_ACEOF
5322#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5323_ACEOF
5324
5325
5326if 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 ;;
5331esac
5332
5333fi
5334
5335for ac_header in stdlib.h
5336do :
5337  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5338if test "x$ac_cv_header_stdlib_h" = xyes; then :
5339  cat >>confdefs.h <<_ACEOF
5340#define HAVE_STDLIB_H 1
5341_ACEOF
5342
5343fi
5344
5345done
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; }
5349if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5350  $as_echo_n "(cached) " >&6
5351else
5352  if test "$cross_compiling" = yes; then :
5353  ac_cv_func_malloc_0_nonnull=no
5354else
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
5360char *malloc ();
5361#endif
5362
5363int
5364main ()
5365{
5366return ! malloc (0);
5367  ;
5368  return 0;
5369}
5370_ACEOF
5371if ac_fn_c_try_run "$LINENO"; then :
5372  ac_cv_func_malloc_0_nonnull=yes
5373else
5374  ac_cv_func_malloc_0_nonnull=no
5375fi
5376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5377  conftest.$ac_objext conftest.beam conftest.$ac_ext
5378fi
5379
5380fi
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; }
5383if test $ac_cv_func_malloc_0_nonnull = yes; then :
5384
5385$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5386
5387else
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 ;;
5394esac
5395
5396
5397$as_echo "#define malloc rpl_malloc" >>confdefs.h
5398
5399fi
5400
5401
5402for ac_header in stdlib.h
5403do :
5404  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5405if test "x$ac_cv_header_stdlib_h" = xyes; then :
5406  cat >>confdefs.h <<_ACEOF
5407#define HAVE_STDLIB_H 1
5408_ACEOF
5409
5410fi
5411
5412done
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; }
5416if ${ac_cv_func_realloc_0_nonnull+:} false; then :
5417  $as_echo_n "(cached) " >&6
5418else
5419  if test "$cross_compiling" = yes; then :
5420  ac_cv_func_realloc_0_nonnull=no
5421else
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
5427char *realloc ();
5428#endif
5429
5430int
5431main ()
5432{
5433return ! realloc (0, 0);
5434  ;
5435  return 0;
5436}
5437_ACEOF
5438if ac_fn_c_try_run "$LINENO"; then :
5439  ac_cv_func_realloc_0_nonnull=yes
5440else
5441  ac_cv_func_realloc_0_nonnull=no
5442fi
5443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5444  conftest.$ac_objext conftest.beam conftest.$ac_ext
5445fi
5446
5447fi
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; }
5450if test $ac_cv_func_realloc_0_nonnull = yes; then :
5451
5452$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
5453
5454else
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 ;;
5461esac
5462
5463
5464$as_echo "#define realloc rpl_realloc" >>confdefs.h
5465
5466fi
5467
5468
5469ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5470if test "x$ac_cv_type_mode_t" = xyes; then :
5471
5472else
5473
5474cat >>confdefs.h <<_ACEOF
5475#define mode_t int
5476_ACEOF
5477
5478fi
5479
5480ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5481if test "x$ac_cv_type_size_t" = xyes; then :
5482
5483else
5484
5485cat >>confdefs.h <<_ACEOF
5486#define size_t unsigned int
5487_ACEOF
5488
5489fi
5490
5491
5492# The trick with USER_LIBS allows make LIBS=-lfoo to add rather than
5493# replace the libraries from ./configure
5494USER_LIBS="$LIBS"
5495LIBS=
5496# shared libraries link to dependant libraries automatically
5497if 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; }
5500if ${ac_cv_search_dlopen+:} false; then :
5501  $as_echo_n "(cached) " >&6
5502else
5503  ac_func_search_save_LIBS=$LIBS
5504cat 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
5511extern "C"
5512#endif
5513char dlopen ();
5514int
5515main ()
5516{
5517return dlopen ();
5518  ;
5519  return 0;
5520}
5521_ACEOF
5522for 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
5531fi
5532rm -f core conftest.err conftest.$ac_objext \
5533    conftest$ac_exeext
5534  if ${ac_cv_search_dlopen+:} false; then :
5535  break
5536fi
5537done
5538if ${ac_cv_search_dlopen+:} false; then :
5539
5540else
5541  ac_cv_search_dlopen=no
5542fi
5543rm conftest.$ac_ext
5544LIBS=$ac_func_search_save_LIBS
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5547$as_echo "$ac_cv_search_dlopen" >&6; }
5548ac_res=$ac_cv_search_dlopen
5549if test "$ac_res" != no; then :
5550  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5551
5552fi
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; }
5556if ${ac_cv_search_sqrt+:} false; then :
5557  $as_echo_n "(cached) " >&6
5558else
5559  ac_func_search_save_LIBS=$LIBS
5560cat 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
5567extern "C"
5568#endif
5569char sqrt ();
5570int
5571main ()
5572{
5573return sqrt ();
5574  ;
5575  return 0;
5576}
5577_ACEOF
5578for 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
5587fi
5588rm -f core conftest.err conftest.$ac_objext \
5589    conftest$ac_exeext
5590  if ${ac_cv_search_sqrt+:} false; then :
5591  break
5592fi
5593done
5594if ${ac_cv_search_sqrt+:} false; then :
5595
5596else
5597  ac_cv_search_sqrt=no
5598fi
5599rm conftest.$ac_ext
5600LIBS=$ac_func_search_save_LIBS
5601fi
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
5603$as_echo "$ac_cv_search_sqrt" >&6; }
5604ac_res=$ac_cv_search_sqrt
5605if test "$ac_res" != no; then :
5606  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5607
5608fi
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; }
5612if ${ac_cv_search_iconv_open+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  ac_func_search_save_LIBS=$LIBS
5616cat 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
5623extern "C"
5624#endif
5625char iconv_open ();
5626int
5627main ()
5628{
5629return iconv_open ();
5630  ;
5631  return 0;
5632}
5633_ACEOF
5634for 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
5643fi
5644rm -f core conftest.err conftest.$ac_objext \
5645    conftest$ac_exeext
5646  if ${ac_cv_search_iconv_open+:} false; then :
5647  break
5648fi
5649done
5650if ${ac_cv_search_iconv_open+:} false; then :
5651
5652else
5653  ac_cv_search_iconv_open=no
5654fi
5655rm conftest.$ac_ext
5656LIBS=$ac_func_search_save_LIBS
5657fi
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5659$as_echo "$ac_cv_search_iconv_open" >&6; }
5660ac_res=$ac_cv_search_iconv_open
5661if test "$ac_res" != no; then :
5662  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5663
5664else
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; }
5667if ${ac_cv_search_libiconv_open+:} false; then :
5668  $as_echo_n "(cached) " >&6
5669else
5670  ac_func_search_save_LIBS=$LIBS
5671cat 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
5678extern "C"
5679#endif
5680char libiconv_open ();
5681int
5682main ()
5683{
5684return libiconv_open ();
5685  ;
5686  return 0;
5687}
5688_ACEOF
5689for 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
5698fi
5699rm -f core conftest.err conftest.$ac_objext \
5700    conftest$ac_exeext
5701  if ${ac_cv_search_libiconv_open+:} false; then :
5702  break
5703fi
5704done
5705if ${ac_cv_search_libiconv_open+:} false; then :
5706
5707else
5708  ac_cv_search_libiconv_open=no
5709fi
5710rm conftest.$ac_ext
5711LIBS=$ac_func_search_save_LIBS
5712fi
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5714$as_echo "$ac_cv_search_libiconv_open" >&6; }
5715ac_res=$ac_cv_search_libiconv_open
5716if test "$ac_res" != no; then :
5717  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5718
5719fi
5720
5721fi
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; }
5725if ${ac_cv_search_clock_gettime+:} false; then :
5726  $as_echo_n "(cached) " >&6
5727else
5728  ac_func_search_save_LIBS=$LIBS
5729cat 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
5736extern "C"
5737#endif
5738char clock_gettime ();
5739int
5740main ()
5741{
5742return clock_gettime ();
5743  ;
5744  return 0;
5745}
5746_ACEOF
5747for 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
5756fi
5757rm -f core conftest.err conftest.$ac_objext \
5758    conftest$ac_exeext
5759  if ${ac_cv_search_clock_gettime+:} false; then :
5760  break
5761fi
5762done
5763if ${ac_cv_search_clock_gettime+:} false; then :
5764
5765else
5766  ac_cv_search_clock_gettime=no
5767fi
5768rm conftest.$ac_ext
5769LIBS=$ac_func_search_save_LIBS
5770fi
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5772$as_echo "$ac_cv_search_clock_gettime" >&6; }
5773ac_res=$ac_cv_search_clock_gettime
5774if test "$ac_res" != no; then :
5775  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5776
5777fi
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; }
5781if ${ac_cv_search_deflate+:} false; then :
5782  $as_echo_n "(cached) " >&6
5783else
5784  ac_func_search_save_LIBS=$LIBS
5785cat 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
5792extern "C"
5793#endif
5794char deflate ();
5795int
5796main ()
5797{
5798return deflate ();
5799  ;
5800  return 0;
5801}
5802_ACEOF
5803for 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
5812fi
5813rm -f core conftest.err conftest.$ac_objext \
5814    conftest$ac_exeext
5815  if ${ac_cv_search_deflate+:} false; then :
5816  break
5817fi
5818done
5819if ${ac_cv_search_deflate+:} false; then :
5820
5821else
5822  ac_cv_search_deflate=no
5823fi
5824rm conftest.$ac_ext
5825LIBS=$ac_func_search_save_LIBS
5826fi
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
5828$as_echo "$ac_cv_search_deflate" >&6; }
5829ac_res=$ac_cv_search_deflate
5830if test "$ac_res" != no; then :
5831  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5832
5833fi
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; }
5837if ${ac_cv_search_gcry_cipher_encrypt+:} false; then :
5838  $as_echo_n "(cached) " >&6
5839else
5840  ac_func_search_save_LIBS=$LIBS
5841cat 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
5848extern "C"
5849#endif
5850char gcry_cipher_encrypt ();
5851int
5852main ()
5853{
5854return gcry_cipher_encrypt ();
5855  ;
5856  return 0;
5857}
5858_ACEOF
5859for 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
5868fi
5869rm -f core conftest.err conftest.$ac_objext \
5870    conftest$ac_exeext
5871  if ${ac_cv_search_gcry_cipher_encrypt+:} false; then :
5872  break
5873fi
5874done
5875if ${ac_cv_search_gcry_cipher_encrypt+:} false; then :
5876
5877else
5878  ac_cv_search_gcry_cipher_encrypt=no
5879fi
5880rm conftest.$ac_ext
5881LIBS=$ac_func_search_save_LIBS
5882fi
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; }
5885ac_res=$ac_cv_search_gcry_cipher_encrypt
5886if test "$ac_res" != no; then :
5887  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5888
5889fi
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; }
5895if ${ac_cv_search_gethostent+:} false; then :
5896  $as_echo_n "(cached) " >&6
5897else
5898  ac_func_search_save_LIBS=$LIBS
5899cat 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
5906extern "C"
5907#endif
5908char gethostent ();
5909int
5910main ()
5911{
5912return gethostent ();
5913  ;
5914  return 0;
5915}
5916_ACEOF
5917for 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
5926fi
5927rm -f core conftest.err conftest.$ac_objext \
5928    conftest$ac_exeext
5929  if ${ac_cv_search_gethostent+:} false; then :
5930  break
5931fi
5932done
5933if ${ac_cv_search_gethostent+:} false; then :
5934
5935else
5936  ac_cv_search_gethostent=no
5937fi
5938rm conftest.$ac_ext
5939LIBS=$ac_func_search_save_LIBS
5940fi
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
5942$as_echo "$ac_cv_search_gethostent" >&6; }
5943ac_res=$ac_cv_search_gethostent
5944if test "$ac_res" != no; then :
5945  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5946
5947fi
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; }
5951if ${ac_cv_search_setsockopt+:} false; then :
5952  $as_echo_n "(cached) " >&6
5953else
5954  ac_func_search_save_LIBS=$LIBS
5955cat 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
5962extern "C"
5963#endif
5964char setsockopt ();
5965int
5966main ()
5967{
5968return setsockopt ();
5969  ;
5970  return 0;
5971}
5972_ACEOF
5973for 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
5982fi
5983rm -f core conftest.err conftest.$ac_objext \
5984    conftest$ac_exeext
5985  if ${ac_cv_search_setsockopt+:} false; then :
5986  break
5987fi
5988done
5989if ${ac_cv_search_setsockopt+:} false; then :
5990
5991else
5992  ac_cv_search_setsockopt=no
5993fi
5994rm conftest.$ac_ext
5995LIBS=$ac_func_search_save_LIBS
5996fi
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
5998$as_echo "$ac_cv_search_setsockopt" >&6; }
5999ac_res=$ac_cv_search_setsockopt
6000if test "$ac_res" != no; then :
6001  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6002
6003fi
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; }
6007if ${ac_cv_search_connect+:} false; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  ac_func_search_save_LIBS=$LIBS
6011cat 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
6018extern "C"
6019#endif
6020char connect ();
6021int
6022main ()
6023{
6024return connect ();
6025  ;
6026  return 0;
6027}
6028_ACEOF
6029for 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
6038fi
6039rm -f core conftest.err conftest.$ac_objext \
6040    conftest$ac_exeext
6041  if ${ac_cv_search_connect+:} false; then :
6042  break
6043fi
6044done
6045if ${ac_cv_search_connect+:} false; then :
6046
6047else
6048  ac_cv_search_connect=no
6049fi
6050rm conftest.$ac_ext
6051LIBS=$ac_func_search_save_LIBS
6052fi
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
6054$as_echo "$ac_cv_search_connect" >&6; }
6055ac_res=$ac_cv_search_connect
6056if test "$ac_res" != no; then :
6057  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6058
6059fi
6060
6061fi
6062
6063
6064
6065
6066  for ac_func in $ac_func_list
6067do :
6068  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6069ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6070if 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
6075fi
6076done
6077
6078
6079
6080
6081
6082
6083
6084ac_fn_c_check_decl "$LINENO" "O_BINARY" "ac_cv_have_decl_O_BINARY" "
6085#include <io.h>
6086#include <fcntl.h>
6087
6088"
6089if test "x$ac_cv_have_decl_O_BINARY" = xyes; then :
6090
6091$as_echo "#define HAVE_DECL_O_BINARY 1" >>confdefs.h
6092
6093else
6094
6095$as_echo "#define HAVE_DECL_O_BINARY 0" >>confdefs.h
6096
6097fi
6098
6099
6100
6101
6102
6103# check for exslt*XpathCtxtRegister() functions
6104OLD_CPPFLAGS="$CPPFLAGS"
6105 CPPFLAGS="$LIBXSLT_CPPFLAGS $LIBXML_CPPFLAGS $CPPFLAGS"
6106ac_fn_c_check_decl "$LINENO" "exsltDateXpathCtxtRegister" "ac_cv_have_decl_exsltDateXpathCtxtRegister" "#include <libexslt/exslt.h>
6107"
6108if 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
6113else
6114
6115$as_echo "#define HAVE_EXSLT_XPATH_REGISTER 0" >>confdefs.h
6116
6117        HAVE_EXSLT_XPATH_REGISTER=0
6118fi
6119
6120
6121 if test $HAVE_EXSLT_XPATH_REGISTER = 1; then
6122  HAVE_EXSLT_XPATH_REGISTER_TRUE=
6123  HAVE_EXSLT_XPATH_REGISTER_FALSE='#'
6124else
6125  HAVE_EXSLT_XPATH_REGISTER_TRUE='#'
6126  HAVE_EXSLT_XPATH_REGISTER_FALSE=
6127fi
6128
6129CPPFLAGS="$OLD_CPPFLAGS"
6130
6131# put warnings about missing docs at the end, so there is a better
6132# chance of seeing them.
6133if 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;}
6137fi
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;}
6141fi
6142fi
6143
6144# make flags
6145AM_CPPFLAGS="$LIBXSLT_CPPFLAGS $LIBXML_CPPFLAGS"
6146
6147AM_LDFLAGS="$LIBXSLT_LDFLAGS $LIBXML_LDFLAGS"
6148
6149LDADD="$LIBXSLT_LIBS $LIBXML_LIBS $WIN32_EXTRA_LIBS $LIBS"
6150
6151LIBS="$USER_LIBS"
6152
6153
6154
6155
6156
6157
6158# make silent rule for FOP
6159V_FOP="\$(V_FOP_$AM_V)"
6160V_FOP_="\$(V_FOP_$AM_DEFAULT_VERBOSITY)"
6161V_FOP_0='@echo "  FOP	 $@";'
6162
6163# make silent rule for DOCBOOK
6164V_DOCBOOK="\$(V_DOCBOOK_$AM_V)"
6165V_DOCBOOK_="\$(V_DOCBOOK_$AM_DEFAULT_VERBOSITY)"
6166V_DOCBOOK_0='@echo "  DBOOK	 $@";'
6167
6168
6169
6170
6171
6172
6173
6174ac_config_headers="$ac_config_headers config.h"
6175
6176ac_config_files="$ac_config_files xmlstarlet.spec Makefile solaris/package/sol8-sparc/pkginfo solaris/package/sol9-sparc/pkginfo"
6177
6178cat >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
6240if 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
6261fi
6262rm -f confcache
6263
6264test "x$prefix" = xNONE && prefix=$ac_default_prefix
6265# Let make expand exec_prefix.
6266test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6267
6268DEFS=-DHAVE_CONFIG_H
6269
6270ac_libobjs=
6271ac_ltlibobjs=
6272U=
6273for 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'
6281done
6282LIBOBJS=$ac_libobjs
6283
6284LTLIBOBJS=$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='#'
6298else
6299  am__EXEEXT_TRUE='#'
6300  am__EXEEXT_FALSE=
6301fi
6302
6303if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6304  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6305Usually this means the macro was only invoked conditionally." "$LINENO" 5
6306fi
6307if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6308  as_fn_error $? "conditional \"AMDEP\" was never defined.
6309Usually this means the macro was only invoked conditionally." "$LINENO" 5
6310fi
6311if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6312  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6313Usually this means the macro was only invoked conditionally." "$LINENO" 5
6314fi
6315if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
6316  as_fn_error $? "conditional \"GCC\" was never defined.
6317Usually this means the macro was only invoked conditionally." "$LINENO" 5
6318fi
6319if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
6320  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
6321Usually this means the macro was only invoked conditionally." "$LINENO" 5
6322fi
6323if test -z "${HAVE_PDF2PS_TRUE}" && test -z "${HAVE_PDF2PS_FALSE}"; then
6324  as_fn_error $? "conditional \"HAVE_PDF2PS\" was never defined.
6325Usually this means the macro was only invoked conditionally." "$LINENO" 5
6326fi
6327if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
6328  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
6329Usually this means the macro was only invoked conditionally." "$LINENO" 5
6330fi
6331if test -z "${HAVE_PDF2PS_TRUE}" && test -z "${HAVE_PDF2PS_FALSE}"; then
6332  as_fn_error $? "conditional \"HAVE_PDF2PS\" was never defined.
6333Usually this means the macro was only invoked conditionally." "$LINENO" 5
6334fi
6335if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
6336  as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
6337Usually this means the macro was only invoked conditionally." "$LINENO" 5
6338fi
6339if 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.
6341Usually this means the macro was only invoked conditionally." "$LINENO" 5
6342fi
6343
6344: "${CONFIG_STATUS=./config.status}"
6345ac_write_fail=0
6346ac_clean_files_save=$ac_clean_files
6347ac_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;}
6350as_write_fail=0
6351cat >$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
6358debug=false
6359ac_cs_recheck=false
6360ac_cs_silent=false
6361
6362SHELL=\${CONFIG_SHELL-$SHELL}
6363export SHELL
6364_ASEOF
6365cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6366## -------------------- ##
6367## M4sh Initialization. ##
6368## -------------------- ##
6369
6370# Be more Bourne compatible
6371DUALCASE=1; export DUALCASE # for MKS sh
6372if 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
6379else
6380  case `(set -o) 2>/dev/null` in #(
6381  *posix*) :
6382    set -o posix ;; #(
6383  *) :
6384     ;;
6385esac
6386fi
6387
6388
6389as_nl='
6390'
6391export as_nl
6392# Printing a long string crashes Solaris 7 /usr/bin/printf.
6393as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6394as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6395as_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.
6398if 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 --'
6402elif (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'
6405else
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'
6425fi
6426
6427# The user is always right.
6428if 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  }
6434fi
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.)
6442IFS=" ""	$as_nl"
6443
6444# Find who we are.  Look in the path if we contain no directory separator.
6445as_myself=
6446case $0 in #((
6447  *[\\/]* ) as_myself=$0 ;;
6448  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
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
6455IFS=$as_save_IFS
6456
6457     ;;
6458esac
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.
6461if test "x$as_myself" = x; then
6462  as_myself=$0
6463fi
6464if test ! -f "$as_myself"; then
6465  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6466  exit 1
6467fi
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.
6473for as_var in BASH_ENV ENV MAIL MAILPATH
6474do eval test x\${$as_var+set} = xset \
6475  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6476done
6477PS1='$ '
6478PS2='> '
6479PS4='+ '
6480
6481# NLS nuisances.
6482LC_ALL=C
6483export LC_ALL
6484LANGUAGE=C
6485export 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.
6496as_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.
6511as_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.
6519as_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.
6529as_fn_unset ()
6530{
6531  { eval $1=; unset $1;}
6532}
6533as_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.
6540if (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  }'
6545else
6546  as_fn_append ()
6547  {
6548    eval $1=\$$1\$2
6549  }
6550fi # 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.
6557if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6558  eval 'as_fn_arith ()
6559  {
6560    as_val=$(( $* ))
6561  }'
6562else
6563  as_fn_arith ()
6564  {
6565    as_val=`expr "$@" || test $? -eq 1`
6566  }
6567fi # as_fn_arith
6568
6569
6570if expr a : '\(a\)' >/dev/null 2>&1 &&
6571   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6572  as_expr=expr
6573else
6574  as_expr=false
6575fi
6576
6577if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6578  as_basename=basename
6579else
6580  as_basename=false
6581fi
6582
6583if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6584  as_dirname=dirname
6585else
6586  as_dirname=false
6587fi
6588
6589as_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.
6609as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6610as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6611as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6612as_cr_digits='0123456789'
6613as_cr_alnum=$as_cr_Letters$as_cr_digits
6614
6615ECHO_C= ECHO_N= ECHO_T=
6616case `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';;
6626esac
6627
6628rm -f conf$$ conf$$.exe conf$$.file
6629if test -d conf$$.dir; then
6630  rm -f conf$$.dir/conf$$.file
6631else
6632  rm -f conf$$.dir
6633  mkdir conf$$.dir 2>/dev/null
6634fi
6635if (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
6649else
6650  as_ln_s='cp -pR'
6651fi
6652rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6653rmdir conf$$.dir 2>/dev/null
6654
6655
6656# as_fn_mkdir_p
6657# -------------
6658# Create "$as_dir" as a directory, including parents if necessary.
6659as_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
6703if mkdir -p . 2>/dev/null; then
6704  as_mkdir_p='mkdir -p "$as_dir"'
6705else
6706  test -d ./-p && rmdir ./-p
6707  as_mkdir_p=false
6708fi
6709
6710
6711# as_fn_executable_p FILE
6712# -----------------------
6713# Test if FILE is an executable regular file.
6714as_fn_executable_p ()
6715{
6716  test -f "$1" && test -x "$1"
6717} # as_fn_executable_p
6718as_test_x='test -x'
6719as_executable_p=as_fn_executable_p
6720
6721# Sed expression to map a string onto a valid CPP name.
6722as_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.
6725as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6726
6727
6728exec 6>&1
6729## ----------------------------------- ##
6730## Main body of $CONFIG_STATUS script. ##
6731## ----------------------------------- ##
6732_ASEOF
6733test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6734
6735cat >>$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.
6739ac_log="
6740This file was extended by XMLStarlet $as_me 1.6.1, which was
6741generated 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
6749on `(hostname || uname -n) 2>/dev/null | sed 1q`
6750"
6751
6752_ACEOF
6753
6754case $ac_config_files in *"
6755"*) set x $ac_config_files; shift; ac_config_files=$*;;
6756esac
6757
6758case $ac_config_headers in *"
6759"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6760esac
6761
6762
6763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6764# Files that config.status was made for.
6765config_files="$ac_config_files"
6766config_headers="$ac_config_headers"
6767config_commands="$ac_config_commands"
6768
6769_ACEOF
6770
6771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6772ac_cs_usage="\
6773\`$as_me' instantiates files and other configuration actions
6774from templates according to the current configuration.  Unless the files
6775and actions are specified as TAGs, all are instantiated by default.
6776
6777Usage: $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
6791Configuration files:
6792$config_files
6793
6794Configuration headers:
6795$config_headers
6796
6797Configuration commands:
6798$config_commands
6799
6800Report bugs to <http://sourceforge.net/projects/xmlstar/support>.
6801XMLStarlet home page: <http://xmlstar.sourceforge.net/>."
6802
6803_ACEOF
6804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6805ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6806ac_cs_version="\\
6807XMLStarlet config.status 1.6.1
6808configured by $0, generated by GNU Autoconf 2.69,
6809  with options \\"\$ac_cs_config\\"
6810
6811Copyright (C) 2012 Free Software Foundation, Inc.
6812This config.status script is free software; the Free Software Foundation
6813gives unlimited permission to copy, distribute and modify it."
6814
6815ac_pwd='$ac_pwd'
6816srcdir='$srcdir'
6817INSTALL='$INSTALL'
6818MKDIR_P='$MKDIR_P'
6819AWK='$AWK'
6820test -n "\$AWK" || AWK=awk
6821_ACEOF
6822
6823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6824# The default lists apply if the user does not specify any file.
6825ac_need_defaults=:
6826while test $# != 0
6827do
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'
6874Try \`$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'
6883Try \`$0 --help' for more information." ;;
6884
6885  *) as_fn_append ac_config_targets " $1"
6886     ac_need_defaults=false ;;
6887
6888  esac
6889  shift
6890done
6891
6892ac_configure_extra_args=
6893
6894if $ac_cs_silent; then
6895  exec 6>/dev/null
6896  ac_configure_extra_args="$ac_configure_extra_args --silent"
6897fi
6898
6899_ACEOF
6900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6901if \$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 "\$@"
6908fi
6909
6910_ACEOF
6911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6912exec 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
6922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6923#
6924# INIT-COMMANDS
6925#
6926AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6927
6928_ACEOF
6929
6930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6931
6932# Handling of arguments.
6933for ac_config_target in $ac_config_targets
6934do
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
6945done
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.
6952if $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
6956fi
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
6983ac_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'.
6988if test -n "$CONFIG_FILES"; then
6989
6990
6991ac_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.
6995if test "x$ac_cr" = x; then
6996  eval ac_cr=\$\'\\r\'
6997fi
6998ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6999if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7000  ac_cs_awk_cr='\\r'
7001else
7002  ac_cs_awk_cr=$ac_cr
7003fi
7004
7005echo '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
7015ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7016ac_delim='%!_!# '
7017for 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
7029done
7030rm -f conf$$subs.sh
7031
7032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7033cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7034_ACEOF
7035sed -n '
7036h
7037s/^/S["/; s/!.*/"]=/
7038p
7039g
7040s/^[^!]*!//
7041:repl
7042t repl
7043s/'"$ac_delim"'$//
7044t delim
7045:nl
7046h
7047s/\(.\{148\}\)..*/\1/
7048t more1
7049s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7050p
7051n
7052b repl
7053:more1
7054s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7055p
7056g
7057s/.\{148\}//
7058t nl
7059:delim
7060h
7061s/\(.\{148\}\)..*/\1/
7062t more2
7063s/["\\]/\\&/g; s/^/"/; s/$/"/
7064p
7065b
7066:more2
7067s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7068p
7069g
7070s/.\{148\}//
7071t delim
7072' <conf$$subs.awk | sed '
7073/^[^""]/{
7074  N
7075  s/\n//
7076}
7077' >>$CONFIG_STATUS || ac_write_fail=1
7078rm -f conf$$subs.awk
7079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7080_ACAWK
7081cat >>"\$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
7108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7109if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7110  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7111else
7112  cat
7113fi < "$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).
7121if test "x$srcdir" = x.; then
7122  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
7123h
7124s///
7125s/^/:/
7126s/[	 ]*$/:/
7127s/:\$(srcdir):/:/g
7128s/:\${srcdir}:/:/g
7129s/:@srcdir@:/:/g
7130s/^:*//
7131s/:*$//
7132x
7133s/\(=[	 ]*\).*/\1/
7134G
7135s/\n//
7136s/^[^=]*=[	 ]*$//
7137}'
7138fi
7139
7140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7141fi # 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'.
7146if test -n "$CONFIG_HEADERS"; then
7147cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7148BEGIN {
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.
7157ac_delim='%!_!# '
7158for 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
7167done
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
7173ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7174sed -n '
7175s/.\{148\}/&'"$ac_delim"'/g
7176t rset
7177:rset
7178s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
7179t def
7180d
7181:def
7182s/\\$//
7183t bsnl
7184s/["\\]/\\&/g
7185s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7186D["\1"]=" \3"/p
7187s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
7188d
7189:bsnl
7190s/["\\]/\\&/g
7191s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7192D["\1"]=" \3\\\\\\n"\\/p
7193t cont
7194s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7195t cont
7196d
7197:cont
7198n
7199s/.\{148\}/&'"$ac_delim"'/g
7200t clear
7201:clear
7202s/\\$//
7203t bsnlc
7204s/["\\]/\\&/g; s/^/"/; s/$/"/p
7205d
7206:bsnlc
7207s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7208b cont
7209' <confdefs.h | sed '
7210s/'"$ac_delim"'/"\\\
7211"/g' >>$CONFIG_STATUS || ac_write_fail=1
7212
7213cat >>$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
7247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7248  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7249fi # test -n "$CONFIG_HEADERS"
7250
7251
7252eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
7253shift
7254for ac_tag
7255do
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
7347case "$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 ;;
7357esac
7358ac_abs_top_builddir=$ac_pwd
7359ac_abs_builddir=$ac_pwd$ac_dir_suffix
7360# for backward compatibility:
7361ac_top_builddir=$ac_top_build_prefix
7362
7363case $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 ;;
7376esac
7377ac_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
7397cat >>$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.
7400ac_datarootdir_hack=; ac_datarootdir_seen=
7401ac_sed_dataroot='
7402/datarootdir/ {
7403  p
7404  q
7405}
7406/@datadir@/p
7407/@docdir@/p
7408/@infodir@/p
7409/@localedir@/p
7410/@mandir@/p'
7411case `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
7417cat >>$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' ;;
7425esac
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?
7431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7432ac_sed_extra="$ac_vpsub
7433$extrasub
7434_ACEOF
7435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7436:t
7437/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7438s|@configure_input@|$ac_sed_conf_input|;t t
7439s&@top_builddir@&$ac_top_builddir_sub&;t t
7440s&@top_build_prefix@&$ac_top_build_prefix&;t t
7441s&@srcdir@&$ac_srcdir&;t t
7442s&@abs_srcdir@&$ac_abs_srcdir&;t t
7443s&@top_srcdir@&$ac_top_srcdir&;t t
7444s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7445s&@builddir@&$ac_builddir&;t t
7446s&@abs_builddir@&$ac_abs_builddir&;t t
7447s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7448s&@INSTALL@&$ac_INSTALL&;t t
7449s&@MKDIR_P@&$ac_MKDIR_P&;t t
7450$ac_datarootdir_hack
7451"
7452eval 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
7455test -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'
7460which 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'
7462which 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
7497for _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
7504done
7505echo "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
7632done # for ac_tag
7633
7634
7635as_fn_exit 0
7636_ACEOF
7637ac_clean_files=$ac_clean_files_save
7638
7639test $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.
7651if 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
7662fi
7663if 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;}
7666fi
7667
7668
7669