1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Xar 1.7dev.
4#
5# Report bugs to <xar-devel@googlegroups.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: xar-devel@googlegroups.com about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='Xar'
582PACKAGE_TARNAME='xar'
583PACKAGE_VERSION='1.7dev'
584PACKAGE_STRING='Xar 1.7dev'
585PACKAGE_BUGREPORT='xar-devel@googlegroups.com'
586PACKAGE_URL=''
587
588ac_unique_file="LICENSE"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_default_prefix=/usr/local
626ac_subst_vars='LTLIBOBJS
627LIBOBJS
628cfgoutputs
629cfghdrs
630XML2_CONFIG
631EGREP
632GREP
633enable_autogen
634RPATH
635abi
636host_os
637host_vendor
638host_cpu
639host
640build_os
641build_vendor
642build_cpu
643build
644static
645shared
646AUTOCONF
647RANLIB
648AR
649LD
650INSTALL_DATA
651INSTALL_SCRIPT
652INSTALL_PROGRAM
653CPP
654OBJEXT
655EXEEXT
656ac_ct_CC
657CPPFLAGS
658LDFLAGS
659CFLAGS
660CC
661MANDIR
662INCLUDEDIR
663LIBDIR
664DATADIR
665BINDIR
666PREFIX
667abs_objroot
668objroot
669abs_srcroot
670srcroot
671XAR_VERSION
672XAR_MINOR_VERSION
673XAR_MAJOR_VERSION
674LIB_REV
675target_alias
676host_alias
677build_alias
678LIBS
679ECHO_T
680ECHO_N
681ECHO_C
682DEFS
683mandir
684localedir
685libdir
686psdir
687pdfdir
688dvidir
689htmldir
690infodir
691docdir
692oldincludedir
693includedir
694localstatedir
695sharedstatedir
696sysconfdir
697datadir
698datarootdir
699libexecdir
700sbindir
701bindir
702program_transform_name
703prefix
704exec_prefix
705PACKAGE_URL
706PACKAGE_BUGREPORT
707PACKAGE_STRING
708PACKAGE_VERSION
709PACKAGE_TARNAME
710PACKAGE_NAME
711PATH_SEPARATOR
712SHELL'
713ac_subst_files=''
714ac_user_opts='
715enable_option_checking
716enable_largefile
717enable_shared
718enable_static
719enable_autogen
720with_xml2_config
721'
722      ac_precious_vars='build_alias
723host_alias
724target_alias
725CC
726CFLAGS
727LDFLAGS
728LIBS
729CPPFLAGS
730CPP'
731
732
733# Initialize some variables set by options.
734ac_init_help=
735ac_init_version=false
736ac_unrecognized_opts=
737ac_unrecognized_sep=
738# The variables have the same names as the options, with
739# dashes changed to underlines.
740cache_file=/dev/null
741exec_prefix=NONE
742no_create=
743no_recursion=
744prefix=NONE
745program_prefix=NONE
746program_suffix=NONE
747program_transform_name=s,x,x,
748silent=
749site=
750srcdir=
751verbose=
752x_includes=NONE
753x_libraries=NONE
754
755# Installation directory options.
756# These are left unexpanded so users can "make install exec_prefix=/foo"
757# and all the variables that are supposed to be based on exec_prefix
758# by default will actually change.
759# Use braces instead of parens because sh, perl, etc. also accept them.
760# (The list follows the same order as the GNU Coding Standards.)
761bindir='${exec_prefix}/bin'
762sbindir='${exec_prefix}/sbin'
763libexecdir='${exec_prefix}/libexec'
764datarootdir='${prefix}/share'
765datadir='${datarootdir}'
766sysconfdir='${prefix}/etc'
767sharedstatedir='${prefix}/com'
768localstatedir='${prefix}/var'
769includedir='${prefix}/include'
770oldincludedir='/usr/include'
771docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772infodir='${datarootdir}/info'
773htmldir='${docdir}'
774dvidir='${docdir}'
775pdfdir='${docdir}'
776psdir='${docdir}'
777libdir='${exec_prefix}/lib'
778localedir='${datarootdir}/locale'
779mandir='${datarootdir}/man'
780
781ac_prev=
782ac_dashdash=
783for ac_option
784do
785  # If the previous option needs an argument, assign it.
786  if test -n "$ac_prev"; then
787    eval $ac_prev=\$ac_option
788    ac_prev=
789    continue
790  fi
791
792  case $ac_option in
793  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794  *=)   ac_optarg= ;;
795  *)    ac_optarg=yes ;;
796  esac
797
798  # Accept the important Cygnus configure options, so we can diagnose typos.
799
800  case $ac_dashdash$ac_option in
801  --)
802    ac_dashdash=yes ;;
803
804  -bindir | --bindir | --bindi | --bind | --bin | --bi)
805    ac_prev=bindir ;;
806  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807    bindir=$ac_optarg ;;
808
809  -build | --build | --buil | --bui | --bu)
810    ac_prev=build_alias ;;
811  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812    build_alias=$ac_optarg ;;
813
814  -cache-file | --cache-file | --cache-fil | --cache-fi \
815  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816    ac_prev=cache_file ;;
817  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
819    cache_file=$ac_optarg ;;
820
821  --config-cache | -C)
822    cache_file=config.cache ;;
823
824  -datadir | --datadir | --datadi | --datad)
825    ac_prev=datadir ;;
826  -datadir=* | --datadir=* | --datadi=* | --datad=*)
827    datadir=$ac_optarg ;;
828
829  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830  | --dataroo | --dataro | --datar)
831    ac_prev=datarootdir ;;
832  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834    datarootdir=$ac_optarg ;;
835
836  -disable-* | --disable-*)
837    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838    # Reject names that are not valid shell variable names.
839    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840      as_fn_error $? "invalid feature name: $ac_useropt"
841    ac_useropt_orig=$ac_useropt
842    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843    case $ac_user_opts in
844      *"
845"enable_$ac_useropt"
846"*) ;;
847      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
848	 ac_unrecognized_sep=', ';;
849    esac
850    eval enable_$ac_useropt=no ;;
851
852  -docdir | --docdir | --docdi | --doc | --do)
853    ac_prev=docdir ;;
854  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855    docdir=$ac_optarg ;;
856
857  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858    ac_prev=dvidir ;;
859  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860    dvidir=$ac_optarg ;;
861
862  -enable-* | --enable-*)
863    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864    # Reject names that are not valid shell variable names.
865    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866      as_fn_error $? "invalid feature name: $ac_useropt"
867    ac_useropt_orig=$ac_useropt
868    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869    case $ac_user_opts in
870      *"
871"enable_$ac_useropt"
872"*) ;;
873      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
874	 ac_unrecognized_sep=', ';;
875    esac
876    eval enable_$ac_useropt=\$ac_optarg ;;
877
878  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880  | --exec | --exe | --ex)
881    ac_prev=exec_prefix ;;
882  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884  | --exec=* | --exe=* | --ex=*)
885    exec_prefix=$ac_optarg ;;
886
887  -gas | --gas | --ga | --g)
888    # Obsolete; use --with-gas.
889    with_gas=yes ;;
890
891  -help | --help | --hel | --he | -h)
892    ac_init_help=long ;;
893  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894    ac_init_help=recursive ;;
895  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896    ac_init_help=short ;;
897
898  -host | --host | --hos | --ho)
899    ac_prev=host_alias ;;
900  -host=* | --host=* | --hos=* | --ho=*)
901    host_alias=$ac_optarg ;;
902
903  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904    ac_prev=htmldir ;;
905  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906  | --ht=*)
907    htmldir=$ac_optarg ;;
908
909  -includedir | --includedir | --includedi | --included | --include \
910  | --includ | --inclu | --incl | --inc)
911    ac_prev=includedir ;;
912  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913  | --includ=* | --inclu=* | --incl=* | --inc=*)
914    includedir=$ac_optarg ;;
915
916  -infodir | --infodir | --infodi | --infod | --info | --inf)
917    ac_prev=infodir ;;
918  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
919    infodir=$ac_optarg ;;
920
921  -libdir | --libdir | --libdi | --libd)
922    ac_prev=libdir ;;
923  -libdir=* | --libdir=* | --libdi=* | --libd=*)
924    libdir=$ac_optarg ;;
925
926  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927  | --libexe | --libex | --libe)
928    ac_prev=libexecdir ;;
929  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930  | --libexe=* | --libex=* | --libe=*)
931    libexecdir=$ac_optarg ;;
932
933  -localedir | --localedir | --localedi | --localed | --locale)
934    ac_prev=localedir ;;
935  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936    localedir=$ac_optarg ;;
937
938  -localstatedir | --localstatedir | --localstatedi | --localstated \
939  | --localstate | --localstat | --localsta | --localst | --locals)
940    ac_prev=localstatedir ;;
941  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
942  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
943    localstatedir=$ac_optarg ;;
944
945  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946    ac_prev=mandir ;;
947  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948    mandir=$ac_optarg ;;
949
950  -nfp | --nfp | --nf)
951    # Obsolete; use --without-fp.
952    with_fp=no ;;
953
954  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
955  | --no-cr | --no-c | -n)
956    no_create=yes ;;
957
958  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960    no_recursion=yes ;;
961
962  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964  | --oldin | --oldi | --old | --ol | --o)
965    ac_prev=oldincludedir ;;
966  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
969    oldincludedir=$ac_optarg ;;
970
971  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972    ac_prev=prefix ;;
973  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
974    prefix=$ac_optarg ;;
975
976  -program-prefix | --program-prefix | --program-prefi | --program-pref \
977  | --program-pre | --program-pr | --program-p)
978    ac_prev=program_prefix ;;
979  -program-prefix=* | --program-prefix=* | --program-prefi=* \
980  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
981    program_prefix=$ac_optarg ;;
982
983  -program-suffix | --program-suffix | --program-suffi | --program-suff \
984  | --program-suf | --program-su | --program-s)
985    ac_prev=program_suffix ;;
986  -program-suffix=* | --program-suffix=* | --program-suffi=* \
987  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
988    program_suffix=$ac_optarg ;;
989
990  -program-transform-name | --program-transform-name \
991  | --program-transform-nam | --program-transform-na \
992  | --program-transform-n | --program-transform- \
993  | --program-transform | --program-transfor \
994  | --program-transfo | --program-transf \
995  | --program-trans | --program-tran \
996  | --progr-tra | --program-tr | --program-t)
997    ac_prev=program_transform_name ;;
998  -program-transform-name=* | --program-transform-name=* \
999  | --program-transform-nam=* | --program-transform-na=* \
1000  | --program-transform-n=* | --program-transform-=* \
1001  | --program-transform=* | --program-transfor=* \
1002  | --program-transfo=* | --program-transf=* \
1003  | --program-trans=* | --program-tran=* \
1004  | --progr-tra=* | --program-tr=* | --program-t=*)
1005    program_transform_name=$ac_optarg ;;
1006
1007  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008    ac_prev=pdfdir ;;
1009  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010    pdfdir=$ac_optarg ;;
1011
1012  -psdir | --psdir | --psdi | --psd | --ps)
1013    ac_prev=psdir ;;
1014  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015    psdir=$ac_optarg ;;
1016
1017  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018  | -silent | --silent | --silen | --sile | --sil)
1019    silent=yes ;;
1020
1021  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022    ac_prev=sbindir ;;
1023  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024  | --sbi=* | --sb=*)
1025    sbindir=$ac_optarg ;;
1026
1027  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029  | --sharedst | --shareds | --shared | --share | --shar \
1030  | --sha | --sh)
1031    ac_prev=sharedstatedir ;;
1032  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035  | --sha=* | --sh=*)
1036    sharedstatedir=$ac_optarg ;;
1037
1038  -site | --site | --sit)
1039    ac_prev=site ;;
1040  -site=* | --site=* | --sit=*)
1041    site=$ac_optarg ;;
1042
1043  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044    ac_prev=srcdir ;;
1045  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1046    srcdir=$ac_optarg ;;
1047
1048  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049  | --syscon | --sysco | --sysc | --sys | --sy)
1050    ac_prev=sysconfdir ;;
1051  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1053    sysconfdir=$ac_optarg ;;
1054
1055  -target | --target | --targe | --targ | --tar | --ta | --t)
1056    ac_prev=target_alias ;;
1057  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1058    target_alias=$ac_optarg ;;
1059
1060  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061    verbose=yes ;;
1062
1063  -version | --version | --versio | --versi | --vers | -V)
1064    ac_init_version=: ;;
1065
1066  -with-* | --with-*)
1067    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068    # Reject names that are not valid shell variable names.
1069    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070      as_fn_error $? "invalid package name: $ac_useropt"
1071    ac_useropt_orig=$ac_useropt
1072    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073    case $ac_user_opts in
1074      *"
1075"with_$ac_useropt"
1076"*) ;;
1077      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1078	 ac_unrecognized_sep=', ';;
1079    esac
1080    eval with_$ac_useropt=\$ac_optarg ;;
1081
1082  -without-* | --without-*)
1083    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1084    # Reject names that are not valid shell variable names.
1085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086      as_fn_error $? "invalid package name: $ac_useropt"
1087    ac_useropt_orig=$ac_useropt
1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089    case $ac_user_opts in
1090      *"
1091"with_$ac_useropt"
1092"*) ;;
1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1094	 ac_unrecognized_sep=', ';;
1095    esac
1096    eval with_$ac_useropt=no ;;
1097
1098  --x)
1099    # Obsolete; use --with-x.
1100    with_x=yes ;;
1101
1102  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103  | --x-incl | --x-inc | --x-in | --x-i)
1104    ac_prev=x_includes ;;
1105  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1107    x_includes=$ac_optarg ;;
1108
1109  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111    ac_prev=x_libraries ;;
1112  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1114    x_libraries=$ac_optarg ;;
1115
1116  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1117Try \`$0 --help' for more information"
1118    ;;
1119
1120  *=*)
1121    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1122    # Reject names that are not valid shell variable names.
1123    case $ac_envvar in #(
1124      '' | [0-9]* | *[!_$as_cr_alnum]* )
1125      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1126    esac
1127    eval $ac_envvar=\$ac_optarg
1128    export $ac_envvar ;;
1129
1130  *)
1131    # FIXME: should be removed in autoconf 3.0.
1132    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1133    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1134      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1135    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1136    ;;
1137
1138  esac
1139done
1140
1141if test -n "$ac_prev"; then
1142  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1143  as_fn_error $? "missing argument to $ac_option"
1144fi
1145
1146if test -n "$ac_unrecognized_opts"; then
1147  case $enable_option_checking in
1148    no) ;;
1149    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1150    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1151  esac
1152fi
1153
1154# Check all directory arguments for consistency.
1155for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1156		datadir sysconfdir sharedstatedir localstatedir includedir \
1157		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1158		libdir localedir mandir
1159do
1160  eval ac_val=\$$ac_var
1161  # Remove trailing slashes.
1162  case $ac_val in
1163    */ )
1164      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1165      eval $ac_var=\$ac_val;;
1166  esac
1167  # Be sure to have absolute directory names.
1168  case $ac_val in
1169    [\\/$]* | ?:[\\/]* )  continue;;
1170    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1171  esac
1172  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1173done
1174
1175# There might be people who depend on the old broken behavior: `$host'
1176# used to hold the argument of --host etc.
1177# FIXME: To remove some day.
1178build=$build_alias
1179host=$host_alias
1180target=$target_alias
1181
1182# FIXME: To remove some day.
1183if test "x$host_alias" != x; then
1184  if test "x$build_alias" = x; then
1185    cross_compiling=maybe
1186  elif test "x$build_alias" != "x$host_alias"; then
1187    cross_compiling=yes
1188  fi
1189fi
1190
1191ac_tool_prefix=
1192test -n "$host_alias" && ac_tool_prefix=$host_alias-
1193
1194test "$silent" = yes && exec 6>/dev/null
1195
1196
1197ac_pwd=`pwd` && test -n "$ac_pwd" &&
1198ac_ls_di=`ls -di .` &&
1199ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1200  as_fn_error $? "working directory cannot be determined"
1201test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1202  as_fn_error $? "pwd does not report name of working directory"
1203
1204
1205# Find the source files, if location was not specified.
1206if test -z "$srcdir"; then
1207  ac_srcdir_defaulted=yes
1208  # Try the directory containing this script, then the parent directory.
1209  ac_confdir=`$as_dirname -- "$as_myself" ||
1210$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1211	 X"$as_myself" : 'X\(//\)[^/]' \| \
1212	 X"$as_myself" : 'X\(//\)$' \| \
1213	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1214$as_echo X"$as_myself" |
1215    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1216	    s//\1/
1217	    q
1218	  }
1219	  /^X\(\/\/\)[^/].*/{
1220	    s//\1/
1221	    q
1222	  }
1223	  /^X\(\/\/\)$/{
1224	    s//\1/
1225	    q
1226	  }
1227	  /^X\(\/\).*/{
1228	    s//\1/
1229	    q
1230	  }
1231	  s/.*/./; q'`
1232  srcdir=$ac_confdir
1233  if test ! -r "$srcdir/$ac_unique_file"; then
1234    srcdir=..
1235  fi
1236else
1237  ac_srcdir_defaulted=no
1238fi
1239if test ! -r "$srcdir/$ac_unique_file"; then
1240  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1241  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1242fi
1243ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1244ac_abs_confdir=`(
1245	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1246	pwd)`
1247# When building in place, set srcdir=.
1248if test "$ac_abs_confdir" = "$ac_pwd"; then
1249  srcdir=.
1250fi
1251# Remove unnecessary trailing slashes from srcdir.
1252# Double slashes in file names in object file debugging info
1253# mess up M-x gdb in Emacs.
1254case $srcdir in
1255*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1256esac
1257for ac_var in $ac_precious_vars; do
1258  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1259  eval ac_env_${ac_var}_value=\$${ac_var}
1260  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1261  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1262done
1263
1264#
1265# Report the --help message.
1266#
1267if test "$ac_init_help" = "long"; then
1268  # Omit some internal or obsolete options to make the list less imposing.
1269  # This message is too long to be a string in the A/UX 3.1 sh.
1270  cat <<_ACEOF
1271\`configure' configures Xar 1.7dev to adapt to many kinds of systems.
1272
1273Usage: $0 [OPTION]... [VAR=VALUE]...
1274
1275To assign environment variables (e.g., CC, CFLAGS...), specify them as
1276VAR=VALUE.  See below for descriptions of some of the useful variables.
1277
1278Defaults for the options are specified in brackets.
1279
1280Configuration:
1281  -h, --help              display this help and exit
1282      --help=short        display options specific to this package
1283      --help=recursive    display the short help of all the included packages
1284  -V, --version           display version information and exit
1285  -q, --quiet, --silent   do not print \`checking ...' messages
1286      --cache-file=FILE   cache test results in FILE [disabled]
1287  -C, --config-cache      alias for \`--cache-file=config.cache'
1288  -n, --no-create         do not create output files
1289      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1290
1291Installation directories:
1292  --prefix=PREFIX         install architecture-independent files in PREFIX
1293                          [$ac_default_prefix]
1294  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1295                          [PREFIX]
1296
1297By default, \`make install' will install all the files in
1298\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1299an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1300for instance \`--prefix=\$HOME'.
1301
1302For better control, use the options below.
1303
1304Fine tuning of the installation directories:
1305  --bindir=DIR            user executables [EPREFIX/bin]
1306  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1307  --libexecdir=DIR        program executables [EPREFIX/libexec]
1308  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1309  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1310  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1311  --libdir=DIR            object code libraries [EPREFIX/lib]
1312  --includedir=DIR        C header files [PREFIX/include]
1313  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1314  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1315  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1316  --infodir=DIR           info documentation [DATAROOTDIR/info]
1317  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1318  --mandir=DIR            man documentation [DATAROOTDIR/man]
1319  --docdir=DIR            documentation root [DATAROOTDIR/doc/xar]
1320  --htmldir=DIR           html documentation [DOCDIR]
1321  --dvidir=DIR            dvi documentation [DOCDIR]
1322  --pdfdir=DIR            pdf documentation [DOCDIR]
1323  --psdir=DIR             ps documentation [DOCDIR]
1324_ACEOF
1325
1326  cat <<\_ACEOF
1327
1328System types:
1329  --build=BUILD     configure for building on BUILD [guessed]
1330  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1331_ACEOF
1332fi
1333
1334if test -n "$ac_init_help"; then
1335  case $ac_init_help in
1336     short | recursive ) echo "Configuration of Xar 1.7dev:";;
1337   esac
1338  cat <<\_ACEOF
1339
1340Optional Features:
1341  --disable-option-checking  ignore unrecognized --enable/--with options
1342  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1343  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1344  --disable-largefile     omit support for large files
1345  --enable-shared         build shared libraries [default=yes]
1346  --enable-static         build static libraries [default=yes]
1347  --enable-autogen        Automatically regenerate configure output
1348
1349Optional Packages:
1350  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1351  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1352  --with-xml2-config      libxml2 config program
1353
1354Some influential environment variables:
1355  CC          C compiler command
1356  CFLAGS      C compiler flags
1357  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1358              nonstandard directory <lib dir>
1359  LIBS        libraries to pass to the linker, e.g. -l<library>
1360  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1361              you have headers in a nonstandard directory <include dir>
1362  CPP         C preprocessor
1363
1364Use these variables to override the choices made by `configure' or to help
1365it to find libraries and programs with nonstandard names/locations.
1366
1367Report bugs to <xar-devel@googlegroups.com>.
1368_ACEOF
1369ac_status=$?
1370fi
1371
1372if test "$ac_init_help" = "recursive"; then
1373  # If there are subdirs, report their specific --help.
1374  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1375    test -d "$ac_dir" ||
1376      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1377      continue
1378    ac_builddir=.
1379
1380case "$ac_dir" in
1381.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382*)
1383  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1384  # A ".." for each directory in $ac_dir_suffix.
1385  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1386  case $ac_top_builddir_sub in
1387  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1389  esac ;;
1390esac
1391ac_abs_top_builddir=$ac_pwd
1392ac_abs_builddir=$ac_pwd$ac_dir_suffix
1393# for backward compatibility:
1394ac_top_builddir=$ac_top_build_prefix
1395
1396case $srcdir in
1397  .)  # We are building in place.
1398    ac_srcdir=.
1399    ac_top_srcdir=$ac_top_builddir_sub
1400    ac_abs_top_srcdir=$ac_pwd ;;
1401  [\\/]* | ?:[\\/]* )  # Absolute name.
1402    ac_srcdir=$srcdir$ac_dir_suffix;
1403    ac_top_srcdir=$srcdir
1404    ac_abs_top_srcdir=$srcdir ;;
1405  *) # Relative name.
1406    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1407    ac_top_srcdir=$ac_top_build_prefix$srcdir
1408    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1409esac
1410ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1411
1412    cd "$ac_dir" || { ac_status=$?; continue; }
1413    # Check for guested configure.
1414    if test -f "$ac_srcdir/configure.gnu"; then
1415      echo &&
1416      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1417    elif test -f "$ac_srcdir/configure"; then
1418      echo &&
1419      $SHELL "$ac_srcdir/configure" --help=recursive
1420    else
1421      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1422    fi || ac_status=$?
1423    cd "$ac_pwd" || { ac_status=$?; break; }
1424  done
1425fi
1426
1427test -n "$ac_init_help" && exit $ac_status
1428if $ac_init_version; then
1429  cat <<\_ACEOF
1430Xar configure 1.7dev
1431generated by GNU Autoconf 2.69
1432
1433Copyright (C) 2012 Free Software Foundation, Inc.
1434This configure script is free software; the Free Software Foundation
1435gives unlimited permission to copy, distribute and modify it.
1436_ACEOF
1437  exit
1438fi
1439
1440## ------------------------ ##
1441## Autoconf initialization. ##
1442## ------------------------ ##
1443
1444# ac_fn_c_try_compile LINENO
1445# --------------------------
1446# Try to compile conftest.$ac_ext, and return whether this succeeded.
1447ac_fn_c_try_compile ()
1448{
1449  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1450  rm -f conftest.$ac_objext
1451  if { { ac_try="$ac_compile"
1452case "(($ac_try" in
1453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1454  *) ac_try_echo=$ac_try;;
1455esac
1456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1457$as_echo "$ac_try_echo"; } >&5
1458  (eval "$ac_compile") 2>conftest.err
1459  ac_status=$?
1460  if test -s conftest.err; then
1461    grep -v '^ *+' conftest.err >conftest.er1
1462    cat conftest.er1 >&5
1463    mv -f conftest.er1 conftest.err
1464  fi
1465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1466  test $ac_status = 0; } && {
1467	 test -z "$ac_c_werror_flag" ||
1468	 test ! -s conftest.err
1469       } && test -s conftest.$ac_objext; then :
1470  ac_retval=0
1471else
1472  $as_echo "$as_me: failed program was:" >&5
1473sed 's/^/| /' conftest.$ac_ext >&5
1474
1475	ac_retval=1
1476fi
1477  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1478  as_fn_set_status $ac_retval
1479
1480} # ac_fn_c_try_compile
1481
1482# ac_fn_c_try_cpp LINENO
1483# ----------------------
1484# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1485ac_fn_c_try_cpp ()
1486{
1487  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488  if { { ac_try="$ac_cpp conftest.$ac_ext"
1489case "(($ac_try" in
1490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491  *) ac_try_echo=$ac_try;;
1492esac
1493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494$as_echo "$ac_try_echo"; } >&5
1495  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1496  ac_status=$?
1497  if test -s conftest.err; then
1498    grep -v '^ *+' conftest.err >conftest.er1
1499    cat conftest.er1 >&5
1500    mv -f conftest.er1 conftest.err
1501  fi
1502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503  test $ac_status = 0; } > conftest.i && {
1504	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1505	 test ! -s conftest.err
1506       }; then :
1507  ac_retval=0
1508else
1509  $as_echo "$as_me: failed program was:" >&5
1510sed 's/^/| /' conftest.$ac_ext >&5
1511
1512    ac_retval=1
1513fi
1514  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1515  as_fn_set_status $ac_retval
1516
1517} # ac_fn_c_try_cpp
1518
1519# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1520# -------------------------------------------------------
1521# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1522# the include files in INCLUDES and setting the cache variable VAR
1523# accordingly.
1524ac_fn_c_check_header_mongrel ()
1525{
1526  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527  if eval \${$3+:} false; then :
1528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1529$as_echo_n "checking for $2... " >&6; }
1530if eval \${$3+:} false; then :
1531  $as_echo_n "(cached) " >&6
1532fi
1533eval ac_res=\$$3
1534	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1535$as_echo "$ac_res" >&6; }
1536else
1537  # Is the header compilable?
1538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1539$as_echo_n "checking $2 usability... " >&6; }
1540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1541/* end confdefs.h.  */
1542$4
1543#include <$2>
1544_ACEOF
1545if ac_fn_c_try_compile "$LINENO"; then :
1546  ac_header_compiler=yes
1547else
1548  ac_header_compiler=no
1549fi
1550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1552$as_echo "$ac_header_compiler" >&6; }
1553
1554# Is the header present?
1555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1556$as_echo_n "checking $2 presence... " >&6; }
1557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1558/* end confdefs.h.  */
1559#include <$2>
1560_ACEOF
1561if ac_fn_c_try_cpp "$LINENO"; then :
1562  ac_header_preproc=yes
1563else
1564  ac_header_preproc=no
1565fi
1566rm -f conftest.err conftest.i conftest.$ac_ext
1567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1568$as_echo "$ac_header_preproc" >&6; }
1569
1570# So?  What about this header?
1571case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1572  yes:no: )
1573    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1574$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1575    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1576$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1577    ;;
1578  no:yes:* )
1579    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1580$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1581    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1582$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1583    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1584$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1585    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1586$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1587    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1588$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1589( $as_echo "## ----------------------------------------- ##
1590## Report this to xar-devel@googlegroups.com ##
1591## ----------------------------------------- ##"
1592     ) | sed "s/^/$as_me: WARNING:     /" >&2
1593    ;;
1594esac
1595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596$as_echo_n "checking for $2... " >&6; }
1597if eval \${$3+:} false; then :
1598  $as_echo_n "(cached) " >&6
1599else
1600  eval "$3=\$ac_header_compiler"
1601fi
1602eval ac_res=\$$3
1603	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604$as_echo "$ac_res" >&6; }
1605fi
1606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607
1608} # ac_fn_c_check_header_mongrel
1609
1610# ac_fn_c_try_run LINENO
1611# ----------------------
1612# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1613# that executables *can* be run.
1614ac_fn_c_try_run ()
1615{
1616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617  if { { ac_try="$ac_link"
1618case "(($ac_try" in
1619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620  *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624  (eval "$ac_link") 2>&5
1625  ac_status=$?
1626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1628  { { case "(($ac_try" in
1629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630  *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633$as_echo "$ac_try_echo"; } >&5
1634  (eval "$ac_try") 2>&5
1635  ac_status=$?
1636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637  test $ac_status = 0; }; }; then :
1638  ac_retval=0
1639else
1640  $as_echo "$as_me: program exited with status $ac_status" >&5
1641       $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644       ac_retval=$ac_status
1645fi
1646  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648  as_fn_set_status $ac_retval
1649
1650} # ac_fn_c_try_run
1651
1652# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653# -------------------------------------------------------
1654# Tests whether HEADER exists and can be compiled using the include files in
1655# INCLUDES, setting the cache variable VAR accordingly.
1656ac_fn_c_check_header_compile ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660$as_echo_n "checking for $2... " >&6; }
1661if eval \${$3+:} false; then :
1662  $as_echo_n "(cached) " >&6
1663else
1664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665/* end confdefs.h.  */
1666$4
1667#include <$2>
1668_ACEOF
1669if ac_fn_c_try_compile "$LINENO"; then :
1670  eval "$3=yes"
1671else
1672  eval "$3=no"
1673fi
1674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1675fi
1676eval ac_res=\$$3
1677	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678$as_echo "$ac_res" >&6; }
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681} # ac_fn_c_check_header_compile
1682
1683# ac_fn_c_try_link LINENO
1684# -----------------------
1685# Try to link conftest.$ac_ext, and return whether this succeeded.
1686ac_fn_c_try_link ()
1687{
1688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689  rm -f conftest.$ac_objext conftest$ac_exeext
1690  if { { ac_try="$ac_link"
1691case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697  (eval "$ac_link") 2>conftest.err
1698  ac_status=$?
1699  if test -s conftest.err; then
1700    grep -v '^ *+' conftest.err >conftest.er1
1701    cat conftest.er1 >&5
1702    mv -f conftest.er1 conftest.err
1703  fi
1704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705  test $ac_status = 0; } && {
1706	 test -z "$ac_c_werror_flag" ||
1707	 test ! -s conftest.err
1708       } && test -s conftest$ac_exeext && {
1709	 test "$cross_compiling" = yes ||
1710	 test -x conftest$ac_exeext
1711       }; then :
1712  ac_retval=0
1713else
1714  $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717	ac_retval=1
1718fi
1719  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721  # interfere with the next link command; also delete a directory that is
1722  # left behind by Apple's compiler.  We do this before executing the actions.
1723  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725  as_fn_set_status $ac_retval
1726
1727} # ac_fn_c_try_link
1728
1729# ac_fn_c_check_func LINENO FUNC VAR
1730# ----------------------------------
1731# Tests whether FUNC exists, setting the cache variable VAR accordingly
1732ac_fn_c_check_func ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736$as_echo_n "checking for $2... " >&6; }
1737if eval \${$3+:} false; then :
1738  $as_echo_n "(cached) " >&6
1739else
1740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h.  */
1742/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1743   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1744#define $2 innocuous_$2
1745
1746/* System header to define __stub macros and hopefully few prototypes,
1747    which can conflict with char $2 (); below.
1748    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1749    <limits.h> exists even on freestanding compilers.  */
1750
1751#ifdef __STDC__
1752# include <limits.h>
1753#else
1754# include <assert.h>
1755#endif
1756
1757#undef $2
1758
1759/* Override any GCC internal prototype to avoid an error.
1760   Use char because int might match the return type of a GCC
1761   builtin and then its argument prototype would still apply.  */
1762#ifdef __cplusplus
1763extern "C"
1764#endif
1765char $2 ();
1766/* The GNU C library defines this for functions which it implements
1767    to always fail with ENOSYS.  Some functions are actually named
1768    something starting with __ and the normal name is an alias.  */
1769#if defined __stub_$2 || defined __stub___$2
1770choke me
1771#endif
1772
1773int
1774main ()
1775{
1776return $2 ();
1777  ;
1778  return 0;
1779}
1780_ACEOF
1781if ac_fn_c_try_link "$LINENO"; then :
1782  eval "$3=yes"
1783else
1784  eval "$3=no"
1785fi
1786rm -f core conftest.err conftest.$ac_objext \
1787    conftest$ac_exeext conftest.$ac_ext
1788fi
1789eval ac_res=\$$3
1790	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791$as_echo "$ac_res" >&6; }
1792  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794} # ac_fn_c_check_func
1795
1796# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1797# ----------------------------------------------------
1798# Tries to find if the field MEMBER exists in type AGGR, after including
1799# INCLUDES, setting cache variable VAR accordingly.
1800ac_fn_c_check_member ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1804$as_echo_n "checking for $2.$3... " >&6; }
1805if eval \${$4+:} false; then :
1806  $as_echo_n "(cached) " >&6
1807else
1808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h.  */
1810$5
1811int
1812main ()
1813{
1814static $2 ac_aggr;
1815if (ac_aggr.$3)
1816return 0;
1817  ;
1818  return 0;
1819}
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822  eval "$4=yes"
1823else
1824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826$5
1827int
1828main ()
1829{
1830static $2 ac_aggr;
1831if (sizeof ac_aggr.$3)
1832return 0;
1833  ;
1834  return 0;
1835}
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"; then :
1838  eval "$4=yes"
1839else
1840  eval "$4=no"
1841fi
1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843fi
1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845fi
1846eval ac_res=\$$4
1847	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851} # ac_fn_c_check_member
1852
1853# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1854# --------------------------------------------
1855# Tries to find the compile-time value of EXPR in a program that includes
1856# INCLUDES, setting VAR accordingly. Returns whether the value could be
1857# computed
1858ac_fn_c_compute_int ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  if test "$cross_compiling" = yes; then
1862    # Depending upon the size, compute the lo and hi bounds.
1863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h.  */
1865$4
1866int
1867main ()
1868{
1869static int test_array [1 - 2 * !(($2) >= 0)];
1870test_array [0] = 0;
1871return test_array [0];
1872
1873  ;
1874  return 0;
1875}
1876_ACEOF
1877if ac_fn_c_try_compile "$LINENO"; then :
1878  ac_lo=0 ac_mid=0
1879  while :; do
1880    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h.  */
1882$4
1883int
1884main ()
1885{
1886static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1887test_array [0] = 0;
1888return test_array [0];
1889
1890  ;
1891  return 0;
1892}
1893_ACEOF
1894if ac_fn_c_try_compile "$LINENO"; then :
1895  ac_hi=$ac_mid; break
1896else
1897  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1898			if test $ac_lo -le $ac_mid; then
1899			  ac_lo= ac_hi=
1900			  break
1901			fi
1902			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1903fi
1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905  done
1906else
1907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h.  */
1909$4
1910int
1911main ()
1912{
1913static int test_array [1 - 2 * !(($2) < 0)];
1914test_array [0] = 0;
1915return test_array [0];
1916
1917  ;
1918  return 0;
1919}
1920_ACEOF
1921if ac_fn_c_try_compile "$LINENO"; then :
1922  ac_hi=-1 ac_mid=-1
1923  while :; do
1924    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925/* end confdefs.h.  */
1926$4
1927int
1928main ()
1929{
1930static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1931test_array [0] = 0;
1932return test_array [0];
1933
1934  ;
1935  return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939  ac_lo=$ac_mid; break
1940else
1941  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1942			if test $ac_mid -le $ac_hi; then
1943			  ac_lo= ac_hi=
1944			  break
1945			fi
1946			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1947fi
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949  done
1950else
1951  ac_lo= ac_hi=
1952fi
1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954fi
1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956# Binary search between lo and hi bounds.
1957while test "x$ac_lo" != "x$ac_hi"; do
1958  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h.  */
1961$4
1962int
1963main ()
1964{
1965static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1966test_array [0] = 0;
1967return test_array [0];
1968
1969  ;
1970  return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974  ac_hi=$ac_mid
1975else
1976  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979done
1980case $ac_lo in #((
1981?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1982'') ac_retval=1 ;;
1983esac
1984  else
1985    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h.  */
1987$4
1988static long int longval () { return $2; }
1989static unsigned long int ulongval () { return $2; }
1990#include <stdio.h>
1991#include <stdlib.h>
1992int
1993main ()
1994{
1995
1996  FILE *f = fopen ("conftest.val", "w");
1997  if (! f)
1998    return 1;
1999  if (($2) < 0)
2000    {
2001      long int i = longval ();
2002      if (i != ($2))
2003	return 1;
2004      fprintf (f, "%ld", i);
2005    }
2006  else
2007    {
2008      unsigned long int i = ulongval ();
2009      if (i != ($2))
2010	return 1;
2011      fprintf (f, "%lu", i);
2012    }
2013  /* Do not output a trailing newline, as this causes \r\n confusion
2014     on some platforms.  */
2015  return ferror (f) || fclose (f) != 0;
2016
2017  ;
2018  return 0;
2019}
2020_ACEOF
2021if ac_fn_c_try_run "$LINENO"; then :
2022  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2023else
2024  ac_retval=1
2025fi
2026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2027  conftest.$ac_objext conftest.beam conftest.$ac_ext
2028rm -f conftest.val
2029
2030  fi
2031  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032  as_fn_set_status $ac_retval
2033
2034} # ac_fn_c_compute_int
2035cat >config.log <<_ACEOF
2036This file contains any messages produced by compilers while
2037running configure, to aid debugging if configure makes a mistake.
2038
2039It was created by Xar $as_me 1.7dev, which was
2040generated by GNU Autoconf 2.69.  Invocation command line was
2041
2042  $ $0 $@
2043
2044_ACEOF
2045exec 5>>config.log
2046{
2047cat <<_ASUNAME
2048## --------- ##
2049## Platform. ##
2050## --------- ##
2051
2052hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2053uname -m = `(uname -m) 2>/dev/null || echo unknown`
2054uname -r = `(uname -r) 2>/dev/null || echo unknown`
2055uname -s = `(uname -s) 2>/dev/null || echo unknown`
2056uname -v = `(uname -v) 2>/dev/null || echo unknown`
2057
2058/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2059/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2060
2061/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2062/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2063/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2064/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2065/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2066/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2067/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2068
2069_ASUNAME
2070
2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072for as_dir in $PATH
2073do
2074  IFS=$as_save_IFS
2075  test -z "$as_dir" && as_dir=.
2076    $as_echo "PATH: $as_dir"
2077  done
2078IFS=$as_save_IFS
2079
2080} >&5
2081
2082cat >&5 <<_ACEOF
2083
2084
2085## ----------- ##
2086## Core tests. ##
2087## ----------- ##
2088
2089_ACEOF
2090
2091
2092# Keep a trace of the command line.
2093# Strip out --no-create and --no-recursion so they do not pile up.
2094# Strip out --silent because we don't want to record it for future runs.
2095# Also quote any args containing shell meta-characters.
2096# Make two passes to allow for proper duplicate-argument suppression.
2097ac_configure_args=
2098ac_configure_args0=
2099ac_configure_args1=
2100ac_must_keep_next=false
2101for ac_pass in 1 2
2102do
2103  for ac_arg
2104  do
2105    case $ac_arg in
2106    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2107    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2108    | -silent | --silent | --silen | --sile | --sil)
2109      continue ;;
2110    *\'*)
2111      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2112    esac
2113    case $ac_pass in
2114    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2115    2)
2116      as_fn_append ac_configure_args1 " '$ac_arg'"
2117      if test $ac_must_keep_next = true; then
2118	ac_must_keep_next=false # Got value, back to normal.
2119      else
2120	case $ac_arg in
2121	  *=* | --config-cache | -C | -disable-* | --disable-* \
2122	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2123	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2124	  | -with-* | --with-* | -without-* | --without-* | --x)
2125	    case "$ac_configure_args0 " in
2126	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2127	    esac
2128	    ;;
2129	  -* ) ac_must_keep_next=true ;;
2130	esac
2131      fi
2132      as_fn_append ac_configure_args " '$ac_arg'"
2133      ;;
2134    esac
2135  done
2136done
2137{ ac_configure_args0=; unset ac_configure_args0;}
2138{ ac_configure_args1=; unset ac_configure_args1;}
2139
2140# When interrupted or exit'd, cleanup temporary files, and complete
2141# config.log.  We remove comments because anyway the quotes in there
2142# would cause problems or look ugly.
2143# WARNING: Use '\'' to represent an apostrophe within the trap.
2144# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2145trap 'exit_status=$?
2146  # Save into config.log some information that might help in debugging.
2147  {
2148    echo
2149
2150    $as_echo "## ---------------- ##
2151## Cache variables. ##
2152## ---------------- ##"
2153    echo
2154    # The following way of writing the cache mishandles newlines in values,
2155(
2156  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2157    eval ac_val=\$$ac_var
2158    case $ac_val in #(
2159    *${as_nl}*)
2160      case $ac_var in #(
2161      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2162$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2163      esac
2164      case $ac_var in #(
2165      _ | IFS | as_nl) ;; #(
2166      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2167      *) { eval $ac_var=; unset $ac_var;} ;;
2168      esac ;;
2169    esac
2170  done
2171  (set) 2>&1 |
2172    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2173    *${as_nl}ac_space=\ *)
2174      sed -n \
2175	"s/'\''/'\''\\\\'\'''\''/g;
2176	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2177      ;; #(
2178    *)
2179      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2180      ;;
2181    esac |
2182    sort
2183)
2184    echo
2185
2186    $as_echo "## ----------------- ##
2187## Output variables. ##
2188## ----------------- ##"
2189    echo
2190    for ac_var in $ac_subst_vars
2191    do
2192      eval ac_val=\$$ac_var
2193      case $ac_val in
2194      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195      esac
2196      $as_echo "$ac_var='\''$ac_val'\''"
2197    done | sort
2198    echo
2199
2200    if test -n "$ac_subst_files"; then
2201      $as_echo "## ------------------- ##
2202## File substitutions. ##
2203## ------------------- ##"
2204      echo
2205      for ac_var in $ac_subst_files
2206      do
2207	eval ac_val=\$$ac_var
2208	case $ac_val in
2209	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210	esac
2211	$as_echo "$ac_var='\''$ac_val'\''"
2212      done | sort
2213      echo
2214    fi
2215
2216    if test -s confdefs.h; then
2217      $as_echo "## ----------- ##
2218## confdefs.h. ##
2219## ----------- ##"
2220      echo
2221      cat confdefs.h
2222      echo
2223    fi
2224    test "$ac_signal" != 0 &&
2225      $as_echo "$as_me: caught signal $ac_signal"
2226    $as_echo "$as_me: exit $exit_status"
2227  } >&5
2228  rm -f core *.core core.conftest.* &&
2229    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2230    exit $exit_status
2231' 0
2232for ac_signal in 1 2 13 15; do
2233  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2234done
2235ac_signal=0
2236
2237# confdefs.h avoids OS command line length limits that DEFS can exceed.
2238rm -f -r conftest* confdefs.h
2239
2240$as_echo "/* confdefs.h */" > confdefs.h
2241
2242# Predefined preprocessor variables.
2243
2244cat >>confdefs.h <<_ACEOF
2245#define PACKAGE_NAME "$PACKAGE_NAME"
2246_ACEOF
2247
2248cat >>confdefs.h <<_ACEOF
2249#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2250_ACEOF
2251
2252cat >>confdefs.h <<_ACEOF
2253#define PACKAGE_VERSION "$PACKAGE_VERSION"
2254_ACEOF
2255
2256cat >>confdefs.h <<_ACEOF
2257#define PACKAGE_STRING "$PACKAGE_STRING"
2258_ACEOF
2259
2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2262_ACEOF
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_URL "$PACKAGE_URL"
2266_ACEOF
2267
2268
2269# Let the site file select an alternate cache file if it wants to.
2270# Prefer an explicitly selected file to automatically selected ones.
2271ac_site_file1=NONE
2272ac_site_file2=NONE
2273if test -n "$CONFIG_SITE"; then
2274  # We do not want a PATH search for config.site.
2275  case $CONFIG_SITE in #((
2276    -*)  ac_site_file1=./$CONFIG_SITE;;
2277    */*) ac_site_file1=$CONFIG_SITE;;
2278    *)   ac_site_file1=./$CONFIG_SITE;;
2279  esac
2280elif test "x$prefix" != xNONE; then
2281  ac_site_file1=$prefix/share/config.site
2282  ac_site_file2=$prefix/etc/config.site
2283else
2284  ac_site_file1=$ac_default_prefix/share/config.site
2285  ac_site_file2=$ac_default_prefix/etc/config.site
2286fi
2287for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2288do
2289  test "x$ac_site_file" = xNONE && continue
2290  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2291    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2292$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2293    sed 's/^/| /' "$ac_site_file" >&5
2294    . "$ac_site_file" \
2295      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297as_fn_error $? "failed to load site script $ac_site_file
2298See \`config.log' for more details" "$LINENO" 5; }
2299  fi
2300done
2301
2302if test -r "$cache_file"; then
2303  # Some versions of bash will fail to source /dev/null (special files
2304  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2305  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2306    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2307$as_echo "$as_me: loading cache $cache_file" >&6;}
2308    case $cache_file in
2309      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2310      *)                      . "./$cache_file";;
2311    esac
2312  fi
2313else
2314  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2315$as_echo "$as_me: creating cache $cache_file" >&6;}
2316  >$cache_file
2317fi
2318
2319# Check that the precious variables saved in the cache have kept the same
2320# value.
2321ac_cache_corrupted=false
2322for ac_var in $ac_precious_vars; do
2323  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2324  eval ac_new_set=\$ac_env_${ac_var}_set
2325  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2326  eval ac_new_val=\$ac_env_${ac_var}_value
2327  case $ac_old_set,$ac_new_set in
2328    set,)
2329      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2330$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2331      ac_cache_corrupted=: ;;
2332    ,set)
2333      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2334$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2335      ac_cache_corrupted=: ;;
2336    ,);;
2337    *)
2338      if test "x$ac_old_val" != "x$ac_new_val"; then
2339	# differences in whitespace do not lead to failure.
2340	ac_old_val_w=`echo x $ac_old_val`
2341	ac_new_val_w=`echo x $ac_new_val`
2342	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2343	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2344$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2345	  ac_cache_corrupted=:
2346	else
2347	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2348$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2349	  eval $ac_var=\$ac_old_val
2350	fi
2351	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2352$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2353	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2354$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2355      fi;;
2356  esac
2357  # Pass precious variables to config.status.
2358  if test "$ac_new_set" = set; then
2359    case $ac_new_val in
2360    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2361    *) ac_arg=$ac_var=$ac_new_val ;;
2362    esac
2363    case " $ac_configure_args " in
2364      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2365      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2366    esac
2367  fi
2368done
2369if $ac_cache_corrupted; then
2370  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2373$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2374  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2375fi
2376## -------------------- ##
2377## Main body of script. ##
2378## -------------------- ##
2379
2380ac_ext=c
2381ac_cpp='$CPP $CPPFLAGS'
2382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385
2386
2387
2388
2389LIB_REV=1
2390
2391
2392XAR_MAJOR_VERSION="1"
2393XAR_MINOR_VERSION="7dev"
2394XAR_VERSION="${XAR_MAJOR_VERSION}.${XAR_MINOR_VERSION}"
2395
2396
2397
2398
2399srcroot=$srcdir
2400if test "x${srcroot}" = "x." ; then
2401  srcroot=""
2402else
2403  srcroot="${srcroot}/"
2404fi
2405
2406abs_srcroot="`cd "$srcdir"; pwd`/"
2407
2408
2409objroot=""
2410
2411abs_objroot="`pwd`/"
2412
2413
2414if test "x$prefix" = "xNONE" ; then
2415  prefix="/usr/local"
2416fi
2417if test "x$exec_prefix" = "xNONE" ; then
2418  exec_prefix=$prefix
2419fi
2420PREFIX=$prefix
2421
2422BINDIR=`eval echo $bindir`
2423BINDIR=`eval echo $BINDIR`
2424
2425DATADIR=`eval echo $datadir`
2426DATADIR=`eval echo $DATADIR`
2427
2428LIBDIR=`eval echo $libdir`
2429LIBDIR=`eval echo $LIBDIR`
2430
2431INCLUDEDIR=`eval echo $includedir`
2432INCLUDEDIR=`eval echo $INCLUDEDIR`
2433
2434MANDIR=`eval echo $mandir`
2435MANDIR=`eval echo $MANDIR`
2436
2437
2438cfgoutputs="cfgoutputs.stamp"
2439cfgoutputs="${cfgoutputs} Makefile"
2440cfgoutputs="${cfgoutputs} include/xar.h"
2441cfgoutputs="${cfgoutputs} lib/Makefile.inc"
2442cfgoutputs="${cfgoutputs} lib/libxar.la.in"
2443cfgoutputs="${cfgoutputs} src/Makefile.inc"
2444cfgoutputs="${cfgoutputs} xar.spec"
2445
2446cfghdrs="${objroot}cfghdrs.stamp"
2447cfghdrs="${cfghdrs} ${objroot}include/config.h"
2448
2449CFLAGS=$CFLAGS
2450ac_ext=c
2451ac_cpp='$CPP $CPPFLAGS'
2452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455if test -n "$ac_tool_prefix"; then
2456  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2457set dummy ${ac_tool_prefix}gcc; ac_word=$2
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459$as_echo_n "checking for $ac_word... " >&6; }
2460if ${ac_cv_prog_CC+:} false; then :
2461  $as_echo_n "(cached) " >&6
2462else
2463  if test -n "$CC"; then
2464  ac_cv_prog_CC="$CC" # Let the user override the test.
2465else
2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469  IFS=$as_save_IFS
2470  test -z "$as_dir" && as_dir=.
2471    for ac_exec_ext in '' $ac_executable_extensions; do
2472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475    break 2
2476  fi
2477done
2478  done
2479IFS=$as_save_IFS
2480
2481fi
2482fi
2483CC=$ac_cv_prog_CC
2484if test -n "$CC"; then
2485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2486$as_echo "$CC" >&6; }
2487else
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489$as_echo "no" >&6; }
2490fi
2491
2492
2493fi
2494if test -z "$ac_cv_prog_CC"; then
2495  ac_ct_CC=$CC
2496  # Extract the first word of "gcc", so it can be a program name with args.
2497set dummy gcc; ac_word=$2
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499$as_echo_n "checking for $ac_word... " >&6; }
2500if ${ac_cv_prog_ac_ct_CC+:} false; then :
2501  $as_echo_n "(cached) " >&6
2502else
2503  if test -n "$ac_ct_CC"; then
2504  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2505else
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509  IFS=$as_save_IFS
2510  test -z "$as_dir" && as_dir=.
2511    for ac_exec_ext in '' $ac_executable_extensions; do
2512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513    ac_cv_prog_ac_ct_CC="gcc"
2514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515    break 2
2516  fi
2517done
2518  done
2519IFS=$as_save_IFS
2520
2521fi
2522fi
2523ac_ct_CC=$ac_cv_prog_ac_ct_CC
2524if test -n "$ac_ct_CC"; then
2525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2526$as_echo "$ac_ct_CC" >&6; }
2527else
2528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529$as_echo "no" >&6; }
2530fi
2531
2532  if test "x$ac_ct_CC" = x; then
2533    CC=""
2534  else
2535    case $cross_compiling:$ac_tool_warned in
2536yes:)
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539ac_tool_warned=yes ;;
2540esac
2541    CC=$ac_ct_CC
2542  fi
2543else
2544  CC="$ac_cv_prog_CC"
2545fi
2546
2547if test -z "$CC"; then
2548          if test -n "$ac_tool_prefix"; then
2549    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2550set dummy ${ac_tool_prefix}cc; ac_word=$2
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552$as_echo_n "checking for $ac_word... " >&6; }
2553if ${ac_cv_prog_CC+:} false; then :
2554  $as_echo_n "(cached) " >&6
2555else
2556  if test -n "$CC"; then
2557  ac_cv_prog_CC="$CC" # Let the user override the test.
2558else
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562  IFS=$as_save_IFS
2563  test -z "$as_dir" && as_dir=.
2564    for ac_exec_ext in '' $ac_executable_extensions; do
2565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566    ac_cv_prog_CC="${ac_tool_prefix}cc"
2567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568    break 2
2569  fi
2570done
2571  done
2572IFS=$as_save_IFS
2573
2574fi
2575fi
2576CC=$ac_cv_prog_CC
2577if test -n "$CC"; then
2578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2579$as_echo "$CC" >&6; }
2580else
2581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582$as_echo "no" >&6; }
2583fi
2584
2585
2586  fi
2587fi
2588if test -z "$CC"; then
2589  # Extract the first word of "cc", so it can be a program name with args.
2590set dummy cc; ac_word=$2
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592$as_echo_n "checking for $ac_word... " >&6; }
2593if ${ac_cv_prog_CC+:} false; then :
2594  $as_echo_n "(cached) " >&6
2595else
2596  if test -n "$CC"; then
2597  ac_cv_prog_CC="$CC" # Let the user override the test.
2598else
2599  ac_prog_rejected=no
2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601for as_dir in $PATH
2602do
2603  IFS=$as_save_IFS
2604  test -z "$as_dir" && as_dir=.
2605    for ac_exec_ext in '' $ac_executable_extensions; do
2606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2607    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2608       ac_prog_rejected=yes
2609       continue
2610     fi
2611    ac_cv_prog_CC="cc"
2612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616  done
2617IFS=$as_save_IFS
2618
2619if test $ac_prog_rejected = yes; then
2620  # We found a bogon in the path, so make sure we never use it.
2621  set dummy $ac_cv_prog_CC
2622  shift
2623  if test $# != 0; then
2624    # We chose a different compiler from the bogus one.
2625    # However, it has the same basename, so the bogon will be chosen
2626    # first if we set CC to just the basename; use the full file name.
2627    shift
2628    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2629  fi
2630fi
2631fi
2632fi
2633CC=$ac_cv_prog_CC
2634if test -n "$CC"; then
2635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2636$as_echo "$CC" >&6; }
2637else
2638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639$as_echo "no" >&6; }
2640fi
2641
2642
2643fi
2644if test -z "$CC"; then
2645  if test -n "$ac_tool_prefix"; then
2646  for ac_prog in cl.exe
2647  do
2648    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2649set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651$as_echo_n "checking for $ac_word... " >&6; }
2652if ${ac_cv_prog_CC+:} false; then :
2653  $as_echo_n "(cached) " >&6
2654else
2655  if test -n "$CC"; then
2656  ac_cv_prog_CC="$CC" # Let the user override the test.
2657else
2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661  IFS=$as_save_IFS
2662  test -z "$as_dir" && as_dir=.
2663    for ac_exec_ext in '' $ac_executable_extensions; do
2664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667    break 2
2668  fi
2669done
2670  done
2671IFS=$as_save_IFS
2672
2673fi
2674fi
2675CC=$ac_cv_prog_CC
2676if test -n "$CC"; then
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2678$as_echo "$CC" >&6; }
2679else
2680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681$as_echo "no" >&6; }
2682fi
2683
2684
2685    test -n "$CC" && break
2686  done
2687fi
2688if test -z "$CC"; then
2689  ac_ct_CC=$CC
2690  for ac_prog in cl.exe
2691do
2692  # Extract the first word of "$ac_prog", so it can be a program name with args.
2693set dummy $ac_prog; ac_word=$2
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695$as_echo_n "checking for $ac_word... " >&6; }
2696if ${ac_cv_prog_ac_ct_CC+:} false; then :
2697  $as_echo_n "(cached) " >&6
2698else
2699  if test -n "$ac_ct_CC"; then
2700  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705  IFS=$as_save_IFS
2706  test -z "$as_dir" && as_dir=.
2707    for ac_exec_ext in '' $ac_executable_extensions; do
2708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709    ac_cv_prog_ac_ct_CC="$ac_prog"
2710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711    break 2
2712  fi
2713done
2714  done
2715IFS=$as_save_IFS
2716
2717fi
2718fi
2719ac_ct_CC=$ac_cv_prog_ac_ct_CC
2720if test -n "$ac_ct_CC"; then
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2722$as_echo "$ac_ct_CC" >&6; }
2723else
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725$as_echo "no" >&6; }
2726fi
2727
2728
2729  test -n "$ac_ct_CC" && break
2730done
2731
2732  if test "x$ac_ct_CC" = x; then
2733    CC=""
2734  else
2735    case $cross_compiling:$ac_tool_warned in
2736yes:)
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2739ac_tool_warned=yes ;;
2740esac
2741    CC=$ac_ct_CC
2742  fi
2743fi
2744
2745fi
2746
2747
2748test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2750as_fn_error $? "no acceptable C compiler found in \$PATH
2751See \`config.log' for more details" "$LINENO" 5; }
2752
2753# Provide some information about the compiler.
2754$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2755set X $ac_compile
2756ac_compiler=$2
2757for ac_option in --version -v -V -qversion; do
2758  { { ac_try="$ac_compiler $ac_option >&5"
2759case "(($ac_try" in
2760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761  *) ac_try_echo=$ac_try;;
2762esac
2763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2764$as_echo "$ac_try_echo"; } >&5
2765  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2766  ac_status=$?
2767  if test -s conftest.err; then
2768    sed '10a\
2769... rest of stderr output deleted ...
2770         10q' conftest.err >conftest.er1
2771    cat conftest.er1 >&5
2772  fi
2773  rm -f conftest.er1 conftest.err
2774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2775  test $ac_status = 0; }
2776done
2777
2778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779/* end confdefs.h.  */
2780
2781int
2782main ()
2783{
2784
2785  ;
2786  return 0;
2787}
2788_ACEOF
2789ac_clean_files_save=$ac_clean_files
2790ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2791# Try to create an executable without -o first, disregard a.out.
2792# It will help us diagnose broken compilers, and finding out an intuition
2793# of exeext.
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2795$as_echo_n "checking whether the C compiler works... " >&6; }
2796ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2797
2798# The possible output files:
2799ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2800
2801ac_rmfiles=
2802for ac_file in $ac_files
2803do
2804  case $ac_file in
2805    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2806    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2807  esac
2808done
2809rm -f $ac_rmfiles
2810
2811if { { ac_try="$ac_link_default"
2812case "(($ac_try" in
2813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814  *) ac_try_echo=$ac_try;;
2815esac
2816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2817$as_echo "$ac_try_echo"; } >&5
2818  (eval "$ac_link_default") 2>&5
2819  ac_status=$?
2820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821  test $ac_status = 0; }; then :
2822  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2823# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2824# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2825# so that the user can short-circuit this test for compilers unknown to
2826# Autoconf.
2827for ac_file in $ac_files ''
2828do
2829  test -f "$ac_file" || continue
2830  case $ac_file in
2831    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2832	;;
2833    [ab].out )
2834	# We found the default executable, but exeext='' is most
2835	# certainly right.
2836	break;;
2837    *.* )
2838	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2839	then :; else
2840	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2841	fi
2842	# We set ac_cv_exeext here because the later test for it is not
2843	# safe: cross compilers may not add the suffix if given an `-o'
2844	# argument, so we may need to know it at that point already.
2845	# Even if this section looks crufty: it has the advantage of
2846	# actually working.
2847	break;;
2848    * )
2849	break;;
2850  esac
2851done
2852test "$ac_cv_exeext" = no && ac_cv_exeext=
2853
2854else
2855  ac_file=''
2856fi
2857if test -z "$ac_file"; then :
2858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859$as_echo "no" >&6; }
2860$as_echo "$as_me: failed program was:" >&5
2861sed 's/^/| /' conftest.$ac_ext >&5
2862
2863{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865as_fn_error 77 "C compiler cannot create executables
2866See \`config.log' for more details" "$LINENO" 5; }
2867else
2868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869$as_echo "yes" >&6; }
2870fi
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2872$as_echo_n "checking for C compiler default output file name... " >&6; }
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2874$as_echo "$ac_file" >&6; }
2875ac_exeext=$ac_cv_exeext
2876
2877rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2878ac_clean_files=$ac_clean_files_save
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2880$as_echo_n "checking for suffix of executables... " >&6; }
2881if { { ac_try="$ac_link"
2882case "(($ac_try" in
2883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884  *) ac_try_echo=$ac_try;;
2885esac
2886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2887$as_echo "$ac_try_echo"; } >&5
2888  (eval "$ac_link") 2>&5
2889  ac_status=$?
2890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2891  test $ac_status = 0; }; then :
2892  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2894# work properly (i.e., refer to `conftest.exe'), while it won't with
2895# `rm'.
2896for ac_file in conftest.exe conftest conftest.*; do
2897  test -f "$ac_file" || continue
2898  case $ac_file in
2899    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2900    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901	  break;;
2902    * ) break;;
2903  esac
2904done
2905else
2906  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2908as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2909See \`config.log' for more details" "$LINENO" 5; }
2910fi
2911rm -f conftest conftest$ac_cv_exeext
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2913$as_echo "$ac_cv_exeext" >&6; }
2914
2915rm -f conftest.$ac_ext
2916EXEEXT=$ac_cv_exeext
2917ac_exeext=$EXEEXT
2918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2919/* end confdefs.h.  */
2920#include <stdio.h>
2921int
2922main ()
2923{
2924FILE *f = fopen ("conftest.out", "w");
2925 return ferror (f) || fclose (f) != 0;
2926
2927  ;
2928  return 0;
2929}
2930_ACEOF
2931ac_clean_files="$ac_clean_files conftest.out"
2932# Check that the compiler produces executables we can run.  If not, either
2933# the compiler is broken, or we cross compile.
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2935$as_echo_n "checking whether we are cross compiling... " >&6; }
2936if test "$cross_compiling" != yes; then
2937  { { ac_try="$ac_link"
2938case "(($ac_try" in
2939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940  *) ac_try_echo=$ac_try;;
2941esac
2942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943$as_echo "$ac_try_echo"; } >&5
2944  (eval "$ac_link") 2>&5
2945  ac_status=$?
2946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947  test $ac_status = 0; }
2948  if { ac_try='./conftest$ac_cv_exeext'
2949  { { case "(($ac_try" in
2950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951  *) ac_try_echo=$ac_try;;
2952esac
2953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954$as_echo "$ac_try_echo"; } >&5
2955  (eval "$ac_try") 2>&5
2956  ac_status=$?
2957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958  test $ac_status = 0; }; }; then
2959    cross_compiling=no
2960  else
2961    if test "$cross_compiling" = maybe; then
2962	cross_compiling=yes
2963    else
2964	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966as_fn_error $? "cannot run C compiled programs.
2967If you meant to cross compile, use \`--host'.
2968See \`config.log' for more details" "$LINENO" 5; }
2969    fi
2970  fi
2971fi
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2973$as_echo "$cross_compiling" >&6; }
2974
2975rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2976ac_clean_files=$ac_clean_files_save
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2978$as_echo_n "checking for suffix of object files... " >&6; }
2979if ${ac_cv_objext+:} false; then :
2980  $as_echo_n "(cached) " >&6
2981else
2982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983/* end confdefs.h.  */
2984
2985int
2986main ()
2987{
2988
2989  ;
2990  return 0;
2991}
2992_ACEOF
2993rm -f conftest.o conftest.obj
2994if { { ac_try="$ac_compile"
2995case "(($ac_try" in
2996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997  *) ac_try_echo=$ac_try;;
2998esac
2999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000$as_echo "$ac_try_echo"; } >&5
3001  (eval "$ac_compile") 2>&5
3002  ac_status=$?
3003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004  test $ac_status = 0; }; then :
3005  for ac_file in conftest.o conftest.obj conftest.*; do
3006  test -f "$ac_file" || continue;
3007  case $ac_file in
3008    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3009    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3010       break;;
3011  esac
3012done
3013else
3014  $as_echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3017{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019as_fn_error $? "cannot compute suffix of object files: cannot compile
3020See \`config.log' for more details" "$LINENO" 5; }
3021fi
3022rm -f conftest.$ac_cv_objext conftest.$ac_ext
3023fi
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3025$as_echo "$ac_cv_objext" >&6; }
3026OBJEXT=$ac_cv_objext
3027ac_objext=$OBJEXT
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3029$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3030if ${ac_cv_c_compiler_gnu+:} false; then :
3031  $as_echo_n "(cached) " >&6
3032else
3033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034/* end confdefs.h.  */
3035
3036int
3037main ()
3038{
3039#ifndef __GNUC__
3040       choke me
3041#endif
3042
3043  ;
3044  return 0;
3045}
3046_ACEOF
3047if ac_fn_c_try_compile "$LINENO"; then :
3048  ac_compiler_gnu=yes
3049else
3050  ac_compiler_gnu=no
3051fi
3052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053ac_cv_c_compiler_gnu=$ac_compiler_gnu
3054
3055fi
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3057$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3058if test $ac_compiler_gnu = yes; then
3059  GCC=yes
3060else
3061  GCC=
3062fi
3063ac_test_CFLAGS=${CFLAGS+set}
3064ac_save_CFLAGS=$CFLAGS
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3066$as_echo_n "checking whether $CC accepts -g... " >&6; }
3067if ${ac_cv_prog_cc_g+:} false; then :
3068  $as_echo_n "(cached) " >&6
3069else
3070  ac_save_c_werror_flag=$ac_c_werror_flag
3071   ac_c_werror_flag=yes
3072   ac_cv_prog_cc_g=no
3073   CFLAGS="-g"
3074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075/* end confdefs.h.  */
3076
3077int
3078main ()
3079{
3080
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085if ac_fn_c_try_compile "$LINENO"; then :
3086  ac_cv_prog_cc_g=yes
3087else
3088  CFLAGS=""
3089      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090/* end confdefs.h.  */
3091
3092int
3093main ()
3094{
3095
3096  ;
3097  return 0;
3098}
3099_ACEOF
3100if ac_fn_c_try_compile "$LINENO"; then :
3101
3102else
3103  ac_c_werror_flag=$ac_save_c_werror_flag
3104	 CFLAGS="-g"
3105	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106/* end confdefs.h.  */
3107
3108int
3109main ()
3110{
3111
3112  ;
3113  return 0;
3114}
3115_ACEOF
3116if ac_fn_c_try_compile "$LINENO"; then :
3117  ac_cv_prog_cc_g=yes
3118fi
3119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120fi
3121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122fi
3123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124   ac_c_werror_flag=$ac_save_c_werror_flag
3125fi
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3127$as_echo "$ac_cv_prog_cc_g" >&6; }
3128if test "$ac_test_CFLAGS" = set; then
3129  CFLAGS=$ac_save_CFLAGS
3130elif test $ac_cv_prog_cc_g = yes; then
3131  if test "$GCC" = yes; then
3132    CFLAGS="-g -O2"
3133  else
3134    CFLAGS="-g"
3135  fi
3136else
3137  if test "$GCC" = yes; then
3138    CFLAGS="-O2"
3139  else
3140    CFLAGS=
3141  fi
3142fi
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3144$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3145if ${ac_cv_prog_cc_c89+:} false; then :
3146  $as_echo_n "(cached) " >&6
3147else
3148  ac_cv_prog_cc_c89=no
3149ac_save_CC=$CC
3150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151/* end confdefs.h.  */
3152#include <stdarg.h>
3153#include <stdio.h>
3154struct stat;
3155/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3156struct buf { int x; };
3157FILE * (*rcsopen) (struct buf *, struct stat *, int);
3158static char *e (p, i)
3159     char **p;
3160     int i;
3161{
3162  return p[i];
3163}
3164static char *f (char * (*g) (char **, int), char **p, ...)
3165{
3166  char *s;
3167  va_list v;
3168  va_start (v,p);
3169  s = g (p, va_arg (v,int));
3170  va_end (v);
3171  return s;
3172}
3173
3174/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3175   function prototypes and stuff, but not '\xHH' hex character constants.
3176   These don't provoke an error unfortunately, instead are silently treated
3177   as 'x'.  The following induces an error, until -std is added to get
3178   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3179   array size at least.  It's necessary to write '\x00'==0 to get something
3180   that's true only with -std.  */
3181int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3182
3183/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3184   inside strings and character constants.  */
3185#define FOO(x) 'x'
3186int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3187
3188int test (int i, double x);
3189struct s1 {int (*f) (int a);};
3190struct s2 {int (*f) (double a);};
3191int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3192int argc;
3193char **argv;
3194int
3195main ()
3196{
3197return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3198  ;
3199  return 0;
3200}
3201_ACEOF
3202for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3203	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3204do
3205  CC="$ac_save_CC $ac_arg"
3206  if ac_fn_c_try_compile "$LINENO"; then :
3207  ac_cv_prog_cc_c89=$ac_arg
3208fi
3209rm -f core conftest.err conftest.$ac_objext
3210  test "x$ac_cv_prog_cc_c89" != "xno" && break
3211done
3212rm -f conftest.$ac_ext
3213CC=$ac_save_CC
3214
3215fi
3216# AC_CACHE_VAL
3217case "x$ac_cv_prog_cc_c89" in
3218  x)
3219    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3220$as_echo "none needed" >&6; } ;;
3221  xno)
3222    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3223$as_echo "unsupported" >&6; } ;;
3224  *)
3225    CC="$CC $ac_cv_prog_cc_c89"
3226    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3227$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3228esac
3229if test "x$ac_cv_prog_cc_c89" != xno; then :
3230
3231fi
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
3238
3239
3240# Check whether --enable-largefile was given.
3241if test "${enable_largefile+set}" = set; then :
3242  enableval=$enable_largefile;
3243fi
3244
3245if test "$enable_largefile" != no; then
3246
3247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3248$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3249if ${ac_cv_sys_largefile_CC+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  ac_cv_sys_largefile_CC=no
3253     if test "$GCC" != yes; then
3254       ac_save_CC=$CC
3255       while :; do
3256	 # IRIX 6.2 and later do not support large files by default,
3257	 # so use the C compiler's -n32 option if that helps.
3258	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259/* end confdefs.h.  */
3260#include <sys/types.h>
3261 /* Check that off_t can represent 2**63 - 1 correctly.
3262    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3263    since some C++ compilers masquerading as C compilers
3264    incorrectly reject 9223372036854775807.  */
3265#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3266  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3267		       && LARGE_OFF_T % 2147483647 == 1)
3268		      ? 1 : -1];
3269int
3270main ()
3271{
3272
3273  ;
3274  return 0;
3275}
3276_ACEOF
3277	 if ac_fn_c_try_compile "$LINENO"; then :
3278  break
3279fi
3280rm -f core conftest.err conftest.$ac_objext
3281	 CC="$CC -n32"
3282	 if ac_fn_c_try_compile "$LINENO"; then :
3283  ac_cv_sys_largefile_CC=' -n32'; break
3284fi
3285rm -f core conftest.err conftest.$ac_objext
3286	 break
3287       done
3288       CC=$ac_save_CC
3289       rm -f conftest.$ac_ext
3290    fi
3291fi
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3293$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3294  if test "$ac_cv_sys_largefile_CC" != no; then
3295    CC=$CC$ac_cv_sys_largefile_CC
3296  fi
3297
3298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3299$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3300if ${ac_cv_sys_file_offset_bits+:} false; then :
3301  $as_echo_n "(cached) " >&6
3302else
3303  while :; do
3304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h.  */
3306#include <sys/types.h>
3307 /* Check that off_t can represent 2**63 - 1 correctly.
3308    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3309    since some C++ compilers masquerading as C compilers
3310    incorrectly reject 9223372036854775807.  */
3311#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3312  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3313		       && LARGE_OFF_T % 2147483647 == 1)
3314		      ? 1 : -1];
3315int
3316main ()
3317{
3318
3319  ;
3320  return 0;
3321}
3322_ACEOF
3323if ac_fn_c_try_compile "$LINENO"; then :
3324  ac_cv_sys_file_offset_bits=no; break
3325fi
3326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328/* end confdefs.h.  */
3329#define _FILE_OFFSET_BITS 64
3330#include <sys/types.h>
3331 /* Check that off_t can represent 2**63 - 1 correctly.
3332    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3333    since some C++ compilers masquerading as C compilers
3334    incorrectly reject 9223372036854775807.  */
3335#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3336  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3337		       && LARGE_OFF_T % 2147483647 == 1)
3338		      ? 1 : -1];
3339int
3340main ()
3341{
3342
3343  ;
3344  return 0;
3345}
3346_ACEOF
3347if ac_fn_c_try_compile "$LINENO"; then :
3348  ac_cv_sys_file_offset_bits=64; break
3349fi
3350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351  ac_cv_sys_file_offset_bits=unknown
3352  break
3353done
3354fi
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3356$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3357case $ac_cv_sys_file_offset_bits in #(
3358  no | unknown) ;;
3359  *)
3360cat >>confdefs.h <<_ACEOF
3361#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3362_ACEOF
3363;;
3364esac
3365rm -rf conftest*
3366  if test $ac_cv_sys_file_offset_bits = unknown; then
3367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3368$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3369if ${ac_cv_sys_large_files+:} false; then :
3370  $as_echo_n "(cached) " >&6
3371else
3372  while :; do
3373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374/* end confdefs.h.  */
3375#include <sys/types.h>
3376 /* Check that off_t can represent 2**63 - 1 correctly.
3377    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3378    since some C++ compilers masquerading as C compilers
3379    incorrectly reject 9223372036854775807.  */
3380#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3381  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3382		       && LARGE_OFF_T % 2147483647 == 1)
3383		      ? 1 : -1];
3384int
3385main ()
3386{
3387
3388  ;
3389  return 0;
3390}
3391_ACEOF
3392if ac_fn_c_try_compile "$LINENO"; then :
3393  ac_cv_sys_large_files=no; break
3394fi
3395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397/* end confdefs.h.  */
3398#define _LARGE_FILES 1
3399#include <sys/types.h>
3400 /* Check that off_t can represent 2**63 - 1 correctly.
3401    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3402    since some C++ compilers masquerading as C compilers
3403    incorrectly reject 9223372036854775807.  */
3404#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3405  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3406		       && LARGE_OFF_T % 2147483647 == 1)
3407		      ? 1 : -1];
3408int
3409main ()
3410{
3411
3412  ;
3413  return 0;
3414}
3415_ACEOF
3416if ac_fn_c_try_compile "$LINENO"; then :
3417  ac_cv_sys_large_files=1; break
3418fi
3419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420  ac_cv_sys_large_files=unknown
3421  break
3422done
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3425$as_echo "$ac_cv_sys_large_files" >&6; }
3426case $ac_cv_sys_large_files in #(
3427  no | unknown) ;;
3428  *)
3429cat >>confdefs.h <<_ACEOF
3430#define _LARGE_FILES $ac_cv_sys_large_files
3431_ACEOF
3432;;
3433esac
3434rm -rf conftest*
3435  fi
3436
3437
3438fi
3439
3440if test "x$CFLAGS" = "x" ; then
3441  no_CFLAGS="yes"
3442fi
3443if test "x$no_CFLAGS" = "xyes" -a "x$GCC" = "xyes" ; then
3444  CFLAGS="-Wall -g"
3445fi
3446if test "x$EXTRA_CFLAGS" != "x" ; then
3447  CFLAGS="$CFLAGS $EXTRA_CFLAGS"
3448fi
3449ac_ext=c
3450ac_cpp='$CPP $CPPFLAGS'
3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3455$as_echo_n "checking how to run the C preprocessor... " >&6; }
3456# On Suns, sometimes $CPP names a directory.
3457if test -n "$CPP" && test -d "$CPP"; then
3458  CPP=
3459fi
3460if test -z "$CPP"; then
3461  if ${ac_cv_prog_CPP+:} false; then :
3462  $as_echo_n "(cached) " >&6
3463else
3464      # Double quotes because CPP needs to be expanded
3465    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3466    do
3467      ac_preproc_ok=false
3468for ac_c_preproc_warn_flag in '' yes
3469do
3470  # Use a header file that comes with gcc, so configuring glibc
3471  # with a fresh cross-compiler works.
3472  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473  # <limits.h> exists even on freestanding compilers.
3474  # On the NeXT, cc -E runs the code through the compiler's parser,
3475  # not just through cpp. "Syntax error" is here to catch this case.
3476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h.  */
3478#ifdef __STDC__
3479# include <limits.h>
3480#else
3481# include <assert.h>
3482#endif
3483		     Syntax error
3484_ACEOF
3485if ac_fn_c_try_cpp "$LINENO"; then :
3486
3487else
3488  # Broken: fails on valid input.
3489continue
3490fi
3491rm -f conftest.err conftest.i conftest.$ac_ext
3492
3493  # OK, works on sane cases.  Now check whether nonexistent headers
3494  # can be detected and how.
3495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496/* end confdefs.h.  */
3497#include <ac_nonexistent.h>
3498_ACEOF
3499if ac_fn_c_try_cpp "$LINENO"; then :
3500  # Broken: success on invalid input.
3501continue
3502else
3503  # Passes both tests.
3504ac_preproc_ok=:
3505break
3506fi
3507rm -f conftest.err conftest.i conftest.$ac_ext
3508
3509done
3510# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3511rm -f conftest.i conftest.err conftest.$ac_ext
3512if $ac_preproc_ok; then :
3513  break
3514fi
3515
3516    done
3517    ac_cv_prog_CPP=$CPP
3518
3519fi
3520  CPP=$ac_cv_prog_CPP
3521else
3522  ac_cv_prog_CPP=$CPP
3523fi
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3525$as_echo "$CPP" >&6; }
3526ac_preproc_ok=false
3527for ac_c_preproc_warn_flag in '' yes
3528do
3529  # Use a header file that comes with gcc, so configuring glibc
3530  # with a fresh cross-compiler works.
3531  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3532  # <limits.h> exists even on freestanding compilers.
3533  # On the NeXT, cc -E runs the code through the compiler's parser,
3534  # not just through cpp. "Syntax error" is here to catch this case.
3535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536/* end confdefs.h.  */
3537#ifdef __STDC__
3538# include <limits.h>
3539#else
3540# include <assert.h>
3541#endif
3542		     Syntax error
3543_ACEOF
3544if ac_fn_c_try_cpp "$LINENO"; then :
3545
3546else
3547  # Broken: fails on valid input.
3548continue
3549fi
3550rm -f conftest.err conftest.i conftest.$ac_ext
3551
3552  # OK, works on sane cases.  Now check whether nonexistent headers
3553  # can be detected and how.
3554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555/* end confdefs.h.  */
3556#include <ac_nonexistent.h>
3557_ACEOF
3558if ac_fn_c_try_cpp "$LINENO"; then :
3559  # Broken: success on invalid input.
3560continue
3561else
3562  # Passes both tests.
3563ac_preproc_ok=:
3564break
3565fi
3566rm -f conftest.err conftest.i conftest.$ac_ext
3567
3568done
3569# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3570rm -f conftest.i conftest.err conftest.$ac_ext
3571if $ac_preproc_ok; then :
3572
3573else
3574  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3577See \`config.log' for more details" "$LINENO" 5; }
3578fi
3579
3580ac_ext=c
3581ac_cpp='$CPP $CPPFLAGS'
3582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585
3586
3587ac_aux_dir=
3588for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3589  if test -f "$ac_dir/install-sh"; then
3590    ac_aux_dir=$ac_dir
3591    ac_install_sh="$ac_aux_dir/install-sh -c"
3592    break
3593  elif test -f "$ac_dir/install.sh"; then
3594    ac_aux_dir=$ac_dir
3595    ac_install_sh="$ac_aux_dir/install.sh -c"
3596    break
3597  elif test -f "$ac_dir/shtool"; then
3598    ac_aux_dir=$ac_dir
3599    ac_install_sh="$ac_aux_dir/shtool install -c"
3600    break
3601  fi
3602done
3603if test -z "$ac_aux_dir"; then
3604  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3605fi
3606
3607# These three variables are undocumented and unsupported,
3608# and are intended to be withdrawn in a future Autoconf release.
3609# They can cause serious problems if a builder's source tree is in a directory
3610# whose full name contains unusual characters.
3611ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3612ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3613ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3614
3615
3616# Find a good install program.  We prefer a C program (faster),
3617# so one script is as good as another.  But avoid the broken or
3618# incompatible versions:
3619# SysV /etc/install, /usr/sbin/install
3620# SunOS /usr/etc/install
3621# IRIX /sbin/install
3622# AIX /bin/install
3623# AmigaOS /C/install, which installs bootblocks on floppy discs
3624# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3625# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3626# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3627# OS/2's system install, which has a completely different semantic
3628# ./install, which can be erroneously created by make from ./install.sh.
3629# Reject install programs that cannot install multiple files.
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3631$as_echo_n "checking for a BSD-compatible install... " >&6; }
3632if test -z "$INSTALL"; then
3633if ${ac_cv_path_install+:} false; then :
3634  $as_echo_n "(cached) " >&6
3635else
3636  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH
3638do
3639  IFS=$as_save_IFS
3640  test -z "$as_dir" && as_dir=.
3641    # Account for people who put trailing slashes in PATH elements.
3642case $as_dir/ in #((
3643  ./ | .// | /[cC]/* | \
3644  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3645  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3646  /usr/ucb/* ) ;;
3647  *)
3648    # OSF1 and SCO ODT 3.0 have their own names for install.
3649    # Don't use installbsd from OSF since it installs stuff as root
3650    # by default.
3651    for ac_prog in ginstall scoinst install; do
3652      for ac_exec_ext in '' $ac_executable_extensions; do
3653	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3654	  if test $ac_prog = install &&
3655	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3656	    # AIX install.  It has an incompatible calling convention.
3657	    :
3658	  elif test $ac_prog = install &&
3659	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3660	    # program-specific install script used by HP pwplus--don't use.
3661	    :
3662	  else
3663	    rm -rf conftest.one conftest.two conftest.dir
3664	    echo one > conftest.one
3665	    echo two > conftest.two
3666	    mkdir conftest.dir
3667	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3668	      test -s conftest.one && test -s conftest.two &&
3669	      test -s conftest.dir/conftest.one &&
3670	      test -s conftest.dir/conftest.two
3671	    then
3672	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3673	      break 3
3674	    fi
3675	  fi
3676	fi
3677      done
3678    done
3679    ;;
3680esac
3681
3682  done
3683IFS=$as_save_IFS
3684
3685rm -rf conftest.one conftest.two conftest.dir
3686
3687fi
3688  if test "${ac_cv_path_install+set}" = set; then
3689    INSTALL=$ac_cv_path_install
3690  else
3691    # As a last resort, use the slow shell script.  Don't cache a
3692    # value for INSTALL within a source directory, because that will
3693    # break other packages using the cache if that directory is
3694    # removed, or if the value is a relative name.
3695    INSTALL=$ac_install_sh
3696  fi
3697fi
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3699$as_echo "$INSTALL" >&6; }
3700
3701# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3702# It thinks the first close brace ends the variable substitution.
3703test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3704
3705test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3706
3707test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3708
3709# Extract the first word of "ld", so it can be a program name with args.
3710set dummy ld; ac_word=$2
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712$as_echo_n "checking for $ac_word... " >&6; }
3713if ${ac_cv_path_LD+:} false; then :
3714  $as_echo_n "(cached) " >&6
3715else
3716  case $LD in
3717  [\\/]* | ?:[\\/]*)
3718  ac_cv_path_LD="$LD" # Let the user override the test with a path.
3719  ;;
3720  *)
3721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722for as_dir in $PATH
3723do
3724  IFS=$as_save_IFS
3725  test -z "$as_dir" && as_dir=.
3726    for ac_exec_ext in '' $ac_executable_extensions; do
3727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3728    ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730    break 2
3731  fi
3732done
3733  done
3734IFS=$as_save_IFS
3735
3736  ;;
3737esac
3738fi
3739LD=$ac_cv_path_LD
3740if test -n "$LD"; then
3741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3742$as_echo "$LD" >&6; }
3743else
3744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745$as_echo "no" >&6; }
3746fi
3747
3748
3749# Extract the first word of "ar", so it can be a program name with args.
3750set dummy ar; ac_word=$2
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752$as_echo_n "checking for $ac_word... " >&6; }
3753if ${ac_cv_path_AR+:} false; then :
3754  $as_echo_n "(cached) " >&6
3755else
3756  case $AR in
3757  [\\/]* | ?:[\\/]*)
3758  ac_cv_path_AR="$AR" # Let the user override the test with a path.
3759  ;;
3760  *)
3761  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762for as_dir in $PATH
3763do
3764  IFS=$as_save_IFS
3765  test -z "$as_dir" && as_dir=.
3766    for ac_exec_ext in '' $ac_executable_extensions; do
3767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770    break 2
3771  fi
3772done
3773  done
3774IFS=$as_save_IFS
3775
3776  ;;
3777esac
3778fi
3779AR=$ac_cv_path_AR
3780if test -n "$AR"; then
3781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3782$as_echo "$AR" >&6; }
3783else
3784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785$as_echo "no" >&6; }
3786fi
3787
3788
3789# Extract the first word of "ranlib", so it can be a program name with args.
3790set dummy ranlib; ac_word=$2
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792$as_echo_n "checking for $ac_word... " >&6; }
3793if ${ac_cv_path_RANLIB+:} false; then :
3794  $as_echo_n "(cached) " >&6
3795else
3796  case $RANLIB in
3797  [\\/]* | ?:[\\/]*)
3798  ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3799  ;;
3800  *)
3801  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804  IFS=$as_save_IFS
3805  test -z "$as_dir" && as_dir=.
3806    for ac_exec_ext in '' $ac_executable_extensions; do
3807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808    ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810    break 2
3811  fi
3812done
3813  done
3814IFS=$as_save_IFS
3815
3816  ;;
3817esac
3818fi
3819RANLIB=$ac_cv_path_RANLIB
3820if test -n "$RANLIB"; then
3821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3822$as_echo "$RANLIB" >&6; }
3823else
3824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825$as_echo "no" >&6; }
3826fi
3827
3828
3829# Extract the first word of "autoconf", so it can be a program name with args.
3830set dummy autoconf; ac_word=$2
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832$as_echo_n "checking for $ac_word... " >&6; }
3833if ${ac_cv_path_AUTOCONF+:} false; then :
3834  $as_echo_n "(cached) " >&6
3835else
3836  case $AUTOCONF in
3837  [\\/]* | ?:[\\/]*)
3838  ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
3839  ;;
3840  *)
3841  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842for as_dir in $PATH
3843do
3844  IFS=$as_save_IFS
3845  test -z "$as_dir" && as_dir=.
3846    for ac_exec_ext in '' $ac_executable_extensions; do
3847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848    ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
3849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850    break 2
3851  fi
3852done
3853  done
3854IFS=$as_save_IFS
3855
3856  ;;
3857esac
3858fi
3859AUTOCONF=$ac_cv_path_AUTOCONF
3860if test -n "$AUTOCONF"; then
3861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
3862$as_echo "$AUTOCONF" >&6; }
3863else
3864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865$as_echo "no" >&6; }
3866fi
3867
3868
3869
3870#AC_ENABLE_SHARED
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
3872$as_echo_n "checking whether to build shared libraries... " >&6; }
3873# Check whether --enable-shared was given.
3874if test "${enable_shared+set}" = set; then :
3875  enableval=$enable_shared; shared=$enableval
3876else
3877  shared=yes
3878fi
3879
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $shared" >&5
3881$as_echo "$shared" >&6; }
3882
3883#AC_ENABLE_STATIC
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
3885$as_echo_n "checking whether to build static libraries... " >&6; }
3886# Check whether --enable-static was given.
3887if test "${enable_static+set}" = set; then :
3888  enableval=$enable_static; static=$enableval
3889else
3890  static=yes
3891fi
3892
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $static" >&5
3894$as_echo "$static" >&6; }
3895
3896# Make sure either enable_shared or enable_static is yes.
3897test "$shared" = "yes" || test "$static" = "yes"
3898
3899# Make sure we can run config.sub.
3900$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3901  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3902
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3904$as_echo_n "checking build system type... " >&6; }
3905if ${ac_cv_build+:} false; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908  ac_build_alias=$build_alias
3909test "x$ac_build_alias" = x &&
3910  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3911test "x$ac_build_alias" = x &&
3912  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3913ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3914  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3915
3916fi
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3918$as_echo "$ac_cv_build" >&6; }
3919case $ac_cv_build in
3920*-*-*) ;;
3921*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3922esac
3923build=$ac_cv_build
3924ac_save_IFS=$IFS; IFS='-'
3925set x $ac_cv_build
3926shift
3927build_cpu=$1
3928build_vendor=$2
3929shift; shift
3930# Remember, the first character of IFS is used to create $*,
3931# except with old shells:
3932build_os=$*
3933IFS=$ac_save_IFS
3934case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3935
3936
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3938$as_echo_n "checking host system type... " >&6; }
3939if ${ac_cv_host+:} false; then :
3940  $as_echo_n "(cached) " >&6
3941else
3942  if test "x$host_alias" = x; then
3943  ac_cv_host=$ac_cv_build
3944else
3945  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3946    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3947fi
3948
3949fi
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3951$as_echo "$ac_cv_host" >&6; }
3952case $ac_cv_host in
3953*-*-*) ;;
3954*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3955esac
3956host=$ac_cv_host
3957ac_save_IFS=$IFS; IFS='-'
3958set x $ac_cv_host
3959shift
3960host_cpu=$1
3961host_vendor=$2
3962shift; shift
3963# Remember, the first character of IFS is used to create $*,
3964# except with old shells:
3965host_os=$*
3966IFS=$ac_save_IFS
3967case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3968
3969
3970case "${host}" in
3971  *-*-darwin*)
3972	abi="macho"
3973	RPATH=""
3974	;;
3975  *-*-freebsd*)
3976	CFLAGS="$CFLAGS"
3977	abi="elf"
3978	RPATH="-Wl,-rpath,"
3979	;;
3980  *-*-linux*)
3981	CFLAGS="$CFLAGS"
3982	abi="elf"
3983		CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3984	RPATH="-Wl,-rpath,"
3985	;;
3986  *-*-netbsd*)
3987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
3988$as_echo_n "checking ABI... " >&6; }
3989        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990/* end confdefs.h.  */
3991#ifdef __ELF__
3992/* ELF */
3993#else
3994#error aout
3995#endif
3996
3997int
3998main ()
3999{
4000
4001  ;
4002  return 0;
4003}
4004_ACEOF
4005if ac_fn_c_try_compile "$LINENO"; then :
4006  CFLAGS="$CFLAGS"; abi="elf"
4007else
4008  abi="aout"
4009fi
4010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
4012$as_echo "$abi" >&6; }
4013	RPATH="-Wl,-rpath,"
4014	;;
4015  *-*-solaris2*)
4016	CFLAGS="$CFLAGS"
4017	abi="elf"
4018	RPATH="-Wl,-R,"
4019					;;
4020  *)
4021	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
4022$as_echo "Unsupported operating system: ${host}" >&6; }
4023	abi="elf"
4024	RPATH="-Wl,-rpath,"
4025	;;
4026esac
4027
4028
4029
4030# Check whether --enable-autogen was given.
4031if test "${enable_autogen+set}" = set; then :
4032  enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
4033  enable_autogen="0"
4034else
4035  enable_autogen="1"
4036fi
4037
4038else
4039  enable_autogen="0"
4040
4041fi
4042
4043
4044
4045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h.  */
4047#include <sys/types.h>
4048#include <sys/acl.h>
4049int
4050main ()
4051{
4052acl_t a
4053  ;
4054  return 0;
4055}
4056_ACEOF
4057if ac_fn_c_try_compile "$LINENO"; then :
4058
4059$as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
4060
4061fi
4062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4065$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4066if ${ac_cv_path_GREP+:} false; then :
4067  $as_echo_n "(cached) " >&6
4068else
4069  if test -z "$GREP"; then
4070  ac_path_GREP_found=false
4071  # Loop through the user's path and test for each of PROGNAME-LIST
4072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4074do
4075  IFS=$as_save_IFS
4076  test -z "$as_dir" && as_dir=.
4077    for ac_prog in grep ggrep; do
4078    for ac_exec_ext in '' $ac_executable_extensions; do
4079      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4080      as_fn_executable_p "$ac_path_GREP" || continue
4081# Check for GNU ac_path_GREP and select it if it is found.
4082  # Check for GNU $ac_path_GREP
4083case `"$ac_path_GREP" --version 2>&1` in
4084*GNU*)
4085  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4086*)
4087  ac_count=0
4088  $as_echo_n 0123456789 >"conftest.in"
4089  while :
4090  do
4091    cat "conftest.in" "conftest.in" >"conftest.tmp"
4092    mv "conftest.tmp" "conftest.in"
4093    cp "conftest.in" "conftest.nl"
4094    $as_echo 'GREP' >> "conftest.nl"
4095    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4097    as_fn_arith $ac_count + 1 && ac_count=$as_val
4098    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4099      # Best one so far, save it but keep looking for a better one
4100      ac_cv_path_GREP="$ac_path_GREP"
4101      ac_path_GREP_max=$ac_count
4102    fi
4103    # 10*(2^10) chars as input seems more than enough
4104    test $ac_count -gt 10 && break
4105  done
4106  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107esac
4108
4109      $ac_path_GREP_found && break 3
4110    done
4111  done
4112  done
4113IFS=$as_save_IFS
4114  if test -z "$ac_cv_path_GREP"; then
4115    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4116  fi
4117else
4118  ac_cv_path_GREP=$GREP
4119fi
4120
4121fi
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4123$as_echo "$ac_cv_path_GREP" >&6; }
4124 GREP="$ac_cv_path_GREP"
4125
4126
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4128$as_echo_n "checking for egrep... " >&6; }
4129if ${ac_cv_path_EGREP+:} false; then :
4130  $as_echo_n "(cached) " >&6
4131else
4132  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4133   then ac_cv_path_EGREP="$GREP -E"
4134   else
4135     if test -z "$EGREP"; then
4136  ac_path_EGREP_found=false
4137  # Loop through the user's path and test for each of PROGNAME-LIST
4138  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4140do
4141  IFS=$as_save_IFS
4142  test -z "$as_dir" && as_dir=.
4143    for ac_prog in egrep; do
4144    for ac_exec_ext in '' $ac_executable_extensions; do
4145      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4146      as_fn_executable_p "$ac_path_EGREP" || continue
4147# Check for GNU ac_path_EGREP and select it if it is found.
4148  # Check for GNU $ac_path_EGREP
4149case `"$ac_path_EGREP" --version 2>&1` in
4150*GNU*)
4151  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4152*)
4153  ac_count=0
4154  $as_echo_n 0123456789 >"conftest.in"
4155  while :
4156  do
4157    cat "conftest.in" "conftest.in" >"conftest.tmp"
4158    mv "conftest.tmp" "conftest.in"
4159    cp "conftest.in" "conftest.nl"
4160    $as_echo 'EGREP' >> "conftest.nl"
4161    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163    as_fn_arith $ac_count + 1 && ac_count=$as_val
4164    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4165      # Best one so far, save it but keep looking for a better one
4166      ac_cv_path_EGREP="$ac_path_EGREP"
4167      ac_path_EGREP_max=$ac_count
4168    fi
4169    # 10*(2^10) chars as input seems more than enough
4170    test $ac_count -gt 10 && break
4171  done
4172  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173esac
4174
4175      $ac_path_EGREP_found && break 3
4176    done
4177  done
4178  done
4179IFS=$as_save_IFS
4180  if test -z "$ac_cv_path_EGREP"; then
4181    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4182  fi
4183else
4184  ac_cv_path_EGREP=$EGREP
4185fi
4186
4187   fi
4188fi
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4190$as_echo "$ac_cv_path_EGREP" >&6; }
4191 EGREP="$ac_cv_path_EGREP"
4192
4193
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4195$as_echo_n "checking for ANSI C header files... " >&6; }
4196if ${ac_cv_header_stdc+:} false; then :
4197  $as_echo_n "(cached) " >&6
4198else
4199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h.  */
4201#include <stdlib.h>
4202#include <stdarg.h>
4203#include <string.h>
4204#include <float.h>
4205
4206int
4207main ()
4208{
4209
4210  ;
4211  return 0;
4212}
4213_ACEOF
4214if ac_fn_c_try_compile "$LINENO"; then :
4215  ac_cv_header_stdc=yes
4216else
4217  ac_cv_header_stdc=no
4218fi
4219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220
4221if test $ac_cv_header_stdc = yes; then
4222  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h.  */
4225#include <string.h>
4226
4227_ACEOF
4228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4229  $EGREP "memchr" >/dev/null 2>&1; then :
4230
4231else
4232  ac_cv_header_stdc=no
4233fi
4234rm -f conftest*
4235
4236fi
4237
4238if test $ac_cv_header_stdc = yes; then
4239  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h.  */
4242#include <stdlib.h>
4243
4244_ACEOF
4245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4246  $EGREP "free" >/dev/null 2>&1; then :
4247
4248else
4249  ac_cv_header_stdc=no
4250fi
4251rm -f conftest*
4252
4253fi
4254
4255if test $ac_cv_header_stdc = yes; then
4256  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4257  if test "$cross_compiling" = yes; then :
4258  :
4259else
4260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261/* end confdefs.h.  */
4262#include <ctype.h>
4263#include <stdlib.h>
4264#if ((' ' & 0x0FF) == 0x020)
4265# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4266# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4267#else
4268# define ISLOWER(c) \
4269		   (('a' <= (c) && (c) <= 'i') \
4270		     || ('j' <= (c) && (c) <= 'r') \
4271		     || ('s' <= (c) && (c) <= 'z'))
4272# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4273#endif
4274
4275#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4276int
4277main ()
4278{
4279  int i;
4280  for (i = 0; i < 256; i++)
4281    if (XOR (islower (i), ISLOWER (i))
4282	|| toupper (i) != TOUPPER (i))
4283      return 2;
4284  return 0;
4285}
4286_ACEOF
4287if ac_fn_c_try_run "$LINENO"; then :
4288
4289else
4290  ac_cv_header_stdc=no
4291fi
4292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4293  conftest.$ac_objext conftest.beam conftest.$ac_ext
4294fi
4295
4296fi
4297fi
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4299$as_echo "$ac_cv_header_stdc" >&6; }
4300if test $ac_cv_header_stdc = yes; then
4301
4302$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4303
4304fi
4305
4306# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4307for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4308		  inttypes.h stdint.h unistd.h
4309do :
4310  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4311ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4312"
4313if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4314  cat >>confdefs.h <<_ACEOF
4315#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4316_ACEOF
4317
4318fi
4319
4320done
4321
4322
4323for ac_header in ext2fs/ext2_fs.h sys/statfs.h sys/xattr.h sys/param.h sys/extattr.h libutil.h
4324do :
4325  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4326ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4327if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4328  cat >>confdefs.h <<_ACEOF
4329#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4330_ACEOF
4331
4332fi
4333
4334done
4335
4336for ac_func in lgetxattr
4337do :
4338  ac_fn_c_check_func "$LINENO" "lgetxattr" "ac_cv_func_lgetxattr"
4339if test "x$ac_cv_func_lgetxattr" = xyes; then :
4340  cat >>confdefs.h <<_ACEOF
4341#define HAVE_LGETXATTR 1
4342_ACEOF
4343
4344fi
4345done
4346
4347for ac_func in lsetxattr
4348do :
4349  ac_fn_c_check_func "$LINENO" "lsetxattr" "ac_cv_func_lsetxattr"
4350if test "x$ac_cv_func_lsetxattr" = xyes; then :
4351  cat >>confdefs.h <<_ACEOF
4352#define HAVE_LSETXATTR 1
4353_ACEOF
4354
4355fi
4356done
4357
4358for ac_func in getxattr
4359do :
4360  ac_fn_c_check_func "$LINENO" "getxattr" "ac_cv_func_getxattr"
4361if test "x$ac_cv_func_getxattr" = xyes; then :
4362  cat >>confdefs.h <<_ACEOF
4363#define HAVE_GETXATTR 1
4364_ACEOF
4365
4366fi
4367done
4368
4369for ac_func in setxattr
4370do :
4371  ac_fn_c_check_func "$LINENO" "setxattr" "ac_cv_func_setxattr"
4372if test "x$ac_cv_func_setxattr" = xyes; then :
4373  cat >>confdefs.h <<_ACEOF
4374#define HAVE_SETXATTR 1
4375_ACEOF
4376
4377fi
4378done
4379
4380for ac_func in getattrlist
4381do :
4382  ac_fn_c_check_func "$LINENO" "getattrlist" "ac_cv_func_getattrlist"
4383if test "x$ac_cv_func_getattrlist" = xyes; then :
4384  cat >>confdefs.h <<_ACEOF
4385#define HAVE_GETATTRLIST 1
4386_ACEOF
4387
4388fi
4389done
4390
4391for ac_func in setattrlist
4392do :
4393  ac_fn_c_check_func "$LINENO" "setattrlist" "ac_cv_func_setattrlist"
4394if test "x$ac_cv_func_setattrlist" = xyes; then :
4395  cat >>confdefs.h <<_ACEOF
4396#define HAVE_SETATTRLIST 1
4397_ACEOF
4398
4399fi
4400done
4401
4402for ac_func in lchmod
4403do :
4404  ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
4405if test "x$ac_cv_func_lchmod" = xyes; then :
4406  cat >>confdefs.h <<_ACEOF
4407#define HAVE_LCHMOD 1
4408_ACEOF
4409
4410fi
4411done
4412
4413for ac_func in lchown
4414do :
4415  ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
4416if test "x$ac_cv_func_lchown" = xyes; then :
4417  cat >>confdefs.h <<_ACEOF
4418#define HAVE_LCHOWN 1
4419_ACEOF
4420
4421fi
4422done
4423
4424for ac_func in chflags
4425do :
4426  ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
4427if test "x$ac_cv_func_chflags" = xyes; then :
4428  cat >>confdefs.h <<_ACEOF
4429#define HAVE_CHFLAGS 1
4430_ACEOF
4431
4432fi
4433done
4434
4435for ac_func in statvfs
4436do :
4437  ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
4438if test "x$ac_cv_func_statvfs" = xyes; then :
4439  cat >>confdefs.h <<_ACEOF
4440#define HAVE_STATVFS 1
4441_ACEOF
4442
4443fi
4444done
4445
4446for ac_func in statfs
4447do :
4448  ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
4449if test "x$ac_cv_func_statfs" = xyes; then :
4450  cat >>confdefs.h <<_ACEOF
4451#define HAVE_STATFS 1
4452_ACEOF
4453
4454fi
4455done
4456
4457for ac_func in strmode
4458do :
4459  ac_fn_c_check_func "$LINENO" "strmode" "ac_cv_func_strmode"
4460if test "x$ac_cv_func_strmode" = xyes; then :
4461  cat >>confdefs.h <<_ACEOF
4462#define HAVE_STRMODE 1
4463_ACEOF
4464
4465fi
4466done
4467
4468
4469ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#include <sys/types.h>
4470#include <sys/param.h>
4471#include <sys/mount.h>
4472"
4473if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
4474
4475cat >>confdefs.h <<_ACEOF
4476#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
4477_ACEOF
4478
4479
4480fi
4481
4482ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
4483"
4484if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
4485
4486cat >>confdefs.h <<_ACEOF
4487#define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
4488_ACEOF
4489
4490
4491fi
4492
4493ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
4494if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
4495
4496cat >>confdefs.h <<_ACEOF
4497#define HAVE_STRUCT_STAT_ST_FLAGS 1
4498_ACEOF
4499
4500
4501fi
4502
4503
4504# The cast to long int works around a bug in the HP C Compiler
4505# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4506# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4507# This bug is HP SR number 8606223364.
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uid_t" >&5
4509$as_echo_n "checking size of uid_t... " >&6; }
4510if ${ac_cv_sizeof_uid_t+:} false; then :
4511  $as_echo_n "(cached) " >&6
4512else
4513  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uid_t))" "ac_cv_sizeof_uid_t"        "$ac_includes_default"; then :
4514
4515else
4516  if test "$ac_cv_type_uid_t" = yes; then
4517     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4519as_fn_error 77 "cannot compute sizeof (uid_t)
4520See \`config.log' for more details" "$LINENO" 5; }
4521   else
4522     ac_cv_sizeof_uid_t=0
4523   fi
4524fi
4525
4526fi
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uid_t" >&5
4528$as_echo "$ac_cv_sizeof_uid_t" >&6; }
4529
4530
4531
4532cat >>confdefs.h <<_ACEOF
4533#define SIZEOF_UID_T $ac_cv_sizeof_uid_t
4534_ACEOF
4535
4536
4537if test $ac_cv_sizeof_uid_t = "4"; then
4538$as_echo "#define UID_STRING RId32" >>confdefs.h
4539
4540$as_echo "#define UID_CAST (uint32_t)" >>confdefs.h
4541
4542elif test $ac_cv_sizeof_uid_t = "8"; then
4543$as_echo "#define UID_STRING PRId64" >>confdefs.h
4544
4545$as_echo "#define UID_CAST (uint64_t)" >>confdefs.h
4546
4547else
4548as_fn_error $? "can not detect the size of your system's uid_t type" "$LINENO" 5
4549fi
4550
4551# The cast to long int works around a bug in the HP C Compiler
4552# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4553# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4554# This bug is HP SR number 8606223364.
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of gid_t" >&5
4556$as_echo_n "checking size of gid_t... " >&6; }
4557if ${ac_cv_sizeof_gid_t+:} false; then :
4558  $as_echo_n "(cached) " >&6
4559else
4560  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (gid_t))" "ac_cv_sizeof_gid_t"        "$ac_includes_default"; then :
4561
4562else
4563  if test "$ac_cv_type_gid_t" = yes; then
4564     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4566as_fn_error 77 "cannot compute sizeof (gid_t)
4567See \`config.log' for more details" "$LINENO" 5; }
4568   else
4569     ac_cv_sizeof_gid_t=0
4570   fi
4571fi
4572
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_gid_t" >&5
4575$as_echo "$ac_cv_sizeof_gid_t" >&6; }
4576
4577
4578
4579cat >>confdefs.h <<_ACEOF
4580#define SIZEOF_GID_T $ac_cv_sizeof_gid_t
4581_ACEOF
4582
4583
4584if test $ac_cv_sizeof_gid_t = "4"; then
4585$as_echo "#define GID_STRING PRId32" >>confdefs.h
4586
4587$as_echo "#define GID_CAST (uint32_t)" >>confdefs.h
4588
4589elif test $ac_cv_sizeof_gid_t = "8"; then
4590$as_echo "#define GID_STRING PRId64" >>confdefs.h
4591
4592$as_echo "#define GID_CAST (uint64_t)" >>confdefs.h
4593
4594else
4595as_fn_error $? "can not detect the size of your system's gid_t type" "$LINENO" 5
4596fi
4597
4598# The cast to long int works around a bug in the HP C Compiler
4599# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4600# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4601# This bug is HP SR number 8606223364.
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
4603$as_echo_n "checking size of ino_t... " >&6; }
4604if ${ac_cv_sizeof_ino_t+:} false; then :
4605  $as_echo_n "(cached) " >&6
4606else
4607  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t"        "$ac_includes_default"; then :
4608
4609else
4610  if test "$ac_cv_type_ino_t" = yes; then
4611     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4613as_fn_error 77 "cannot compute sizeof (ino_t)
4614See \`config.log' for more details" "$LINENO" 5; }
4615   else
4616     ac_cv_sizeof_ino_t=0
4617   fi
4618fi
4619
4620fi
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
4622$as_echo "$ac_cv_sizeof_ino_t" >&6; }
4623
4624
4625
4626cat >>confdefs.h <<_ACEOF
4627#define SIZEOF_INO_T $ac_cv_sizeof_ino_t
4628_ACEOF
4629
4630
4631if test $ac_cv_sizeof_ino_t = "4"; then
4632$as_echo "#define INO_STRING PRId32" >>confdefs.h
4633
4634$as_echo "#define INO_HEXSTRING PRIx32" >>confdefs.h
4635
4636$as_echo "#define INO_CAST (uint32_t)" >>confdefs.h
4637
4638elif test $ac_cv_sizeof_ino_t = "8"; then
4639$as_echo "#define INO_STRING PRId64" >>confdefs.h
4640
4641$as_echo "#define INO_HEXSTRING PRIx64" >>confdefs.h
4642
4643$as_echo "#define INO_CAST (uint64_t)" >>confdefs.h
4644
4645else
4646as_fn_error $? "can not detect the size of your system's ino_t type" "$LINENO" 5
4647fi
4648
4649# The cast to long int works around a bug in the HP C Compiler
4650# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4651# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4652# This bug is HP SR number 8606223364.
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
4654$as_echo_n "checking size of dev_t... " >&6; }
4655if ${ac_cv_sizeof_dev_t+:} false; then :
4656  $as_echo_n "(cached) " >&6
4657else
4658  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t"        "$ac_includes_default"; then :
4659
4660else
4661  if test "$ac_cv_type_dev_t" = yes; then
4662     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4664as_fn_error 77 "cannot compute sizeof (dev_t)
4665See \`config.log' for more details" "$LINENO" 5; }
4666   else
4667     ac_cv_sizeof_dev_t=0
4668   fi
4669fi
4670
4671fi
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
4673$as_echo "$ac_cv_sizeof_dev_t" >&6; }
4674
4675
4676
4677cat >>confdefs.h <<_ACEOF
4678#define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
4679_ACEOF
4680
4681
4682if test $ac_cv_sizeof_dev_t = "4"; then
4683$as_echo "#define DEV_STRING PRId32" >>confdefs.h
4684
4685$as_echo "#define DEV_HEXSTRING PRIx32" >>confdefs.h
4686
4687$as_echo "#define DEV_CAST (uint32_t)" >>confdefs.h
4688
4689elif test $ac_cv_sizeof_dev_t = "8"; then
4690$as_echo "#define DEV_STRING PRId64" >>confdefs.h
4691
4692$as_echo "#define DEV_HEXSTRING PRIx64" >>confdefs.h
4693
4694$as_echo "#define DEV_CAST (uint64_t)" >>confdefs.h
4695
4696else
4697as_fn_error $? "can not detect the size of your system's dev_t type" "$LINENO" 5
4698fi
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
4701$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
4702if ${ac_cv_lib_acl_acl_get_file+:} false; then :
4703  $as_echo_n "(cached) " >&6
4704else
4705  ac_check_lib_save_LIBS=$LIBS
4706LIBS="-lacl  $LIBS"
4707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708/* end confdefs.h.  */
4709
4710/* Override any GCC internal prototype to avoid an error.
4711   Use char because int might match the return type of a GCC
4712   builtin and then its argument prototype would still apply.  */
4713#ifdef __cplusplus
4714extern "C"
4715#endif
4716char acl_get_file ();
4717int
4718main ()
4719{
4720return acl_get_file ();
4721  ;
4722  return 0;
4723}
4724_ACEOF
4725if ac_fn_c_try_link "$LINENO"; then :
4726  ac_cv_lib_acl_acl_get_file=yes
4727else
4728  ac_cv_lib_acl_acl_get_file=no
4729fi
4730rm -f core conftest.err conftest.$ac_objext \
4731    conftest$ac_exeext conftest.$ac_ext
4732LIBS=$ac_check_lib_save_LIBS
4733fi
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
4735$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
4736if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
4737  cat >>confdefs.h <<_ACEOF
4738#define HAVE_LIBACL 1
4739_ACEOF
4740
4741  LIBS="-lacl $LIBS"
4742
4743fi
4744
4745
4746
4747
4748ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
4749if test "x$ac_cv_func_asprintf" = xyes; then :
4750  $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
4751
4752fi
4753
4754
4755LIBXML2_VERSION_MIN=2.6.11
4756
4757have_libxml2="1"
4758
4759
4760# Check whether --with-xml2-config was given.
4761if test "${with_xml2_config+set}" = set; then :
4762  withval=$with_xml2_config; if test "x${with_xml2_config}" = "xno" ; then
4763  XML2_CONFIG=
4764else
4765  XML2_CONFIG="${with_xml2_config}"
4766fi
4767
4768else
4769  XML2_CONFIG=
4770
4771fi
4772
4773if test "x${XML2_CONFIG}" != "x" ; then
4774   if test ! -x "${XML2_CONFIG}" ; then
4775     as_fn_error $? "Unusable or missing xml2-config: ${XML2_CONFIG}" "$LINENO" 5
4776   fi
4777else
4778  # Extract the first word of "xml2-config", so it can be a program name with args.
4779set dummy xml2-config; ac_word=$2
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781$as_echo_n "checking for $ac_word... " >&6; }
4782if ${ac_cv_path_XML2_CONFIG+:} false; then :
4783  $as_echo_n "(cached) " >&6
4784else
4785  case $XML2_CONFIG in
4786  [\\/]* | ?:[\\/]*)
4787  ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
4788  ;;
4789  *)
4790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in ${PATH}
4792do
4793  IFS=$as_save_IFS
4794  test -z "$as_dir" && as_dir=.
4795    for ac_exec_ext in '' $ac_executable_extensions; do
4796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797    ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799    break 2
4800  fi
4801done
4802  done
4803IFS=$as_save_IFS
4804
4805  ;;
4806esac
4807fi
4808XML2_CONFIG=$ac_cv_path_XML2_CONFIG
4809if test -n "$XML2_CONFIG"; then
4810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
4811$as_echo "$XML2_CONFIG" >&6; }
4812else
4813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814$as_echo "no" >&6; }
4815fi
4816
4817
4818  if test "x${XML2_CONFIG}" = "x" ; then
4819    as_fn_error $? "Cannot configure without xml2-config" "$LINENO" 5
4820  fi
4821fi
4822
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml >= ${LIBXML2_VERSION_MIN}" >&5
4824$as_echo_n "checking for libxml >= ${LIBXML2_VERSION_MIN}... " >&6; }
4825LIBXML2_FOUND=`2>&1 ${XML2_CONFIG} --version`
4826LIBXML2_MAJOR=`echo ${LIBXML2_FOUND} | tr . " " | awk '{print $1}'`
4827LIBXML2_MINOR=`echo ${LIBXML2_FOUND} | tr . " " | awk '{print $2}' | tr a-z " " |awk '{print $1}'`
4828LIBXML2_BRANCH=`echo ${LIBXML2_FOUND} | tr . " " | awk '{print $3}' | tr a-z " " |awk '{print $1}'`
4829if test "x${LIBXML2_BRANCH}" = "x" ; then
4830  LIBXML2_BRANCH=0
4831fi
4832LIBXML2_MAJOR_MIN=`echo ${LIBXML2_VERSION_MIN} | tr . " " | awk '{print $1}'`
4833LIBXML2_MINOR_MIN=`echo ${LIBXML2_VERSION_MIN} | tr . " " | awk '{print $2}'`
4834LIBXML2_BRANCH_MIN=`echo ${LIBXML2_VERSION_MIN} | tr . " " | awk '{print $3}'`
4835if test ${LIBXML2_MAJOR} -gt ${LIBXML2_MAJOR_MIN} \
4836     -o ${LIBXML2_MAJOR} -eq ${LIBXML2_MAJOR_MIN} \
4837     -a ${LIBXML2_MINOR} -gt ${LIBXML2_MINOR_MIN} \
4838     -o ${LIBXML2_MAJOR} -eq ${LIBXML2_MAJOR_MIN} \
4839     -a ${LIBXML2_MINOR} -eq ${LIBXML2_MINOR_MIN} \
4840     -a ${LIBXML2_BRANCH} -ge $LIBXML2_BRANCH_MIN ; then
4841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBXML2_MAJOR}.${LIBXML2_MINOR}.${LIBXML2_BRANCH}" >&5
4842$as_echo "${LIBXML2_MAJOR}.${LIBXML2_MINOR}.${LIBXML2_BRANCH}" >&6; }
4843  have_libxml2="1"
4844  CPPFLAGS="${CPPFLAGS} `${XML2_CONFIG} --cflags`"
4845  LIBS="${LIBS} `${XML2_CONFIG} --libs`"
4846else
4847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848$as_echo "no" >&6; }
4849  have_libxml2="0"
4850fi
4851if test "x${have_libxml2}" = "x1" ; then
4852    ac_fn_c_check_header_mongrel "$LINENO" "libxml/xmlwriter.h" "ac_cv_header_libxml_xmlwriter_h" "$ac_includes_default"
4853if test "x$ac_cv_header_libxml_xmlwriter_h" = xyes; then :
4854
4855else
4856  have_libxml2="0"
4857fi
4858
4859
4860fi
4861if test "x${have_libxml2}" = "x0" ; then
4862  as_fn_error $? "Cannot build without libxml2" "$LINENO" 5
4863fi
4864
4865have_libz="1"
4866for ac_header in zlib.h
4867do :
4868  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4869if test "x$ac_cv_header_zlib_h" = xyes; then :
4870  cat >>confdefs.h <<_ACEOF
4871#define HAVE_ZLIB_H 1
4872_ACEOF
4873
4874else
4875  have_libz="0"
4876fi
4877
4878done
4879
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4881$as_echo_n "checking for deflate in -lz... " >&6; }
4882if ${ac_cv_lib_z_deflate+:} false; then :
4883  $as_echo_n "(cached) " >&6
4884else
4885  ac_check_lib_save_LIBS=$LIBS
4886LIBS="-lz  $LIBS"
4887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888/* end confdefs.h.  */
4889
4890/* Override any GCC internal prototype to avoid an error.
4891   Use char because int might match the return type of a GCC
4892   builtin and then its argument prototype would still apply.  */
4893#ifdef __cplusplus
4894extern "C"
4895#endif
4896char deflate ();
4897int
4898main ()
4899{
4900return deflate ();
4901  ;
4902  return 0;
4903}
4904_ACEOF
4905if ac_fn_c_try_link "$LINENO"; then :
4906  ac_cv_lib_z_deflate=yes
4907else
4908  ac_cv_lib_z_deflate=no
4909fi
4910rm -f core conftest.err conftest.$ac_objext \
4911    conftest$ac_exeext conftest.$ac_ext
4912LIBS=$ac_check_lib_save_LIBS
4913fi
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4915$as_echo "$ac_cv_lib_z_deflate" >&6; }
4916if test "x$ac_cv_lib_z_deflate" = xyes; then :
4917  cat >>confdefs.h <<_ACEOF
4918#define HAVE_LIBZ 1
4919_ACEOF
4920
4921  LIBS="-lz $LIBS"
4922
4923else
4924  have_libz="0"
4925fi
4926
4927if test "x${have_libz}" = "x0" ; then
4928  as_fn_error $? "Cannot build without libz" "$LINENO" 5
4929fi
4930
4931have_libbz2="1"
4932for ac_header in bzlib.h
4933do :
4934  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
4935if test "x$ac_cv_header_bzlib_h" = xyes; then :
4936  cat >>confdefs.h <<_ACEOF
4937#define HAVE_BZLIB_H 1
4938_ACEOF
4939
4940else
4941  have_libbz2="0"
4942fi
4943
4944done
4945
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
4947$as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; }
4948if ${ac_cv_lib_bz2_BZ2_bzCompress+:} false; then :
4949  $as_echo_n "(cached) " >&6
4950else
4951  ac_check_lib_save_LIBS=$LIBS
4952LIBS="-lbz2  $LIBS"
4953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954/* end confdefs.h.  */
4955
4956/* Override any GCC internal prototype to avoid an error.
4957   Use char because int might match the return type of a GCC
4958   builtin and then its argument prototype would still apply.  */
4959#ifdef __cplusplus
4960extern "C"
4961#endif
4962char BZ2_bzCompress ();
4963int
4964main ()
4965{
4966return BZ2_bzCompress ();
4967  ;
4968  return 0;
4969}
4970_ACEOF
4971if ac_fn_c_try_link "$LINENO"; then :
4972  ac_cv_lib_bz2_BZ2_bzCompress=yes
4973else
4974  ac_cv_lib_bz2_BZ2_bzCompress=no
4975fi
4976rm -f core conftest.err conftest.$ac_objext \
4977    conftest$ac_exeext conftest.$ac_ext
4978LIBS=$ac_check_lib_save_LIBS
4979fi
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
4981$as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
4982if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes; then :
4983  cat >>confdefs.h <<_ACEOF
4984#define HAVE_LIBBZ2 1
4985_ACEOF
4986
4987  LIBS="-lbz2 $LIBS"
4988
4989else
4990  have_libbz2="0"
4991fi
4992
4993if test "x${have_libbz2}" = "x1" ; then
4994  $as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h
4995
4996fi
4997
4998
4999ac_config_headers="$ac_config_headers $cfghdrs"
5000
5001
5002
5003ac_config_files="$ac_config_files $cfgoutputs"
5004
5005
5006cat >confcache <<\_ACEOF
5007# This file is a shell script that caches the results of configure
5008# tests run on this system so they can be shared between configure
5009# scripts and configure runs, see configure's option --config-cache.
5010# It is not useful on other systems.  If it contains results you don't
5011# want to keep, you may remove or edit it.
5012#
5013# config.status only pays attention to the cache file if you give it
5014# the --recheck option to rerun configure.
5015#
5016# `ac_cv_env_foo' variables (set or unset) will be overridden when
5017# loading this file, other *unset* `ac_cv_foo' will be assigned the
5018# following values.
5019
5020_ACEOF
5021
5022# The following way of writing the cache mishandles newlines in values,
5023# but we know of no workaround that is simple, portable, and efficient.
5024# So, we kill variables containing newlines.
5025# Ultrix sh set writes to stderr and can't be redirected directly,
5026# and sets the high bit in the cache file unless we assign to the vars.
5027(
5028  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5029    eval ac_val=\$$ac_var
5030    case $ac_val in #(
5031    *${as_nl}*)
5032      case $ac_var in #(
5033      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5034$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5035      esac
5036      case $ac_var in #(
5037      _ | IFS | as_nl) ;; #(
5038      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5039      *) { eval $ac_var=; unset $ac_var;} ;;
5040      esac ;;
5041    esac
5042  done
5043
5044  (set) 2>&1 |
5045    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5046    *${as_nl}ac_space=\ *)
5047      # `set' does not quote correctly, so add quotes: double-quote
5048      # substitution turns \\\\ into \\, and sed turns \\ into \.
5049      sed -n \
5050	"s/'/'\\\\''/g;
5051	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5052      ;; #(
5053    *)
5054      # `set' quotes correctly as required by POSIX, so do not add quotes.
5055      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5056      ;;
5057    esac |
5058    sort
5059) |
5060  sed '
5061     /^ac_cv_env_/b end
5062     t clear
5063     :clear
5064     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5065     t end
5066     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5067     :end' >>confcache
5068if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5069  if test -w "$cache_file"; then
5070    if test "x$cache_file" != "x/dev/null"; then
5071      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5072$as_echo "$as_me: updating cache $cache_file" >&6;}
5073      if test ! -f "$cache_file" || test -h "$cache_file"; then
5074	cat confcache >"$cache_file"
5075      else
5076        case $cache_file in #(
5077        */* | ?:*)
5078	  mv -f confcache "$cache_file"$$ &&
5079	  mv -f "$cache_file"$$ "$cache_file" ;; #(
5080        *)
5081	  mv -f confcache "$cache_file" ;;
5082	esac
5083      fi
5084    fi
5085  else
5086    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5087$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5088  fi
5089fi
5090rm -f confcache
5091
5092test "x$prefix" = xNONE && prefix=$ac_default_prefix
5093# Let make expand exec_prefix.
5094test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5095
5096DEFS=-DHAVE_CONFIG_H
5097
5098ac_libobjs=
5099ac_ltlibobjs=
5100U=
5101for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5102  # 1. Remove the extension, and $U if already installed.
5103  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5104  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5105  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5106  #    will be set to the directory where LIBOBJS objects are built.
5107  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5108  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5109done
5110LIBOBJS=$ac_libobjs
5111
5112LTLIBOBJS=$ac_ltlibobjs
5113
5114
5115
5116: "${CONFIG_STATUS=./config.status}"
5117ac_write_fail=0
5118ac_clean_files_save=$ac_clean_files
5119ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5121$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5122as_write_fail=0
5123cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5124#! $SHELL
5125# Generated by $as_me.
5126# Run this file to recreate the current configuration.
5127# Compiler output produced by configure, useful for debugging
5128# configure, is in config.log if it exists.
5129
5130debug=false
5131ac_cs_recheck=false
5132ac_cs_silent=false
5133
5134SHELL=\${CONFIG_SHELL-$SHELL}
5135export SHELL
5136_ASEOF
5137cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5138## -------------------- ##
5139## M4sh Initialization. ##
5140## -------------------- ##
5141
5142# Be more Bourne compatible
5143DUALCASE=1; export DUALCASE # for MKS sh
5144if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5145  emulate sh
5146  NULLCMD=:
5147  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5148  # is contrary to our usage.  Disable this feature.
5149  alias -g '${1+"$@"}'='"$@"'
5150  setopt NO_GLOB_SUBST
5151else
5152  case `(set -o) 2>/dev/null` in #(
5153  *posix*) :
5154    set -o posix ;; #(
5155  *) :
5156     ;;
5157esac
5158fi
5159
5160
5161as_nl='
5162'
5163export as_nl
5164# Printing a long string crashes Solaris 7 /usr/bin/printf.
5165as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5166as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5167as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5168# Prefer a ksh shell builtin over an external printf program on Solaris,
5169# but without wasting forks for bash or zsh.
5170if test -z "$BASH_VERSION$ZSH_VERSION" \
5171    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5172  as_echo='print -r --'
5173  as_echo_n='print -rn --'
5174elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5175  as_echo='printf %s\n'
5176  as_echo_n='printf %s'
5177else
5178  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5179    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5180    as_echo_n='/usr/ucb/echo -n'
5181  else
5182    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5183    as_echo_n_body='eval
5184      arg=$1;
5185      case $arg in #(
5186      *"$as_nl"*)
5187	expr "X$arg" : "X\\(.*\\)$as_nl";
5188	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5189      esac;
5190      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5191    '
5192    export as_echo_n_body
5193    as_echo_n='sh -c $as_echo_n_body as_echo'
5194  fi
5195  export as_echo_body
5196  as_echo='sh -c $as_echo_body as_echo'
5197fi
5198
5199# The user is always right.
5200if test "${PATH_SEPARATOR+set}" != set; then
5201  PATH_SEPARATOR=:
5202  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5203    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5204      PATH_SEPARATOR=';'
5205  }
5206fi
5207
5208
5209# IFS
5210# We need space, tab and new line, in precisely that order.  Quoting is
5211# there to prevent editors from complaining about space-tab.
5212# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5213# splitting by setting IFS to empty value.)
5214IFS=" ""	$as_nl"
5215
5216# Find who we are.  Look in the path if we contain no directory separator.
5217as_myself=
5218case $0 in #((
5219  *[\\/]* ) as_myself=$0 ;;
5220  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223  IFS=$as_save_IFS
5224  test -z "$as_dir" && as_dir=.
5225    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5226  done
5227IFS=$as_save_IFS
5228
5229     ;;
5230esac
5231# We did not find ourselves, most probably we were run as `sh COMMAND'
5232# in which case we are not to be found in the path.
5233if test "x$as_myself" = x; then
5234  as_myself=$0
5235fi
5236if test ! -f "$as_myself"; then
5237  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5238  exit 1
5239fi
5240
5241# Unset variables that we do not need and which cause bugs (e.g. in
5242# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5243# suppresses any "Segmentation fault" message there.  '((' could
5244# trigger a bug in pdksh 5.2.14.
5245for as_var in BASH_ENV ENV MAIL MAILPATH
5246do eval test x\${$as_var+set} = xset \
5247  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5248done
5249PS1='$ '
5250PS2='> '
5251PS4='+ '
5252
5253# NLS nuisances.
5254LC_ALL=C
5255export LC_ALL
5256LANGUAGE=C
5257export LANGUAGE
5258
5259# CDPATH.
5260(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5261
5262
5263# as_fn_error STATUS ERROR [LINENO LOG_FD]
5264# ----------------------------------------
5265# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5266# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5267# script with STATUS, using 1 if that was 0.
5268as_fn_error ()
5269{
5270  as_status=$1; test $as_status -eq 0 && as_status=1
5271  if test "$4"; then
5272    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5273    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5274  fi
5275  $as_echo "$as_me: error: $2" >&2
5276  as_fn_exit $as_status
5277} # as_fn_error
5278
5279
5280# as_fn_set_status STATUS
5281# -----------------------
5282# Set $? to STATUS, without forking.
5283as_fn_set_status ()
5284{
5285  return $1
5286} # as_fn_set_status
5287
5288# as_fn_exit STATUS
5289# -----------------
5290# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5291as_fn_exit ()
5292{
5293  set +e
5294  as_fn_set_status $1
5295  exit $1
5296} # as_fn_exit
5297
5298# as_fn_unset VAR
5299# ---------------
5300# Portably unset VAR.
5301as_fn_unset ()
5302{
5303  { eval $1=; unset $1;}
5304}
5305as_unset=as_fn_unset
5306# as_fn_append VAR VALUE
5307# ----------------------
5308# Append the text in VALUE to the end of the definition contained in VAR. Take
5309# advantage of any shell optimizations that allow amortized linear growth over
5310# repeated appends, instead of the typical quadratic growth present in naive
5311# implementations.
5312if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5313  eval 'as_fn_append ()
5314  {
5315    eval $1+=\$2
5316  }'
5317else
5318  as_fn_append ()
5319  {
5320    eval $1=\$$1\$2
5321  }
5322fi # as_fn_append
5323
5324# as_fn_arith ARG...
5325# ------------------
5326# Perform arithmetic evaluation on the ARGs, and store the result in the
5327# global $as_val. Take advantage of shells that can avoid forks. The arguments
5328# must be portable across $(()) and expr.
5329if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5330  eval 'as_fn_arith ()
5331  {
5332    as_val=$(( $* ))
5333  }'
5334else
5335  as_fn_arith ()
5336  {
5337    as_val=`expr "$@" || test $? -eq 1`
5338  }
5339fi # as_fn_arith
5340
5341
5342if expr a : '\(a\)' >/dev/null 2>&1 &&
5343   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5344  as_expr=expr
5345else
5346  as_expr=false
5347fi
5348
5349if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5350  as_basename=basename
5351else
5352  as_basename=false
5353fi
5354
5355if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5356  as_dirname=dirname
5357else
5358  as_dirname=false
5359fi
5360
5361as_me=`$as_basename -- "$0" ||
5362$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5363	 X"$0" : 'X\(//\)$' \| \
5364	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5365$as_echo X/"$0" |
5366    sed '/^.*\/\([^/][^/]*\)\/*$/{
5367	    s//\1/
5368	    q
5369	  }
5370	  /^X\/\(\/\/\)$/{
5371	    s//\1/
5372	    q
5373	  }
5374	  /^X\/\(\/\).*/{
5375	    s//\1/
5376	    q
5377	  }
5378	  s/.*/./; q'`
5379
5380# Avoid depending upon Character Ranges.
5381as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5382as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5383as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5384as_cr_digits='0123456789'
5385as_cr_alnum=$as_cr_Letters$as_cr_digits
5386
5387ECHO_C= ECHO_N= ECHO_T=
5388case `echo -n x` in #(((((
5389-n*)
5390  case `echo 'xy\c'` in
5391  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5392  xy)  ECHO_C='\c';;
5393  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5394       ECHO_T='	';;
5395  esac;;
5396*)
5397  ECHO_N='-n';;
5398esac
5399
5400rm -f conf$$ conf$$.exe conf$$.file
5401if test -d conf$$.dir; then
5402  rm -f conf$$.dir/conf$$.file
5403else
5404  rm -f conf$$.dir
5405  mkdir conf$$.dir 2>/dev/null
5406fi
5407if (echo >conf$$.file) 2>/dev/null; then
5408  if ln -s conf$$.file conf$$ 2>/dev/null; then
5409    as_ln_s='ln -s'
5410    # ... but there are two gotchas:
5411    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5412    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5413    # In both cases, we have to default to `cp -pR'.
5414    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5415      as_ln_s='cp -pR'
5416  elif ln conf$$.file conf$$ 2>/dev/null; then
5417    as_ln_s=ln
5418  else
5419    as_ln_s='cp -pR'
5420  fi
5421else
5422  as_ln_s='cp -pR'
5423fi
5424rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5425rmdir conf$$.dir 2>/dev/null
5426
5427
5428# as_fn_mkdir_p
5429# -------------
5430# Create "$as_dir" as a directory, including parents if necessary.
5431as_fn_mkdir_p ()
5432{
5433
5434  case $as_dir in #(
5435  -*) as_dir=./$as_dir;;
5436  esac
5437  test -d "$as_dir" || eval $as_mkdir_p || {
5438    as_dirs=
5439    while :; do
5440      case $as_dir in #(
5441      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5442      *) as_qdir=$as_dir;;
5443      esac
5444      as_dirs="'$as_qdir' $as_dirs"
5445      as_dir=`$as_dirname -- "$as_dir" ||
5446$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5447	 X"$as_dir" : 'X\(//\)[^/]' \| \
5448	 X"$as_dir" : 'X\(//\)$' \| \
5449	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5450$as_echo X"$as_dir" |
5451    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5452	    s//\1/
5453	    q
5454	  }
5455	  /^X\(\/\/\)[^/].*/{
5456	    s//\1/
5457	    q
5458	  }
5459	  /^X\(\/\/\)$/{
5460	    s//\1/
5461	    q
5462	  }
5463	  /^X\(\/\).*/{
5464	    s//\1/
5465	    q
5466	  }
5467	  s/.*/./; q'`
5468      test -d "$as_dir" && break
5469    done
5470    test -z "$as_dirs" || eval "mkdir $as_dirs"
5471  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5472
5473
5474} # as_fn_mkdir_p
5475if mkdir -p . 2>/dev/null; then
5476  as_mkdir_p='mkdir -p "$as_dir"'
5477else
5478  test -d ./-p && rmdir ./-p
5479  as_mkdir_p=false
5480fi
5481
5482
5483# as_fn_executable_p FILE
5484# -----------------------
5485# Test if FILE is an executable regular file.
5486as_fn_executable_p ()
5487{
5488  test -f "$1" && test -x "$1"
5489} # as_fn_executable_p
5490as_test_x='test -x'
5491as_executable_p=as_fn_executable_p
5492
5493# Sed expression to map a string onto a valid CPP name.
5494as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5495
5496# Sed expression to map a string onto a valid variable name.
5497as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5498
5499
5500exec 6>&1
5501## ----------------------------------- ##
5502## Main body of $CONFIG_STATUS script. ##
5503## ----------------------------------- ##
5504_ASEOF
5505test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5506
5507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5508# Save the log message, to keep $0 and so on meaningful, and to
5509# report actual input values of CONFIG_FILES etc. instead of their
5510# values after options handling.
5511ac_log="
5512This file was extended by Xar $as_me 1.7dev, which was
5513generated by GNU Autoconf 2.69.  Invocation command line was
5514
5515  CONFIG_FILES    = $CONFIG_FILES
5516  CONFIG_HEADERS  = $CONFIG_HEADERS
5517  CONFIG_LINKS    = $CONFIG_LINKS
5518  CONFIG_COMMANDS = $CONFIG_COMMANDS
5519  $ $0 $@
5520
5521on `(hostname || uname -n) 2>/dev/null | sed 1q`
5522"
5523
5524_ACEOF
5525
5526case $ac_config_files in *"
5527"*) set x $ac_config_files; shift; ac_config_files=$*;;
5528esac
5529
5530case $ac_config_headers in *"
5531"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5532esac
5533
5534
5535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5536# Files that config.status was made for.
5537config_files="$ac_config_files"
5538config_headers="$ac_config_headers"
5539
5540_ACEOF
5541
5542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5543ac_cs_usage="\
5544\`$as_me' instantiates files and other configuration actions
5545from templates according to the current configuration.  Unless the files
5546and actions are specified as TAGs, all are instantiated by default.
5547
5548Usage: $0 [OPTION]... [TAG]...
5549
5550  -h, --help       print this help, then exit
5551  -V, --version    print version number and configuration settings, then exit
5552      --config     print configuration, then exit
5553  -q, --quiet, --silent
5554                   do not print progress messages
5555  -d, --debug      don't remove temporary files
5556      --recheck    update $as_me by reconfiguring in the same conditions
5557      --file=FILE[:TEMPLATE]
5558                   instantiate the configuration file FILE
5559      --header=FILE[:TEMPLATE]
5560                   instantiate the configuration header FILE
5561
5562Configuration files:
5563$config_files
5564
5565Configuration headers:
5566$config_headers
5567
5568Report bugs to <xar-devel@googlegroups.com>."
5569
5570_ACEOF
5571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5572ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5573ac_cs_version="\\
5574Xar config.status 1.7dev
5575configured by $0, generated by GNU Autoconf 2.69,
5576  with options \\"\$ac_cs_config\\"
5577
5578Copyright (C) 2012 Free Software Foundation, Inc.
5579This config.status script is free software; the Free Software Foundation
5580gives unlimited permission to copy, distribute and modify it."
5581
5582ac_pwd='$ac_pwd'
5583srcdir='$srcdir'
5584INSTALL='$INSTALL'
5585test -n "\$AWK" || AWK=awk
5586_ACEOF
5587
5588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5589# The default lists apply if the user does not specify any file.
5590ac_need_defaults=:
5591while test $# != 0
5592do
5593  case $1 in
5594  --*=?*)
5595    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5596    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5597    ac_shift=:
5598    ;;
5599  --*=)
5600    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5601    ac_optarg=
5602    ac_shift=:
5603    ;;
5604  *)
5605    ac_option=$1
5606    ac_optarg=$2
5607    ac_shift=shift
5608    ;;
5609  esac
5610
5611  case $ac_option in
5612  # Handling of the options.
5613  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5614    ac_cs_recheck=: ;;
5615  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5616    $as_echo "$ac_cs_version"; exit ;;
5617  --config | --confi | --conf | --con | --co | --c )
5618    $as_echo "$ac_cs_config"; exit ;;
5619  --debug | --debu | --deb | --de | --d | -d )
5620    debug=: ;;
5621  --file | --fil | --fi | --f )
5622    $ac_shift
5623    case $ac_optarg in
5624    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5625    '') as_fn_error $? "missing file argument" ;;
5626    esac
5627    as_fn_append CONFIG_FILES " '$ac_optarg'"
5628    ac_need_defaults=false;;
5629  --header | --heade | --head | --hea )
5630    $ac_shift
5631    case $ac_optarg in
5632    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5633    esac
5634    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5635    ac_need_defaults=false;;
5636  --he | --h)
5637    # Conflict between --help and --header
5638    as_fn_error $? "ambiguous option: \`$1'
5639Try \`$0 --help' for more information.";;
5640  --help | --hel | -h )
5641    $as_echo "$ac_cs_usage"; exit ;;
5642  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5643  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5644    ac_cs_silent=: ;;
5645
5646  # This is an error.
5647  -*) as_fn_error $? "unrecognized option: \`$1'
5648Try \`$0 --help' for more information." ;;
5649
5650  *) as_fn_append ac_config_targets " $1"
5651     ac_need_defaults=false ;;
5652
5653  esac
5654  shift
5655done
5656
5657ac_configure_extra_args=
5658
5659if $ac_cs_silent; then
5660  exec 6>/dev/null
5661  ac_configure_extra_args="$ac_configure_extra_args --silent"
5662fi
5663
5664_ACEOF
5665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5666if \$ac_cs_recheck; then
5667  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5668  shift
5669  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5670  CONFIG_SHELL='$SHELL'
5671  export CONFIG_SHELL
5672  exec "\$@"
5673fi
5674
5675_ACEOF
5676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5677exec 5>>config.log
5678{
5679  echo
5680  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5681## Running $as_me. ##
5682_ASBOX
5683  $as_echo "$ac_log"
5684} >&5
5685
5686_ACEOF
5687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5688_ACEOF
5689
5690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5691
5692# Handling of arguments.
5693for ac_config_target in $ac_config_targets
5694do
5695  case $ac_config_target in
5696    "$cfghdrs") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs" ;;
5697    "$cfgoutputs") CONFIG_FILES="$CONFIG_FILES $cfgoutputs" ;;
5698
5699  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5700  esac
5701done
5702
5703
5704# If the user did not use the arguments to specify the items to instantiate,
5705# then the envvar interface is used.  Set only those that are not.
5706# We use the long form for the default assignment because of an extremely
5707# bizarre bug on SunOS 4.1.3.
5708if $ac_need_defaults; then
5709  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5710  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5711fi
5712
5713# Have a temporary directory for convenience.  Make it in the build tree
5714# simply because there is no reason against having it here, and in addition,
5715# creating and moving files from /tmp can sometimes cause problems.
5716# Hook for its removal unless debugging.
5717# Note that there is a small window in which the directory will not be cleaned:
5718# after its creation but before its name has been assigned to `$tmp'.
5719$debug ||
5720{
5721  tmp= ac_tmp=
5722  trap 'exit_status=$?
5723  : "${ac_tmp:=$tmp}"
5724  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5725' 0
5726  trap 'as_fn_exit 1' 1 2 13 15
5727}
5728# Create a (secure) tmp directory for tmp files.
5729
5730{
5731  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5732  test -d "$tmp"
5733}  ||
5734{
5735  tmp=./conf$$-$RANDOM
5736  (umask 077 && mkdir "$tmp")
5737} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5738ac_tmp=$tmp
5739
5740# Set up the scripts for CONFIG_FILES section.
5741# No need to generate them if there are no CONFIG_FILES.
5742# This happens for instance with `./config.status config.h'.
5743if test -n "$CONFIG_FILES"; then
5744
5745
5746ac_cr=`echo X | tr X '\015'`
5747# On cygwin, bash can eat \r inside `` if the user requested igncr.
5748# But we know of no other shell where ac_cr would be empty at this
5749# point, so we can use a bashism as a fallback.
5750if test "x$ac_cr" = x; then
5751  eval ac_cr=\$\'\\r\'
5752fi
5753ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5754if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5755  ac_cs_awk_cr='\\r'
5756else
5757  ac_cs_awk_cr=$ac_cr
5758fi
5759
5760echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5761_ACEOF
5762
5763
5764{
5765  echo "cat >conf$$subs.awk <<_ACEOF" &&
5766  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5767  echo "_ACEOF"
5768} >conf$$subs.sh ||
5769  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5770ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5771ac_delim='%!_!# '
5772for ac_last_try in false false false false false :; do
5773  . ./conf$$subs.sh ||
5774    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5775
5776  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5777  if test $ac_delim_n = $ac_delim_num; then
5778    break
5779  elif $ac_last_try; then
5780    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5781  else
5782    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5783  fi
5784done
5785rm -f conf$$subs.sh
5786
5787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5788cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5789_ACEOF
5790sed -n '
5791h
5792s/^/S["/; s/!.*/"]=/
5793p
5794g
5795s/^[^!]*!//
5796:repl
5797t repl
5798s/'"$ac_delim"'$//
5799t delim
5800:nl
5801h
5802s/\(.\{148\}\)..*/\1/
5803t more1
5804s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5805p
5806n
5807b repl
5808:more1
5809s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5810p
5811g
5812s/.\{148\}//
5813t nl
5814:delim
5815h
5816s/\(.\{148\}\)..*/\1/
5817t more2
5818s/["\\]/\\&/g; s/^/"/; s/$/"/
5819p
5820b
5821:more2
5822s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5823p
5824g
5825s/.\{148\}//
5826t delim
5827' <conf$$subs.awk | sed '
5828/^[^""]/{
5829  N
5830  s/\n//
5831}
5832' >>$CONFIG_STATUS || ac_write_fail=1
5833rm -f conf$$subs.awk
5834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5835_ACAWK
5836cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5837  for (key in S) S_is_set[key] = 1
5838  FS = ""
5839
5840}
5841{
5842  line = $ 0
5843  nfields = split(line, field, "@")
5844  substed = 0
5845  len = length(field[1])
5846  for (i = 2; i < nfields; i++) {
5847    key = field[i]
5848    keylen = length(key)
5849    if (S_is_set[key]) {
5850      value = S[key]
5851      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5852      len += length(value) + length(field[++i])
5853      substed = 1
5854    } else
5855      len += 1 + keylen
5856  }
5857
5858  print line
5859}
5860
5861_ACAWK
5862_ACEOF
5863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5864if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5865  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5866else
5867  cat
5868fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5869  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5870_ACEOF
5871
5872# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5873# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5874# trailing colons and then remove the whole line if VPATH becomes empty
5875# (actually we leave an empty line to preserve line numbers).
5876if test "x$srcdir" = x.; then
5877  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
5878h
5879s///
5880s/^/:/
5881s/[	 ]*$/:/
5882s/:\$(srcdir):/:/g
5883s/:\${srcdir}:/:/g
5884s/:@srcdir@:/:/g
5885s/^:*//
5886s/:*$//
5887x
5888s/\(=[	 ]*\).*/\1/
5889G
5890s/\n//
5891s/^[^=]*=[	 ]*$//
5892}'
5893fi
5894
5895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5896fi # test -n "$CONFIG_FILES"
5897
5898# Set up the scripts for CONFIG_HEADERS section.
5899# No need to generate them if there are no CONFIG_HEADERS.
5900# This happens for instance with `./config.status Makefile'.
5901if test -n "$CONFIG_HEADERS"; then
5902cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5903BEGIN {
5904_ACEOF
5905
5906# Transform confdefs.h into an awk script `defines.awk', embedded as
5907# here-document in config.status, that substitutes the proper values into
5908# config.h.in to produce config.h.
5909
5910# Create a delimiter string that does not exist in confdefs.h, to ease
5911# handling of long lines.
5912ac_delim='%!_!# '
5913for ac_last_try in false false :; do
5914  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5915  if test -z "$ac_tt"; then
5916    break
5917  elif $ac_last_try; then
5918    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5919  else
5920    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5921  fi
5922done
5923
5924# For the awk script, D is an array of macro values keyed by name,
5925# likewise P contains macro parameters if any.  Preserve backslash
5926# newline sequences.
5927
5928ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5929sed -n '
5930s/.\{148\}/&'"$ac_delim"'/g
5931t rset
5932:rset
5933s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
5934t def
5935d
5936:def
5937s/\\$//
5938t bsnl
5939s/["\\]/\\&/g
5940s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5941D["\1"]=" \3"/p
5942s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
5943d
5944:bsnl
5945s/["\\]/\\&/g
5946s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5947D["\1"]=" \3\\\\\\n"\\/p
5948t cont
5949s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5950t cont
5951d
5952:cont
5953n
5954s/.\{148\}/&'"$ac_delim"'/g
5955t clear
5956:clear
5957s/\\$//
5958t bsnlc
5959s/["\\]/\\&/g; s/^/"/; s/$/"/p
5960d
5961:bsnlc
5962s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5963b cont
5964' <confdefs.h | sed '
5965s/'"$ac_delim"'/"\\\
5966"/g' >>$CONFIG_STATUS || ac_write_fail=1
5967
5968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5969  for (key in D) D_is_set[key] = 1
5970  FS = ""
5971}
5972/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5973  line = \$ 0
5974  split(line, arg, " ")
5975  if (arg[1] == "#") {
5976    defundef = arg[2]
5977    mac1 = arg[3]
5978  } else {
5979    defundef = substr(arg[1], 2)
5980    mac1 = arg[2]
5981  }
5982  split(mac1, mac2, "(") #)
5983  macro = mac2[1]
5984  prefix = substr(line, 1, index(line, defundef) - 1)
5985  if (D_is_set[macro]) {
5986    # Preserve the white space surrounding the "#".
5987    print prefix "define", macro P[macro] D[macro]
5988    next
5989  } else {
5990    # Replace #undef with comments.  This is necessary, for example,
5991    # in the case of _POSIX_SOURCE, which is predefined and required
5992    # on some systems where configure will not decide to define it.
5993    if (defundef == "undef") {
5994      print "/*", prefix defundef, macro, "*/"
5995      next
5996    }
5997  }
5998}
5999{ print }
6000_ACAWK
6001_ACEOF
6002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6003  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6004fi # test -n "$CONFIG_HEADERS"
6005
6006
6007eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6008shift
6009for ac_tag
6010do
6011  case $ac_tag in
6012  :[FHLC]) ac_mode=$ac_tag; continue;;
6013  esac
6014  case $ac_mode$ac_tag in
6015  :[FHL]*:*);;
6016  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6017  :[FH]-) ac_tag=-:-;;
6018  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6019  esac
6020  ac_save_IFS=$IFS
6021  IFS=:
6022  set x $ac_tag
6023  IFS=$ac_save_IFS
6024  shift
6025  ac_file=$1
6026  shift
6027
6028  case $ac_mode in
6029  :L) ac_source=$1;;
6030  :[FH])
6031    ac_file_inputs=
6032    for ac_f
6033    do
6034      case $ac_f in
6035      -) ac_f="$ac_tmp/stdin";;
6036      *) # Look for the file first in the build tree, then in the source tree
6037	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6038	 # because $ac_f cannot contain `:'.
6039	 test -f "$ac_f" ||
6040	   case $ac_f in
6041	   [\\/$]*) false;;
6042	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6043	   esac ||
6044	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6045      esac
6046      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6047      as_fn_append ac_file_inputs " '$ac_f'"
6048    done
6049
6050    # Let's still pretend it is `configure' which instantiates (i.e., don't
6051    # use $as_me), people would be surprised to read:
6052    #    /* config.h.  Generated by config.status.  */
6053    configure_input='Generated from '`
6054	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6055	`' by configure.'
6056    if test x"$ac_file" != x-; then
6057      configure_input="$ac_file.  $configure_input"
6058      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6059$as_echo "$as_me: creating $ac_file" >&6;}
6060    fi
6061    # Neutralize special characters interpreted by sed in replacement strings.
6062    case $configure_input in #(
6063    *\&* | *\|* | *\\* )
6064       ac_sed_conf_input=`$as_echo "$configure_input" |
6065       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6066    *) ac_sed_conf_input=$configure_input;;
6067    esac
6068
6069    case $ac_tag in
6070    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6071      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6072    esac
6073    ;;
6074  esac
6075
6076  ac_dir=`$as_dirname -- "$ac_file" ||
6077$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6078	 X"$ac_file" : 'X\(//\)[^/]' \| \
6079	 X"$ac_file" : 'X\(//\)$' \| \
6080	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6081$as_echo X"$ac_file" |
6082    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6083	    s//\1/
6084	    q
6085	  }
6086	  /^X\(\/\/\)[^/].*/{
6087	    s//\1/
6088	    q
6089	  }
6090	  /^X\(\/\/\)$/{
6091	    s//\1/
6092	    q
6093	  }
6094	  /^X\(\/\).*/{
6095	    s//\1/
6096	    q
6097	  }
6098	  s/.*/./; q'`
6099  as_dir="$ac_dir"; as_fn_mkdir_p
6100  ac_builddir=.
6101
6102case "$ac_dir" in
6103.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6104*)
6105  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6106  # A ".." for each directory in $ac_dir_suffix.
6107  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6108  case $ac_top_builddir_sub in
6109  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6110  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6111  esac ;;
6112esac
6113ac_abs_top_builddir=$ac_pwd
6114ac_abs_builddir=$ac_pwd$ac_dir_suffix
6115# for backward compatibility:
6116ac_top_builddir=$ac_top_build_prefix
6117
6118case $srcdir in
6119  .)  # We are building in place.
6120    ac_srcdir=.
6121    ac_top_srcdir=$ac_top_builddir_sub
6122    ac_abs_top_srcdir=$ac_pwd ;;
6123  [\\/]* | ?:[\\/]* )  # Absolute name.
6124    ac_srcdir=$srcdir$ac_dir_suffix;
6125    ac_top_srcdir=$srcdir
6126    ac_abs_top_srcdir=$srcdir ;;
6127  *) # Relative name.
6128    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6129    ac_top_srcdir=$ac_top_build_prefix$srcdir
6130    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6131esac
6132ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6133
6134
6135  case $ac_mode in
6136  :F)
6137  #
6138  # CONFIG_FILE
6139  #
6140
6141  case $INSTALL in
6142  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6143  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6144  esac
6145_ACEOF
6146
6147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6148# If the template does not know about datarootdir, expand it.
6149# FIXME: This hack should be removed a few years after 2.60.
6150ac_datarootdir_hack=; ac_datarootdir_seen=
6151ac_sed_dataroot='
6152/datarootdir/ {
6153  p
6154  q
6155}
6156/@datadir@/p
6157/@docdir@/p
6158/@infodir@/p
6159/@localedir@/p
6160/@mandir@/p'
6161case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6162*datarootdir*) ac_datarootdir_seen=yes;;
6163*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6164  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6165$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6166_ACEOF
6167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6168  ac_datarootdir_hack='
6169  s&@datadir@&$datadir&g
6170  s&@docdir@&$docdir&g
6171  s&@infodir@&$infodir&g
6172  s&@localedir@&$localedir&g
6173  s&@mandir@&$mandir&g
6174  s&\\\${datarootdir}&$datarootdir&g' ;;
6175esac
6176_ACEOF
6177
6178# Neutralize VPATH when `$srcdir' = `.'.
6179# Shell code in configure.ac might set extrasub.
6180# FIXME: do we really want to maintain this feature?
6181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6182ac_sed_extra="$ac_vpsub
6183$extrasub
6184_ACEOF
6185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6186:t
6187/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6188s|@configure_input@|$ac_sed_conf_input|;t t
6189s&@top_builddir@&$ac_top_builddir_sub&;t t
6190s&@top_build_prefix@&$ac_top_build_prefix&;t t
6191s&@srcdir@&$ac_srcdir&;t t
6192s&@abs_srcdir@&$ac_abs_srcdir&;t t
6193s&@top_srcdir@&$ac_top_srcdir&;t t
6194s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6195s&@builddir@&$ac_builddir&;t t
6196s&@abs_builddir@&$ac_abs_builddir&;t t
6197s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6198s&@INSTALL@&$ac_INSTALL&;t t
6199$ac_datarootdir_hack
6200"
6201eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6202  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6203
6204test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6205  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6206  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
6207      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6209which seems to be undefined.  Please make sure it is defined" >&5
6210$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6211which seems to be undefined.  Please make sure it is defined" >&2;}
6212
6213  rm -f "$ac_tmp/stdin"
6214  case $ac_file in
6215  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6216  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6217  esac \
6218  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6219 ;;
6220  :H)
6221  #
6222  # CONFIG_HEADER
6223  #
6224  if test x"$ac_file" != x-; then
6225    {
6226      $as_echo "/* $configure_input  */" \
6227      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6228    } >"$ac_tmp/config.h" \
6229      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6230    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6231      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6232$as_echo "$as_me: $ac_file is unchanged" >&6;}
6233    else
6234      rm -f "$ac_file"
6235      mv "$ac_tmp/config.h" "$ac_file" \
6236	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6237    fi
6238  else
6239    $as_echo "/* $configure_input  */" \
6240      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6241      || as_fn_error $? "could not create -" "$LINENO" 5
6242  fi
6243 ;;
6244
6245
6246  esac
6247
6248done # for ac_tag
6249
6250
6251as_fn_exit 0
6252_ACEOF
6253ac_clean_files=$ac_clean_files_save
6254
6255test $ac_write_fail = 0 ||
6256  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6257
6258
6259# configure is writing to config.log, and then calls config.status.
6260# config.status does its own redirection, appending to config.log.
6261# Unfortunately, on DOS this fails, as config.log is still kept open
6262# by configure, so config.status won't be able to write to it; its
6263# output is simply discarded.  So we exec the FD to /dev/null,
6264# effectively closing config.log, so it can be properly (re)opened and
6265# appended to by config.status.  When coming back to configure, we
6266# need to make the FD available again.
6267if test "$no_create" != yes; then
6268  ac_cs_success=:
6269  ac_config_status_args=
6270  test "$silent" = yes &&
6271    ac_config_status_args="$ac_config_status_args --quiet"
6272  exec 5>/dev/null
6273  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6274  exec 5>>config.log
6275  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6276  # would make configure fail if this is the last instruction.
6277  $ac_cs_success || as_fn_exit 1
6278fi
6279if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6280  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6281$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6282fi
6283
6284