1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libarchive 3.5.2.
4#
5# Report bugs to <libarchive-discuss@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
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: libarchive-discuss@googlegroups.com about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libarchive'
592PACKAGE_TARNAME='libarchive'
593PACKAGE_VERSION='3.5.2'
594PACKAGE_STRING='libarchive 3.5.2'
595PACKAGE_BUGREPORT='libarchive-discuss@googlegroups.com'
596PACKAGE_URL=''
597
598ac_unique_file="libarchive"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638INC_FREEBSD_ACL_FALSE
639INC_FREEBSD_ACL_TRUE
640INC_DARWIN_ACL_FALSE
641INC_DARWIN_ACL_TRUE
642INC_SUNOS_ACL_FALSE
643INC_SUNOS_ACL_TRUE
644INC_LINUX_ACL_FALSE
645INC_LINUX_ACL_TRUE
646LIBOBJS
647LIBXML2_PC_LIBS
648LIBXML2_PC_CFLAGS
649PKG_CONFIG_LIBDIR
650PKG_CONFIG_PATH
651PKG_CONFIG
652LTLIBICONV
653LIBICONV
654INC_BLAKE2_FALSE
655INC_BLAKE2_TRUE
656STATIC_BSDCPIO_FALSE
657STATIC_BSDCPIO_TRUE
658BUILD_BSDCPIO_FALSE
659BUILD_BSDCPIO_TRUE
660STATIC_BSDCAT_FALSE
661STATIC_BSDCAT_TRUE
662BUILD_BSDCAT_FALSE
663BUILD_BSDCAT_TRUE
664STATIC_BSDTAR_FALSE
665STATIC_BSDTAR_TRUE
666BUILD_BSDTAR_FALSE
667BUILD_BSDTAR_TRUE
668LT_SYS_LIBRARY_PATH
669OTOOL64
670OTOOL
671LIPO
672NMEDIT
673DSYMUTIL
674MANIFEST_TOOL
675RANLIB
676ac_ct_AR
677AR
678LN_S
679NM
680ac_ct_DUMPBIN
681DUMPBIN
682LD
683FGREP
684SED
685LIBTOOL
686OBJDUMP
687DLLTOOL
688AS
689EGREP
690GREP
691CPP
692am__fastdepCC_FALSE
693am__fastdepCC_TRUE
694CCDEPMODE
695am__nodep
696AMDEPBACKSLASH
697AMDEP_FALSE
698AMDEP_TRUE
699am__include
700DEPDIR
701OBJEXT
702EXEEXT
703ac_ct_CC
704CPPFLAGS
705LDFLAGS
706CFLAGS
707CC
708PLATFORMCPPFLAGS
709INC_CYGWIN_FILES_FALSE
710INC_CYGWIN_FILES_TRUE
711INC_WINDOWS_FILES_FALSE
712INC_WINDOWS_FILES_TRUE
713host_os
714host_vendor
715host_cpu
716host
717build_os
718build_vendor
719build_cpu
720build
721LIBARCHIVE_VERSION_NUMBER
722LIBARCHIVE_VERSION_STRING
723BSDCAT_VERSION_STRING
724BSDTAR_VERSION_STRING
725BSDCPIO_VERSION_STRING
726ARCHIVE_LIBTOOL_VERSION
727MAINT
728MAINTAINER_MODE_FALSE
729MAINTAINER_MODE_TRUE
730AM_BACKSLASH
731AM_DEFAULT_VERBOSITY
732AM_DEFAULT_V
733AM_V
734am__untar
735am__tar
736AMTAR
737am__leading_dot
738SET_MAKE
739AWK
740mkdir_p
741MKDIR_P
742INSTALL_STRIP_PROGRAM
743STRIP
744install_sh
745MAKEINFO
746AUTOHEADER
747AUTOMAKE
748AUTOCONF
749ACLOCAL
750VERSION
751PACKAGE
752CYGPATH_W
753am__isrc
754INSTALL_DATA
755INSTALL_SCRIPT
756INSTALL_PROGRAM
757target_alias
758host_alias
759build_alias
760LIBS
761ECHO_T
762ECHO_N
763ECHO_C
764DEFS
765mandir
766localedir
767libdir
768psdir
769pdfdir
770dvidir
771htmldir
772infodir
773docdir
774oldincludedir
775includedir
776runstatedir
777localstatedir
778sharedstatedir
779sysconfdir
780datadir
781datarootdir
782libexecdir
783sbindir
784bindir
785program_transform_name
786prefix
787exec_prefix
788PACKAGE_URL
789PACKAGE_BUGREPORT
790PACKAGE_STRING
791PACKAGE_VERSION
792PACKAGE_TARNAME
793PACKAGE_NAME
794PATH_SEPARATOR
795SHELL
796am__quote'
797ac_subst_files=''
798ac_user_opts='
799enable_option_checking
800enable_silent_rules
801enable_maintainer_mode
802enable_dependency_tracking
803enable_shared
804enable_static
805with_pic
806enable_fast_install
807with_aix_soname
808with_gnu_ld
809with_sysroot
810enable_libtool_lock
811enable_bsdtar
812enable_bsdcat
813enable_bsdcpio
814with_zlib
815with_bz2lib
816with_libb2
817with_iconv
818enable_rpath
819with_libiconv_prefix
820with_lz4
821with_zstd
822with_lzma
823with_lzo2
824with_cng
825with_mbedtls
826with_nettle
827with_openssl
828with_xml2
829with_expat
830enable_posix_regex_lib
831enable_xattr
832enable_acl
833enable_largefile
834'
835      ac_precious_vars='build_alias
836host_alias
837target_alias
838CC
839CFLAGS
840LDFLAGS
841LIBS
842CPPFLAGS
843CPP
844LT_SYS_LIBRARY_PATH
845PKG_CONFIG
846PKG_CONFIG_PATH
847PKG_CONFIG_LIBDIR
848LIBXML2_PC_CFLAGS
849LIBXML2_PC_LIBS'
850
851
852# Initialize some variables set by options.
853ac_init_help=
854ac_init_version=false
855ac_unrecognized_opts=
856ac_unrecognized_sep=
857# The variables have the same names as the options, with
858# dashes changed to underlines.
859cache_file=/dev/null
860exec_prefix=NONE
861no_create=
862no_recursion=
863prefix=NONE
864program_prefix=NONE
865program_suffix=NONE
866program_transform_name=s,x,x,
867silent=
868site=
869srcdir=
870verbose=
871x_includes=NONE
872x_libraries=NONE
873
874# Installation directory options.
875# These are left unexpanded so users can "make install exec_prefix=/foo"
876# and all the variables that are supposed to be based on exec_prefix
877# by default will actually change.
878# Use braces instead of parens because sh, perl, etc. also accept them.
879# (The list follows the same order as the GNU Coding Standards.)
880bindir='${exec_prefix}/bin'
881sbindir='${exec_prefix}/sbin'
882libexecdir='${exec_prefix}/libexec'
883datarootdir='${prefix}/share'
884datadir='${datarootdir}'
885sysconfdir='${prefix}/etc'
886sharedstatedir='${prefix}/com'
887localstatedir='${prefix}/var'
888runstatedir='${localstatedir}/run'
889includedir='${prefix}/include'
890oldincludedir='/usr/include'
891docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892infodir='${datarootdir}/info'
893htmldir='${docdir}'
894dvidir='${docdir}'
895pdfdir='${docdir}'
896psdir='${docdir}'
897libdir='${exec_prefix}/lib'
898localedir='${datarootdir}/locale'
899mandir='${datarootdir}/man'
900
901ac_prev=
902ac_dashdash=
903for ac_option
904do
905  # If the previous option needs an argument, assign it.
906  if test -n "$ac_prev"; then
907    eval $ac_prev=\$ac_option
908    ac_prev=
909    continue
910  fi
911
912  case $ac_option in
913  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914  *=)   ac_optarg= ;;
915  *)    ac_optarg=yes ;;
916  esac
917
918  # Accept the important Cygnus configure options, so we can diagnose typos.
919
920  case $ac_dashdash$ac_option in
921  --)
922    ac_dashdash=yes ;;
923
924  -bindir | --bindir | --bindi | --bind | --bin | --bi)
925    ac_prev=bindir ;;
926  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927    bindir=$ac_optarg ;;
928
929  -build | --build | --buil | --bui | --bu)
930    ac_prev=build_alias ;;
931  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932    build_alias=$ac_optarg ;;
933
934  -cache-file | --cache-file | --cache-fil | --cache-fi \
935  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936    ac_prev=cache_file ;;
937  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939    cache_file=$ac_optarg ;;
940
941  --config-cache | -C)
942    cache_file=config.cache ;;
943
944  -datadir | --datadir | --datadi | --datad)
945    ac_prev=datadir ;;
946  -datadir=* | --datadir=* | --datadi=* | --datad=*)
947    datadir=$ac_optarg ;;
948
949  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950  | --dataroo | --dataro | --datar)
951    ac_prev=datarootdir ;;
952  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954    datarootdir=$ac_optarg ;;
955
956  -disable-* | --disable-*)
957    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958    # Reject names that are not valid shell variable names.
959    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960      as_fn_error $? "invalid feature name: $ac_useropt"
961    ac_useropt_orig=$ac_useropt
962    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963    case $ac_user_opts in
964      *"
965"enable_$ac_useropt"
966"*) ;;
967      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968	 ac_unrecognized_sep=', ';;
969    esac
970    eval enable_$ac_useropt=no ;;
971
972  -docdir | --docdir | --docdi | --doc | --do)
973    ac_prev=docdir ;;
974  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975    docdir=$ac_optarg ;;
976
977  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978    ac_prev=dvidir ;;
979  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980    dvidir=$ac_optarg ;;
981
982  -enable-* | --enable-*)
983    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984    # Reject names that are not valid shell variable names.
985    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986      as_fn_error $? "invalid feature name: $ac_useropt"
987    ac_useropt_orig=$ac_useropt
988    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989    case $ac_user_opts in
990      *"
991"enable_$ac_useropt"
992"*) ;;
993      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994	 ac_unrecognized_sep=', ';;
995    esac
996    eval enable_$ac_useropt=\$ac_optarg ;;
997
998  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000  | --exec | --exe | --ex)
1001    ac_prev=exec_prefix ;;
1002  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004  | --exec=* | --exe=* | --ex=*)
1005    exec_prefix=$ac_optarg ;;
1006
1007  -gas | --gas | --ga | --g)
1008    # Obsolete; use --with-gas.
1009    with_gas=yes ;;
1010
1011  -help | --help | --hel | --he | -h)
1012    ac_init_help=long ;;
1013  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014    ac_init_help=recursive ;;
1015  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016    ac_init_help=short ;;
1017
1018  -host | --host | --hos | --ho)
1019    ac_prev=host_alias ;;
1020  -host=* | --host=* | --hos=* | --ho=*)
1021    host_alias=$ac_optarg ;;
1022
1023  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024    ac_prev=htmldir ;;
1025  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026  | --ht=*)
1027    htmldir=$ac_optarg ;;
1028
1029  -includedir | --includedir | --includedi | --included | --include \
1030  | --includ | --inclu | --incl | --inc)
1031    ac_prev=includedir ;;
1032  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033  | --includ=* | --inclu=* | --incl=* | --inc=*)
1034    includedir=$ac_optarg ;;
1035
1036  -infodir | --infodir | --infodi | --infod | --info | --inf)
1037    ac_prev=infodir ;;
1038  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039    infodir=$ac_optarg ;;
1040
1041  -libdir | --libdir | --libdi | --libd)
1042    ac_prev=libdir ;;
1043  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044    libdir=$ac_optarg ;;
1045
1046  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047  | --libexe | --libex | --libe)
1048    ac_prev=libexecdir ;;
1049  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050  | --libexe=* | --libex=* | --libe=*)
1051    libexecdir=$ac_optarg ;;
1052
1053  -localedir | --localedir | --localedi | --localed | --locale)
1054    ac_prev=localedir ;;
1055  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056    localedir=$ac_optarg ;;
1057
1058  -localstatedir | --localstatedir | --localstatedi | --localstated \
1059  | --localstate | --localstat | --localsta | --localst | --locals)
1060    ac_prev=localstatedir ;;
1061  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063    localstatedir=$ac_optarg ;;
1064
1065  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066    ac_prev=mandir ;;
1067  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068    mandir=$ac_optarg ;;
1069
1070  -nfp | --nfp | --nf)
1071    # Obsolete; use --without-fp.
1072    with_fp=no ;;
1073
1074  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075  | --no-cr | --no-c | -n)
1076    no_create=yes ;;
1077
1078  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080    no_recursion=yes ;;
1081
1082  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084  | --oldin | --oldi | --old | --ol | --o)
1085    ac_prev=oldincludedir ;;
1086  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089    oldincludedir=$ac_optarg ;;
1090
1091  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092    ac_prev=prefix ;;
1093  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094    prefix=$ac_optarg ;;
1095
1096  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097  | --program-pre | --program-pr | --program-p)
1098    ac_prev=program_prefix ;;
1099  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101    program_prefix=$ac_optarg ;;
1102
1103  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104  | --program-suf | --program-su | --program-s)
1105    ac_prev=program_suffix ;;
1106  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108    program_suffix=$ac_optarg ;;
1109
1110  -program-transform-name | --program-transform-name \
1111  | --program-transform-nam | --program-transform-na \
1112  | --program-transform-n | --program-transform- \
1113  | --program-transform | --program-transfor \
1114  | --program-transfo | --program-transf \
1115  | --program-trans | --program-tran \
1116  | --progr-tra | --program-tr | --program-t)
1117    ac_prev=program_transform_name ;;
1118  -program-transform-name=* | --program-transform-name=* \
1119  | --program-transform-nam=* | --program-transform-na=* \
1120  | --program-transform-n=* | --program-transform-=* \
1121  | --program-transform=* | --program-transfor=* \
1122  | --program-transfo=* | --program-transf=* \
1123  | --program-trans=* | --program-tran=* \
1124  | --progr-tra=* | --program-tr=* | --program-t=*)
1125    program_transform_name=$ac_optarg ;;
1126
1127  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128    ac_prev=pdfdir ;;
1129  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130    pdfdir=$ac_optarg ;;
1131
1132  -psdir | --psdir | --psdi | --psd | --ps)
1133    ac_prev=psdir ;;
1134  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135    psdir=$ac_optarg ;;
1136
1137  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138  | -silent | --silent | --silen | --sile | --sil)
1139    silent=yes ;;
1140
1141  -runstatedir | --runstatedir | --runstatedi | --runstated \
1142  | --runstate | --runstat | --runsta | --runst | --runs \
1143  | --run | --ru | --r)
1144    ac_prev=runstatedir ;;
1145  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1146  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1147  | --run=* | --ru=* | --r=*)
1148    runstatedir=$ac_optarg ;;
1149
1150  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151    ac_prev=sbindir ;;
1152  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153  | --sbi=* | --sb=*)
1154    sbindir=$ac_optarg ;;
1155
1156  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158  | --sharedst | --shareds | --shared | --share | --shar \
1159  | --sha | --sh)
1160    ac_prev=sharedstatedir ;;
1161  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164  | --sha=* | --sh=*)
1165    sharedstatedir=$ac_optarg ;;
1166
1167  -site | --site | --sit)
1168    ac_prev=site ;;
1169  -site=* | --site=* | --sit=*)
1170    site=$ac_optarg ;;
1171
1172  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173    ac_prev=srcdir ;;
1174  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175    srcdir=$ac_optarg ;;
1176
1177  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178  | --syscon | --sysco | --sysc | --sys | --sy)
1179    ac_prev=sysconfdir ;;
1180  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182    sysconfdir=$ac_optarg ;;
1183
1184  -target | --target | --targe | --targ | --tar | --ta | --t)
1185    ac_prev=target_alias ;;
1186  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187    target_alias=$ac_optarg ;;
1188
1189  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190    verbose=yes ;;
1191
1192  -version | --version | --versio | --versi | --vers | -V)
1193    ac_init_version=: ;;
1194
1195  -with-* | --with-*)
1196    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197    # Reject names that are not valid shell variable names.
1198    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199      as_fn_error $? "invalid package name: $ac_useropt"
1200    ac_useropt_orig=$ac_useropt
1201    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202    case $ac_user_opts in
1203      *"
1204"with_$ac_useropt"
1205"*) ;;
1206      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207	 ac_unrecognized_sep=', ';;
1208    esac
1209    eval with_$ac_useropt=\$ac_optarg ;;
1210
1211  -without-* | --without-*)
1212    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215      as_fn_error $? "invalid package name: $ac_useropt"
1216    ac_useropt_orig=$ac_useropt
1217    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218    case $ac_user_opts in
1219      *"
1220"with_$ac_useropt"
1221"*) ;;
1222      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223	 ac_unrecognized_sep=', ';;
1224    esac
1225    eval with_$ac_useropt=no ;;
1226
1227  --x)
1228    # Obsolete; use --with-x.
1229    with_x=yes ;;
1230
1231  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232  | --x-incl | --x-inc | --x-in | --x-i)
1233    ac_prev=x_includes ;;
1234  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236    x_includes=$ac_optarg ;;
1237
1238  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240    ac_prev=x_libraries ;;
1241  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243    x_libraries=$ac_optarg ;;
1244
1245  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246Try \`$0 --help' for more information"
1247    ;;
1248
1249  *=*)
1250    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251    # Reject names that are not valid shell variable names.
1252    case $ac_envvar in #(
1253      '' | [0-9]* | *[!_$as_cr_alnum]* )
1254      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1255    esac
1256    eval $ac_envvar=\$ac_optarg
1257    export $ac_envvar ;;
1258
1259  *)
1260    # FIXME: should be removed in autoconf 3.0.
1261    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265    ;;
1266
1267  esac
1268done
1269
1270if test -n "$ac_prev"; then
1271  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272  as_fn_error $? "missing argument to $ac_option"
1273fi
1274
1275if test -n "$ac_unrecognized_opts"; then
1276  case $enable_option_checking in
1277    no) ;;
1278    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280  esac
1281fi
1282
1283# Check all directory arguments for consistency.
1284for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285		datadir sysconfdir sharedstatedir localstatedir includedir \
1286		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287		libdir localedir mandir runstatedir
1288do
1289  eval ac_val=\$$ac_var
1290  # Remove trailing slashes.
1291  case $ac_val in
1292    */ )
1293      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294      eval $ac_var=\$ac_val;;
1295  esac
1296  # Be sure to have absolute directory names.
1297  case $ac_val in
1298    [\\/$]* | ?:[\\/]* )  continue;;
1299    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300  esac
1301  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302done
1303
1304# There might be people who depend on the old broken behavior: `$host'
1305# used to hold the argument of --host etc.
1306# FIXME: To remove some day.
1307build=$build_alias
1308host=$host_alias
1309target=$target_alias
1310
1311# FIXME: To remove some day.
1312if test "x$host_alias" != x; then
1313  if test "x$build_alias" = x; then
1314    cross_compiling=maybe
1315  elif test "x$build_alias" != "x$host_alias"; then
1316    cross_compiling=yes
1317  fi
1318fi
1319
1320ac_tool_prefix=
1321test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323test "$silent" = yes && exec 6>/dev/null
1324
1325
1326ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327ac_ls_di=`ls -di .` &&
1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329  as_fn_error $? "working directory cannot be determined"
1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331  as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336  ac_srcdir_defaulted=yes
1337  # Try the directory containing this script, then the parent directory.
1338  ac_confdir=`$as_dirname -- "$as_myself" ||
1339$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340	 X"$as_myself" : 'X\(//\)[^/]' \| \
1341	 X"$as_myself" : 'X\(//\)$' \| \
1342	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343$as_echo X"$as_myself" |
1344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\/\)[^/].*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\).*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  s/.*/./; q'`
1361  srcdir=$ac_confdir
1362  if test ! -r "$srcdir/$ac_unique_file"; then
1363    srcdir=..
1364  fi
1365else
1366  ac_srcdir_defaulted=no
1367fi
1368if test ! -r "$srcdir/$ac_unique_file"; then
1369  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371fi
1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373ac_abs_confdir=`(
1374	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375	pwd)`
1376# When building in place, set srcdir=.
1377if test "$ac_abs_confdir" = "$ac_pwd"; then
1378  srcdir=.
1379fi
1380# Remove unnecessary trailing slashes from srcdir.
1381# Double slashes in file names in object file debugging info
1382# mess up M-x gdb in Emacs.
1383case $srcdir in
1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385esac
1386for ac_var in $ac_precious_vars; do
1387  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_env_${ac_var}_value=\$${ac_var}
1389  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391done
1392
1393#
1394# Report the --help message.
1395#
1396if test "$ac_init_help" = "long"; then
1397  # Omit some internal or obsolete options to make the list less imposing.
1398  # This message is too long to be a string in the A/UX 3.1 sh.
1399  cat <<_ACEOF
1400\`configure' configures libarchive 3.5.2 to adapt to many kinds of systems.
1401
1402Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405VAR=VALUE.  See below for descriptions of some of the useful variables.
1406
1407Defaults for the options are specified in brackets.
1408
1409Configuration:
1410  -h, --help              display this help and exit
1411      --help=short        display options specific to this package
1412      --help=recursive    display the short help of all the included packages
1413  -V, --version           display version information and exit
1414  -q, --quiet, --silent   do not print \`checking ...' messages
1415      --cache-file=FILE   cache test results in FILE [disabled]
1416  -C, --config-cache      alias for \`--cache-file=config.cache'
1417  -n, --no-create         do not create output files
1418      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1419
1420Installation directories:
1421  --prefix=PREFIX         install architecture-independent files in PREFIX
1422                          [$ac_default_prefix]
1423  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1424                          [PREFIX]
1425
1426By default, \`make install' will install all the files in
1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1428an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429for instance \`--prefix=\$HOME'.
1430
1431For better control, use the options below.
1432
1433Fine tuning of the installation directories:
1434  --bindir=DIR            user executables [EPREFIX/bin]
1435  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1436  --libexecdir=DIR        program executables [EPREFIX/libexec]
1437  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1438  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1439  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1440  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1441  --libdir=DIR            object code libraries [EPREFIX/lib]
1442  --includedir=DIR        C header files [PREFIX/include]
1443  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1444  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1445  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1446  --infodir=DIR           info documentation [DATAROOTDIR/info]
1447  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1448  --mandir=DIR            man documentation [DATAROOTDIR/man]
1449  --docdir=DIR            documentation root [DATAROOTDIR/doc/libarchive]
1450  --htmldir=DIR           html documentation [DOCDIR]
1451  --dvidir=DIR            dvi documentation [DOCDIR]
1452  --pdfdir=DIR            pdf documentation [DOCDIR]
1453  --psdir=DIR             ps documentation [DOCDIR]
1454_ACEOF
1455
1456  cat <<\_ACEOF
1457
1458Program names:
1459  --program-prefix=PREFIX            prepend PREFIX to installed program names
1460  --program-suffix=SUFFIX            append SUFFIX to installed program names
1461  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1462
1463System types:
1464  --build=BUILD     configure for building on BUILD [guessed]
1465  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1466_ACEOF
1467fi
1468
1469if test -n "$ac_init_help"; then
1470  case $ac_init_help in
1471     short | recursive ) echo "Configuration of libarchive 3.5.2:";;
1472   esac
1473  cat <<\_ACEOF
1474
1475Optional Features:
1476  --disable-option-checking  ignore unrecognized --enable/--with options
1477  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1478  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1479  --enable-silent-rules   less verbose build output (undo: "make V=1")
1480  --disable-silent-rules  verbose build output (undo: "make V=0")
1481  --disable-maintainer-mode
1482                          disable make rules and dependencies not useful (and
1483                          sometimes confusing) to the casual installer
1484  --enable-dependency-tracking
1485                          do not reject slow dependency extractors
1486  --disable-dependency-tracking
1487                          speeds up one-time build
1488  --enable-shared[=PKGS]  build shared libraries [default=yes]
1489  --enable-static[=PKGS]  build static libraries [default=yes]
1490  --enable-fast-install[=PKGS]
1491                          optimize for fast installation [default=yes]
1492  --disable-libtool-lock  avoid locking (might break parallel builds)
1493  --enable-bsdtar         enable build of bsdtar (default)
1494	  --enable-bsdtar=static  force static build of bsdtar
1495	  --enable-bsdtar=shared  force dynamic build of bsdtar
1496  --disable-bsdtar        disable build of bsdtar
1497  --enable-bsdcat         enable build of bsdcat (default)
1498	  --enable-bsdcat=static  force static build of bsdcat
1499	  --enable-bsdcat=shared  force dynamic build of bsdcat
1500  --disable-bsdcat        disable build of bsdcat
1501  --enable-bsdcpio        enable build of bsdcpio (default)
1502	  --enable-bsdcpio=static static build of bsdcpio
1503	  --enable-bsdcpio=shared dynamic build of bsdcpio
1504  --disable-bsdcpio       disable build of bsdcpio
1505  --disable-rpath         do not hardcode runtime library paths
1506  --enable-posix-regex-lib
1507                          choose what library to use for POSIX regular
1508                          expression support (default: auto)
1509    --enable-posix-regex-lib=libc
1510                          use libc POSIX regular expression support
1511    --enable-posix-regex-lib=libregex
1512                          use libregex POSIX regular expression support
1513    --enable-posix-regex-lib=libpcreposix
1514                          use libpcreposix POSIX regular expression support
1515    --disable-posix-regex-lib
1516                          don't enable POSIX regular expression support
1517  --disable-xattr         Disable Extended Attributes support (default: check)
1518  --disable-acl           Disable ACL support (default: check)
1519  --disable-largefile     omit support for large files
1520
1521Optional Packages:
1522  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1523  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1524  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1525                          both]
1526  --with-aix-soname=aix|svr4|both
1527                          shared library versioning (aka "SONAME") variant to
1528                          provide on AIX, [default=aix].
1529  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1530  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1531                          compiler's sysroot if not specified).
1532  --without-zlib          Don't build support for gzip through zlib
1533  --without-bz2lib        Don't build support for bzip2 through bz2lib
1534  --without-libb2         Don't build support for BLAKE2 through libb2
1535  --without-iconv         Don't try to link against iconv
1536  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1537  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1538  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1539  --without-lz4           Don't build support for lz4 through liblz4
1540  --without-zstd          Don't build support for zstd through libzstd
1541  --without-lzma          Don't build support for xz through lzma
1542  --with-lzo2             Build with LZO support from liblzo2
1543  --without-cng           Don't build support of CNG(Crypto Next Generation)
1544  --with-mbedtls          Build with crypto support from mbed TLS
1545  --with-nettle           Build with crypto support from Nettle
1546  --without-openssl       Don't build support for mtree and xar hashes through
1547                          openssl
1548  --without-xml2          Don't build support for xar through libxml2
1549  --without-expat         Don't build support for xar through expat
1550
1551Some influential environment variables:
1552  CC          C compiler command
1553  CFLAGS      C compiler flags
1554  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1555              nonstandard directory <lib dir>
1556  LIBS        libraries to pass to the linker, e.g. -l<library>
1557  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1558              you have headers in a nonstandard directory <include dir>
1559  CPP         C preprocessor
1560  LT_SYS_LIBRARY_PATH
1561              User-defined run-time library search path.
1562  PKG_CONFIG  path to pkg-config utility
1563  PKG_CONFIG_PATH
1564              directories to add to pkg-config's search path
1565  PKG_CONFIG_LIBDIR
1566              path overriding pkg-config's built-in search path
1567  LIBXML2_PC_CFLAGS
1568              C compiler flags for LIBXML2_PC, overriding pkg-config
1569  LIBXML2_PC_LIBS
1570              linker flags for LIBXML2_PC, overriding pkg-config
1571
1572Use these variables to override the choices made by `configure' or to help
1573it to find libraries and programs with nonstandard names/locations.
1574
1575Report bugs to <libarchive-discuss@googlegroups.com>.
1576_ACEOF
1577ac_status=$?
1578fi
1579
1580if test "$ac_init_help" = "recursive"; then
1581  # If there are subdirs, report their specific --help.
1582  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583    test -d "$ac_dir" ||
1584      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585      continue
1586    ac_builddir=.
1587
1588case "$ac_dir" in
1589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590*)
1591  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592  # A ".." for each directory in $ac_dir_suffix.
1593  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594  case $ac_top_builddir_sub in
1595  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597  esac ;;
1598esac
1599ac_abs_top_builddir=$ac_pwd
1600ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601# for backward compatibility:
1602ac_top_builddir=$ac_top_build_prefix
1603
1604case $srcdir in
1605  .)  # We are building in place.
1606    ac_srcdir=.
1607    ac_top_srcdir=$ac_top_builddir_sub
1608    ac_abs_top_srcdir=$ac_pwd ;;
1609  [\\/]* | ?:[\\/]* )  # Absolute name.
1610    ac_srcdir=$srcdir$ac_dir_suffix;
1611    ac_top_srcdir=$srcdir
1612    ac_abs_top_srcdir=$srcdir ;;
1613  *) # Relative name.
1614    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615    ac_top_srcdir=$ac_top_build_prefix$srcdir
1616    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617esac
1618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619
1620    cd "$ac_dir" || { ac_status=$?; continue; }
1621    # Check for guested configure.
1622    if test -f "$ac_srcdir/configure.gnu"; then
1623      echo &&
1624      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625    elif test -f "$ac_srcdir/configure"; then
1626      echo &&
1627      $SHELL "$ac_srcdir/configure" --help=recursive
1628    else
1629      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630    fi || ac_status=$?
1631    cd "$ac_pwd" || { ac_status=$?; break; }
1632  done
1633fi
1634
1635test -n "$ac_init_help" && exit $ac_status
1636if $ac_init_version; then
1637  cat <<\_ACEOF
1638libarchive configure 3.5.2
1639generated by GNU Autoconf 2.69
1640
1641Copyright (C) 2012 Free Software Foundation, Inc.
1642This configure script is free software; the Free Software Foundation
1643gives unlimited permission to copy, distribute and modify it.
1644_ACEOF
1645  exit
1646fi
1647
1648## ------------------------ ##
1649## Autoconf initialization. ##
1650## ------------------------ ##
1651
1652# ac_fn_c_try_compile LINENO
1653# --------------------------
1654# Try to compile conftest.$ac_ext, and return whether this succeeded.
1655ac_fn_c_try_compile ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  rm -f conftest.$ac_objext
1659  if { { ac_try="$ac_compile"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_compile") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } && {
1675	 test -z "$ac_c_werror_flag" ||
1676	 test ! -s conftest.err
1677       } && test -s conftest.$ac_objext; then :
1678  ac_retval=0
1679else
1680  $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683	ac_retval=1
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686  as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_compile
1689
1690# ac_fn_c_try_cpp LINENO
1691# ----------------------
1692# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693ac_fn_c_try_cpp ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  if { { ac_try="$ac_cpp conftest.$ac_ext"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704  ac_status=$?
1705  if test -s conftest.err; then
1706    grep -v '^ *+' conftest.err >conftest.er1
1707    cat conftest.er1 >&5
1708    mv -f conftest.er1 conftest.err
1709  fi
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } > conftest.i && {
1712	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713	 test ! -s conftest.err
1714       }; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720    ac_retval=1
1721fi
1722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_cpp
1726
1727# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1728# -------------------------------------------------------
1729# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1730# the include files in INCLUDES and setting the cache variable VAR
1731# accordingly.
1732ac_fn_c_check_header_mongrel ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  if eval \${$3+:} false; then :
1736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737$as_echo_n "checking for $2... " >&6; }
1738if eval \${$3+:} false; then :
1739  $as_echo_n "(cached) " >&6
1740fi
1741eval ac_res=\$$3
1742	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743$as_echo "$ac_res" >&6; }
1744else
1745  # Is the header compilable?
1746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1747$as_echo_n "checking $2 usability... " >&6; }
1748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750$4
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_compile "$LINENO"; then :
1754  ac_header_compiler=yes
1755else
1756  ac_header_compiler=no
1757fi
1758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1760$as_echo "$ac_header_compiler" >&6; }
1761
1762# Is the header present?
1763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1764$as_echo_n "checking $2 presence... " >&6; }
1765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h.  */
1767#include <$2>
1768_ACEOF
1769if ac_fn_c_try_cpp "$LINENO"; then :
1770  ac_header_preproc=yes
1771else
1772  ac_header_preproc=no
1773fi
1774rm -f conftest.err conftest.i conftest.$ac_ext
1775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1776$as_echo "$ac_header_preproc" >&6; }
1777
1778# So?  What about this header?
1779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1780  yes:no: )
1781    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1782$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1783    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785    ;;
1786  no:yes:* )
1787    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1788$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1790$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1791    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1792$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1794$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1795    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797( $as_echo "## -------------------------------------------------- ##
1798## Report this to libarchive-discuss@googlegroups.com ##
1799## -------------------------------------------------- ##"
1800     ) | sed "s/^/$as_me: WARNING:     /" >&2
1801    ;;
1802esac
1803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806  $as_echo_n "(cached) " >&6
1807else
1808  eval "$3=\$ac_header_compiler"
1809fi
1810eval ac_res=\$$3
1811	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
1813fi
1814  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816} # ac_fn_c_check_header_mongrel
1817
1818# ac_fn_c_try_run LINENO
1819# ----------------------
1820# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1821# that executables *can* be run.
1822ac_fn_c_try_run ()
1823{
1824  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825  if { { ac_try="$ac_link"
1826case "(($ac_try" in
1827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828  *) ac_try_echo=$ac_try;;
1829esac
1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831$as_echo "$ac_try_echo"; } >&5
1832  (eval "$ac_link") 2>&5
1833  ac_status=$?
1834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1836  { { case "(($ac_try" in
1837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838  *) ac_try_echo=$ac_try;;
1839esac
1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841$as_echo "$ac_try_echo"; } >&5
1842  (eval "$ac_try") 2>&5
1843  ac_status=$?
1844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845  test $ac_status = 0; }; }; then :
1846  ac_retval=0
1847else
1848  $as_echo "$as_me: program exited with status $ac_status" >&5
1849       $as_echo "$as_me: failed program was:" >&5
1850sed 's/^/| /' conftest.$ac_ext >&5
1851
1852       ac_retval=$ac_status
1853fi
1854  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856  as_fn_set_status $ac_retval
1857
1858} # ac_fn_c_try_run
1859
1860# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1861# -------------------------------------------------------
1862# Tests whether HEADER exists and can be compiled using the include files in
1863# INCLUDES, setting the cache variable VAR accordingly.
1864ac_fn_c_check_header_compile ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870  $as_echo_n "(cached) " >&6
1871else
1872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h.  */
1874$4
1875#include <$2>
1876_ACEOF
1877if ac_fn_c_try_compile "$LINENO"; then :
1878  eval "$3=yes"
1879else
1880  eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883fi
1884eval ac_res=\$$3
1885	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889} # ac_fn_c_check_header_compile
1890
1891# ac_fn_c_try_link LINENO
1892# -----------------------
1893# Try to link conftest.$ac_ext, and return whether this succeeded.
1894ac_fn_c_try_link ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  rm -f conftest.$ac_objext conftest$ac_exeext
1898  if { { ac_try="$ac_link"
1899case "(($ac_try" in
1900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901  *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905  (eval "$ac_link") 2>conftest.err
1906  ac_status=$?
1907  if test -s conftest.err; then
1908    grep -v '^ *+' conftest.err >conftest.er1
1909    cat conftest.er1 >&5
1910    mv -f conftest.er1 conftest.err
1911  fi
1912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913  test $ac_status = 0; } && {
1914	 test -z "$ac_c_werror_flag" ||
1915	 test ! -s conftest.err
1916       } && test -s conftest$ac_exeext && {
1917	 test "$cross_compiling" = yes ||
1918	 test -x conftest$ac_exeext
1919       }; then :
1920  ac_retval=0
1921else
1922  $as_echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925	ac_retval=1
1926fi
1927  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929  # interfere with the next link command; also delete a directory that is
1930  # left behind by Apple's compiler.  We do this before executing the actions.
1931  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933  as_fn_set_status $ac_retval
1934
1935} # ac_fn_c_try_link
1936
1937# ac_fn_c_check_func LINENO FUNC VAR
1938# ----------------------------------
1939# Tests whether FUNC exists, setting the cache variable VAR accordingly
1940ac_fn_c_check_func ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if eval \${$3+:} false; then :
1946  $as_echo_n "(cached) " >&6
1947else
1948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h.  */
1950/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1952#define $2 innocuous_$2
1953
1954/* System header to define __stub macros and hopefully few prototypes,
1955    which can conflict with char $2 (); below.
1956    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957    <limits.h> exists even on freestanding compilers.  */
1958
1959#ifdef __STDC__
1960# include <limits.h>
1961#else
1962# include <assert.h>
1963#endif
1964
1965#undef $2
1966
1967/* Override any GCC internal prototype to avoid an error.
1968   Use char because int might match the return type of a GCC
1969   builtin and then its argument prototype would still apply.  */
1970#ifdef __cplusplus
1971extern "C"
1972#endif
1973char $2 ();
1974/* The GNU C library defines this for functions which it implements
1975    to always fail with ENOSYS.  Some functions are actually named
1976    something starting with __ and the normal name is an alias.  */
1977#if defined __stub_$2 || defined __stub___$2
1978choke me
1979#endif
1980
1981int
1982main ()
1983{
1984return $2 ();
1985  ;
1986  return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_link "$LINENO"; then :
1990  eval "$3=yes"
1991else
1992  eval "$3=no"
1993fi
1994rm -f core conftest.err conftest.$ac_objext \
1995    conftest$ac_exeext conftest.$ac_ext
1996fi
1997eval ac_res=\$$3
1998	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999$as_echo "$ac_res" >&6; }
2000  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002} # ac_fn_c_check_func
2003
2004# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2005# -------------------------------------------
2006# Tests whether TYPE exists after having included INCLUDES, setting cache
2007# variable VAR accordingly.
2008ac_fn_c_check_type ()
2009{
2010  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012$as_echo_n "checking for $2... " >&6; }
2013if eval \${$3+:} false; then :
2014  $as_echo_n "(cached) " >&6
2015else
2016  eval "$3=no"
2017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h.  */
2019$4
2020int
2021main ()
2022{
2023if (sizeof ($2))
2024	 return 0;
2025  ;
2026  return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h.  */
2032$4
2033int
2034main ()
2035{
2036if (sizeof (($2)))
2037	    return 0;
2038  ;
2039  return 0;
2040}
2041_ACEOF
2042if ac_fn_c_try_compile "$LINENO"; then :
2043
2044else
2045  eval "$3=yes"
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050fi
2051eval ac_res=\$$3
2052	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053$as_echo "$ac_res" >&6; }
2054  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055
2056} # ac_fn_c_check_type
2057
2058# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2059# ----------------------------------------------------
2060# Tries to find if the field MEMBER exists in type AGGR, after including
2061# INCLUDES, setting cache variable VAR accordingly.
2062ac_fn_c_check_member ()
2063{
2064  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2066$as_echo_n "checking for $2.$3... " >&6; }
2067if eval \${$4+:} false; then :
2068  $as_echo_n "(cached) " >&6
2069else
2070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h.  */
2072$5
2073int
2074main ()
2075{
2076static $2 ac_aggr;
2077if (ac_aggr.$3)
2078return 0;
2079  ;
2080  return 0;
2081}
2082_ACEOF
2083if ac_fn_c_try_compile "$LINENO"; then :
2084  eval "$4=yes"
2085else
2086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h.  */
2088$5
2089int
2090main ()
2091{
2092static $2 ac_aggr;
2093if (sizeof ac_aggr.$3)
2094return 0;
2095  ;
2096  return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100  eval "$4=yes"
2101else
2102  eval "$4=no"
2103fi
2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108eval ac_res=\$$4
2109	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113} # ac_fn_c_check_member
2114
2115# ac_fn_c_find_intX_t LINENO BITS VAR
2116# -----------------------------------
2117# Finds a signed integer type with width BITS, setting cache variable VAR
2118# accordingly.
2119ac_fn_c_find_intX_t ()
2120{
2121  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2123$as_echo_n "checking for int$2_t... " >&6; }
2124if eval \${$3+:} false; then :
2125  $as_echo_n "(cached) " >&6
2126else
2127  eval "$3=no"
2128     # Order is important - never check a type that is potentially smaller
2129     # than half of the expected target width.
2130     for ac_type in int$2_t 'int' 'long int' \
2131	 'long long int' 'short int' 'signed char'; do
2132       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h.  */
2134$ac_includes_default
2135	     enum { N = $2 / 2 - 1 };
2136int
2137main ()
2138{
2139static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2140test_array [0] = 0;
2141return test_array [0];
2142
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_compile "$LINENO"; then :
2148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h.  */
2150$ac_includes_default
2151	        enum { N = $2 / 2 - 1 };
2152int
2153main ()
2154{
2155static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2156		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2157test_array [0] = 0;
2158return test_array [0];
2159
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164if ac_fn_c_try_compile "$LINENO"; then :
2165
2166else
2167  case $ac_type in #(
2168  int$2_t) :
2169    eval "$3=yes" ;; #(
2170  *) :
2171    eval "$3=\$ac_type" ;;
2172esac
2173fi
2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177       if eval test \"x\$"$3"\" = x"no"; then :
2178
2179else
2180  break
2181fi
2182     done
2183fi
2184eval ac_res=\$$3
2185	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186$as_echo "$ac_res" >&6; }
2187  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188
2189} # ac_fn_c_find_intX_t
2190
2191# ac_fn_c_find_uintX_t LINENO BITS VAR
2192# ------------------------------------
2193# Finds an unsigned integer type with width BITS, setting cache variable VAR
2194# accordingly.
2195ac_fn_c_find_uintX_t ()
2196{
2197  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2199$as_echo_n "checking for uint$2_t... " >&6; }
2200if eval \${$3+:} false; then :
2201  $as_echo_n "(cached) " >&6
2202else
2203  eval "$3=no"
2204     # Order is important - never check a type that is potentially smaller
2205     # than half of the expected target width.
2206     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2207	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2208       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209/* end confdefs.h.  */
2210$ac_includes_default
2211int
2212main ()
2213{
2214static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2215test_array [0] = 0;
2216return test_array [0];
2217
2218  ;
2219  return 0;
2220}
2221_ACEOF
2222if ac_fn_c_try_compile "$LINENO"; then :
2223  case $ac_type in #(
2224  uint$2_t) :
2225    eval "$3=yes" ;; #(
2226  *) :
2227    eval "$3=\$ac_type" ;;
2228esac
2229fi
2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231       if eval test \"x\$"$3"\" = x"no"; then :
2232
2233else
2234  break
2235fi
2236     done
2237fi
2238eval ac_res=\$$3
2239	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
2241  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242
2243} # ac_fn_c_find_uintX_t
2244
2245# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2246# ---------------------------------------------
2247# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2248# accordingly.
2249ac_fn_c_check_decl ()
2250{
2251  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252  as_decl_name=`echo $2|sed 's/ *(.*//'`
2253  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2255$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2256if eval \${$3+:} false; then :
2257  $as_echo_n "(cached) " >&6
2258else
2259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260/* end confdefs.h.  */
2261$4
2262int
2263main ()
2264{
2265#ifndef $as_decl_name
2266#ifdef __cplusplus
2267  (void) $as_decl_use;
2268#else
2269  (void) $as_decl_name;
2270#endif
2271#endif
2272
2273  ;
2274  return 0;
2275}
2276_ACEOF
2277if ac_fn_c_try_compile "$LINENO"; then :
2278  eval "$3=yes"
2279else
2280  eval "$3=no"
2281fi
2282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283fi
2284eval ac_res=\$$3
2285	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286$as_echo "$ac_res" >&6; }
2287  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288
2289} # ac_fn_c_check_decl
2290
2291# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2292# --------------------------------------------
2293# Tries to find the compile-time value of EXPR in a program that includes
2294# INCLUDES, setting VAR accordingly. Returns whether the value could be
2295# computed
2296ac_fn_c_compute_int ()
2297{
2298  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299  if test "$cross_compiling" = yes; then
2300    # Depending upon the size, compute the lo and hi bounds.
2301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302/* end confdefs.h.  */
2303$4
2304int
2305main ()
2306{
2307static int test_array [1 - 2 * !(($2) >= 0)];
2308test_array [0] = 0;
2309return test_array [0];
2310
2311  ;
2312  return 0;
2313}
2314_ACEOF
2315if ac_fn_c_try_compile "$LINENO"; then :
2316  ac_lo=0 ac_mid=0
2317  while :; do
2318    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319/* end confdefs.h.  */
2320$4
2321int
2322main ()
2323{
2324static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2325test_array [0] = 0;
2326return test_array [0];
2327
2328  ;
2329  return 0;
2330}
2331_ACEOF
2332if ac_fn_c_try_compile "$LINENO"; then :
2333  ac_hi=$ac_mid; break
2334else
2335  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2336			if test $ac_lo -le $ac_mid; then
2337			  ac_lo= ac_hi=
2338			  break
2339			fi
2340			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2341fi
2342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343  done
2344else
2345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346/* end confdefs.h.  */
2347$4
2348int
2349main ()
2350{
2351static int test_array [1 - 2 * !(($2) < 0)];
2352test_array [0] = 0;
2353return test_array [0];
2354
2355  ;
2356  return 0;
2357}
2358_ACEOF
2359if ac_fn_c_try_compile "$LINENO"; then :
2360  ac_hi=-1 ac_mid=-1
2361  while :; do
2362    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363/* end confdefs.h.  */
2364$4
2365int
2366main ()
2367{
2368static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2369test_array [0] = 0;
2370return test_array [0];
2371
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376if ac_fn_c_try_compile "$LINENO"; then :
2377  ac_lo=$ac_mid; break
2378else
2379  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2380			if test $ac_mid -le $ac_hi; then
2381			  ac_lo= ac_hi=
2382			  break
2383			fi
2384			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2385fi
2386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387  done
2388else
2389  ac_lo= ac_hi=
2390fi
2391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392fi
2393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394# Binary search between lo and hi bounds.
2395while test "x$ac_lo" != "x$ac_hi"; do
2396  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398/* end confdefs.h.  */
2399$4
2400int
2401main ()
2402{
2403static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2404test_array [0] = 0;
2405return test_array [0];
2406
2407  ;
2408  return 0;
2409}
2410_ACEOF
2411if ac_fn_c_try_compile "$LINENO"; then :
2412  ac_hi=$ac_mid
2413else
2414  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2415fi
2416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417done
2418case $ac_lo in #((
2419?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2420'') ac_retval=1 ;;
2421esac
2422  else
2423    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424/* end confdefs.h.  */
2425$4
2426static long int longval () { return $2; }
2427static unsigned long int ulongval () { return $2; }
2428#include <stdio.h>
2429#include <stdlib.h>
2430int
2431main ()
2432{
2433
2434  FILE *f = fopen ("conftest.val", "w");
2435  if (! f)
2436    return 1;
2437  if (($2) < 0)
2438    {
2439      long int i = longval ();
2440      if (i != ($2))
2441	return 1;
2442      fprintf (f, "%ld", i);
2443    }
2444  else
2445    {
2446      unsigned long int i = ulongval ();
2447      if (i != ($2))
2448	return 1;
2449      fprintf (f, "%lu", i);
2450    }
2451  /* Do not output a trailing newline, as this causes \r\n confusion
2452     on some platforms.  */
2453  return ferror (f) || fclose (f) != 0;
2454
2455  ;
2456  return 0;
2457}
2458_ACEOF
2459if ac_fn_c_try_run "$LINENO"; then :
2460  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2461else
2462  ac_retval=1
2463fi
2464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2465  conftest.$ac_objext conftest.beam conftest.$ac_ext
2466rm -f conftest.val
2467
2468  fi
2469  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2470  as_fn_set_status $ac_retval
2471
2472} # ac_fn_c_compute_int
2473cat >config.log <<_ACEOF
2474This file contains any messages produced by compilers while
2475running configure, to aid debugging if configure makes a mistake.
2476
2477It was created by libarchive $as_me 3.5.2, which was
2478generated by GNU Autoconf 2.69.  Invocation command line was
2479
2480  $ $0 $@
2481
2482_ACEOF
2483exec 5>>config.log
2484{
2485cat <<_ASUNAME
2486## --------- ##
2487## Platform. ##
2488## --------- ##
2489
2490hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2491uname -m = `(uname -m) 2>/dev/null || echo unknown`
2492uname -r = `(uname -r) 2>/dev/null || echo unknown`
2493uname -s = `(uname -s) 2>/dev/null || echo unknown`
2494uname -v = `(uname -v) 2>/dev/null || echo unknown`
2495
2496/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2497/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2498
2499/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2500/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2501/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2502/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2503/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2504/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2505/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2506
2507_ASUNAME
2508
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512  IFS=$as_save_IFS
2513  test -z "$as_dir" && as_dir=.
2514    $as_echo "PATH: $as_dir"
2515  done
2516IFS=$as_save_IFS
2517
2518} >&5
2519
2520cat >&5 <<_ACEOF
2521
2522
2523## ----------- ##
2524## Core tests. ##
2525## ----------- ##
2526
2527_ACEOF
2528
2529
2530# Keep a trace of the command line.
2531# Strip out --no-create and --no-recursion so they do not pile up.
2532# Strip out --silent because we don't want to record it for future runs.
2533# Also quote any args containing shell meta-characters.
2534# Make two passes to allow for proper duplicate-argument suppression.
2535ac_configure_args=
2536ac_configure_args0=
2537ac_configure_args1=
2538ac_must_keep_next=false
2539for ac_pass in 1 2
2540do
2541  for ac_arg
2542  do
2543    case $ac_arg in
2544    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2545    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2546    | -silent | --silent | --silen | --sile | --sil)
2547      continue ;;
2548    *\'*)
2549      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2550    esac
2551    case $ac_pass in
2552    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2553    2)
2554      as_fn_append ac_configure_args1 " '$ac_arg'"
2555      if test $ac_must_keep_next = true; then
2556	ac_must_keep_next=false # Got value, back to normal.
2557      else
2558	case $ac_arg in
2559	  *=* | --config-cache | -C | -disable-* | --disable-* \
2560	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2561	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2562	  | -with-* | --with-* | -without-* | --without-* | --x)
2563	    case "$ac_configure_args0 " in
2564	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2565	    esac
2566	    ;;
2567	  -* ) ac_must_keep_next=true ;;
2568	esac
2569      fi
2570      as_fn_append ac_configure_args " '$ac_arg'"
2571      ;;
2572    esac
2573  done
2574done
2575{ ac_configure_args0=; unset ac_configure_args0;}
2576{ ac_configure_args1=; unset ac_configure_args1;}
2577
2578# When interrupted or exit'd, cleanup temporary files, and complete
2579# config.log.  We remove comments because anyway the quotes in there
2580# would cause problems or look ugly.
2581# WARNING: Use '\'' to represent an apostrophe within the trap.
2582# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2583trap 'exit_status=$?
2584  # Save into config.log some information that might help in debugging.
2585  {
2586    echo
2587
2588    $as_echo "## ---------------- ##
2589## Cache variables. ##
2590## ---------------- ##"
2591    echo
2592    # The following way of writing the cache mishandles newlines in values,
2593(
2594  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2595    eval ac_val=\$$ac_var
2596    case $ac_val in #(
2597    *${as_nl}*)
2598      case $ac_var in #(
2599      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2600$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2601      esac
2602      case $ac_var in #(
2603      _ | IFS | as_nl) ;; #(
2604      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2605      *) { eval $ac_var=; unset $ac_var;} ;;
2606      esac ;;
2607    esac
2608  done
2609  (set) 2>&1 |
2610    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2611    *${as_nl}ac_space=\ *)
2612      sed -n \
2613	"s/'\''/'\''\\\\'\'''\''/g;
2614	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2615      ;; #(
2616    *)
2617      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2618      ;;
2619    esac |
2620    sort
2621)
2622    echo
2623
2624    $as_echo "## ----------------- ##
2625## Output variables. ##
2626## ----------------- ##"
2627    echo
2628    for ac_var in $ac_subst_vars
2629    do
2630      eval ac_val=\$$ac_var
2631      case $ac_val in
2632      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2633      esac
2634      $as_echo "$ac_var='\''$ac_val'\''"
2635    done | sort
2636    echo
2637
2638    if test -n "$ac_subst_files"; then
2639      $as_echo "## ------------------- ##
2640## File substitutions. ##
2641## ------------------- ##"
2642      echo
2643      for ac_var in $ac_subst_files
2644      do
2645	eval ac_val=\$$ac_var
2646	case $ac_val in
2647	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2648	esac
2649	$as_echo "$ac_var='\''$ac_val'\''"
2650      done | sort
2651      echo
2652    fi
2653
2654    if test -s confdefs.h; then
2655      $as_echo "## ----------- ##
2656## confdefs.h. ##
2657## ----------- ##"
2658      echo
2659      cat confdefs.h
2660      echo
2661    fi
2662    test "$ac_signal" != 0 &&
2663      $as_echo "$as_me: caught signal $ac_signal"
2664    $as_echo "$as_me: exit $exit_status"
2665  } >&5
2666  rm -f core *.core core.conftest.* &&
2667    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2668    exit $exit_status
2669' 0
2670for ac_signal in 1 2 13 15; do
2671  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2672done
2673ac_signal=0
2674
2675# confdefs.h avoids OS command line length limits that DEFS can exceed.
2676rm -f -r conftest* confdefs.h
2677
2678$as_echo "/* confdefs.h */" > confdefs.h
2679
2680# Predefined preprocessor variables.
2681
2682cat >>confdefs.h <<_ACEOF
2683#define PACKAGE_NAME "$PACKAGE_NAME"
2684_ACEOF
2685
2686cat >>confdefs.h <<_ACEOF
2687#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2688_ACEOF
2689
2690cat >>confdefs.h <<_ACEOF
2691#define PACKAGE_VERSION "$PACKAGE_VERSION"
2692_ACEOF
2693
2694cat >>confdefs.h <<_ACEOF
2695#define PACKAGE_STRING "$PACKAGE_STRING"
2696_ACEOF
2697
2698cat >>confdefs.h <<_ACEOF
2699#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2700_ACEOF
2701
2702cat >>confdefs.h <<_ACEOF
2703#define PACKAGE_URL "$PACKAGE_URL"
2704_ACEOF
2705
2706
2707# Let the site file select an alternate cache file if it wants to.
2708# Prefer an explicitly selected file to automatically selected ones.
2709ac_site_file1=NONE
2710ac_site_file2=NONE
2711if test -n "$CONFIG_SITE"; then
2712  # We do not want a PATH search for config.site.
2713  case $CONFIG_SITE in #((
2714    -*)  ac_site_file1=./$CONFIG_SITE;;
2715    */*) ac_site_file1=$CONFIG_SITE;;
2716    *)   ac_site_file1=./$CONFIG_SITE;;
2717  esac
2718elif test "x$prefix" != xNONE; then
2719  ac_site_file1=$prefix/share/config.site
2720  ac_site_file2=$prefix/etc/config.site
2721else
2722  ac_site_file1=$ac_default_prefix/share/config.site
2723  ac_site_file2=$ac_default_prefix/etc/config.site
2724fi
2725for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2726do
2727  test "x$ac_site_file" = xNONE && continue
2728  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2729    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2730$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2731    sed 's/^/| /' "$ac_site_file" >&5
2732    . "$ac_site_file" \
2733      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735as_fn_error $? "failed to load site script $ac_site_file
2736See \`config.log' for more details" "$LINENO" 5; }
2737  fi
2738done
2739
2740if test -r "$cache_file"; then
2741  # Some versions of bash will fail to source /dev/null (special files
2742  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2743  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2744    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2745$as_echo "$as_me: loading cache $cache_file" >&6;}
2746    case $cache_file in
2747      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2748      *)                      . "./$cache_file";;
2749    esac
2750  fi
2751else
2752  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2753$as_echo "$as_me: creating cache $cache_file" >&6;}
2754  >$cache_file
2755fi
2756
2757# Check that the precious variables saved in the cache have kept the same
2758# value.
2759ac_cache_corrupted=false
2760for ac_var in $ac_precious_vars; do
2761  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2762  eval ac_new_set=\$ac_env_${ac_var}_set
2763  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2764  eval ac_new_val=\$ac_env_${ac_var}_value
2765  case $ac_old_set,$ac_new_set in
2766    set,)
2767      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2768$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2769      ac_cache_corrupted=: ;;
2770    ,set)
2771      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2772$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2773      ac_cache_corrupted=: ;;
2774    ,);;
2775    *)
2776      if test "x$ac_old_val" != "x$ac_new_val"; then
2777	# differences in whitespace do not lead to failure.
2778	ac_old_val_w=`echo x $ac_old_val`
2779	ac_new_val_w=`echo x $ac_new_val`
2780	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2781	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2782$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2783	  ac_cache_corrupted=:
2784	else
2785	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2786$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2787	  eval $ac_var=\$ac_old_val
2788	fi
2789	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2790$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2791	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2792$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2793      fi;;
2794  esac
2795  # Pass precious variables to config.status.
2796  if test "$ac_new_set" = set; then
2797    case $ac_new_val in
2798    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2799    *) ac_arg=$ac_var=$ac_new_val ;;
2800    esac
2801    case " $ac_configure_args " in
2802      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2803      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2804    esac
2805  fi
2806done
2807if $ac_cache_corrupted; then
2808  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2810  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2811$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2812  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2813fi
2814## -------------------- ##
2815## Main body of script. ##
2816## -------------------- ##
2817
2818ac_ext=c
2819ac_cpp='$CPP $CPPFLAGS'
2820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823
2824
2825# Make sure the srcdir contains "libarchive" directory
2826
2827# Use auxiliary subscripts from this subdirectory (cleans up root)
2828ac_aux_dir=
2829for ac_dir in build/autoconf "$srcdir"/build/autoconf; do
2830  if test -f "$ac_dir/install-sh"; then
2831    ac_aux_dir=$ac_dir
2832    ac_install_sh="$ac_aux_dir/install-sh -c"
2833    break
2834  elif test -f "$ac_dir/install.sh"; then
2835    ac_aux_dir=$ac_dir
2836    ac_install_sh="$ac_aux_dir/install.sh -c"
2837    break
2838  elif test -f "$ac_dir/shtool"; then
2839    ac_aux_dir=$ac_dir
2840    ac_install_sh="$ac_aux_dir/shtool install -c"
2841    break
2842  fi
2843done
2844if test -z "$ac_aux_dir"; then
2845  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autoconf \"$srcdir\"/build/autoconf" "$LINENO" 5
2846fi
2847
2848# These three variables are undocumented and unsupported,
2849# and are intended to be withdrawn in a future Autoconf release.
2850# They can cause serious problems if a builder's source tree is in a directory
2851# whose full name contains unusual characters.
2852ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2853ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2854ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2855
2856
2857# M4 scripts
2858
2859# Must follow AC_CONFIG macros above...
2860am__api_version='1.16'
2861
2862# Find a good install program.  We prefer a C program (faster),
2863# so one script is as good as another.  But avoid the broken or
2864# incompatible versions:
2865# SysV /etc/install, /usr/sbin/install
2866# SunOS /usr/etc/install
2867# IRIX /sbin/install
2868# AIX /bin/install
2869# AmigaOS /C/install, which installs bootblocks on floppy discs
2870# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2871# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2872# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2873# OS/2's system install, which has a completely different semantic
2874# ./install, which can be erroneously created by make from ./install.sh.
2875# Reject install programs that cannot install multiple files.
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2877$as_echo_n "checking for a BSD-compatible install... " >&6; }
2878if test -z "$INSTALL"; then
2879if ${ac_cv_path_install+:} false; then :
2880  $as_echo_n "(cached) " >&6
2881else
2882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885  IFS=$as_save_IFS
2886  test -z "$as_dir" && as_dir=.
2887    # Account for people who put trailing slashes in PATH elements.
2888case $as_dir/ in #((
2889  ./ | .// | /[cC]/* | \
2890  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2891  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2892  /usr/ucb/* ) ;;
2893  *)
2894    # OSF1 and SCO ODT 3.0 have their own names for install.
2895    # Don't use installbsd from OSF since it installs stuff as root
2896    # by default.
2897    for ac_prog in ginstall scoinst install; do
2898      for ac_exec_ext in '' $ac_executable_extensions; do
2899	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2900	  if test $ac_prog = install &&
2901	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2902	    # AIX install.  It has an incompatible calling convention.
2903	    :
2904	  elif test $ac_prog = install &&
2905	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2906	    # program-specific install script used by HP pwplus--don't use.
2907	    :
2908	  else
2909	    rm -rf conftest.one conftest.two conftest.dir
2910	    echo one > conftest.one
2911	    echo two > conftest.two
2912	    mkdir conftest.dir
2913	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2914	      test -s conftest.one && test -s conftest.two &&
2915	      test -s conftest.dir/conftest.one &&
2916	      test -s conftest.dir/conftest.two
2917	    then
2918	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2919	      break 3
2920	    fi
2921	  fi
2922	fi
2923      done
2924    done
2925    ;;
2926esac
2927
2928  done
2929IFS=$as_save_IFS
2930
2931rm -rf conftest.one conftest.two conftest.dir
2932
2933fi
2934  if test "${ac_cv_path_install+set}" = set; then
2935    INSTALL=$ac_cv_path_install
2936  else
2937    # As a last resort, use the slow shell script.  Don't cache a
2938    # value for INSTALL within a source directory, because that will
2939    # break other packages using the cache if that directory is
2940    # removed, or if the value is a relative name.
2941    INSTALL=$ac_install_sh
2942  fi
2943fi
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2945$as_echo "$INSTALL" >&6; }
2946
2947# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2948# It thinks the first close brace ends the variable substitution.
2949test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2950
2951test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2952
2953test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2954
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2956$as_echo_n "checking whether build environment is sane... " >&6; }
2957# Reject unsafe characters in $srcdir or the absolute working directory
2958# name.  Accept space and tab only in the latter.
2959am_lf='
2960'
2961case `pwd` in
2962  *[\\\"\#\$\&\'\`$am_lf]*)
2963    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2964esac
2965case $srcdir in
2966  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2967    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2968esac
2969
2970# Do 'set' in a subshell so we don't clobber the current shell's
2971# arguments.  Must try -L first in case configure is actually a
2972# symlink; some systems play weird games with the mod time of symlinks
2973# (eg FreeBSD returns the mod time of the symlink's containing
2974# directory).
2975if (
2976   am_has_slept=no
2977   for am_try in 1 2; do
2978     echo "timestamp, slept: $am_has_slept" > conftest.file
2979     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2980     if test "$*" = "X"; then
2981	# -L didn't work.
2982	set X `ls -t "$srcdir/configure" conftest.file`
2983     fi
2984     if test "$*" != "X $srcdir/configure conftest.file" \
2985	&& test "$*" != "X conftest.file $srcdir/configure"; then
2986
2987	# If neither matched, then we have a broken ls.  This can happen
2988	# if, for instance, CONFIG_SHELL is bash and it inherits a
2989	# broken ls alias from the environment.  This has actually
2990	# happened.  Such a system could not be considered "sane".
2991	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2992  alias in your environment" "$LINENO" 5
2993     fi
2994     if test "$2" = conftest.file || test $am_try -eq 2; then
2995       break
2996     fi
2997     # Just in case.
2998     sleep 1
2999     am_has_slept=yes
3000   done
3001   test "$2" = conftest.file
3002   )
3003then
3004   # Ok.
3005   :
3006else
3007   as_fn_error $? "newly created file is older than distributed files!
3008Check your system clock" "$LINENO" 5
3009fi
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3011$as_echo "yes" >&6; }
3012# If we didn't sleep, we still need to ensure time stamps of config.status and
3013# generated files are strictly newer.
3014am_sleep_pid=
3015if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3016  ( sleep 1 ) &
3017  am_sleep_pid=$!
3018fi
3019
3020rm -f conftest.file
3021
3022test "$program_prefix" != NONE &&
3023  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3024# Use a double $ so make ignores it.
3025test "$program_suffix" != NONE &&
3026  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3027# Double any \ or $.
3028# By default was `s,x,x', remove it if useless.
3029ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3030program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3031
3032# Expand $ac_aux_dir to an absolute path.
3033am_aux_dir=`cd "$ac_aux_dir" && pwd`
3034
3035if test x"${MISSING+set}" != xset; then
3036  case $am_aux_dir in
3037  *\ * | *\	*)
3038    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3039  *)
3040    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3041  esac
3042fi
3043# Use eval to expand $SHELL
3044if eval "$MISSING --is-lightweight"; then
3045  am_missing_run="$MISSING "
3046else
3047  am_missing_run=
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3049$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3050fi
3051
3052if test x"${install_sh+set}" != xset; then
3053  case $am_aux_dir in
3054  *\ * | *\	*)
3055    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3056  *)
3057    install_sh="\${SHELL} $am_aux_dir/install-sh"
3058  esac
3059fi
3060
3061# Installed binaries are usually stripped using 'strip' when the user
3062# run "make install-strip".  However 'strip' might not be the right
3063# tool to use in cross-compilation environments, therefore Automake
3064# will honor the 'STRIP' environment variable to overrule this program.
3065if test "$cross_compiling" != no; then
3066  if test -n "$ac_tool_prefix"; then
3067  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3068set dummy ${ac_tool_prefix}strip; ac_word=$2
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070$as_echo_n "checking for $ac_word... " >&6; }
3071if ${ac_cv_prog_STRIP+:} false; then :
3072  $as_echo_n "(cached) " >&6
3073else
3074  if test -n "$STRIP"; then
3075  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3076else
3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078for as_dir in $PATH
3079do
3080  IFS=$as_save_IFS
3081  test -z "$as_dir" && as_dir=.
3082    for ac_exec_ext in '' $ac_executable_extensions; do
3083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086    break 2
3087  fi
3088done
3089  done
3090IFS=$as_save_IFS
3091
3092fi
3093fi
3094STRIP=$ac_cv_prog_STRIP
3095if test -n "$STRIP"; then
3096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3097$as_echo "$STRIP" >&6; }
3098else
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100$as_echo "no" >&6; }
3101fi
3102
3103
3104fi
3105if test -z "$ac_cv_prog_STRIP"; then
3106  ac_ct_STRIP=$STRIP
3107  # Extract the first word of "strip", so it can be a program name with args.
3108set dummy strip; ac_word=$2
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110$as_echo_n "checking for $ac_word... " >&6; }
3111if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3112  $as_echo_n "(cached) " >&6
3113else
3114  if test -n "$ac_ct_STRIP"; then
3115  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3116else
3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120  IFS=$as_save_IFS
3121  test -z "$as_dir" && as_dir=.
3122    for ac_exec_ext in '' $ac_executable_extensions; do
3123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124    ac_cv_prog_ac_ct_STRIP="strip"
3125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126    break 2
3127  fi
3128done
3129  done
3130IFS=$as_save_IFS
3131
3132fi
3133fi
3134ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3135if test -n "$ac_ct_STRIP"; then
3136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3137$as_echo "$ac_ct_STRIP" >&6; }
3138else
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140$as_echo "no" >&6; }
3141fi
3142
3143  if test "x$ac_ct_STRIP" = x; then
3144    STRIP=":"
3145  else
3146    case $cross_compiling:$ac_tool_warned in
3147yes:)
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3150ac_tool_warned=yes ;;
3151esac
3152    STRIP=$ac_ct_STRIP
3153  fi
3154else
3155  STRIP="$ac_cv_prog_STRIP"
3156fi
3157
3158fi
3159INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3160
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3162$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3163if test -z "$MKDIR_P"; then
3164  if ${ac_cv_path_mkdir+:} false; then :
3165  $as_echo_n "(cached) " >&6
3166else
3167  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3169do
3170  IFS=$as_save_IFS
3171  test -z "$as_dir" && as_dir=.
3172    for ac_prog in mkdir gmkdir; do
3173	 for ac_exec_ext in '' $ac_executable_extensions; do
3174	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3175	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3176	     'mkdir (GNU coreutils) '* | \
3177	     'mkdir (coreutils) '* | \
3178	     'mkdir (fileutils) '4.1*)
3179	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3180	       break 3;;
3181	   esac
3182	 done
3183       done
3184  done
3185IFS=$as_save_IFS
3186
3187fi
3188
3189  test -d ./--version && rmdir ./--version
3190  if test "${ac_cv_path_mkdir+set}" = set; then
3191    MKDIR_P="$ac_cv_path_mkdir -p"
3192  else
3193    # As a last resort, use the slow shell script.  Don't cache a
3194    # value for MKDIR_P within a source directory, because that will
3195    # break other packages using the cache if that directory is
3196    # removed, or if the value is a relative name.
3197    MKDIR_P="$ac_install_sh -d"
3198  fi
3199fi
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3201$as_echo "$MKDIR_P" >&6; }
3202
3203for ac_prog in gawk mawk nawk awk
3204do
3205  # Extract the first word of "$ac_prog", so it can be a program name with args.
3206set dummy $ac_prog; ac_word=$2
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208$as_echo_n "checking for $ac_word... " >&6; }
3209if ${ac_cv_prog_AWK+:} false; then :
3210  $as_echo_n "(cached) " >&6
3211else
3212  if test -n "$AWK"; then
3213  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3214else
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218  IFS=$as_save_IFS
3219  test -z "$as_dir" && as_dir=.
3220    for ac_exec_ext in '' $ac_executable_extensions; do
3221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222    ac_cv_prog_AWK="$ac_prog"
3223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224    break 2
3225  fi
3226done
3227  done
3228IFS=$as_save_IFS
3229
3230fi
3231fi
3232AWK=$ac_cv_prog_AWK
3233if test -n "$AWK"; then
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3235$as_echo "$AWK" >&6; }
3236else
3237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239fi
3240
3241
3242  test -n "$AWK" && break
3243done
3244
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3246$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3247set x ${MAKE-make}
3248ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3249if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  cat >conftest.make <<\_ACEOF
3253SHELL = /bin/sh
3254all:
3255	@echo '@@@%%%=$(MAKE)=@@@%%%'
3256_ACEOF
3257# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3258case `${MAKE-make} -f conftest.make 2>/dev/null` in
3259  *@@@%%%=?*=@@@%%%*)
3260    eval ac_cv_prog_make_${ac_make}_set=yes;;
3261  *)
3262    eval ac_cv_prog_make_${ac_make}_set=no;;
3263esac
3264rm -f conftest.make
3265fi
3266if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268$as_echo "yes" >&6; }
3269  SET_MAKE=
3270else
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273  SET_MAKE="MAKE=${MAKE-make}"
3274fi
3275
3276rm -rf .tst 2>/dev/null
3277mkdir .tst 2>/dev/null
3278if test -d .tst; then
3279  am__leading_dot=.
3280else
3281  am__leading_dot=_
3282fi
3283rmdir .tst 2>/dev/null
3284
3285# Check whether --enable-silent-rules was given.
3286if test "${enable_silent_rules+set}" = set; then :
3287  enableval=$enable_silent_rules;
3288fi
3289
3290case $enable_silent_rules in # (((
3291  yes) AM_DEFAULT_VERBOSITY=0;;
3292   no) AM_DEFAULT_VERBOSITY=1;;
3293    *) AM_DEFAULT_VERBOSITY=1;;
3294esac
3295am_make=${MAKE-make}
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3297$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3298if ${am_cv_make_support_nested_variables+:} false; then :
3299  $as_echo_n "(cached) " >&6
3300else
3301  if $as_echo 'TRUE=$(BAR$(V))
3302BAR0=false
3303BAR1=true
3304V=1
3305am__doit:
3306	@$(TRUE)
3307.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3308  am_cv_make_support_nested_variables=yes
3309else
3310  am_cv_make_support_nested_variables=no
3311fi
3312fi
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3314$as_echo "$am_cv_make_support_nested_variables" >&6; }
3315if test $am_cv_make_support_nested_variables = yes; then
3316    AM_V='$(V)'
3317  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3318else
3319  AM_V=$AM_DEFAULT_VERBOSITY
3320  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3321fi
3322AM_BACKSLASH='\'
3323
3324if test "`cd $srcdir && pwd`" != "`pwd`"; then
3325  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3326  # is not polluted with repeated "-I."
3327  am__isrc=' -I$(srcdir)'
3328  # test to see if srcdir already configured
3329  if test -f $srcdir/config.status; then
3330    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3331  fi
3332fi
3333
3334# test whether we have cygpath
3335if test -z "$CYGPATH_W"; then
3336  if (cygpath --version) >/dev/null 2>/dev/null; then
3337    CYGPATH_W='cygpath -w'
3338  else
3339    CYGPATH_W=echo
3340  fi
3341fi
3342
3343
3344# Define the identity of the package.
3345 PACKAGE='libarchive'
3346 VERSION='3.5.2'
3347
3348
3349cat >>confdefs.h <<_ACEOF
3350#define PACKAGE "$PACKAGE"
3351_ACEOF
3352
3353
3354cat >>confdefs.h <<_ACEOF
3355#define VERSION "$VERSION"
3356_ACEOF
3357
3358# Some tools Automake needs.
3359
3360ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3361
3362
3363AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3364
3365
3366AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3367
3368
3369AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3370
3371
3372MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3373
3374# For better backward compatibility.  To be removed once Automake 1.9.x
3375# dies out for good.  For more background, see:
3376# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3377# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3378mkdir_p='$(MKDIR_P)'
3379
3380# We need awk for the "check" target (and possibly the TAP driver).  The
3381# system "awk" is bad on some platforms.
3382# Always define AMTAR for backward compatibility.  Yes, it's still used
3383# in the wild :-(  We should find a proper way to deprecate it ...
3384AMTAR='$${TAR-tar}'
3385
3386
3387# We'll loop over all known methods to create a tar archive until one works.
3388_am_tools='gnutar  pax cpio none'
3389
3390am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3391
3392
3393
3394
3395
3396
3397# POSIX will say in a future version that running "rm -f" with no argument
3398# is OK; and we want to be able to make that assumption in our Makefile
3399# recipes.  So use an aggressive probe to check that the usage we want is
3400# actually supported "in the wild" to an acceptable degree.
3401# See automake bug#10828.
3402# To make any issue more visible, cause the running configure to be aborted
3403# by default if the 'rm' program in use doesn't match our expectations; the
3404# user can still override this though.
3405if rm -f && rm -fr && rm -rf; then : OK; else
3406  cat >&2 <<'END'
3407Oops!
3408
3409Your 'rm' program seems unable to run without file operands specified
3410on the command line, even when the '-f' option is present.  This is contrary
3411to the behaviour of most rm programs out there, and not conforming with
3412the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3413
3414Please tell bug-automake@gnu.org about your system, including the value
3415of your $PATH and any error possibly output before this message.  This
3416can help us improve future automake versions.
3417
3418END
3419  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3420    echo 'Configuration will proceed anyway, since you have set the' >&2
3421    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3422    echo >&2
3423  else
3424    cat >&2 <<'END'
3425Aborting the configuration process, to ensure you take notice of the issue.
3426
3427You can download and install GNU coreutils to get an 'rm' implementation
3428that behaves properly: <https://www.gnu.org/software/coreutils/>.
3429
3430If you want to complete the configuration process using your problematic
3431'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3432to "yes", and re-run configure.
3433
3434END
3435    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3436  fi
3437fi
3438
3439
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3441$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3442    # Check whether --enable-maintainer-mode was given.
3443if test "${enable_maintainer_mode+set}" = set; then :
3444  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3445else
3446  USE_MAINTAINER_MODE=yes
3447fi
3448
3449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3450$as_echo "$USE_MAINTAINER_MODE" >&6; }
3451   if test $USE_MAINTAINER_MODE = yes; then
3452  MAINTAINER_MODE_TRUE=
3453  MAINTAINER_MODE_FALSE='#'
3454else
3455  MAINTAINER_MODE_TRUE='#'
3456  MAINTAINER_MODE_FALSE=
3457fi
3458
3459  MAINT=$MAINTAINER_MODE_TRUE
3460
3461
3462# Check whether --enable-silent-rules was given.
3463if test "${enable_silent_rules+set}" = set; then :
3464  enableval=$enable_silent_rules;
3465fi
3466
3467case $enable_silent_rules in # (((
3468  yes) AM_DEFAULT_VERBOSITY=0;;
3469   no) AM_DEFAULT_VERBOSITY=1;;
3470    *) AM_DEFAULT_VERBOSITY=0;;
3471esac
3472am_make=${MAKE-make}
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3474$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3475if ${am_cv_make_support_nested_variables+:} false; then :
3476  $as_echo_n "(cached) " >&6
3477else
3478  if $as_echo 'TRUE=$(BAR$(V))
3479BAR0=false
3480BAR1=true
3481V=1
3482am__doit:
3483	@$(TRUE)
3484.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3485  am_cv_make_support_nested_variables=yes
3486else
3487  am_cv_make_support_nested_variables=no
3488fi
3489fi
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3491$as_echo "$am_cv_make_support_nested_variables" >&6; }
3492if test $am_cv_make_support_nested_variables = yes; then
3493    AM_V='$(V)'
3494  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3495else
3496  AM_V=$AM_DEFAULT_VERBOSITY
3497  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3498fi
3499AM_BACKSLASH='\'
3500
3501
3502# Libtool's "interface version" can be computed from the libarchive version.
3503
3504# Libtool interface version bumps on any API change, so increments
3505# whenever libarchive minor version does.
3506ARCHIVE_MINOR=$(( (3005002 / 1000) % 1000 ))
3507# Libarchive 2.7 == libtool interface 9 = 2 + 7
3508# Libarchive 2.8 == libtool interface 10 = 2 + 8
3509# Libarchive 2.9 == libtool interface 11 = 2 + 8
3510# Libarchive 3.0 == libtool interface 12
3511# Libarchive 3.1 == libtool interface 13
3512ARCHIVE_INTERFACE=`echo $((13 + ${ARCHIVE_MINOR}))`
3513# Libarchive revision is bumped on any source change === libtool revision
3514ARCHIVE_REVISION=$(( 3005002 % 1000 ))
3515# Libarchive minor is bumped on any interface addition === libtool age
3516ARCHIVE_LIBTOOL_VERSION=$ARCHIVE_INTERFACE:$ARCHIVE_REVISION:$ARCHIVE_MINOR
3517
3518# Stick the version numbers into config.h
3519
3520$as_echo "#define __LIBARCHIVE_CONFIG_H_INCLUDED 1" >>confdefs.h
3521
3522
3523$as_echo "#define LIBARCHIVE_VERSION_STRING \"3.5.2\"" >>confdefs.h
3524
3525
3526cat >>confdefs.h <<_ACEOF
3527#define LIBARCHIVE_VERSION_NUMBER "3005002"
3528_ACEOF
3529
3530
3531$as_echo "#define BSDCPIO_VERSION_STRING \"3.5.2\"" >>confdefs.h
3532
3533
3534$as_echo "#define BSDTAR_VERSION_STRING \"3.5.2\"" >>confdefs.h
3535
3536
3537$as_echo "#define BSDCAT_VERSION_STRING \"3.5.2\"" >>confdefs.h
3538
3539
3540# The shell variables here must be the same as the AC_SUBST() variables
3541# below, but the shell variable names apparently cannot be the same as
3542# the m4 macro names above.  Why?  Ask autoconf.
3543BSDCPIO_VERSION_STRING=3.5.2
3544BSDTAR_VERSION_STRING=3.5.2
3545BSDCAT_VERSION_STRING=3.5.2
3546LIBARCHIVE_VERSION_STRING=3.5.2
3547LIBARCHIVE_VERSION_NUMBER=3005002
3548
3549# Substitute the above version numbers into the various files below.
3550# Yes, I believe this is the fourth time we define what are essentially
3551# the same symbols.  Why? Ask autoconf.
3552
3553
3554
3555
3556
3557
3558
3559ac_config_headers="$ac_config_headers config.h"
3560
3561ac_config_files="$ac_config_files Makefile"
3562
3563ac_config_files="$ac_config_files build/pkgconfig/libarchive.pc"
3564
3565
3566# Check for host type
3567# Make sure we can run config.sub.
3568$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3569  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3570
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3572$as_echo_n "checking build system type... " >&6; }
3573if ${ac_cv_build+:} false; then :
3574  $as_echo_n "(cached) " >&6
3575else
3576  ac_build_alias=$build_alias
3577test "x$ac_build_alias" = x &&
3578  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3579test "x$ac_build_alias" = x &&
3580  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3581ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3582  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3583
3584fi
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3586$as_echo "$ac_cv_build" >&6; }
3587case $ac_cv_build in
3588*-*-*) ;;
3589*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3590esac
3591build=$ac_cv_build
3592ac_save_IFS=$IFS; IFS='-'
3593set x $ac_cv_build
3594shift
3595build_cpu=$1
3596build_vendor=$2
3597shift; shift
3598# Remember, the first character of IFS is used to create $*,
3599# except with old shells:
3600build_os=$*
3601IFS=$ac_save_IFS
3602case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3603
3604
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3606$as_echo_n "checking host system type... " >&6; }
3607if ${ac_cv_host+:} false; then :
3608  $as_echo_n "(cached) " >&6
3609else
3610  if test "x$host_alias" = x; then
3611  ac_cv_host=$ac_cv_build
3612else
3613  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3614    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3615fi
3616
3617fi
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3619$as_echo "$ac_cv_host" >&6; }
3620case $ac_cv_host in
3621*-*-*) ;;
3622*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3623esac
3624host=$ac_cv_host
3625ac_save_IFS=$IFS; IFS='-'
3626set x $ac_cv_host
3627shift
3628host_cpu=$1
3629host_vendor=$2
3630shift; shift
3631# Remember, the first character of IFS is used to create $*,
3632# except with old shells:
3633host_os=$*
3634IFS=$ac_save_IFS
3635case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3636
3637
3638
3639inc_windows_files=no
3640inc_cygwin_files=no
3641case "$host_os" in
3642  *mingw* ) inc_windows_files=yes ;;
3643  *cygwin* | *msys*) inc_cygwin_files=yes ;;
3644esac
3645 if test $inc_windows_files = yes; then
3646  INC_WINDOWS_FILES_TRUE=
3647  INC_WINDOWS_FILES_FALSE='#'
3648else
3649  INC_WINDOWS_FILES_TRUE='#'
3650  INC_WINDOWS_FILES_FALSE=
3651fi
3652
3653 if test $inc_cygwin_files = yes; then
3654  INC_CYGWIN_FILES_TRUE=
3655  INC_CYGWIN_FILES_FALSE='#'
3656else
3657  INC_CYGWIN_FILES_TRUE='#'
3658  INC_CYGWIN_FILES_FALSE=
3659fi
3660
3661
3662PLATFORMCPPFLAGS=
3663case "$host_os" in
3664  *mingw* ) PLATFORMCPPFLAGS=-D__USE_MINGW_ANSI_STDIO ;;
3665esac
3666
3667
3668# Checks for programs.
3669ac_ext=c
3670ac_cpp='$CPP $CPPFLAGS'
3671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674if test -n "$ac_tool_prefix"; then
3675  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3676set dummy ${ac_tool_prefix}gcc; ac_word=$2
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678$as_echo_n "checking for $ac_word... " >&6; }
3679if ${ac_cv_prog_CC+:} false; then :
3680  $as_echo_n "(cached) " >&6
3681else
3682  if test -n "$CC"; then
3683  ac_cv_prog_CC="$CC" # Let the user override the test.
3684else
3685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686for as_dir in $PATH
3687do
3688  IFS=$as_save_IFS
3689  test -z "$as_dir" && as_dir=.
3690    for ac_exec_ext in '' $ac_executable_extensions; do
3691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694    break 2
3695  fi
3696done
3697  done
3698IFS=$as_save_IFS
3699
3700fi
3701fi
3702CC=$ac_cv_prog_CC
3703if test -n "$CC"; then
3704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705$as_echo "$CC" >&6; }
3706else
3707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708$as_echo "no" >&6; }
3709fi
3710
3711
3712fi
3713if test -z "$ac_cv_prog_CC"; then
3714  ac_ct_CC=$CC
3715  # Extract the first word of "gcc", so it can be a program name with args.
3716set dummy gcc; ac_word=$2
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718$as_echo_n "checking for $ac_word... " >&6; }
3719if ${ac_cv_prog_ac_ct_CC+:} false; then :
3720  $as_echo_n "(cached) " >&6
3721else
3722  if test -n "$ac_ct_CC"; then
3723  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3724else
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH
3727do
3728  IFS=$as_save_IFS
3729  test -z "$as_dir" && as_dir=.
3730    for ac_exec_ext in '' $ac_executable_extensions; do
3731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732    ac_cv_prog_ac_ct_CC="gcc"
3733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734    break 2
3735  fi
3736done
3737  done
3738IFS=$as_save_IFS
3739
3740fi
3741fi
3742ac_ct_CC=$ac_cv_prog_ac_ct_CC
3743if test -n "$ac_ct_CC"; then
3744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3745$as_echo "$ac_ct_CC" >&6; }
3746else
3747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748$as_echo "no" >&6; }
3749fi
3750
3751  if test "x$ac_ct_CC" = x; then
3752    CC=""
3753  else
3754    case $cross_compiling:$ac_tool_warned in
3755yes:)
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3758ac_tool_warned=yes ;;
3759esac
3760    CC=$ac_ct_CC
3761  fi
3762else
3763  CC="$ac_cv_prog_CC"
3764fi
3765
3766if test -z "$CC"; then
3767          if test -n "$ac_tool_prefix"; then
3768    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3769set dummy ${ac_tool_prefix}cc; ac_word=$2
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771$as_echo_n "checking for $ac_word... " >&6; }
3772if ${ac_cv_prog_CC+:} false; then :
3773  $as_echo_n "(cached) " >&6
3774else
3775  if test -n "$CC"; then
3776  ac_cv_prog_CC="$CC" # Let the user override the test.
3777else
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781  IFS=$as_save_IFS
3782  test -z "$as_dir" && as_dir=.
3783    for ac_exec_ext in '' $ac_executable_extensions; do
3784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785    ac_cv_prog_CC="${ac_tool_prefix}cc"
3786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787    break 2
3788  fi
3789done
3790  done
3791IFS=$as_save_IFS
3792
3793fi
3794fi
3795CC=$ac_cv_prog_CC
3796if test -n "$CC"; then
3797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3798$as_echo "$CC" >&6; }
3799else
3800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801$as_echo "no" >&6; }
3802fi
3803
3804
3805  fi
3806fi
3807if test -z "$CC"; then
3808  # Extract the first word of "cc", so it can be a program name with args.
3809set dummy cc; ac_word=$2
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811$as_echo_n "checking for $ac_word... " >&6; }
3812if ${ac_cv_prog_CC+:} false; then :
3813  $as_echo_n "(cached) " >&6
3814else
3815  if test -n "$CC"; then
3816  ac_cv_prog_CC="$CC" # Let the user override the test.
3817else
3818  ac_prog_rejected=no
3819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820for as_dir in $PATH
3821do
3822  IFS=$as_save_IFS
3823  test -z "$as_dir" && as_dir=.
3824    for ac_exec_ext in '' $ac_executable_extensions; do
3825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3827       ac_prog_rejected=yes
3828       continue
3829     fi
3830    ac_cv_prog_CC="cc"
3831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3832    break 2
3833  fi
3834done
3835  done
3836IFS=$as_save_IFS
3837
3838if test $ac_prog_rejected = yes; then
3839  # We found a bogon in the path, so make sure we never use it.
3840  set dummy $ac_cv_prog_CC
3841  shift
3842  if test $# != 0; then
3843    # We chose a different compiler from the bogus one.
3844    # However, it has the same basename, so the bogon will be chosen
3845    # first if we set CC to just the basename; use the full file name.
3846    shift
3847    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3848  fi
3849fi
3850fi
3851fi
3852CC=$ac_cv_prog_CC
3853if test -n "$CC"; then
3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3855$as_echo "$CC" >&6; }
3856else
3857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
3859fi
3860
3861
3862fi
3863if test -z "$CC"; then
3864  if test -n "$ac_tool_prefix"; then
3865  for ac_prog in cl.exe
3866  do
3867    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3868set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870$as_echo_n "checking for $ac_word... " >&6; }
3871if ${ac_cv_prog_CC+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  if test -n "$CC"; then
3875  ac_cv_prog_CC="$CC" # Let the user override the test.
3876else
3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH
3879do
3880  IFS=$as_save_IFS
3881  test -z "$as_dir" && as_dir=.
3882    for ac_exec_ext in '' $ac_executable_extensions; do
3883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886    break 2
3887  fi
3888done
3889  done
3890IFS=$as_save_IFS
3891
3892fi
3893fi
3894CC=$ac_cv_prog_CC
3895if test -n "$CC"; then
3896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897$as_echo "$CC" >&6; }
3898else
3899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
3901fi
3902
3903
3904    test -n "$CC" && break
3905  done
3906fi
3907if test -z "$CC"; then
3908  ac_ct_CC=$CC
3909  for ac_prog in cl.exe
3910do
3911  # Extract the first word of "$ac_prog", so it can be a program name with args.
3912set dummy $ac_prog; ac_word=$2
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914$as_echo_n "checking for $ac_word... " >&6; }
3915if ${ac_cv_prog_ac_ct_CC+:} false; then :
3916  $as_echo_n "(cached) " >&6
3917else
3918  if test -n "$ac_ct_CC"; then
3919  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3920else
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924  IFS=$as_save_IFS
3925  test -z "$as_dir" && as_dir=.
3926    for ac_exec_ext in '' $ac_executable_extensions; do
3927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928    ac_cv_prog_ac_ct_CC="$ac_prog"
3929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930    break 2
3931  fi
3932done
3933  done
3934IFS=$as_save_IFS
3935
3936fi
3937fi
3938ac_ct_CC=$ac_cv_prog_ac_ct_CC
3939if test -n "$ac_ct_CC"; then
3940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3941$as_echo "$ac_ct_CC" >&6; }
3942else
3943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944$as_echo "no" >&6; }
3945fi
3946
3947
3948  test -n "$ac_ct_CC" && break
3949done
3950
3951  if test "x$ac_ct_CC" = x; then
3952    CC=""
3953  else
3954    case $cross_compiling:$ac_tool_warned in
3955yes:)
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3958ac_tool_warned=yes ;;
3959esac
3960    CC=$ac_ct_CC
3961  fi
3962fi
3963
3964fi
3965
3966
3967test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969as_fn_error $? "no acceptable C compiler found in \$PATH
3970See \`config.log' for more details" "$LINENO" 5; }
3971
3972# Provide some information about the compiler.
3973$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3974set X $ac_compile
3975ac_compiler=$2
3976for ac_option in --version -v -V -qversion; do
3977  { { ac_try="$ac_compiler $ac_option >&5"
3978case "(($ac_try" in
3979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980  *) ac_try_echo=$ac_try;;
3981esac
3982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983$as_echo "$ac_try_echo"; } >&5
3984  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3985  ac_status=$?
3986  if test -s conftest.err; then
3987    sed '10a\
3988... rest of stderr output deleted ...
3989         10q' conftest.err >conftest.er1
3990    cat conftest.er1 >&5
3991  fi
3992  rm -f conftest.er1 conftest.err
3993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994  test $ac_status = 0; }
3995done
3996
3997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998/* end confdefs.h.  */
3999
4000int
4001main ()
4002{
4003
4004  ;
4005  return 0;
4006}
4007_ACEOF
4008ac_clean_files_save=$ac_clean_files
4009ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4010# Try to create an executable without -o first, disregard a.out.
4011# It will help us diagnose broken compilers, and finding out an intuition
4012# of exeext.
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4014$as_echo_n "checking whether the C compiler works... " >&6; }
4015ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4016
4017# The possible output files:
4018ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4019
4020ac_rmfiles=
4021for ac_file in $ac_files
4022do
4023  case $ac_file in
4024    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4025    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4026  esac
4027done
4028rm -f $ac_rmfiles
4029
4030if { { ac_try="$ac_link_default"
4031case "(($ac_try" in
4032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033  *) ac_try_echo=$ac_try;;
4034esac
4035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036$as_echo "$ac_try_echo"; } >&5
4037  (eval "$ac_link_default") 2>&5
4038  ac_status=$?
4039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040  test $ac_status = 0; }; then :
4041  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4042# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4043# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4044# so that the user can short-circuit this test for compilers unknown to
4045# Autoconf.
4046for ac_file in $ac_files ''
4047do
4048  test -f "$ac_file" || continue
4049  case $ac_file in
4050    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4051	;;
4052    [ab].out )
4053	# We found the default executable, but exeext='' is most
4054	# certainly right.
4055	break;;
4056    *.* )
4057	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4058	then :; else
4059	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4060	fi
4061	# We set ac_cv_exeext here because the later test for it is not
4062	# safe: cross compilers may not add the suffix if given an `-o'
4063	# argument, so we may need to know it at that point already.
4064	# Even if this section looks crufty: it has the advantage of
4065	# actually working.
4066	break;;
4067    * )
4068	break;;
4069  esac
4070done
4071test "$ac_cv_exeext" = no && ac_cv_exeext=
4072
4073else
4074  ac_file=''
4075fi
4076if test -z "$ac_file"; then :
4077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078$as_echo "no" >&6; }
4079$as_echo "$as_me: failed program was:" >&5
4080sed 's/^/| /' conftest.$ac_ext >&5
4081
4082{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084as_fn_error 77 "C compiler cannot create executables
4085See \`config.log' for more details" "$LINENO" 5; }
4086else
4087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4088$as_echo "yes" >&6; }
4089fi
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4091$as_echo_n "checking for C compiler default output file name... " >&6; }
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4093$as_echo "$ac_file" >&6; }
4094ac_exeext=$ac_cv_exeext
4095
4096rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4097ac_clean_files=$ac_clean_files_save
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4099$as_echo_n "checking for suffix of executables... " >&6; }
4100if { { ac_try="$ac_link"
4101case "(($ac_try" in
4102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103  *) ac_try_echo=$ac_try;;
4104esac
4105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106$as_echo "$ac_try_echo"; } >&5
4107  (eval "$ac_link") 2>&5
4108  ac_status=$?
4109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110  test $ac_status = 0; }; then :
4111  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4112# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4113# work properly (i.e., refer to `conftest.exe'), while it won't with
4114# `rm'.
4115for ac_file in conftest.exe conftest conftest.*; do
4116  test -f "$ac_file" || continue
4117  case $ac_file in
4118    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4119    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4120	  break;;
4121    * ) break;;
4122  esac
4123done
4124else
4125  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4127as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4128See \`config.log' for more details" "$LINENO" 5; }
4129fi
4130rm -f conftest conftest$ac_cv_exeext
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4132$as_echo "$ac_cv_exeext" >&6; }
4133
4134rm -f conftest.$ac_ext
4135EXEEXT=$ac_cv_exeext
4136ac_exeext=$EXEEXT
4137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138/* end confdefs.h.  */
4139#include <stdio.h>
4140int
4141main ()
4142{
4143FILE *f = fopen ("conftest.out", "w");
4144 return ferror (f) || fclose (f) != 0;
4145
4146  ;
4147  return 0;
4148}
4149_ACEOF
4150ac_clean_files="$ac_clean_files conftest.out"
4151# Check that the compiler produces executables we can run.  If not, either
4152# the compiler is broken, or we cross compile.
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4154$as_echo_n "checking whether we are cross compiling... " >&6; }
4155if test "$cross_compiling" != yes; then
4156  { { ac_try="$ac_link"
4157case "(($ac_try" in
4158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159  *) ac_try_echo=$ac_try;;
4160esac
4161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4162$as_echo "$ac_try_echo"; } >&5
4163  (eval "$ac_link") 2>&5
4164  ac_status=$?
4165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4166  test $ac_status = 0; }
4167  if { ac_try='./conftest$ac_cv_exeext'
4168  { { case "(($ac_try" in
4169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170  *) ac_try_echo=$ac_try;;
4171esac
4172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4173$as_echo "$ac_try_echo"; } >&5
4174  (eval "$ac_try") 2>&5
4175  ac_status=$?
4176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177  test $ac_status = 0; }; }; then
4178    cross_compiling=no
4179  else
4180    if test "$cross_compiling" = maybe; then
4181	cross_compiling=yes
4182    else
4183	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185as_fn_error $? "cannot run C compiled programs.
4186If you meant to cross compile, use \`--host'.
4187See \`config.log' for more details" "$LINENO" 5; }
4188    fi
4189  fi
4190fi
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4192$as_echo "$cross_compiling" >&6; }
4193
4194rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4195ac_clean_files=$ac_clean_files_save
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4197$as_echo_n "checking for suffix of object files... " >&6; }
4198if ${ac_cv_objext+:} false; then :
4199  $as_echo_n "(cached) " >&6
4200else
4201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202/* end confdefs.h.  */
4203
4204int
4205main ()
4206{
4207
4208  ;
4209  return 0;
4210}
4211_ACEOF
4212rm -f conftest.o conftest.obj
4213if { { ac_try="$ac_compile"
4214case "(($ac_try" in
4215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216  *) ac_try_echo=$ac_try;;
4217esac
4218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219$as_echo "$ac_try_echo"; } >&5
4220  (eval "$ac_compile") 2>&5
4221  ac_status=$?
4222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223  test $ac_status = 0; }; then :
4224  for ac_file in conftest.o conftest.obj conftest.*; do
4225  test -f "$ac_file" || continue;
4226  case $ac_file in
4227    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4228    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4229       break;;
4230  esac
4231done
4232else
4233  $as_echo "$as_me: failed program was:" >&5
4234sed 's/^/| /' conftest.$ac_ext >&5
4235
4236{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4238as_fn_error $? "cannot compute suffix of object files: cannot compile
4239See \`config.log' for more details" "$LINENO" 5; }
4240fi
4241rm -f conftest.$ac_cv_objext conftest.$ac_ext
4242fi
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4244$as_echo "$ac_cv_objext" >&6; }
4245OBJEXT=$ac_cv_objext
4246ac_objext=$OBJEXT
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4248$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4249if ${ac_cv_c_compiler_gnu+:} false; then :
4250  $as_echo_n "(cached) " >&6
4251else
4252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253/* end confdefs.h.  */
4254
4255int
4256main ()
4257{
4258#ifndef __GNUC__
4259       choke me
4260#endif
4261
4262  ;
4263  return 0;
4264}
4265_ACEOF
4266if ac_fn_c_try_compile "$LINENO"; then :
4267  ac_compiler_gnu=yes
4268else
4269  ac_compiler_gnu=no
4270fi
4271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272ac_cv_c_compiler_gnu=$ac_compiler_gnu
4273
4274fi
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4276$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4277if test $ac_compiler_gnu = yes; then
4278  GCC=yes
4279else
4280  GCC=
4281fi
4282ac_test_CFLAGS=${CFLAGS+set}
4283ac_save_CFLAGS=$CFLAGS
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4285$as_echo_n "checking whether $CC accepts -g... " >&6; }
4286if ${ac_cv_prog_cc_g+:} false; then :
4287  $as_echo_n "(cached) " >&6
4288else
4289  ac_save_c_werror_flag=$ac_c_werror_flag
4290   ac_c_werror_flag=yes
4291   ac_cv_prog_cc_g=no
4292   CFLAGS="-g"
4293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294/* end confdefs.h.  */
4295
4296int
4297main ()
4298{
4299
4300  ;
4301  return 0;
4302}
4303_ACEOF
4304if ac_fn_c_try_compile "$LINENO"; then :
4305  ac_cv_prog_cc_g=yes
4306else
4307  CFLAGS=""
4308      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309/* end confdefs.h.  */
4310
4311int
4312main ()
4313{
4314
4315  ;
4316  return 0;
4317}
4318_ACEOF
4319if ac_fn_c_try_compile "$LINENO"; then :
4320
4321else
4322  ac_c_werror_flag=$ac_save_c_werror_flag
4323	 CFLAGS="-g"
4324	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325/* end confdefs.h.  */
4326
4327int
4328main ()
4329{
4330
4331  ;
4332  return 0;
4333}
4334_ACEOF
4335if ac_fn_c_try_compile "$LINENO"; then :
4336  ac_cv_prog_cc_g=yes
4337fi
4338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339fi
4340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341fi
4342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343   ac_c_werror_flag=$ac_save_c_werror_flag
4344fi
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4346$as_echo "$ac_cv_prog_cc_g" >&6; }
4347if test "$ac_test_CFLAGS" = set; then
4348  CFLAGS=$ac_save_CFLAGS
4349elif test $ac_cv_prog_cc_g = yes; then
4350  if test "$GCC" = yes; then
4351    CFLAGS="-g -O2"
4352  else
4353    CFLAGS="-g"
4354  fi
4355else
4356  if test "$GCC" = yes; then
4357    CFLAGS="-O2"
4358  else
4359    CFLAGS=
4360  fi
4361fi
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4363$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4364if ${ac_cv_prog_cc_c89+:} false; then :
4365  $as_echo_n "(cached) " >&6
4366else
4367  ac_cv_prog_cc_c89=no
4368ac_save_CC=$CC
4369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370/* end confdefs.h.  */
4371#include <stdarg.h>
4372#include <stdio.h>
4373struct stat;
4374/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4375struct buf { int x; };
4376FILE * (*rcsopen) (struct buf *, struct stat *, int);
4377static char *e (p, i)
4378     char **p;
4379     int i;
4380{
4381  return p[i];
4382}
4383static char *f (char * (*g) (char **, int), char **p, ...)
4384{
4385  char *s;
4386  va_list v;
4387  va_start (v,p);
4388  s = g (p, va_arg (v,int));
4389  va_end (v);
4390  return s;
4391}
4392
4393/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4394   function prototypes and stuff, but not '\xHH' hex character constants.
4395   These don't provoke an error unfortunately, instead are silently treated
4396   as 'x'.  The following induces an error, until -std is added to get
4397   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4398   array size at least.  It's necessary to write '\x00'==0 to get something
4399   that's true only with -std.  */
4400int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4401
4402/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4403   inside strings and character constants.  */
4404#define FOO(x) 'x'
4405int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4406
4407int test (int i, double x);
4408struct s1 {int (*f) (int a);};
4409struct s2 {int (*f) (double a);};
4410int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4411int argc;
4412char **argv;
4413int
4414main ()
4415{
4416return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4417  ;
4418  return 0;
4419}
4420_ACEOF
4421for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4422	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4423do
4424  CC="$ac_save_CC $ac_arg"
4425  if ac_fn_c_try_compile "$LINENO"; then :
4426  ac_cv_prog_cc_c89=$ac_arg
4427fi
4428rm -f core conftest.err conftest.$ac_objext
4429  test "x$ac_cv_prog_cc_c89" != "xno" && break
4430done
4431rm -f conftest.$ac_ext
4432CC=$ac_save_CC
4433
4434fi
4435# AC_CACHE_VAL
4436case "x$ac_cv_prog_cc_c89" in
4437  x)
4438    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4439$as_echo "none needed" >&6; } ;;
4440  xno)
4441    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4442$as_echo "unsupported" >&6; } ;;
4443  *)
4444    CC="$CC $ac_cv_prog_cc_c89"
4445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4446$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4447esac
4448if test "x$ac_cv_prog_cc_c89" != xno; then :
4449
4450fi
4451
4452ac_ext=c
4453ac_cpp='$CPP $CPPFLAGS'
4454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457
4458ac_ext=c
4459ac_cpp='$CPP $CPPFLAGS'
4460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4464$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4465if ${am_cv_prog_cc_c_o+:} false; then :
4466  $as_echo_n "(cached) " >&6
4467else
4468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469/* end confdefs.h.  */
4470
4471int
4472main ()
4473{
4474
4475  ;
4476  return 0;
4477}
4478_ACEOF
4479  # Make sure it works both with $CC and with simple cc.
4480  # Following AC_PROG_CC_C_O, we do the test twice because some
4481  # compilers refuse to overwrite an existing .o file with -o,
4482  # though they will create one.
4483  am_cv_prog_cc_c_o=yes
4484  for am_i in 1 2; do
4485    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4486   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); } \
4490         && test -f conftest2.$ac_objext; then
4491      : OK
4492    else
4493      am_cv_prog_cc_c_o=no
4494      break
4495    fi
4496  done
4497  rm -f core conftest*
4498  unset am_i
4499fi
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4501$as_echo "$am_cv_prog_cc_c_o" >&6; }
4502if test "$am_cv_prog_cc_c_o" != yes; then
4503   # Losing compiler, so override with the script.
4504   # FIXME: It is wrong to rewrite CC.
4505   # But if we don't then we get into trouble of one sort or another.
4506   # A longer-term fix would be to have automake use am__CC in this case,
4507   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4508   CC="$am_aux_dir/compile $CC"
4509fi
4510ac_ext=c
4511ac_cpp='$CPP $CPPFLAGS'
4512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514ac_compiler_gnu=$ac_cv_c_compiler_gnu
4515
4516DEPDIR="${am__leading_dot}deps"
4517
4518ac_config_commands="$ac_config_commands depfiles"
4519
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4521$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4522cat > confinc.mk << 'END'
4523am__doit:
4524	@echo this is the am__doit target >confinc.out
4525.PHONY: am__doit
4526END
4527am__include="#"
4528am__quote=
4529# BSD make does it like this.
4530echo '.include "confinc.mk" # ignored' > confmf.BSD
4531# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4532echo 'include confinc.mk # ignored' > confmf.GNU
4533_am_result=no
4534for s in GNU BSD; do
4535  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4536   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }
4540  case $?:`cat confinc.out 2>/dev/null` in #(
4541  '0:this is the am__doit target') :
4542    case $s in #(
4543  BSD) :
4544    am__include='.include' am__quote='"' ;; #(
4545  *) :
4546    am__include='include' am__quote='' ;;
4547esac ;; #(
4548  *) :
4549     ;;
4550esac
4551  if test "$am__include" != "#"; then
4552    _am_result="yes ($s style)"
4553    break
4554  fi
4555done
4556rm -f confinc.* confmf.*
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4558$as_echo "${_am_result}" >&6; }
4559
4560# Check whether --enable-dependency-tracking was given.
4561if test "${enable_dependency_tracking+set}" = set; then :
4562  enableval=$enable_dependency_tracking;
4563fi
4564
4565if test "x$enable_dependency_tracking" != xno; then
4566  am_depcomp="$ac_aux_dir/depcomp"
4567  AMDEPBACKSLASH='\'
4568  am__nodep='_no'
4569fi
4570 if test "x$enable_dependency_tracking" != xno; then
4571  AMDEP_TRUE=
4572  AMDEP_FALSE='#'
4573else
4574  AMDEP_TRUE='#'
4575  AMDEP_FALSE=
4576fi
4577
4578
4579
4580depcc="$CC"   am_compiler_list=
4581
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4583$as_echo_n "checking dependency style of $depcc... " >&6; }
4584if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4585  $as_echo_n "(cached) " >&6
4586else
4587  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4588  # We make a subdir and do the tests there.  Otherwise we can end up
4589  # making bogus files that we don't know about and never remove.  For
4590  # instance it was reported that on HP-UX the gcc test will end up
4591  # making a dummy file named 'D' -- because '-MD' means "put the output
4592  # in D".
4593  rm -rf conftest.dir
4594  mkdir conftest.dir
4595  # Copy depcomp to subdir because otherwise we won't find it if we're
4596  # using a relative directory.
4597  cp "$am_depcomp" conftest.dir
4598  cd conftest.dir
4599  # We will build objects and dependencies in a subdirectory because
4600  # it helps to detect inapplicable dependency modes.  For instance
4601  # both Tru64's cc and ICC support -MD to output dependencies as a
4602  # side effect of compilation, but ICC will put the dependencies in
4603  # the current directory while Tru64 will put them in the object
4604  # directory.
4605  mkdir sub
4606
4607  am_cv_CC_dependencies_compiler_type=none
4608  if test "$am_compiler_list" = ""; then
4609     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4610  fi
4611  am__universal=false
4612  case " $depcc " in #(
4613     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4614     esac
4615
4616  for depmode in $am_compiler_list; do
4617    # Setup a source with many dependencies, because some compilers
4618    # like to wrap large dependency lists on column 80 (with \), and
4619    # we should not choose a depcomp mode which is confused by this.
4620    #
4621    # We need to recreate these files for each test, as the compiler may
4622    # overwrite some of them when testing with obscure command lines.
4623    # This happens at least with the AIX C compiler.
4624    : > sub/conftest.c
4625    for i in 1 2 3 4 5 6; do
4626      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4627      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4628      # Solaris 10 /bin/sh.
4629      echo '/* dummy */' > sub/conftst$i.h
4630    done
4631    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4632
4633    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4634    # mode.  It turns out that the SunPro C++ compiler does not properly
4635    # handle '-M -o', and we need to detect this.  Also, some Intel
4636    # versions had trouble with output in subdirs.
4637    am__obj=sub/conftest.${OBJEXT-o}
4638    am__minus_obj="-o $am__obj"
4639    case $depmode in
4640    gcc)
4641      # This depmode causes a compiler race in universal mode.
4642      test "$am__universal" = false || continue
4643      ;;
4644    nosideeffect)
4645      # After this tag, mechanisms are not by side-effect, so they'll
4646      # only be used when explicitly requested.
4647      if test "x$enable_dependency_tracking" = xyes; then
4648	continue
4649      else
4650	break
4651      fi
4652      ;;
4653    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4654      # This compiler won't grok '-c -o', but also, the minuso test has
4655      # not run yet.  These depmodes are late enough in the game, and
4656      # so weak that their functioning should not be impacted.
4657      am__obj=conftest.${OBJEXT-o}
4658      am__minus_obj=
4659      ;;
4660    none) break ;;
4661    esac
4662    if depmode=$depmode \
4663       source=sub/conftest.c object=$am__obj \
4664       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4665       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4666         >/dev/null 2>conftest.err &&
4667       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4668       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4669       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4670       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4671      # icc doesn't choke on unknown options, it will just issue warnings
4672      # or remarks (even with -Werror).  So we grep stderr for any message
4673      # that says an option was ignored or not supported.
4674      # When given -MP, icc 7.0 and 7.1 complain thusly:
4675      #   icc: Command line warning: ignoring option '-M'; no argument required
4676      # The diagnosis changed in icc 8.0:
4677      #   icc: Command line remark: option '-MP' not supported
4678      if (grep 'ignoring option' conftest.err ||
4679          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4680        am_cv_CC_dependencies_compiler_type=$depmode
4681        break
4682      fi
4683    fi
4684  done
4685
4686  cd ..
4687  rm -rf conftest.dir
4688else
4689  am_cv_CC_dependencies_compiler_type=none
4690fi
4691
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4694$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4695CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4696
4697 if
4698  test "x$enable_dependency_tracking" != xno \
4699  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4700  am__fastdepCC_TRUE=
4701  am__fastdepCC_FALSE='#'
4702else
4703  am__fastdepCC_TRUE='#'
4704  am__fastdepCC_FALSE=
4705fi
4706
4707
4708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4709$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4710if ${ac_cv_prog_cc_c99+:} false; then :
4711  $as_echo_n "(cached) " >&6
4712else
4713  ac_cv_prog_cc_c99=no
4714ac_save_CC=$CC
4715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716/* end confdefs.h.  */
4717#include <stdarg.h>
4718#include <stdbool.h>
4719#include <stdlib.h>
4720#include <wchar.h>
4721#include <stdio.h>
4722
4723// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4724#define debug(...) fprintf (stderr, __VA_ARGS__)
4725#define showlist(...) puts (#__VA_ARGS__)
4726#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4727static void
4728test_varargs_macros (void)
4729{
4730  int x = 1234;
4731  int y = 5678;
4732  debug ("Flag");
4733  debug ("X = %d\n", x);
4734  showlist (The first, second, and third items.);
4735  report (x>y, "x is %d but y is %d", x, y);
4736}
4737
4738// Check long long types.
4739#define BIG64 18446744073709551615ull
4740#define BIG32 4294967295ul
4741#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4742#if !BIG_OK
4743  your preprocessor is broken;
4744#endif
4745#if BIG_OK
4746#else
4747  your preprocessor is broken;
4748#endif
4749static long long int bignum = -9223372036854775807LL;
4750static unsigned long long int ubignum = BIG64;
4751
4752struct incomplete_array
4753{
4754  int datasize;
4755  double data[];
4756};
4757
4758struct named_init {
4759  int number;
4760  const wchar_t *name;
4761  double average;
4762};
4763
4764typedef const char *ccp;
4765
4766static inline int
4767test_restrict (ccp restrict text)
4768{
4769  // See if C++-style comments work.
4770  // Iterate through items via the restricted pointer.
4771  // Also check for declarations in for loops.
4772  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4773    continue;
4774  return 0;
4775}
4776
4777// Check varargs and va_copy.
4778static void
4779test_varargs (const char *format, ...)
4780{
4781  va_list args;
4782  va_start (args, format);
4783  va_list args_copy;
4784  va_copy (args_copy, args);
4785
4786  const char *str;
4787  int number;
4788  float fnumber;
4789
4790  while (*format)
4791    {
4792      switch (*format++)
4793	{
4794	case 's': // string
4795	  str = va_arg (args_copy, const char *);
4796	  break;
4797	case 'd': // int
4798	  number = va_arg (args_copy, int);
4799	  break;
4800	case 'f': // float
4801	  fnumber = va_arg (args_copy, double);
4802	  break;
4803	default:
4804	  break;
4805	}
4806    }
4807  va_end (args_copy);
4808  va_end (args);
4809}
4810
4811int
4812main ()
4813{
4814
4815  // Check bool.
4816  _Bool success = false;
4817
4818  // Check restrict.
4819  if (test_restrict ("String literal") == 0)
4820    success = true;
4821  char *restrict newvar = "Another string";
4822
4823  // Check varargs.
4824  test_varargs ("s, d' f .", "string", 65, 34.234);
4825  test_varargs_macros ();
4826
4827  // Check flexible array members.
4828  struct incomplete_array *ia =
4829    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4830  ia->datasize = 10;
4831  for (int i = 0; i < ia->datasize; ++i)
4832    ia->data[i] = i * 1.234;
4833
4834  // Check named initializers.
4835  struct named_init ni = {
4836    .number = 34,
4837    .name = L"Test wide string",
4838    .average = 543.34343,
4839  };
4840
4841  ni.number = 58;
4842
4843  int dynamic_array[ni.number];
4844  dynamic_array[ni.number - 1] = 543;
4845
4846  // work around unused variable warnings
4847  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4848	  || dynamic_array[ni.number - 1] != 543);
4849
4850  ;
4851  return 0;
4852}
4853_ACEOF
4854for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4855do
4856  CC="$ac_save_CC $ac_arg"
4857  if ac_fn_c_try_compile "$LINENO"; then :
4858  ac_cv_prog_cc_c99=$ac_arg
4859fi
4860rm -f core conftest.err conftest.$ac_objext
4861  test "x$ac_cv_prog_cc_c99" != "xno" && break
4862done
4863rm -f conftest.$ac_ext
4864CC=$ac_save_CC
4865
4866fi
4867# AC_CACHE_VAL
4868case "x$ac_cv_prog_cc_c99" in
4869  x)
4870    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4871$as_echo "none needed" >&6; } ;;
4872  xno)
4873    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4874$as_echo "unsupported" >&6; } ;;
4875  *)
4876    CC="$CC $ac_cv_prog_cc_c99"
4877    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4878$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4879esac
4880if test "x$ac_cv_prog_cc_c99" != xno; then :
4881
4882fi
4883
4884
4885
4886ac_ext=c
4887ac_cpp='$CPP $CPPFLAGS'
4888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4892$as_echo_n "checking how to run the C preprocessor... " >&6; }
4893# On Suns, sometimes $CPP names a directory.
4894if test -n "$CPP" && test -d "$CPP"; then
4895  CPP=
4896fi
4897if test -z "$CPP"; then
4898  if ${ac_cv_prog_CPP+:} false; then :
4899  $as_echo_n "(cached) " >&6
4900else
4901      # Double quotes because CPP needs to be expanded
4902    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4903    do
4904      ac_preproc_ok=false
4905for ac_c_preproc_warn_flag in '' yes
4906do
4907  # Use a header file that comes with gcc, so configuring glibc
4908  # with a fresh cross-compiler works.
4909  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4910  # <limits.h> exists even on freestanding compilers.
4911  # On the NeXT, cc -E runs the code through the compiler's parser,
4912  # not just through cpp. "Syntax error" is here to catch this case.
4913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914/* end confdefs.h.  */
4915#ifdef __STDC__
4916# include <limits.h>
4917#else
4918# include <assert.h>
4919#endif
4920		     Syntax error
4921_ACEOF
4922if ac_fn_c_try_cpp "$LINENO"; then :
4923
4924else
4925  # Broken: fails on valid input.
4926continue
4927fi
4928rm -f conftest.err conftest.i conftest.$ac_ext
4929
4930  # OK, works on sane cases.  Now check whether nonexistent headers
4931  # can be detected and how.
4932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933/* end confdefs.h.  */
4934#include <ac_nonexistent.h>
4935_ACEOF
4936if ac_fn_c_try_cpp "$LINENO"; then :
4937  # Broken: success on invalid input.
4938continue
4939else
4940  # Passes both tests.
4941ac_preproc_ok=:
4942break
4943fi
4944rm -f conftest.err conftest.i conftest.$ac_ext
4945
4946done
4947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948rm -f conftest.i conftest.err conftest.$ac_ext
4949if $ac_preproc_ok; then :
4950  break
4951fi
4952
4953    done
4954    ac_cv_prog_CPP=$CPP
4955
4956fi
4957  CPP=$ac_cv_prog_CPP
4958else
4959  ac_cv_prog_CPP=$CPP
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4962$as_echo "$CPP" >&6; }
4963ac_preproc_ok=false
4964for ac_c_preproc_warn_flag in '' yes
4965do
4966  # Use a header file that comes with gcc, so configuring glibc
4967  # with a fresh cross-compiler works.
4968  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4969  # <limits.h> exists even on freestanding compilers.
4970  # On the NeXT, cc -E runs the code through the compiler's parser,
4971  # not just through cpp. "Syntax error" is here to catch this case.
4972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973/* end confdefs.h.  */
4974#ifdef __STDC__
4975# include <limits.h>
4976#else
4977# include <assert.h>
4978#endif
4979		     Syntax error
4980_ACEOF
4981if ac_fn_c_try_cpp "$LINENO"; then :
4982
4983else
4984  # Broken: fails on valid input.
4985continue
4986fi
4987rm -f conftest.err conftest.i conftest.$ac_ext
4988
4989  # OK, works on sane cases.  Now check whether nonexistent headers
4990  # can be detected and how.
4991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993#include <ac_nonexistent.h>
4994_ACEOF
4995if ac_fn_c_try_cpp "$LINENO"; then :
4996  # Broken: success on invalid input.
4997continue
4998else
4999  # Passes both tests.
5000ac_preproc_ok=:
5001break
5002fi
5003rm -f conftest.err conftest.i conftest.$ac_ext
5004
5005done
5006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5007rm -f conftest.i conftest.err conftest.$ac_ext
5008if $ac_preproc_ok; then :
5009
5010else
5011  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5013as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5014See \`config.log' for more details" "$LINENO" 5; }
5015fi
5016
5017ac_ext=c
5018ac_cpp='$CPP $CPPFLAGS'
5019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022
5023
5024
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5026$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5027if ${ac_cv_path_GREP+:} false; then :
5028  $as_echo_n "(cached) " >&6
5029else
5030  if test -z "$GREP"; then
5031  ac_path_GREP_found=false
5032  # Loop through the user's path and test for each of PROGNAME-LIST
5033  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5035do
5036  IFS=$as_save_IFS
5037  test -z "$as_dir" && as_dir=.
5038    for ac_prog in grep ggrep; do
5039    for ac_exec_ext in '' $ac_executable_extensions; do
5040      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5041      as_fn_executable_p "$ac_path_GREP" || continue
5042# Check for GNU ac_path_GREP and select it if it is found.
5043  # Check for GNU $ac_path_GREP
5044case `"$ac_path_GREP" --version 2>&1` in
5045*GNU*)
5046  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5047*)
5048  ac_count=0
5049  $as_echo_n 0123456789 >"conftest.in"
5050  while :
5051  do
5052    cat "conftest.in" "conftest.in" >"conftest.tmp"
5053    mv "conftest.tmp" "conftest.in"
5054    cp "conftest.in" "conftest.nl"
5055    $as_echo 'GREP' >> "conftest.nl"
5056    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5057    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5058    as_fn_arith $ac_count + 1 && ac_count=$as_val
5059    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5060      # Best one so far, save it but keep looking for a better one
5061      ac_cv_path_GREP="$ac_path_GREP"
5062      ac_path_GREP_max=$ac_count
5063    fi
5064    # 10*(2^10) chars as input seems more than enough
5065    test $ac_count -gt 10 && break
5066  done
5067  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5068esac
5069
5070      $ac_path_GREP_found && break 3
5071    done
5072  done
5073  done
5074IFS=$as_save_IFS
5075  if test -z "$ac_cv_path_GREP"; then
5076    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5077  fi
5078else
5079  ac_cv_path_GREP=$GREP
5080fi
5081
5082fi
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5084$as_echo "$ac_cv_path_GREP" >&6; }
5085 GREP="$ac_cv_path_GREP"
5086
5087
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5089$as_echo_n "checking for egrep... " >&6; }
5090if ${ac_cv_path_EGREP+:} false; then :
5091  $as_echo_n "(cached) " >&6
5092else
5093  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5094   then ac_cv_path_EGREP="$GREP -E"
5095   else
5096     if test -z "$EGREP"; then
5097  ac_path_EGREP_found=false
5098  # Loop through the user's path and test for each of PROGNAME-LIST
5099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5101do
5102  IFS=$as_save_IFS
5103  test -z "$as_dir" && as_dir=.
5104    for ac_prog in egrep; do
5105    for ac_exec_ext in '' $ac_executable_extensions; do
5106      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5107      as_fn_executable_p "$ac_path_EGREP" || continue
5108# Check for GNU ac_path_EGREP and select it if it is found.
5109  # Check for GNU $ac_path_EGREP
5110case `"$ac_path_EGREP" --version 2>&1` in
5111*GNU*)
5112  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5113*)
5114  ac_count=0
5115  $as_echo_n 0123456789 >"conftest.in"
5116  while :
5117  do
5118    cat "conftest.in" "conftest.in" >"conftest.tmp"
5119    mv "conftest.tmp" "conftest.in"
5120    cp "conftest.in" "conftest.nl"
5121    $as_echo 'EGREP' >> "conftest.nl"
5122    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5123    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5124    as_fn_arith $ac_count + 1 && ac_count=$as_val
5125    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5126      # Best one so far, save it but keep looking for a better one
5127      ac_cv_path_EGREP="$ac_path_EGREP"
5128      ac_path_EGREP_max=$ac_count
5129    fi
5130    # 10*(2^10) chars as input seems more than enough
5131    test $ac_count -gt 10 && break
5132  done
5133  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5134esac
5135
5136      $ac_path_EGREP_found && break 3
5137    done
5138  done
5139  done
5140IFS=$as_save_IFS
5141  if test -z "$ac_cv_path_EGREP"; then
5142    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5143  fi
5144else
5145  ac_cv_path_EGREP=$EGREP
5146fi
5147
5148   fi
5149fi
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5151$as_echo "$ac_cv_path_EGREP" >&6; }
5152 EGREP="$ac_cv_path_EGREP"
5153
5154
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5156$as_echo_n "checking for ANSI C header files... " >&6; }
5157if ${ac_cv_header_stdc+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h.  */
5162#include <stdlib.h>
5163#include <stdarg.h>
5164#include <string.h>
5165#include <float.h>
5166
5167int
5168main ()
5169{
5170
5171  ;
5172  return 0;
5173}
5174_ACEOF
5175if ac_fn_c_try_compile "$LINENO"; then :
5176  ac_cv_header_stdc=yes
5177else
5178  ac_cv_header_stdc=no
5179fi
5180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181
5182if test $ac_cv_header_stdc = yes; then
5183  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185/* end confdefs.h.  */
5186#include <string.h>
5187
5188_ACEOF
5189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5190  $EGREP "memchr" >/dev/null 2>&1; then :
5191
5192else
5193  ac_cv_header_stdc=no
5194fi
5195rm -f conftest*
5196
5197fi
5198
5199if test $ac_cv_header_stdc = yes; then
5200  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202/* end confdefs.h.  */
5203#include <stdlib.h>
5204
5205_ACEOF
5206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5207  $EGREP "free" >/dev/null 2>&1; then :
5208
5209else
5210  ac_cv_header_stdc=no
5211fi
5212rm -f conftest*
5213
5214fi
5215
5216if test $ac_cv_header_stdc = yes; then
5217  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5218  if test "$cross_compiling" = yes; then :
5219  :
5220else
5221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h.  */
5223#include <ctype.h>
5224#include <stdlib.h>
5225#if ((' ' & 0x0FF) == 0x020)
5226# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5227# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5228#else
5229# define ISLOWER(c) \
5230		   (('a' <= (c) && (c) <= 'i') \
5231		     || ('j' <= (c) && (c) <= 'r') \
5232		     || ('s' <= (c) && (c) <= 'z'))
5233# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5234#endif
5235
5236#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5237int
5238main ()
5239{
5240  int i;
5241  for (i = 0; i < 256; i++)
5242    if (XOR (islower (i), ISLOWER (i))
5243	|| toupper (i) != TOUPPER (i))
5244      return 2;
5245  return 0;
5246}
5247_ACEOF
5248if ac_fn_c_try_run "$LINENO"; then :
5249
5250else
5251  ac_cv_header_stdc=no
5252fi
5253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5254  conftest.$ac_objext conftest.beam conftest.$ac_ext
5255fi
5256
5257fi
5258fi
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5260$as_echo "$ac_cv_header_stdc" >&6; }
5261if test $ac_cv_header_stdc = yes; then
5262
5263$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5264
5265fi
5266
5267# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5268for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5269		  inttypes.h stdint.h unistd.h
5270do :
5271  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5272ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5273"
5274if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5275  cat >>confdefs.h <<_ACEOF
5276#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5277_ACEOF
5278
5279fi
5280
5281done
5282
5283
5284
5285  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5286if test "x$ac_cv_header_minix_config_h" = xyes; then :
5287  MINIX=yes
5288else
5289  MINIX=
5290fi
5291
5292
5293  if test "$MINIX" = yes; then
5294
5295$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5296
5297
5298$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5299
5300
5301$as_echo "#define _MINIX 1" >>confdefs.h
5302
5303  fi
5304
5305
5306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5307$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5308if ${ac_cv_safe_to_define___extensions__+:} false; then :
5309  $as_echo_n "(cached) " >&6
5310else
5311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312/* end confdefs.h.  */
5313
5314#         define __EXTENSIONS__ 1
5315          $ac_includes_default
5316int
5317main ()
5318{
5319
5320  ;
5321  return 0;
5322}
5323_ACEOF
5324if ac_fn_c_try_compile "$LINENO"; then :
5325  ac_cv_safe_to_define___extensions__=yes
5326else
5327  ac_cv_safe_to_define___extensions__=no
5328fi
5329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330fi
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5332$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5333  test $ac_cv_safe_to_define___extensions__ = yes &&
5334    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5335
5336  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5337
5338  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5339
5340  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5341
5342  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5343
5344
5345enable_win32_dll=yes
5346
5347case $host in
5348*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5349  if test -n "$ac_tool_prefix"; then
5350  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5351set dummy ${ac_tool_prefix}as; ac_word=$2
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353$as_echo_n "checking for $ac_word... " >&6; }
5354if ${ac_cv_prog_AS+:} false; then :
5355  $as_echo_n "(cached) " >&6
5356else
5357  if test -n "$AS"; then
5358  ac_cv_prog_AS="$AS" # Let the user override the test.
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363  IFS=$as_save_IFS
5364  test -z "$as_dir" && as_dir=.
5365    for ac_exec_ext in '' $ac_executable_extensions; do
5366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367    ac_cv_prog_AS="${ac_tool_prefix}as"
5368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369    break 2
5370  fi
5371done
5372  done
5373IFS=$as_save_IFS
5374
5375fi
5376fi
5377AS=$ac_cv_prog_AS
5378if test -n "$AS"; then
5379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5380$as_echo "$AS" >&6; }
5381else
5382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383$as_echo "no" >&6; }
5384fi
5385
5386
5387fi
5388if test -z "$ac_cv_prog_AS"; then
5389  ac_ct_AS=$AS
5390  # Extract the first word of "as", so it can be a program name with args.
5391set dummy as; ac_word=$2
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393$as_echo_n "checking for $ac_word... " >&6; }
5394if ${ac_cv_prog_ac_ct_AS+:} false; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  if test -n "$ac_ct_AS"; then
5398  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403  IFS=$as_save_IFS
5404  test -z "$as_dir" && as_dir=.
5405    for ac_exec_ext in '' $ac_executable_extensions; do
5406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407    ac_cv_prog_ac_ct_AS="as"
5408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409    break 2
5410  fi
5411done
5412  done
5413IFS=$as_save_IFS
5414
5415fi
5416fi
5417ac_ct_AS=$ac_cv_prog_ac_ct_AS
5418if test -n "$ac_ct_AS"; then
5419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5420$as_echo "$ac_ct_AS" >&6; }
5421else
5422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425
5426  if test "x$ac_ct_AS" = x; then
5427    AS="false"
5428  else
5429    case $cross_compiling:$ac_tool_warned in
5430yes:)
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433ac_tool_warned=yes ;;
5434esac
5435    AS=$ac_ct_AS
5436  fi
5437else
5438  AS="$ac_cv_prog_AS"
5439fi
5440
5441  if test -n "$ac_tool_prefix"; then
5442  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5443set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445$as_echo_n "checking for $ac_word... " >&6; }
5446if ${ac_cv_prog_DLLTOOL+:} false; then :
5447  $as_echo_n "(cached) " >&6
5448else
5449  if test -n "$DLLTOOL"; then
5450  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5451else
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455  IFS=$as_save_IFS
5456  test -z "$as_dir" && as_dir=.
5457    for ac_exec_ext in '' $ac_executable_extensions; do
5458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461    break 2
5462  fi
5463done
5464  done
5465IFS=$as_save_IFS
5466
5467fi
5468fi
5469DLLTOOL=$ac_cv_prog_DLLTOOL
5470if test -n "$DLLTOOL"; then
5471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5472$as_echo "$DLLTOOL" >&6; }
5473else
5474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475$as_echo "no" >&6; }
5476fi
5477
5478
5479fi
5480if test -z "$ac_cv_prog_DLLTOOL"; then
5481  ac_ct_DLLTOOL=$DLLTOOL
5482  # Extract the first word of "dlltool", so it can be a program name with args.
5483set dummy dlltool; ac_word=$2
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485$as_echo_n "checking for $ac_word... " >&6; }
5486if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5487  $as_echo_n "(cached) " >&6
5488else
5489  if test -n "$ac_ct_DLLTOOL"; then
5490  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5491else
5492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493for as_dir in $PATH
5494do
5495  IFS=$as_save_IFS
5496  test -z "$as_dir" && as_dir=.
5497    for ac_exec_ext in '' $ac_executable_extensions; do
5498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501    break 2
5502  fi
5503done
5504  done
5505IFS=$as_save_IFS
5506
5507fi
5508fi
5509ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5510if test -n "$ac_ct_DLLTOOL"; then
5511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5512$as_echo "$ac_ct_DLLTOOL" >&6; }
5513else
5514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515$as_echo "no" >&6; }
5516fi
5517
5518  if test "x$ac_ct_DLLTOOL" = x; then
5519    DLLTOOL="false"
5520  else
5521    case $cross_compiling:$ac_tool_warned in
5522yes:)
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5525ac_tool_warned=yes ;;
5526esac
5527    DLLTOOL=$ac_ct_DLLTOOL
5528  fi
5529else
5530  DLLTOOL="$ac_cv_prog_DLLTOOL"
5531fi
5532
5533  if test -n "$ac_tool_prefix"; then
5534  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5535set dummy ${ac_tool_prefix}objdump; ac_word=$2
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537$as_echo_n "checking for $ac_word... " >&6; }
5538if ${ac_cv_prog_OBJDUMP+:} false; then :
5539  $as_echo_n "(cached) " >&6
5540else
5541  if test -n "$OBJDUMP"; then
5542  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547  IFS=$as_save_IFS
5548  test -z "$as_dir" && as_dir=.
5549    for ac_exec_ext in '' $ac_executable_extensions; do
5550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553    break 2
5554  fi
5555done
5556  done
5557IFS=$as_save_IFS
5558
5559fi
5560fi
5561OBJDUMP=$ac_cv_prog_OBJDUMP
5562if test -n "$OBJDUMP"; then
5563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5564$as_echo "$OBJDUMP" >&6; }
5565else
5566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567$as_echo "no" >&6; }
5568fi
5569
5570
5571fi
5572if test -z "$ac_cv_prog_OBJDUMP"; then
5573  ac_ct_OBJDUMP=$OBJDUMP
5574  # Extract the first word of "objdump", so it can be a program name with args.
5575set dummy objdump; ac_word=$2
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577$as_echo_n "checking for $ac_word... " >&6; }
5578if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5579  $as_echo_n "(cached) " >&6
5580else
5581  if test -n "$ac_ct_OBJDUMP"; then
5582  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5583else
5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585for as_dir in $PATH
5586do
5587  IFS=$as_save_IFS
5588  test -z "$as_dir" && as_dir=.
5589    for ac_exec_ext in '' $ac_executable_extensions; do
5590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593    break 2
5594  fi
5595done
5596  done
5597IFS=$as_save_IFS
5598
5599fi
5600fi
5601ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5602if test -n "$ac_ct_OBJDUMP"; then
5603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5604$as_echo "$ac_ct_OBJDUMP" >&6; }
5605else
5606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607$as_echo "no" >&6; }
5608fi
5609
5610  if test "x$ac_ct_OBJDUMP" = x; then
5611    OBJDUMP="false"
5612  else
5613    case $cross_compiling:$ac_tool_warned in
5614yes:)
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5617ac_tool_warned=yes ;;
5618esac
5619    OBJDUMP=$ac_ct_OBJDUMP
5620  fi
5621else
5622  OBJDUMP="$ac_cv_prog_OBJDUMP"
5623fi
5624
5625  ;;
5626esac
5627
5628test -z "$AS" && AS=as
5629
5630
5631
5632
5633
5634test -z "$DLLTOOL" && DLLTOOL=dlltool
5635
5636
5637
5638
5639
5640test -z "$OBJDUMP" && OBJDUMP=objdump
5641
5642
5643
5644
5645
5646
5647
5648case `pwd` in
5649  *\ * | *\	*)
5650    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5651$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5652esac
5653
5654
5655
5656macro_version='2.4.6'
5657macro_revision='2.4.6'
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671ltmain=$ac_aux_dir/ltmain.sh
5672
5673# Backslashify metacharacters that are still active within
5674# double-quoted strings.
5675sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5676
5677# Same as above, but do not quote variable references.
5678double_quote_subst='s/\(["`\\]\)/\\\1/g'
5679
5680# Sed substitution to delay expansion of an escaped shell variable in a
5681# double_quote_subst'ed string.
5682delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5683
5684# Sed substitution to delay expansion of an escaped single quote.
5685delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5686
5687# Sed substitution to avoid accidental globbing in evaled expressions
5688no_glob_subst='s/\*/\\\*/g'
5689
5690ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5691ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5692ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5693
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5695$as_echo_n "checking how to print strings... " >&6; }
5696# Test print first, because it will be a builtin if present.
5697if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5698   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5699  ECHO='print -r --'
5700elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5701  ECHO='printf %s\n'
5702else
5703  # Use this function as a fallback that always works.
5704  func_fallback_echo ()
5705  {
5706    eval 'cat <<_LTECHO_EOF
5707$1
5708_LTECHO_EOF'
5709  }
5710  ECHO='func_fallback_echo'
5711fi
5712
5713# func_echo_all arg...
5714# Invoke $ECHO with all args, space-separated.
5715func_echo_all ()
5716{
5717    $ECHO ""
5718}
5719
5720case $ECHO in
5721  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5722$as_echo "printf" >&6; } ;;
5723  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5724$as_echo "print -r" >&6; } ;;
5725  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5726$as_echo "cat" >&6; } ;;
5727esac
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5743$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5744if ${ac_cv_path_SED+:} false; then :
5745  $as_echo_n "(cached) " >&6
5746else
5747            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5748     for ac_i in 1 2 3 4 5 6 7; do
5749       ac_script="$ac_script$as_nl$ac_script"
5750     done
5751     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5752     { ac_script=; unset ac_script;}
5753     if test -z "$SED"; then
5754  ac_path_SED_found=false
5755  # Loop through the user's path and test for each of PROGNAME-LIST
5756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757for as_dir in $PATH
5758do
5759  IFS=$as_save_IFS
5760  test -z "$as_dir" && as_dir=.
5761    for ac_prog in sed gsed; do
5762    for ac_exec_ext in '' $ac_executable_extensions; do
5763      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5764      as_fn_executable_p "$ac_path_SED" || continue
5765# Check for GNU ac_path_SED and select it if it is found.
5766  # Check for GNU $ac_path_SED
5767case `"$ac_path_SED" --version 2>&1` in
5768*GNU*)
5769  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5770*)
5771  ac_count=0
5772  $as_echo_n 0123456789 >"conftest.in"
5773  while :
5774  do
5775    cat "conftest.in" "conftest.in" >"conftest.tmp"
5776    mv "conftest.tmp" "conftest.in"
5777    cp "conftest.in" "conftest.nl"
5778    $as_echo '' >> "conftest.nl"
5779    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5780    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5781    as_fn_arith $ac_count + 1 && ac_count=$as_val
5782    if test $ac_count -gt ${ac_path_SED_max-0}; then
5783      # Best one so far, save it but keep looking for a better one
5784      ac_cv_path_SED="$ac_path_SED"
5785      ac_path_SED_max=$ac_count
5786    fi
5787    # 10*(2^10) chars as input seems more than enough
5788    test $ac_count -gt 10 && break
5789  done
5790  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5791esac
5792
5793      $ac_path_SED_found && break 3
5794    done
5795  done
5796  done
5797IFS=$as_save_IFS
5798  if test -z "$ac_cv_path_SED"; then
5799    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5800  fi
5801else
5802  ac_cv_path_SED=$SED
5803fi
5804
5805fi
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5807$as_echo "$ac_cv_path_SED" >&6; }
5808 SED="$ac_cv_path_SED"
5809  rm -f conftest.sed
5810
5811test -z "$SED" && SED=sed
5812Xsed="$SED -e 1s/^X//"
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5825$as_echo_n "checking for fgrep... " >&6; }
5826if ${ac_cv_path_FGREP+:} false; then :
5827  $as_echo_n "(cached) " >&6
5828else
5829  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5830   then ac_cv_path_FGREP="$GREP -F"
5831   else
5832     if test -z "$FGREP"; then
5833  ac_path_FGREP_found=false
5834  # Loop through the user's path and test for each of PROGNAME-LIST
5835  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5837do
5838  IFS=$as_save_IFS
5839  test -z "$as_dir" && as_dir=.
5840    for ac_prog in fgrep; do
5841    for ac_exec_ext in '' $ac_executable_extensions; do
5842      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5843      as_fn_executable_p "$ac_path_FGREP" || continue
5844# Check for GNU ac_path_FGREP and select it if it is found.
5845  # Check for GNU $ac_path_FGREP
5846case `"$ac_path_FGREP" --version 2>&1` in
5847*GNU*)
5848  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5849*)
5850  ac_count=0
5851  $as_echo_n 0123456789 >"conftest.in"
5852  while :
5853  do
5854    cat "conftest.in" "conftest.in" >"conftest.tmp"
5855    mv "conftest.tmp" "conftest.in"
5856    cp "conftest.in" "conftest.nl"
5857    $as_echo 'FGREP' >> "conftest.nl"
5858    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5859    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5860    as_fn_arith $ac_count + 1 && ac_count=$as_val
5861    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5862      # Best one so far, save it but keep looking for a better one
5863      ac_cv_path_FGREP="$ac_path_FGREP"
5864      ac_path_FGREP_max=$ac_count
5865    fi
5866    # 10*(2^10) chars as input seems more than enough
5867    test $ac_count -gt 10 && break
5868  done
5869  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5870esac
5871
5872      $ac_path_FGREP_found && break 3
5873    done
5874  done
5875  done
5876IFS=$as_save_IFS
5877  if test -z "$ac_cv_path_FGREP"; then
5878    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5879  fi
5880else
5881  ac_cv_path_FGREP=$FGREP
5882fi
5883
5884   fi
5885fi
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5887$as_echo "$ac_cv_path_FGREP" >&6; }
5888 FGREP="$ac_cv_path_FGREP"
5889
5890
5891test -z "$GREP" && GREP=grep
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911# Check whether --with-gnu-ld was given.
5912if test "${with_gnu_ld+set}" = set; then :
5913  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5914else
5915  with_gnu_ld=no
5916fi
5917
5918ac_prog=ld
5919if test yes = "$GCC"; then
5920  # Check if gcc -print-prog-name=ld gives a path.
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5922$as_echo_n "checking for ld used by $CC... " >&6; }
5923  case $host in
5924  *-*-mingw*)
5925    # gcc leaves a trailing carriage return, which upsets mingw
5926    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5927  *)
5928    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5929  esac
5930  case $ac_prog in
5931    # Accept absolute paths.
5932    [\\/]* | ?:[\\/]*)
5933      re_direlt='/[^/][^/]*/\.\./'
5934      # Canonicalize the pathname of ld
5935      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5936      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5937	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5938      done
5939      test -z "$LD" && LD=$ac_prog
5940      ;;
5941  "")
5942    # If it fails, then pretend we aren't using GCC.
5943    ac_prog=ld
5944    ;;
5945  *)
5946    # If it is relative, then search for the first ld in PATH.
5947    with_gnu_ld=unknown
5948    ;;
5949  esac
5950elif test yes = "$with_gnu_ld"; then
5951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5952$as_echo_n "checking for GNU ld... " >&6; }
5953else
5954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5955$as_echo_n "checking for non-GNU ld... " >&6; }
5956fi
5957if ${lt_cv_path_LD+:} false; then :
5958  $as_echo_n "(cached) " >&6
5959else
5960  if test -z "$LD"; then
5961  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5962  for ac_dir in $PATH; do
5963    IFS=$lt_save_ifs
5964    test -z "$ac_dir" && ac_dir=.
5965    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5966      lt_cv_path_LD=$ac_dir/$ac_prog
5967      # Check to see if the program is GNU ld.  I'd rather use --version,
5968      # but apparently some variants of GNU ld only accept -v.
5969      # Break only if it was the GNU/non-GNU ld that we prefer.
5970      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5971      *GNU* | *'with BFD'*)
5972	test no != "$with_gnu_ld" && break
5973	;;
5974      *)
5975	test yes != "$with_gnu_ld" && break
5976	;;
5977      esac
5978    fi
5979  done
5980  IFS=$lt_save_ifs
5981else
5982  lt_cv_path_LD=$LD # Let the user override the test with a path.
5983fi
5984fi
5985
5986LD=$lt_cv_path_LD
5987if test -n "$LD"; then
5988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5989$as_echo "$LD" >&6; }
5990else
5991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5996$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5997if ${lt_cv_prog_gnu_ld+:} false; then :
5998  $as_echo_n "(cached) " >&6
5999else
6000  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6001case `$LD -v 2>&1 </dev/null` in
6002*GNU* | *'with BFD'*)
6003  lt_cv_prog_gnu_ld=yes
6004  ;;
6005*)
6006  lt_cv_prog_gnu_ld=no
6007  ;;
6008esac
6009fi
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6011$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6012with_gnu_ld=$lt_cv_prog_gnu_ld
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6023$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6024if ${lt_cv_path_NM+:} false; then :
6025  $as_echo_n "(cached) " >&6
6026else
6027  if test -n "$NM"; then
6028  # Let the user override the test.
6029  lt_cv_path_NM=$NM
6030else
6031  lt_nm_to_check=${ac_tool_prefix}nm
6032  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6033    lt_nm_to_check="$lt_nm_to_check nm"
6034  fi
6035  for lt_tmp_nm in $lt_nm_to_check; do
6036    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6037    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6038      IFS=$lt_save_ifs
6039      test -z "$ac_dir" && ac_dir=.
6040      tmp_nm=$ac_dir/$lt_tmp_nm
6041      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6042	# Check to see if the nm accepts a BSD-compat flag.
6043	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6044	#   nm: unknown option "B" ignored
6045	# Tru64's nm complains that /dev/null is an invalid object file
6046	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6047	case $build_os in
6048	mingw*) lt_bad_file=conftest.nm/nofile ;;
6049	*) lt_bad_file=/dev/null ;;
6050	esac
6051	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6052	*$lt_bad_file* | *'Invalid file or object type'*)
6053	  lt_cv_path_NM="$tmp_nm -B"
6054	  break 2
6055	  ;;
6056	*)
6057	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6058	  */dev/null*)
6059	    lt_cv_path_NM="$tmp_nm -p"
6060	    break 2
6061	    ;;
6062	  *)
6063	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6064	    continue # so that we can try to find one that supports BSD flags
6065	    ;;
6066	  esac
6067	  ;;
6068	esac
6069      fi
6070    done
6071    IFS=$lt_save_ifs
6072  done
6073  : ${lt_cv_path_NM=no}
6074fi
6075fi
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6077$as_echo "$lt_cv_path_NM" >&6; }
6078if test no != "$lt_cv_path_NM"; then
6079  NM=$lt_cv_path_NM
6080else
6081  # Didn't find any BSD compatible name lister, look for dumpbin.
6082  if test -n "$DUMPBIN"; then :
6083    # Let the user override the test.
6084  else
6085    if test -n "$ac_tool_prefix"; then
6086  for ac_prog in dumpbin "link -dump"
6087  do
6088    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6089set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091$as_echo_n "checking for $ac_word... " >&6; }
6092if ${ac_cv_prog_DUMPBIN+:} false; then :
6093  $as_echo_n "(cached) " >&6
6094else
6095  if test -n "$DUMPBIN"; then
6096  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6097else
6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099for as_dir in $PATH
6100do
6101  IFS=$as_save_IFS
6102  test -z "$as_dir" && as_dir=.
6103    for ac_exec_ext in '' $ac_executable_extensions; do
6104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107    break 2
6108  fi
6109done
6110  done
6111IFS=$as_save_IFS
6112
6113fi
6114fi
6115DUMPBIN=$ac_cv_prog_DUMPBIN
6116if test -n "$DUMPBIN"; then
6117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6118$as_echo "$DUMPBIN" >&6; }
6119else
6120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121$as_echo "no" >&6; }
6122fi
6123
6124
6125    test -n "$DUMPBIN" && break
6126  done
6127fi
6128if test -z "$DUMPBIN"; then
6129  ac_ct_DUMPBIN=$DUMPBIN
6130  for ac_prog in dumpbin "link -dump"
6131do
6132  # Extract the first word of "$ac_prog", so it can be a program name with args.
6133set dummy $ac_prog; ac_word=$2
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135$as_echo_n "checking for $ac_word... " >&6; }
6136if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6137  $as_echo_n "(cached) " >&6
6138else
6139  if test -n "$ac_ct_DUMPBIN"; then
6140  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6141else
6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145  IFS=$as_save_IFS
6146  test -z "$as_dir" && as_dir=.
6147    for ac_exec_ext in '' $ac_executable_extensions; do
6148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151    break 2
6152  fi
6153done
6154  done
6155IFS=$as_save_IFS
6156
6157fi
6158fi
6159ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6160if test -n "$ac_ct_DUMPBIN"; then
6161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6162$as_echo "$ac_ct_DUMPBIN" >&6; }
6163else
6164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165$as_echo "no" >&6; }
6166fi
6167
6168
6169  test -n "$ac_ct_DUMPBIN" && break
6170done
6171
6172  if test "x$ac_ct_DUMPBIN" = x; then
6173    DUMPBIN=":"
6174  else
6175    case $cross_compiling:$ac_tool_warned in
6176yes:)
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6179ac_tool_warned=yes ;;
6180esac
6181    DUMPBIN=$ac_ct_DUMPBIN
6182  fi
6183fi
6184
6185    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6186    *COFF*)
6187      DUMPBIN="$DUMPBIN -symbols -headers"
6188      ;;
6189    *)
6190      DUMPBIN=:
6191      ;;
6192    esac
6193  fi
6194
6195  if test : != "$DUMPBIN"; then
6196    NM=$DUMPBIN
6197  fi
6198fi
6199test -z "$NM" && NM=nm
6200
6201
6202
6203
6204
6205
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6207$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6208if ${lt_cv_nm_interface+:} false; then :
6209  $as_echo_n "(cached) " >&6
6210else
6211  lt_cv_nm_interface="BSD nm"
6212  echo "int some_variable = 0;" > conftest.$ac_ext
6213  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6214  (eval "$ac_compile" 2>conftest.err)
6215  cat conftest.err >&5
6216  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6217  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6218  cat conftest.err >&5
6219  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6220  cat conftest.out >&5
6221  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6222    lt_cv_nm_interface="MS dumpbin"
6223  fi
6224  rm -f conftest*
6225fi
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6227$as_echo "$lt_cv_nm_interface" >&6; }
6228
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6230$as_echo_n "checking whether ln -s works... " >&6; }
6231LN_S=$as_ln_s
6232if test "$LN_S" = "ln -s"; then
6233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6234$as_echo "yes" >&6; }
6235else
6236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6237$as_echo "no, using $LN_S" >&6; }
6238fi
6239
6240# find the maximum length of command line arguments
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6242$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6243if ${lt_cv_sys_max_cmd_len+:} false; then :
6244  $as_echo_n "(cached) " >&6
6245else
6246    i=0
6247  teststring=ABCD
6248
6249  case $build_os in
6250  msdosdjgpp*)
6251    # On DJGPP, this test can blow up pretty badly due to problems in libc
6252    # (any single argument exceeding 2000 bytes causes a buffer overrun
6253    # during glob expansion).  Even if it were fixed, the result of this
6254    # check would be larger than it should be.
6255    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6256    ;;
6257
6258  gnu*)
6259    # Under GNU Hurd, this test is not required because there is
6260    # no limit to the length of command line arguments.
6261    # Libtool will interpret -1 as no limit whatsoever
6262    lt_cv_sys_max_cmd_len=-1;
6263    ;;
6264
6265  cygwin* | mingw* | cegcc*)
6266    # On Win9x/ME, this test blows up -- it succeeds, but takes
6267    # about 5 minutes as the teststring grows exponentially.
6268    # Worse, since 9x/ME are not pre-emptively multitasking,
6269    # you end up with a "frozen" computer, even though with patience
6270    # the test eventually succeeds (with a max line length of 256k).
6271    # Instead, let's just punt: use the minimum linelength reported by
6272    # all of the supported platforms: 8192 (on NT/2K/XP).
6273    lt_cv_sys_max_cmd_len=8192;
6274    ;;
6275
6276  mint*)
6277    # On MiNT this can take a long time and run out of memory.
6278    lt_cv_sys_max_cmd_len=8192;
6279    ;;
6280
6281  amigaos*)
6282    # On AmigaOS with pdksh, this test takes hours, literally.
6283    # So we just punt and use a minimum line length of 8192.
6284    lt_cv_sys_max_cmd_len=8192;
6285    ;;
6286
6287  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6288    # This has been around since 386BSD, at least.  Likely further.
6289    if test -x /sbin/sysctl; then
6290      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6291    elif test -x /usr/sbin/sysctl; then
6292      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6293    else
6294      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6295    fi
6296    # And add a safety zone
6297    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6298    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6299    ;;
6300
6301  interix*)
6302    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6303    lt_cv_sys_max_cmd_len=196608
6304    ;;
6305
6306  os2*)
6307    # The test takes a long time on OS/2.
6308    lt_cv_sys_max_cmd_len=8192
6309    ;;
6310
6311  osf*)
6312    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6313    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6314    # nice to cause kernel panics so lets avoid the loop below.
6315    # First set a reasonable default.
6316    lt_cv_sys_max_cmd_len=16384
6317    #
6318    if test -x /sbin/sysconfig; then
6319      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6320        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6321      esac
6322    fi
6323    ;;
6324  sco3.2v5*)
6325    lt_cv_sys_max_cmd_len=102400
6326    ;;
6327  sysv5* | sco5v6* | sysv4.2uw2*)
6328    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6329    if test -n "$kargmax"; then
6330      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6331    else
6332      lt_cv_sys_max_cmd_len=32768
6333    fi
6334    ;;
6335  *)
6336    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6337    if test -n "$lt_cv_sys_max_cmd_len" && \
6338       test undefined != "$lt_cv_sys_max_cmd_len"; then
6339      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6340      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6341    else
6342      # Make teststring a little bigger before we do anything with it.
6343      # a 1K string should be a reasonable start.
6344      for i in 1 2 3 4 5 6 7 8; do
6345        teststring=$teststring$teststring
6346      done
6347      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6348      # If test is not a shell built-in, we'll probably end up computing a
6349      # maximum length that is only half of the actual maximum length, but
6350      # we can't tell.
6351      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6352	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6353	      test 17 != "$i" # 1/2 MB should be enough
6354      do
6355        i=`expr $i + 1`
6356        teststring=$teststring$teststring
6357      done
6358      # Only check the string length outside the loop.
6359      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6360      teststring=
6361      # Add a significant safety factor because C++ compilers can tack on
6362      # massive amounts of additional arguments before passing them to the
6363      # linker.  It appears as though 1/2 is a usable value.
6364      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6365    fi
6366    ;;
6367  esac
6368
6369fi
6370
6371if test -n "$lt_cv_sys_max_cmd_len"; then
6372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6373$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6374else
6375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6376$as_echo "none" >&6; }
6377fi
6378max_cmd_len=$lt_cv_sys_max_cmd_len
6379
6380
6381
6382
6383
6384
6385: ${CP="cp -f"}
6386: ${MV="mv -f"}
6387: ${RM="rm -f"}
6388
6389if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6390  lt_unset=unset
6391else
6392  lt_unset=false
6393fi
6394
6395
6396
6397
6398
6399# test EBCDIC or ASCII
6400case `echo X|tr X '\101'` in
6401 A) # ASCII based system
6402    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6403  lt_SP2NL='tr \040 \012'
6404  lt_NL2SP='tr \015\012 \040\040'
6405  ;;
6406 *) # EBCDIC based system
6407  lt_SP2NL='tr \100 \n'
6408  lt_NL2SP='tr \r\n \100\100'
6409  ;;
6410esac
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6421$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6422if ${lt_cv_to_host_file_cmd+:} false; then :
6423  $as_echo_n "(cached) " >&6
6424else
6425  case $host in
6426  *-*-mingw* )
6427    case $build in
6428      *-*-mingw* ) # actually msys
6429        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6430        ;;
6431      *-*-cygwin* )
6432        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6433        ;;
6434      * ) # otherwise, assume *nix
6435        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6436        ;;
6437    esac
6438    ;;
6439  *-*-cygwin* )
6440    case $build in
6441      *-*-mingw* ) # actually msys
6442        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6443        ;;
6444      *-*-cygwin* )
6445        lt_cv_to_host_file_cmd=func_convert_file_noop
6446        ;;
6447      * ) # otherwise, assume *nix
6448        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6449        ;;
6450    esac
6451    ;;
6452  * ) # unhandled hosts (and "normal" native builds)
6453    lt_cv_to_host_file_cmd=func_convert_file_noop
6454    ;;
6455esac
6456
6457fi
6458
6459to_host_file_cmd=$lt_cv_to_host_file_cmd
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6461$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6462
6463
6464
6465
6466
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6468$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6469if ${lt_cv_to_tool_file_cmd+:} false; then :
6470  $as_echo_n "(cached) " >&6
6471else
6472  #assume ordinary cross tools, or native build.
6473lt_cv_to_tool_file_cmd=func_convert_file_noop
6474case $host in
6475  *-*-mingw* )
6476    case $build in
6477      *-*-mingw* ) # actually msys
6478        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6479        ;;
6480    esac
6481    ;;
6482esac
6483
6484fi
6485
6486to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6488$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6489
6490
6491
6492
6493
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6495$as_echo_n "checking for $LD option to reload object files... " >&6; }
6496if ${lt_cv_ld_reload_flag+:} false; then :
6497  $as_echo_n "(cached) " >&6
6498else
6499  lt_cv_ld_reload_flag='-r'
6500fi
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6502$as_echo "$lt_cv_ld_reload_flag" >&6; }
6503reload_flag=$lt_cv_ld_reload_flag
6504case $reload_flag in
6505"" | " "*) ;;
6506*) reload_flag=" $reload_flag" ;;
6507esac
6508reload_cmds='$LD$reload_flag -o $output$reload_objs'
6509case $host_os in
6510  cygwin* | mingw* | pw32* | cegcc*)
6511    if test yes != "$GCC"; then
6512      reload_cmds=false
6513    fi
6514    ;;
6515  darwin*)
6516    if test yes = "$GCC"; then
6517      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6518    else
6519      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6520    fi
6521    ;;
6522esac
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532if test -n "$ac_tool_prefix"; then
6533  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6534set dummy ${ac_tool_prefix}objdump; ac_word=$2
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536$as_echo_n "checking for $ac_word... " >&6; }
6537if ${ac_cv_prog_OBJDUMP+:} false; then :
6538  $as_echo_n "(cached) " >&6
6539else
6540  if test -n "$OBJDUMP"; then
6541  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6542else
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
6545do
6546  IFS=$as_save_IFS
6547  test -z "$as_dir" && as_dir=.
6548    for ac_exec_ext in '' $ac_executable_extensions; do
6549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552    break 2
6553  fi
6554done
6555  done
6556IFS=$as_save_IFS
6557
6558fi
6559fi
6560OBJDUMP=$ac_cv_prog_OBJDUMP
6561if test -n "$OBJDUMP"; then
6562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6563$as_echo "$OBJDUMP" >&6; }
6564else
6565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566$as_echo "no" >&6; }
6567fi
6568
6569
6570fi
6571if test -z "$ac_cv_prog_OBJDUMP"; then
6572  ac_ct_OBJDUMP=$OBJDUMP
6573  # Extract the first word of "objdump", so it can be a program name with args.
6574set dummy objdump; ac_word=$2
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576$as_echo_n "checking for $ac_word... " >&6; }
6577if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6578  $as_echo_n "(cached) " >&6
6579else
6580  if test -n "$ac_ct_OBJDUMP"; then
6581  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6582else
6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586  IFS=$as_save_IFS
6587  test -z "$as_dir" && as_dir=.
6588    for ac_exec_ext in '' $ac_executable_extensions; do
6589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592    break 2
6593  fi
6594done
6595  done
6596IFS=$as_save_IFS
6597
6598fi
6599fi
6600ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6601if test -n "$ac_ct_OBJDUMP"; then
6602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6603$as_echo "$ac_ct_OBJDUMP" >&6; }
6604else
6605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606$as_echo "no" >&6; }
6607fi
6608
6609  if test "x$ac_ct_OBJDUMP" = x; then
6610    OBJDUMP="false"
6611  else
6612    case $cross_compiling:$ac_tool_warned in
6613yes:)
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616ac_tool_warned=yes ;;
6617esac
6618    OBJDUMP=$ac_ct_OBJDUMP
6619  fi
6620else
6621  OBJDUMP="$ac_cv_prog_OBJDUMP"
6622fi
6623
6624test -z "$OBJDUMP" && OBJDUMP=objdump
6625
6626
6627
6628
6629
6630
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6632$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6633if ${lt_cv_deplibs_check_method+:} false; then :
6634  $as_echo_n "(cached) " >&6
6635else
6636  lt_cv_file_magic_cmd='$MAGIC_CMD'
6637lt_cv_file_magic_test_file=
6638lt_cv_deplibs_check_method='unknown'
6639# Need to set the preceding variable on all platforms that support
6640# interlibrary dependencies.
6641# 'none' -- dependencies not supported.
6642# 'unknown' -- same as none, but documents that we really don't know.
6643# 'pass_all' -- all dependencies passed with no checks.
6644# 'test_compile' -- check by making test program.
6645# 'file_magic [[regex]]' -- check by looking for files in library path
6646# that responds to the $file_magic_cmd with a given extended regex.
6647# If you have 'file' or equivalent on your system and you're not sure
6648# whether 'pass_all' will *always* work, you probably want this one.
6649
6650case $host_os in
6651aix[4-9]*)
6652  lt_cv_deplibs_check_method=pass_all
6653  ;;
6654
6655beos*)
6656  lt_cv_deplibs_check_method=pass_all
6657  ;;
6658
6659bsdi[45]*)
6660  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6661  lt_cv_file_magic_cmd='/usr/bin/file -L'
6662  lt_cv_file_magic_test_file=/shlib/libc.so
6663  ;;
6664
6665cygwin*)
6666  # func_win32_libid is a shell function defined in ltmain.sh
6667  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6668  lt_cv_file_magic_cmd='func_win32_libid'
6669  ;;
6670
6671mingw* | pw32*)
6672  # Base MSYS/MinGW do not provide the 'file' command needed by
6673  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6674  # unless we find 'file', for example because we are cross-compiling.
6675  if ( file / ) >/dev/null 2>&1; then
6676    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6677    lt_cv_file_magic_cmd='func_win32_libid'
6678  else
6679    # Keep this pattern in sync with the one in func_win32_libid.
6680    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6681    lt_cv_file_magic_cmd='$OBJDUMP -f'
6682  fi
6683  ;;
6684
6685cegcc*)
6686  # use the weaker test based on 'objdump'. See mingw*.
6687  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6688  lt_cv_file_magic_cmd='$OBJDUMP -f'
6689  ;;
6690
6691darwin* | rhapsody*)
6692  lt_cv_deplibs_check_method=pass_all
6693  ;;
6694
6695freebsd* | dragonfly*)
6696  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6697    case $host_cpu in
6698    i*86 )
6699      # Not sure whether the presence of OpenBSD here was a mistake.
6700      # Let's accept both of them until this is cleared up.
6701      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6702      lt_cv_file_magic_cmd=/usr/bin/file
6703      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6704      ;;
6705    esac
6706  else
6707    lt_cv_deplibs_check_method=pass_all
6708  fi
6709  ;;
6710
6711haiku*)
6712  lt_cv_deplibs_check_method=pass_all
6713  ;;
6714
6715hpux10.20* | hpux11*)
6716  lt_cv_file_magic_cmd=/usr/bin/file
6717  case $host_cpu in
6718  ia64*)
6719    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6720    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6721    ;;
6722  hppa*64*)
6723    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6724    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6725    ;;
6726  *)
6727    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6728    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6729    ;;
6730  esac
6731  ;;
6732
6733interix[3-9]*)
6734  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6735  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6736  ;;
6737
6738irix5* | irix6* | nonstopux*)
6739  case $LD in
6740  *-32|*"-32 ") libmagic=32-bit;;
6741  *-n32|*"-n32 ") libmagic=N32;;
6742  *-64|*"-64 ") libmagic=64-bit;;
6743  *) libmagic=never-match;;
6744  esac
6745  lt_cv_deplibs_check_method=pass_all
6746  ;;
6747
6748# This must be glibc/ELF.
6749linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6750  lt_cv_deplibs_check_method=pass_all
6751  ;;
6752
6753netbsd* | netbsdelf*-gnu)
6754  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6755    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6756  else
6757    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6758  fi
6759  ;;
6760
6761newos6*)
6762  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6763  lt_cv_file_magic_cmd=/usr/bin/file
6764  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6765  ;;
6766
6767*nto* | *qnx*)
6768  lt_cv_deplibs_check_method=pass_all
6769  ;;
6770
6771openbsd* | bitrig*)
6772  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6773    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6774  else
6775    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6776  fi
6777  ;;
6778
6779osf3* | osf4* | osf5*)
6780  lt_cv_deplibs_check_method=pass_all
6781  ;;
6782
6783rdos*)
6784  lt_cv_deplibs_check_method=pass_all
6785  ;;
6786
6787solaris*)
6788  lt_cv_deplibs_check_method=pass_all
6789  ;;
6790
6791sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6792  lt_cv_deplibs_check_method=pass_all
6793  ;;
6794
6795sysv4 | sysv4.3*)
6796  case $host_vendor in
6797  motorola)
6798    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6799    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6800    ;;
6801  ncr)
6802    lt_cv_deplibs_check_method=pass_all
6803    ;;
6804  sequent)
6805    lt_cv_file_magic_cmd='/bin/file'
6806    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6807    ;;
6808  sni)
6809    lt_cv_file_magic_cmd='/bin/file'
6810    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6811    lt_cv_file_magic_test_file=/lib/libc.so
6812    ;;
6813  siemens)
6814    lt_cv_deplibs_check_method=pass_all
6815    ;;
6816  pc)
6817    lt_cv_deplibs_check_method=pass_all
6818    ;;
6819  esac
6820  ;;
6821
6822tpf*)
6823  lt_cv_deplibs_check_method=pass_all
6824  ;;
6825os2*)
6826  lt_cv_deplibs_check_method=pass_all
6827  ;;
6828esac
6829
6830fi
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6832$as_echo "$lt_cv_deplibs_check_method" >&6; }
6833
6834file_magic_glob=
6835want_nocaseglob=no
6836if test "$build" = "$host"; then
6837  case $host_os in
6838  mingw* | pw32*)
6839    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6840      want_nocaseglob=yes
6841    else
6842      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6843    fi
6844    ;;
6845  esac
6846fi
6847
6848file_magic_cmd=$lt_cv_file_magic_cmd
6849deplibs_check_method=$lt_cv_deplibs_check_method
6850test -z "$deplibs_check_method" && deplibs_check_method=unknown
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873if test -n "$ac_tool_prefix"; then
6874  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6875set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877$as_echo_n "checking for $ac_word... " >&6; }
6878if ${ac_cv_prog_DLLTOOL+:} false; then :
6879  $as_echo_n "(cached) " >&6
6880else
6881  if test -n "$DLLTOOL"; then
6882  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6883else
6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885for as_dir in $PATH
6886do
6887  IFS=$as_save_IFS
6888  test -z "$as_dir" && as_dir=.
6889    for ac_exec_ext in '' $ac_executable_extensions; do
6890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893    break 2
6894  fi
6895done
6896  done
6897IFS=$as_save_IFS
6898
6899fi
6900fi
6901DLLTOOL=$ac_cv_prog_DLLTOOL
6902if test -n "$DLLTOOL"; then
6903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6904$as_echo "$DLLTOOL" >&6; }
6905else
6906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907$as_echo "no" >&6; }
6908fi
6909
6910
6911fi
6912if test -z "$ac_cv_prog_DLLTOOL"; then
6913  ac_ct_DLLTOOL=$DLLTOOL
6914  # Extract the first word of "dlltool", so it can be a program name with args.
6915set dummy dlltool; ac_word=$2
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917$as_echo_n "checking for $ac_word... " >&6; }
6918if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6919  $as_echo_n "(cached) " >&6
6920else
6921  if test -n "$ac_ct_DLLTOOL"; then
6922  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6923else
6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927  IFS=$as_save_IFS
6928  test -z "$as_dir" && as_dir=.
6929    for ac_exec_ext in '' $ac_executable_extensions; do
6930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6931    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933    break 2
6934  fi
6935done
6936  done
6937IFS=$as_save_IFS
6938
6939fi
6940fi
6941ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6942if test -n "$ac_ct_DLLTOOL"; then
6943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6944$as_echo "$ac_ct_DLLTOOL" >&6; }
6945else
6946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947$as_echo "no" >&6; }
6948fi
6949
6950  if test "x$ac_ct_DLLTOOL" = x; then
6951    DLLTOOL="false"
6952  else
6953    case $cross_compiling:$ac_tool_warned in
6954yes:)
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6957ac_tool_warned=yes ;;
6958esac
6959    DLLTOOL=$ac_ct_DLLTOOL
6960  fi
6961else
6962  DLLTOOL="$ac_cv_prog_DLLTOOL"
6963fi
6964
6965test -z "$DLLTOOL" && DLLTOOL=dlltool
6966
6967
6968
6969
6970
6971
6972
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6974$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6975if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6976  $as_echo_n "(cached) " >&6
6977else
6978  lt_cv_sharedlib_from_linklib_cmd='unknown'
6979
6980case $host_os in
6981cygwin* | mingw* | pw32* | cegcc*)
6982  # two different shell functions defined in ltmain.sh;
6983  # decide which one to use based on capabilities of $DLLTOOL
6984  case `$DLLTOOL --help 2>&1` in
6985  *--identify-strict*)
6986    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6987    ;;
6988  *)
6989    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6990    ;;
6991  esac
6992  ;;
6993*)
6994  # fallback: assume linklib IS sharedlib
6995  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6996  ;;
6997esac
6998
6999fi
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7001$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7002sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7003test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7004
7005
7006
7007
7008
7009
7010
7011if test -n "$ac_tool_prefix"; then
7012  for ac_prog in ar
7013  do
7014    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7015set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017$as_echo_n "checking for $ac_word... " >&6; }
7018if ${ac_cv_prog_AR+:} false; then :
7019  $as_echo_n "(cached) " >&6
7020else
7021  if test -n "$AR"; then
7022  ac_cv_prog_AR="$AR" # Let the user override the test.
7023else
7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027  IFS=$as_save_IFS
7028  test -z "$as_dir" && as_dir=.
7029    for ac_exec_ext in '' $ac_executable_extensions; do
7030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033    break 2
7034  fi
7035done
7036  done
7037IFS=$as_save_IFS
7038
7039fi
7040fi
7041AR=$ac_cv_prog_AR
7042if test -n "$AR"; then
7043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7044$as_echo "$AR" >&6; }
7045else
7046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047$as_echo "no" >&6; }
7048fi
7049
7050
7051    test -n "$AR" && break
7052  done
7053fi
7054if test -z "$AR"; then
7055  ac_ct_AR=$AR
7056  for ac_prog in ar
7057do
7058  # Extract the first word of "$ac_prog", so it can be a program name with args.
7059set dummy $ac_prog; ac_word=$2
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061$as_echo_n "checking for $ac_word... " >&6; }
7062if ${ac_cv_prog_ac_ct_AR+:} false; then :
7063  $as_echo_n "(cached) " >&6
7064else
7065  if test -n "$ac_ct_AR"; then
7066  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7067else
7068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071  IFS=$as_save_IFS
7072  test -z "$as_dir" && as_dir=.
7073    for ac_exec_ext in '' $ac_executable_extensions; do
7074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075    ac_cv_prog_ac_ct_AR="$ac_prog"
7076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077    break 2
7078  fi
7079done
7080  done
7081IFS=$as_save_IFS
7082
7083fi
7084fi
7085ac_ct_AR=$ac_cv_prog_ac_ct_AR
7086if test -n "$ac_ct_AR"; then
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7088$as_echo "$ac_ct_AR" >&6; }
7089else
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091$as_echo "no" >&6; }
7092fi
7093
7094
7095  test -n "$ac_ct_AR" && break
7096done
7097
7098  if test "x$ac_ct_AR" = x; then
7099    AR="false"
7100  else
7101    case $cross_compiling:$ac_tool_warned in
7102yes:)
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7105ac_tool_warned=yes ;;
7106esac
7107    AR=$ac_ct_AR
7108  fi
7109fi
7110
7111: ${AR=ar}
7112: ${AR_FLAGS=cr}
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7125$as_echo_n "checking for archiver @FILE support... " >&6; }
7126if ${lt_cv_ar_at_file+:} false; then :
7127  $as_echo_n "(cached) " >&6
7128else
7129  lt_cv_ar_at_file=no
7130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131/* end confdefs.h.  */
7132
7133int
7134main ()
7135{
7136
7137  ;
7138  return 0;
7139}
7140_ACEOF
7141if ac_fn_c_try_compile "$LINENO"; then :
7142  echo conftest.$ac_objext > conftest.lst
7143      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7144      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7145  (eval $lt_ar_try) 2>&5
7146  ac_status=$?
7147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148  test $ac_status = 0; }
7149      if test 0 -eq "$ac_status"; then
7150	# Ensure the archiver fails upon bogus file names.
7151	rm -f conftest.$ac_objext libconftest.a
7152	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7153  (eval $lt_ar_try) 2>&5
7154  ac_status=$?
7155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7156  test $ac_status = 0; }
7157	if test 0 -ne "$ac_status"; then
7158          lt_cv_ar_at_file=@
7159        fi
7160      fi
7161      rm -f conftest.* libconftest.a
7162
7163fi
7164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165
7166fi
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7168$as_echo "$lt_cv_ar_at_file" >&6; }
7169
7170if test no = "$lt_cv_ar_at_file"; then
7171  archiver_list_spec=
7172else
7173  archiver_list_spec=$lt_cv_ar_at_file
7174fi
7175
7176
7177
7178
7179
7180
7181
7182if test -n "$ac_tool_prefix"; then
7183  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7184set dummy ${ac_tool_prefix}strip; ac_word=$2
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186$as_echo_n "checking for $ac_word... " >&6; }
7187if ${ac_cv_prog_STRIP+:} false; then :
7188  $as_echo_n "(cached) " >&6
7189else
7190  if test -n "$STRIP"; then
7191  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7192else
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196  IFS=$as_save_IFS
7197  test -z "$as_dir" && as_dir=.
7198    for ac_exec_ext in '' $ac_executable_extensions; do
7199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202    break 2
7203  fi
7204done
7205  done
7206IFS=$as_save_IFS
7207
7208fi
7209fi
7210STRIP=$ac_cv_prog_STRIP
7211if test -n "$STRIP"; then
7212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7213$as_echo "$STRIP" >&6; }
7214else
7215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216$as_echo "no" >&6; }
7217fi
7218
7219
7220fi
7221if test -z "$ac_cv_prog_STRIP"; then
7222  ac_ct_STRIP=$STRIP
7223  # Extract the first word of "strip", so it can be a program name with args.
7224set dummy strip; ac_word=$2
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226$as_echo_n "checking for $ac_word... " >&6; }
7227if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7228  $as_echo_n "(cached) " >&6
7229else
7230  if test -n "$ac_ct_STRIP"; then
7231  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7232else
7233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236  IFS=$as_save_IFS
7237  test -z "$as_dir" && as_dir=.
7238    for ac_exec_ext in '' $ac_executable_extensions; do
7239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240    ac_cv_prog_ac_ct_STRIP="strip"
7241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242    break 2
7243  fi
7244done
7245  done
7246IFS=$as_save_IFS
7247
7248fi
7249fi
7250ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7251if test -n "$ac_ct_STRIP"; then
7252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7253$as_echo "$ac_ct_STRIP" >&6; }
7254else
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256$as_echo "no" >&6; }
7257fi
7258
7259  if test "x$ac_ct_STRIP" = x; then
7260    STRIP=":"
7261  else
7262    case $cross_compiling:$ac_tool_warned in
7263yes:)
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7266ac_tool_warned=yes ;;
7267esac
7268    STRIP=$ac_ct_STRIP
7269  fi
7270else
7271  STRIP="$ac_cv_prog_STRIP"
7272fi
7273
7274test -z "$STRIP" && STRIP=:
7275
7276
7277
7278
7279
7280
7281if test -n "$ac_tool_prefix"; then
7282  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7283set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285$as_echo_n "checking for $ac_word... " >&6; }
7286if ${ac_cv_prog_RANLIB+:} false; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289  if test -n "$RANLIB"; then
7290  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7291else
7292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293for as_dir in $PATH
7294do
7295  IFS=$as_save_IFS
7296  test -z "$as_dir" && as_dir=.
7297    for ac_exec_ext in '' $ac_executable_extensions; do
7298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301    break 2
7302  fi
7303done
7304  done
7305IFS=$as_save_IFS
7306
7307fi
7308fi
7309RANLIB=$ac_cv_prog_RANLIB
7310if test -n "$RANLIB"; then
7311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7312$as_echo "$RANLIB" >&6; }
7313else
7314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315$as_echo "no" >&6; }
7316fi
7317
7318
7319fi
7320if test -z "$ac_cv_prog_RANLIB"; then
7321  ac_ct_RANLIB=$RANLIB
7322  # Extract the first word of "ranlib", so it can be a program name with args.
7323set dummy ranlib; ac_word=$2
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325$as_echo_n "checking for $ac_word... " >&6; }
7326if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7327  $as_echo_n "(cached) " >&6
7328else
7329  if test -n "$ac_ct_RANLIB"; then
7330  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7331else
7332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333for as_dir in $PATH
7334do
7335  IFS=$as_save_IFS
7336  test -z "$as_dir" && as_dir=.
7337    for ac_exec_ext in '' $ac_executable_extensions; do
7338  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7339    ac_cv_prog_ac_ct_RANLIB="ranlib"
7340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341    break 2
7342  fi
7343done
7344  done
7345IFS=$as_save_IFS
7346
7347fi
7348fi
7349ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7350if test -n "$ac_ct_RANLIB"; then
7351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7352$as_echo "$ac_ct_RANLIB" >&6; }
7353else
7354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355$as_echo "no" >&6; }
7356fi
7357
7358  if test "x$ac_ct_RANLIB" = x; then
7359    RANLIB=":"
7360  else
7361    case $cross_compiling:$ac_tool_warned in
7362yes:)
7363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7365ac_tool_warned=yes ;;
7366esac
7367    RANLIB=$ac_ct_RANLIB
7368  fi
7369else
7370  RANLIB="$ac_cv_prog_RANLIB"
7371fi
7372
7373test -z "$RANLIB" && RANLIB=:
7374
7375
7376
7377
7378
7379
7380# Determine commands to create old-style static archives.
7381old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7382old_postinstall_cmds='chmod 644 $oldlib'
7383old_postuninstall_cmds=
7384
7385if test -n "$RANLIB"; then
7386  case $host_os in
7387  bitrig* | openbsd*)
7388    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7389    ;;
7390  *)
7391    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7392    ;;
7393  esac
7394  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7395fi
7396
7397case $host_os in
7398  darwin*)
7399    lock_old_archive_extraction=yes ;;
7400  *)
7401    lock_old_archive_extraction=no ;;
7402esac
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442# If no C compiler was specified, use CC.
7443LTCC=${LTCC-"$CC"}
7444
7445# If no C compiler flags were specified, use CFLAGS.
7446LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7447
7448# Allow CC to be a program name with arguments.
7449compiler=$CC
7450
7451
7452# Check for command to grab the raw symbol name followed by C symbol from nm.
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7454$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7455if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458
7459# These are sane defaults that work on at least a few old systems.
7460# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7461
7462# Character class describing NM global symbol codes.
7463symcode='[BCDEGRST]'
7464
7465# Regexp to match symbols that can be accessed directly from C.
7466sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7467
7468# Define system-specific variables.
7469case $host_os in
7470aix*)
7471  symcode='[BCDT]'
7472  ;;
7473cygwin* | mingw* | pw32* | cegcc*)
7474  symcode='[ABCDGISTW]'
7475  ;;
7476hpux*)
7477  if test ia64 = "$host_cpu"; then
7478    symcode='[ABCDEGRST]'
7479  fi
7480  ;;
7481irix* | nonstopux*)
7482  symcode='[BCDEGRST]'
7483  ;;
7484osf*)
7485  symcode='[BCDEGQRST]'
7486  ;;
7487solaris*)
7488  symcode='[BDRT]'
7489  ;;
7490sco3.2v5*)
7491  symcode='[DT]'
7492  ;;
7493sysv4.2uw2*)
7494  symcode='[DT]'
7495  ;;
7496sysv5* | sco5v6* | unixware* | OpenUNIX*)
7497  symcode='[ABDT]'
7498  ;;
7499sysv4)
7500  symcode='[DFNSTU]'
7501  ;;
7502esac
7503
7504# If we're using GNU nm, then use its standard symbol codes.
7505case `$NM -V 2>&1` in
7506*GNU* | *'with BFD'*)
7507  symcode='[ABCDGIRSTW]' ;;
7508esac
7509
7510if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7511  # Gets list of data symbols to import.
7512  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7513  # Adjust the below global symbol transforms to fixup imported variables.
7514  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7515  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7516  lt_c_name_lib_hook="\
7517  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7518  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7519else
7520  # Disable hooks by default.
7521  lt_cv_sys_global_symbol_to_import=
7522  lt_cdecl_hook=
7523  lt_c_name_hook=
7524  lt_c_name_lib_hook=
7525fi
7526
7527# Transform an extracted symbol line into a proper C declaration.
7528# Some systems (esp. on ia64) link data and code symbols differently,
7529# so use this general approach.
7530lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7531$lt_cdecl_hook\
7532" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7533" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7534
7535# Transform an extracted symbol line into symbol name and symbol address
7536lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7537$lt_c_name_hook\
7538" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7539" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7540
7541# Transform an extracted symbol line into symbol name with lib prefix and
7542# symbol address.
7543lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7544$lt_c_name_lib_hook\
7545" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7546" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7547" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7548
7549# Handle CRLF in mingw tool chain
7550opt_cr=
7551case $build_os in
7552mingw*)
7553  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7554  ;;
7555esac
7556
7557# Try without a prefix underscore, then with it.
7558for ac_symprfx in "" "_"; do
7559
7560  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7561  symxfrm="\\1 $ac_symprfx\\2 \\2"
7562
7563  # Write the raw and C identifiers.
7564  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7565    # Fake it for dumpbin and say T for any non-static function,
7566    # D for any global variable and I for any imported variable.
7567    # Also find C++ and __fastcall symbols from MSVC++,
7568    # which start with @ or ?.
7569    lt_cv_sys_global_symbol_pipe="$AWK '"\
7570"     {last_section=section; section=\$ 3};"\
7571"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7572"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7573"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7574"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7575"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7576"     \$ 0!~/External *\|/{next};"\
7577"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7578"     {if(hide[section]) next};"\
7579"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7580"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7581"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7582"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7583"     ' prfx=^$ac_symprfx"
7584  else
7585    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7586  fi
7587  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7588
7589  # Check to see that the pipe works correctly.
7590  pipe_works=no
7591
7592  rm -f conftest*
7593  cat > conftest.$ac_ext <<_LT_EOF
7594#ifdef __cplusplus
7595extern "C" {
7596#endif
7597char nm_test_var;
7598void nm_test_func(void);
7599void nm_test_func(void){}
7600#ifdef __cplusplus
7601}
7602#endif
7603int main(){nm_test_var='a';nm_test_func();return(0);}
7604_LT_EOF
7605
7606  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7607  (eval $ac_compile) 2>&5
7608  ac_status=$?
7609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610  test $ac_status = 0; }; then
7611    # Now try to grab the symbols.
7612    nlist=conftest.nm
7613    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7614    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7615      # Try sorting and uniquifying the output.
7616      if sort "$nlist" | uniq > "$nlist"T; then
7617	mv -f "$nlist"T "$nlist"
7618      else
7619	rm -f "$nlist"T
7620      fi
7621
7622      # Make sure that we snagged all the symbols we need.
7623      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7624	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7625	  cat <<_LT_EOF > conftest.$ac_ext
7626/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7627#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7628/* DATA imports from DLLs on WIN32 can't be const, because runtime
7629   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7630# define LT_DLSYM_CONST
7631#elif defined __osf__
7632/* This system does not cope well with relocations in const data.  */
7633# define LT_DLSYM_CONST
7634#else
7635# define LT_DLSYM_CONST const
7636#endif
7637
7638#ifdef __cplusplus
7639extern "C" {
7640#endif
7641
7642_LT_EOF
7643	  # Now generate the symbol file.
7644	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7645
7646	  cat <<_LT_EOF >> conftest.$ac_ext
7647
7648/* The mapping between symbol names and symbols.  */
7649LT_DLSYM_CONST struct {
7650  const char *name;
7651  void       *address;
7652}
7653lt__PROGRAM__LTX_preloaded_symbols[] =
7654{
7655  { "@PROGRAM@", (void *) 0 },
7656_LT_EOF
7657	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7658	  cat <<\_LT_EOF >> conftest.$ac_ext
7659  {0, (void *) 0}
7660};
7661
7662/* This works around a problem in FreeBSD linker */
7663#ifdef FREEBSD_WORKAROUND
7664static const void *lt_preloaded_setup() {
7665  return lt__PROGRAM__LTX_preloaded_symbols;
7666}
7667#endif
7668
7669#ifdef __cplusplus
7670}
7671#endif
7672_LT_EOF
7673	  # Now try linking the two files.
7674	  mv conftest.$ac_objext conftstm.$ac_objext
7675	  lt_globsym_save_LIBS=$LIBS
7676	  lt_globsym_save_CFLAGS=$CFLAGS
7677	  LIBS=conftstm.$ac_objext
7678	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7679	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7680  (eval $ac_link) 2>&5
7681  ac_status=$?
7682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7683  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7684	    pipe_works=yes
7685	  fi
7686	  LIBS=$lt_globsym_save_LIBS
7687	  CFLAGS=$lt_globsym_save_CFLAGS
7688	else
7689	  echo "cannot find nm_test_func in $nlist" >&5
7690	fi
7691      else
7692	echo "cannot find nm_test_var in $nlist" >&5
7693      fi
7694    else
7695      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7696    fi
7697  else
7698    echo "$progname: failed program was:" >&5
7699    cat conftest.$ac_ext >&5
7700  fi
7701  rm -rf conftest* conftst*
7702
7703  # Do not use the global_symbol_pipe unless it works.
7704  if test yes = "$pipe_works"; then
7705    break
7706  else
7707    lt_cv_sys_global_symbol_pipe=
7708  fi
7709done
7710
7711fi
7712
7713if test -z "$lt_cv_sys_global_symbol_pipe"; then
7714  lt_cv_sys_global_symbol_to_cdecl=
7715fi
7716if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7718$as_echo "failed" >&6; }
7719else
7720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7721$as_echo "ok" >&6; }
7722fi
7723
7724# Response file support.
7725if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7726  nm_file_list_spec='@'
7727elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7728  nm_file_list_spec='@'
7729fi
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7768$as_echo_n "checking for sysroot... " >&6; }
7769
7770# Check whether --with-sysroot was given.
7771if test "${with_sysroot+set}" = set; then :
7772  withval=$with_sysroot;
7773else
7774  with_sysroot=no
7775fi
7776
7777
7778lt_sysroot=
7779case $with_sysroot in #(
7780 yes)
7781   if test yes = "$GCC"; then
7782     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7783   fi
7784   ;; #(
7785 /*)
7786   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7787   ;; #(
7788 no|'')
7789   ;; #(
7790 *)
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7792$as_echo "$with_sysroot" >&6; }
7793   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7794   ;;
7795esac
7796
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7798$as_echo "${lt_sysroot:-no}" >&6; }
7799
7800
7801
7802
7803
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7805$as_echo_n "checking for a working dd... " >&6; }
7806if ${ac_cv_path_lt_DD+:} false; then :
7807  $as_echo_n "(cached) " >&6
7808else
7809  printf 0123456789abcdef0123456789abcdef >conftest.i
7810cat conftest.i conftest.i >conftest2.i
7811: ${lt_DD:=$DD}
7812if test -z "$lt_DD"; then
7813  ac_path_lt_DD_found=false
7814  # Loop through the user's path and test for each of PROGNAME-LIST
7815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818  IFS=$as_save_IFS
7819  test -z "$as_dir" && as_dir=.
7820    for ac_prog in dd; do
7821    for ac_exec_ext in '' $ac_executable_extensions; do
7822      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7823      as_fn_executable_p "$ac_path_lt_DD" || continue
7824if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7825  cmp -s conftest.i conftest.out \
7826  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7827fi
7828      $ac_path_lt_DD_found && break 3
7829    done
7830  done
7831  done
7832IFS=$as_save_IFS
7833  if test -z "$ac_cv_path_lt_DD"; then
7834    :
7835  fi
7836else
7837  ac_cv_path_lt_DD=$lt_DD
7838fi
7839
7840rm -f conftest.i conftest2.i conftest.out
7841fi
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7843$as_echo "$ac_cv_path_lt_DD" >&6; }
7844
7845
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7847$as_echo_n "checking how to truncate binary pipes... " >&6; }
7848if ${lt_cv_truncate_bin+:} false; then :
7849  $as_echo_n "(cached) " >&6
7850else
7851  printf 0123456789abcdef0123456789abcdef >conftest.i
7852cat conftest.i conftest.i >conftest2.i
7853lt_cv_truncate_bin=
7854if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7855  cmp -s conftest.i conftest.out \
7856  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7857fi
7858rm -f conftest.i conftest2.i conftest.out
7859test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7860fi
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7862$as_echo "$lt_cv_truncate_bin" >&6; }
7863
7864
7865
7866
7867
7868
7869
7870# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7871func_cc_basename ()
7872{
7873    for cc_temp in $*""; do
7874      case $cc_temp in
7875        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7876        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7877        \-*) ;;
7878        *) break;;
7879      esac
7880    done
7881    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7882}
7883
7884# Check whether --enable-libtool-lock was given.
7885if test "${enable_libtool_lock+set}" = set; then :
7886  enableval=$enable_libtool_lock;
7887fi
7888
7889test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7890
7891# Some flags need to be propagated to the compiler or linker for good
7892# libtool support.
7893case $host in
7894ia64-*-hpux*)
7895  # Find out what ABI is being produced by ac_compile, and set mode
7896  # options accordingly.
7897  echo 'int i;' > conftest.$ac_ext
7898  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7899  (eval $ac_compile) 2>&5
7900  ac_status=$?
7901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7902  test $ac_status = 0; }; then
7903    case `/usr/bin/file conftest.$ac_objext` in
7904      *ELF-32*)
7905	HPUX_IA64_MODE=32
7906	;;
7907      *ELF-64*)
7908	HPUX_IA64_MODE=64
7909	;;
7910    esac
7911  fi
7912  rm -rf conftest*
7913  ;;
7914*-*-irix6*)
7915  # Find out what ABI is being produced by ac_compile, and set linker
7916  # options accordingly.
7917  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7918  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7919  (eval $ac_compile) 2>&5
7920  ac_status=$?
7921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7922  test $ac_status = 0; }; then
7923    if test yes = "$lt_cv_prog_gnu_ld"; then
7924      case `/usr/bin/file conftest.$ac_objext` in
7925	*32-bit*)
7926	  LD="${LD-ld} -melf32bsmip"
7927	  ;;
7928	*N32*)
7929	  LD="${LD-ld} -melf32bmipn32"
7930	  ;;
7931	*64-bit*)
7932	  LD="${LD-ld} -melf64bmip"
7933	;;
7934      esac
7935    else
7936      case `/usr/bin/file conftest.$ac_objext` in
7937	*32-bit*)
7938	  LD="${LD-ld} -32"
7939	  ;;
7940	*N32*)
7941	  LD="${LD-ld} -n32"
7942	  ;;
7943	*64-bit*)
7944	  LD="${LD-ld} -64"
7945	  ;;
7946      esac
7947    fi
7948  fi
7949  rm -rf conftest*
7950  ;;
7951
7952mips64*-*linux*)
7953  # Find out what ABI is being produced by ac_compile, and set linker
7954  # options accordingly.
7955  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7956  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7957  (eval $ac_compile) 2>&5
7958  ac_status=$?
7959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7960  test $ac_status = 0; }; then
7961    emul=elf
7962    case `/usr/bin/file conftest.$ac_objext` in
7963      *32-bit*)
7964	emul="${emul}32"
7965	;;
7966      *64-bit*)
7967	emul="${emul}64"
7968	;;
7969    esac
7970    case `/usr/bin/file conftest.$ac_objext` in
7971      *MSB*)
7972	emul="${emul}btsmip"
7973	;;
7974      *LSB*)
7975	emul="${emul}ltsmip"
7976	;;
7977    esac
7978    case `/usr/bin/file conftest.$ac_objext` in
7979      *N32*)
7980	emul="${emul}n32"
7981	;;
7982    esac
7983    LD="${LD-ld} -m $emul"
7984  fi
7985  rm -rf conftest*
7986  ;;
7987
7988x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7989s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7990  # Find out what ABI is being produced by ac_compile, and set linker
7991  # options accordingly.  Note that the listed cases only cover the
7992  # situations where additional linker options are needed (such as when
7993  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7994  # vice versa); the common cases where no linker options are needed do
7995  # not appear in the list.
7996  echo 'int i;' > conftest.$ac_ext
7997  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7998  (eval $ac_compile) 2>&5
7999  ac_status=$?
8000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8001  test $ac_status = 0; }; then
8002    case `/usr/bin/file conftest.o` in
8003      *32-bit*)
8004	case $host in
8005	  x86_64-*kfreebsd*-gnu)
8006	    LD="${LD-ld} -m elf_i386_fbsd"
8007	    ;;
8008	  x86_64-*linux*)
8009	    case `/usr/bin/file conftest.o` in
8010	      *x86-64*)
8011		LD="${LD-ld} -m elf32_x86_64"
8012		;;
8013	      *)
8014		LD="${LD-ld} -m elf_i386"
8015		;;
8016	    esac
8017	    ;;
8018	  powerpc64le-*linux*)
8019	    LD="${LD-ld} -m elf32lppclinux"
8020	    ;;
8021	  powerpc64-*linux*)
8022	    LD="${LD-ld} -m elf32ppclinux"
8023	    ;;
8024	  s390x-*linux*)
8025	    LD="${LD-ld} -m elf_s390"
8026	    ;;
8027	  sparc64-*linux*)
8028	    LD="${LD-ld} -m elf32_sparc"
8029	    ;;
8030	esac
8031	;;
8032      *64-bit*)
8033	case $host in
8034	  x86_64-*kfreebsd*-gnu)
8035	    LD="${LD-ld} -m elf_x86_64_fbsd"
8036	    ;;
8037	  x86_64-*linux*)
8038	    LD="${LD-ld} -m elf_x86_64"
8039	    ;;
8040	  powerpcle-*linux*)
8041	    LD="${LD-ld} -m elf64lppc"
8042	    ;;
8043	  powerpc-*linux*)
8044	    LD="${LD-ld} -m elf64ppc"
8045	    ;;
8046	  s390*-*linux*|s390*-*tpf*)
8047	    LD="${LD-ld} -m elf64_s390"
8048	    ;;
8049	  sparc*-*linux*)
8050	    LD="${LD-ld} -m elf64_sparc"
8051	    ;;
8052	esac
8053	;;
8054    esac
8055  fi
8056  rm -rf conftest*
8057  ;;
8058
8059*-*-sco3.2v5*)
8060  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8061  SAVE_CFLAGS=$CFLAGS
8062  CFLAGS="$CFLAGS -belf"
8063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8064$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8065if ${lt_cv_cc_needs_belf+:} false; then :
8066  $as_echo_n "(cached) " >&6
8067else
8068  ac_ext=c
8069ac_cpp='$CPP $CPPFLAGS'
8070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8072ac_compiler_gnu=$ac_cv_c_compiler_gnu
8073
8074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075/* end confdefs.h.  */
8076
8077int
8078main ()
8079{
8080
8081  ;
8082  return 0;
8083}
8084_ACEOF
8085if ac_fn_c_try_link "$LINENO"; then :
8086  lt_cv_cc_needs_belf=yes
8087else
8088  lt_cv_cc_needs_belf=no
8089fi
8090rm -f core conftest.err conftest.$ac_objext \
8091    conftest$ac_exeext conftest.$ac_ext
8092     ac_ext=c
8093ac_cpp='$CPP $CPPFLAGS'
8094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8096ac_compiler_gnu=$ac_cv_c_compiler_gnu
8097
8098fi
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8100$as_echo "$lt_cv_cc_needs_belf" >&6; }
8101  if test yes != "$lt_cv_cc_needs_belf"; then
8102    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8103    CFLAGS=$SAVE_CFLAGS
8104  fi
8105  ;;
8106*-*solaris*)
8107  # Find out what ABI is being produced by ac_compile, and set linker
8108  # options accordingly.
8109  echo 'int i;' > conftest.$ac_ext
8110  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8111  (eval $ac_compile) 2>&5
8112  ac_status=$?
8113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114  test $ac_status = 0; }; then
8115    case `/usr/bin/file conftest.o` in
8116    *64-bit*)
8117      case $lt_cv_prog_gnu_ld in
8118      yes*)
8119        case $host in
8120        i?86-*-solaris*|x86_64-*-solaris*)
8121          LD="${LD-ld} -m elf_x86_64"
8122          ;;
8123        sparc*-*-solaris*)
8124          LD="${LD-ld} -m elf64_sparc"
8125          ;;
8126        esac
8127        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8128        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8129          LD=${LD-ld}_sol2
8130        fi
8131        ;;
8132      *)
8133	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8134	  LD="${LD-ld} -64"
8135	fi
8136	;;
8137      esac
8138      ;;
8139    esac
8140  fi
8141  rm -rf conftest*
8142  ;;
8143esac
8144
8145need_locks=$enable_libtool_lock
8146
8147if test -n "$ac_tool_prefix"; then
8148  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8149set dummy ${ac_tool_prefix}mt; ac_word=$2
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151$as_echo_n "checking for $ac_word... " >&6; }
8152if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  if test -n "$MANIFEST_TOOL"; then
8156  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8157else
8158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159for as_dir in $PATH
8160do
8161  IFS=$as_save_IFS
8162  test -z "$as_dir" && as_dir=.
8163    for ac_exec_ext in '' $ac_executable_extensions; do
8164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167    break 2
8168  fi
8169done
8170  done
8171IFS=$as_save_IFS
8172
8173fi
8174fi
8175MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8176if test -n "$MANIFEST_TOOL"; then
8177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8178$as_echo "$MANIFEST_TOOL" >&6; }
8179else
8180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181$as_echo "no" >&6; }
8182fi
8183
8184
8185fi
8186if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8187  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8188  # Extract the first word of "mt", so it can be a program name with args.
8189set dummy mt; ac_word=$2
8190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191$as_echo_n "checking for $ac_word... " >&6; }
8192if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8193  $as_echo_n "(cached) " >&6
8194else
8195  if test -n "$ac_ct_MANIFEST_TOOL"; then
8196  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8197else
8198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199for as_dir in $PATH
8200do
8201  IFS=$as_save_IFS
8202  test -z "$as_dir" && as_dir=.
8203    for ac_exec_ext in '' $ac_executable_extensions; do
8204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207    break 2
8208  fi
8209done
8210  done
8211IFS=$as_save_IFS
8212
8213fi
8214fi
8215ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8216if test -n "$ac_ct_MANIFEST_TOOL"; then
8217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8218$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8219else
8220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221$as_echo "no" >&6; }
8222fi
8223
8224  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8225    MANIFEST_TOOL=":"
8226  else
8227    case $cross_compiling:$ac_tool_warned in
8228yes:)
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8231ac_tool_warned=yes ;;
8232esac
8233    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8234  fi
8235else
8236  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8237fi
8238
8239test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8241$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8242if ${lt_cv_path_mainfest_tool+:} false; then :
8243  $as_echo_n "(cached) " >&6
8244else
8245  lt_cv_path_mainfest_tool=no
8246  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8247  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8248  cat conftest.err >&5
8249  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8250    lt_cv_path_mainfest_tool=yes
8251  fi
8252  rm -f conftest*
8253fi
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8255$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8256if test yes != "$lt_cv_path_mainfest_tool"; then
8257  MANIFEST_TOOL=:
8258fi
8259
8260
8261
8262
8263
8264
8265  case $host_os in
8266    rhapsody* | darwin*)
8267    if test -n "$ac_tool_prefix"; then
8268  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8269set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271$as_echo_n "checking for $ac_word... " >&6; }
8272if ${ac_cv_prog_DSYMUTIL+:} false; then :
8273  $as_echo_n "(cached) " >&6
8274else
8275  if test -n "$DSYMUTIL"; then
8276  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8277else
8278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279for as_dir in $PATH
8280do
8281  IFS=$as_save_IFS
8282  test -z "$as_dir" && as_dir=.
8283    for ac_exec_ext in '' $ac_executable_extensions; do
8284  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8285    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287    break 2
8288  fi
8289done
8290  done
8291IFS=$as_save_IFS
8292
8293fi
8294fi
8295DSYMUTIL=$ac_cv_prog_DSYMUTIL
8296if test -n "$DSYMUTIL"; then
8297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8298$as_echo "$DSYMUTIL" >&6; }
8299else
8300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301$as_echo "no" >&6; }
8302fi
8303
8304
8305fi
8306if test -z "$ac_cv_prog_DSYMUTIL"; then
8307  ac_ct_DSYMUTIL=$DSYMUTIL
8308  # Extract the first word of "dsymutil", so it can be a program name with args.
8309set dummy dsymutil; ac_word=$2
8310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311$as_echo_n "checking for $ac_word... " >&6; }
8312if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8313  $as_echo_n "(cached) " >&6
8314else
8315  if test -n "$ac_ct_DSYMUTIL"; then
8316  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8317else
8318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319for as_dir in $PATH
8320do
8321  IFS=$as_save_IFS
8322  test -z "$as_dir" && as_dir=.
8323    for ac_exec_ext in '' $ac_executable_extensions; do
8324  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327    break 2
8328  fi
8329done
8330  done
8331IFS=$as_save_IFS
8332
8333fi
8334fi
8335ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8336if test -n "$ac_ct_DSYMUTIL"; then
8337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8338$as_echo "$ac_ct_DSYMUTIL" >&6; }
8339else
8340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341$as_echo "no" >&6; }
8342fi
8343
8344  if test "x$ac_ct_DSYMUTIL" = x; then
8345    DSYMUTIL=":"
8346  else
8347    case $cross_compiling:$ac_tool_warned in
8348yes:)
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8351ac_tool_warned=yes ;;
8352esac
8353    DSYMUTIL=$ac_ct_DSYMUTIL
8354  fi
8355else
8356  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8357fi
8358
8359    if test -n "$ac_tool_prefix"; then
8360  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8361set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363$as_echo_n "checking for $ac_word... " >&6; }
8364if ${ac_cv_prog_NMEDIT+:} false; then :
8365  $as_echo_n "(cached) " >&6
8366else
8367  if test -n "$NMEDIT"; then
8368  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8369else
8370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371for as_dir in $PATH
8372do
8373  IFS=$as_save_IFS
8374  test -z "$as_dir" && as_dir=.
8375    for ac_exec_ext in '' $ac_executable_extensions; do
8376  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8377    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379    break 2
8380  fi
8381done
8382  done
8383IFS=$as_save_IFS
8384
8385fi
8386fi
8387NMEDIT=$ac_cv_prog_NMEDIT
8388if test -n "$NMEDIT"; then
8389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8390$as_echo "$NMEDIT" >&6; }
8391else
8392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393$as_echo "no" >&6; }
8394fi
8395
8396
8397fi
8398if test -z "$ac_cv_prog_NMEDIT"; then
8399  ac_ct_NMEDIT=$NMEDIT
8400  # Extract the first word of "nmedit", so it can be a program name with args.
8401set dummy nmedit; ac_word=$2
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403$as_echo_n "checking for $ac_word... " >&6; }
8404if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8405  $as_echo_n "(cached) " >&6
8406else
8407  if test -n "$ac_ct_NMEDIT"; then
8408  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8409else
8410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411for as_dir in $PATH
8412do
8413  IFS=$as_save_IFS
8414  test -z "$as_dir" && as_dir=.
8415    for ac_exec_ext in '' $ac_executable_extensions; do
8416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8417    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419    break 2
8420  fi
8421done
8422  done
8423IFS=$as_save_IFS
8424
8425fi
8426fi
8427ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8428if test -n "$ac_ct_NMEDIT"; then
8429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8430$as_echo "$ac_ct_NMEDIT" >&6; }
8431else
8432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433$as_echo "no" >&6; }
8434fi
8435
8436  if test "x$ac_ct_NMEDIT" = x; then
8437    NMEDIT=":"
8438  else
8439    case $cross_compiling:$ac_tool_warned in
8440yes:)
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8443ac_tool_warned=yes ;;
8444esac
8445    NMEDIT=$ac_ct_NMEDIT
8446  fi
8447else
8448  NMEDIT="$ac_cv_prog_NMEDIT"
8449fi
8450
8451    if test -n "$ac_tool_prefix"; then
8452  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8453set dummy ${ac_tool_prefix}lipo; ac_word=$2
8454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8455$as_echo_n "checking for $ac_word... " >&6; }
8456if ${ac_cv_prog_LIPO+:} false; then :
8457  $as_echo_n "(cached) " >&6
8458else
8459  if test -n "$LIPO"; then
8460  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8461else
8462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463for as_dir in $PATH
8464do
8465  IFS=$as_save_IFS
8466  test -z "$as_dir" && as_dir=.
8467    for ac_exec_ext in '' $ac_executable_extensions; do
8468  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8469    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471    break 2
8472  fi
8473done
8474  done
8475IFS=$as_save_IFS
8476
8477fi
8478fi
8479LIPO=$ac_cv_prog_LIPO
8480if test -n "$LIPO"; then
8481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8482$as_echo "$LIPO" >&6; }
8483else
8484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485$as_echo "no" >&6; }
8486fi
8487
8488
8489fi
8490if test -z "$ac_cv_prog_LIPO"; then
8491  ac_ct_LIPO=$LIPO
8492  # Extract the first word of "lipo", so it can be a program name with args.
8493set dummy lipo; ac_word=$2
8494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495$as_echo_n "checking for $ac_word... " >&6; }
8496if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8497  $as_echo_n "(cached) " >&6
8498else
8499  if test -n "$ac_ct_LIPO"; then
8500  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8501else
8502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503for as_dir in $PATH
8504do
8505  IFS=$as_save_IFS
8506  test -z "$as_dir" && as_dir=.
8507    for ac_exec_ext in '' $ac_executable_extensions; do
8508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8509    ac_cv_prog_ac_ct_LIPO="lipo"
8510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511    break 2
8512  fi
8513done
8514  done
8515IFS=$as_save_IFS
8516
8517fi
8518fi
8519ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8520if test -n "$ac_ct_LIPO"; then
8521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8522$as_echo "$ac_ct_LIPO" >&6; }
8523else
8524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525$as_echo "no" >&6; }
8526fi
8527
8528  if test "x$ac_ct_LIPO" = x; then
8529    LIPO=":"
8530  else
8531    case $cross_compiling:$ac_tool_warned in
8532yes:)
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8535ac_tool_warned=yes ;;
8536esac
8537    LIPO=$ac_ct_LIPO
8538  fi
8539else
8540  LIPO="$ac_cv_prog_LIPO"
8541fi
8542
8543    if test -n "$ac_tool_prefix"; then
8544  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8545set dummy ${ac_tool_prefix}otool; ac_word=$2
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8547$as_echo_n "checking for $ac_word... " >&6; }
8548if ${ac_cv_prog_OTOOL+:} false; then :
8549  $as_echo_n "(cached) " >&6
8550else
8551  if test -n "$OTOOL"; then
8552  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8553else
8554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555for as_dir in $PATH
8556do
8557  IFS=$as_save_IFS
8558  test -z "$as_dir" && as_dir=.
8559    for ac_exec_ext in '' $ac_executable_extensions; do
8560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8561    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8563    break 2
8564  fi
8565done
8566  done
8567IFS=$as_save_IFS
8568
8569fi
8570fi
8571OTOOL=$ac_cv_prog_OTOOL
8572if test -n "$OTOOL"; then
8573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8574$as_echo "$OTOOL" >&6; }
8575else
8576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577$as_echo "no" >&6; }
8578fi
8579
8580
8581fi
8582if test -z "$ac_cv_prog_OTOOL"; then
8583  ac_ct_OTOOL=$OTOOL
8584  # Extract the first word of "otool", so it can be a program name with args.
8585set dummy otool; ac_word=$2
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587$as_echo_n "checking for $ac_word... " >&6; }
8588if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8589  $as_echo_n "(cached) " >&6
8590else
8591  if test -n "$ac_ct_OTOOL"; then
8592  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8593else
8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597  IFS=$as_save_IFS
8598  test -z "$as_dir" && as_dir=.
8599    for ac_exec_ext in '' $ac_executable_extensions; do
8600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601    ac_cv_prog_ac_ct_OTOOL="otool"
8602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603    break 2
8604  fi
8605done
8606  done
8607IFS=$as_save_IFS
8608
8609fi
8610fi
8611ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8612if test -n "$ac_ct_OTOOL"; then
8613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8614$as_echo "$ac_ct_OTOOL" >&6; }
8615else
8616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617$as_echo "no" >&6; }
8618fi
8619
8620  if test "x$ac_ct_OTOOL" = x; then
8621    OTOOL=":"
8622  else
8623    case $cross_compiling:$ac_tool_warned in
8624yes:)
8625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8627ac_tool_warned=yes ;;
8628esac
8629    OTOOL=$ac_ct_OTOOL
8630  fi
8631else
8632  OTOOL="$ac_cv_prog_OTOOL"
8633fi
8634
8635    if test -n "$ac_tool_prefix"; then
8636  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8637set dummy ${ac_tool_prefix}otool64; ac_word=$2
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639$as_echo_n "checking for $ac_word... " >&6; }
8640if ${ac_cv_prog_OTOOL64+:} false; then :
8641  $as_echo_n "(cached) " >&6
8642else
8643  if test -n "$OTOOL64"; then
8644  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8645else
8646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649  IFS=$as_save_IFS
8650  test -z "$as_dir" && as_dir=.
8651    for ac_exec_ext in '' $ac_executable_extensions; do
8652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655    break 2
8656  fi
8657done
8658  done
8659IFS=$as_save_IFS
8660
8661fi
8662fi
8663OTOOL64=$ac_cv_prog_OTOOL64
8664if test -n "$OTOOL64"; then
8665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8666$as_echo "$OTOOL64" >&6; }
8667else
8668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669$as_echo "no" >&6; }
8670fi
8671
8672
8673fi
8674if test -z "$ac_cv_prog_OTOOL64"; then
8675  ac_ct_OTOOL64=$OTOOL64
8676  # Extract the first word of "otool64", so it can be a program name with args.
8677set dummy otool64; ac_word=$2
8678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679$as_echo_n "checking for $ac_word... " >&6; }
8680if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8681  $as_echo_n "(cached) " >&6
8682else
8683  if test -n "$ac_ct_OTOOL64"; then
8684  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8685else
8686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687for as_dir in $PATH
8688do
8689  IFS=$as_save_IFS
8690  test -z "$as_dir" && as_dir=.
8691    for ac_exec_ext in '' $ac_executable_extensions; do
8692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8693    ac_cv_prog_ac_ct_OTOOL64="otool64"
8694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695    break 2
8696  fi
8697done
8698  done
8699IFS=$as_save_IFS
8700
8701fi
8702fi
8703ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8704if test -n "$ac_ct_OTOOL64"; then
8705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8706$as_echo "$ac_ct_OTOOL64" >&6; }
8707else
8708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709$as_echo "no" >&6; }
8710fi
8711
8712  if test "x$ac_ct_OTOOL64" = x; then
8713    OTOOL64=":"
8714  else
8715    case $cross_compiling:$ac_tool_warned in
8716yes:)
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8719ac_tool_warned=yes ;;
8720esac
8721    OTOOL64=$ac_ct_OTOOL64
8722  fi
8723else
8724  OTOOL64="$ac_cv_prog_OTOOL64"
8725fi
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8754$as_echo_n "checking for -single_module linker flag... " >&6; }
8755if ${lt_cv_apple_cc_single_mod+:} false; then :
8756  $as_echo_n "(cached) " >&6
8757else
8758  lt_cv_apple_cc_single_mod=no
8759      if test -z "$LT_MULTI_MODULE"; then
8760	# By default we will add the -single_module flag. You can override
8761	# by either setting the environment variable LT_MULTI_MODULE
8762	# non-empty at configure time, or by adding -multi_module to the
8763	# link flags.
8764	rm -rf libconftest.dylib*
8765	echo "int foo(void){return 1;}" > conftest.c
8766	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8767-dynamiclib -Wl,-single_module conftest.c" >&5
8768	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8769	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8770        _lt_result=$?
8771	# If there is a non-empty error log, and "single_module"
8772	# appears in it, assume the flag caused a linker warning
8773        if test -s conftest.err && $GREP single_module conftest.err; then
8774	  cat conftest.err >&5
8775	# Otherwise, if the output was created with a 0 exit code from
8776	# the compiler, it worked.
8777	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8778	  lt_cv_apple_cc_single_mod=yes
8779	else
8780	  cat conftest.err >&5
8781	fi
8782	rm -rf libconftest.dylib*
8783	rm -f conftest.*
8784      fi
8785fi
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8787$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8788
8789    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8790$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8791if ${lt_cv_ld_exported_symbols_list+:} false; then :
8792  $as_echo_n "(cached) " >&6
8793else
8794  lt_cv_ld_exported_symbols_list=no
8795      save_LDFLAGS=$LDFLAGS
8796      echo "_main" > conftest.sym
8797      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8798      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799/* end confdefs.h.  */
8800
8801int
8802main ()
8803{
8804
8805  ;
8806  return 0;
8807}
8808_ACEOF
8809if ac_fn_c_try_link "$LINENO"; then :
8810  lt_cv_ld_exported_symbols_list=yes
8811else
8812  lt_cv_ld_exported_symbols_list=no
8813fi
8814rm -f core conftest.err conftest.$ac_objext \
8815    conftest$ac_exeext conftest.$ac_ext
8816	LDFLAGS=$save_LDFLAGS
8817
8818fi
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8820$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8821
8822    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8823$as_echo_n "checking for -force_load linker flag... " >&6; }
8824if ${lt_cv_ld_force_load+:} false; then :
8825  $as_echo_n "(cached) " >&6
8826else
8827  lt_cv_ld_force_load=no
8828      cat > conftest.c << _LT_EOF
8829int forced_loaded() { return 2;}
8830_LT_EOF
8831      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8832      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8833      echo "$AR cr libconftest.a conftest.o" >&5
8834      $AR cr libconftest.a conftest.o 2>&5
8835      echo "$RANLIB libconftest.a" >&5
8836      $RANLIB libconftest.a 2>&5
8837      cat > conftest.c << _LT_EOF
8838int main() { return 0;}
8839_LT_EOF
8840      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8841      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8842      _lt_result=$?
8843      if test -s conftest.err && $GREP force_load conftest.err; then
8844	cat conftest.err >&5
8845      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8846	lt_cv_ld_force_load=yes
8847      else
8848	cat conftest.err >&5
8849      fi
8850        rm -f conftest.err libconftest.a conftest conftest.c
8851        rm -rf conftest.dSYM
8852
8853fi
8854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8855$as_echo "$lt_cv_ld_force_load" >&6; }
8856    case $host_os in
8857    rhapsody* | darwin1.[012])
8858      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8859    darwin1.*)
8860      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8861    darwin*) # darwin 5.x on
8862      # if running on 10.5 or later, the deployment target defaults
8863      # to the OS version, if on x86, and 10.4, the deployment
8864      # target defaults to 10.4. Don't you love it?
8865      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8866	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8867	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8868	10.[012][,.]*)
8869	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8870	10.*)
8871	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8872      esac
8873    ;;
8874  esac
8875    if test yes = "$lt_cv_apple_cc_single_mod"; then
8876      _lt_dar_single_mod='$single_module'
8877    fi
8878    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8879      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8880    else
8881      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8882    fi
8883    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8884      _lt_dsymutil='~$DSYMUTIL $lib || :'
8885    else
8886      _lt_dsymutil=
8887    fi
8888    ;;
8889  esac
8890
8891# func_munge_path_list VARIABLE PATH
8892# -----------------------------------
8893# VARIABLE is name of variable containing _space_ separated list of
8894# directories to be munged by the contents of PATH, which is string
8895# having a format:
8896# "DIR[:DIR]:"
8897#       string "DIR[ DIR]" will be prepended to VARIABLE
8898# ":DIR[:DIR]"
8899#       string "DIR[ DIR]" will be appended to VARIABLE
8900# "DIRP[:DIRP]::[DIRA:]DIRA"
8901#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8902#       "DIRA[ DIRA]" will be appended to VARIABLE
8903# "DIR[:DIR]"
8904#       VARIABLE will be replaced by "DIR[ DIR]"
8905func_munge_path_list ()
8906{
8907    case x$2 in
8908    x)
8909        ;;
8910    *:)
8911        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8912        ;;
8913    x:*)
8914        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8915        ;;
8916    *::*)
8917        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8918        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8919        ;;
8920    *)
8921        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8922        ;;
8923    esac
8924}
8925
8926for ac_header in dlfcn.h
8927do :
8928  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8929"
8930if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8931  cat >>confdefs.h <<_ACEOF
8932#define HAVE_DLFCN_H 1
8933_ACEOF
8934
8935fi
8936
8937done
8938
8939
8940
8941
8942
8943# Set options
8944
8945
8946
8947        enable_dlopen=no
8948
8949
8950
8951            # Check whether --enable-shared was given.
8952if test "${enable_shared+set}" = set; then :
8953  enableval=$enable_shared; p=${PACKAGE-default}
8954    case $enableval in
8955    yes) enable_shared=yes ;;
8956    no) enable_shared=no ;;
8957    *)
8958      enable_shared=no
8959      # Look at the argument we got.  We use all the common list separators.
8960      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8961      for pkg in $enableval; do
8962	IFS=$lt_save_ifs
8963	if test "X$pkg" = "X$p"; then
8964	  enable_shared=yes
8965	fi
8966      done
8967      IFS=$lt_save_ifs
8968      ;;
8969    esac
8970else
8971  enable_shared=yes
8972fi
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982  # Check whether --enable-static was given.
8983if test "${enable_static+set}" = set; then :
8984  enableval=$enable_static; p=${PACKAGE-default}
8985    case $enableval in
8986    yes) enable_static=yes ;;
8987    no) enable_static=no ;;
8988    *)
8989     enable_static=no
8990      # Look at the argument we got.  We use all the common list separators.
8991      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8992      for pkg in $enableval; do
8993	IFS=$lt_save_ifs
8994	if test "X$pkg" = "X$p"; then
8995	  enable_static=yes
8996	fi
8997      done
8998      IFS=$lt_save_ifs
8999      ;;
9000    esac
9001else
9002  enable_static=yes
9003fi
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014# Check whether --with-pic was given.
9015if test "${with_pic+set}" = set; then :
9016  withval=$with_pic; lt_p=${PACKAGE-default}
9017    case $withval in
9018    yes|no) pic_mode=$withval ;;
9019    *)
9020      pic_mode=default
9021      # Look at the argument we got.  We use all the common list separators.
9022      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9023      for lt_pkg in $withval; do
9024	IFS=$lt_save_ifs
9025	if test "X$lt_pkg" = "X$lt_p"; then
9026	  pic_mode=yes
9027	fi
9028      done
9029      IFS=$lt_save_ifs
9030      ;;
9031    esac
9032else
9033  pic_mode=default
9034fi
9035
9036
9037
9038
9039
9040
9041
9042
9043  # Check whether --enable-fast-install was given.
9044if test "${enable_fast_install+set}" = set; then :
9045  enableval=$enable_fast_install; p=${PACKAGE-default}
9046    case $enableval in
9047    yes) enable_fast_install=yes ;;
9048    no) enable_fast_install=no ;;
9049    *)
9050      enable_fast_install=no
9051      # Look at the argument we got.  We use all the common list separators.
9052      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9053      for pkg in $enableval; do
9054	IFS=$lt_save_ifs
9055	if test "X$pkg" = "X$p"; then
9056	  enable_fast_install=yes
9057	fi
9058      done
9059      IFS=$lt_save_ifs
9060      ;;
9061    esac
9062else
9063  enable_fast_install=yes
9064fi
9065
9066
9067
9068
9069
9070
9071
9072
9073  shared_archive_member_spec=
9074case $host,$enable_shared in
9075power*-*-aix[5-9]*,yes)
9076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9077$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9078
9079# Check whether --with-aix-soname was given.
9080if test "${with_aix_soname+set}" = set; then :
9081  withval=$with_aix_soname; case $withval in
9082    aix|svr4|both)
9083      ;;
9084    *)
9085      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9086      ;;
9087    esac
9088    lt_cv_with_aix_soname=$with_aix_soname
9089else
9090  if ${lt_cv_with_aix_soname+:} false; then :
9091  $as_echo_n "(cached) " >&6
9092else
9093  lt_cv_with_aix_soname=aix
9094fi
9095
9096    with_aix_soname=$lt_cv_with_aix_soname
9097fi
9098
9099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9100$as_echo "$with_aix_soname" >&6; }
9101  if test aix != "$with_aix_soname"; then
9102    # For the AIX way of multilib, we name the shared archive member
9103    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9104    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9105    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9106    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9107    if test 64 = "${OBJECT_MODE-32}"; then
9108      shared_archive_member_spec=shr_64
9109    else
9110      shared_archive_member_spec=shr
9111    fi
9112  fi
9113  ;;
9114*)
9115  with_aix_soname=aix
9116  ;;
9117esac
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128# This can be used to rebuild libtool when needed
9129LIBTOOL_DEPS=$ltmain
9130
9131# Always use our own libtool.
9132LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163test -z "$LN_S" && LN_S="ln -s"
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178if test -n "${ZSH_VERSION+set}"; then
9179   setopt NO_GLOB_SUBST
9180fi
9181
9182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9183$as_echo_n "checking for objdir... " >&6; }
9184if ${lt_cv_objdir+:} false; then :
9185  $as_echo_n "(cached) " >&6
9186else
9187  rm -f .libs 2>/dev/null
9188mkdir .libs 2>/dev/null
9189if test -d .libs; then
9190  lt_cv_objdir=.libs
9191else
9192  # MS-DOS does not allow filenames that begin with a dot.
9193  lt_cv_objdir=_libs
9194fi
9195rmdir .libs 2>/dev/null
9196fi
9197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9198$as_echo "$lt_cv_objdir" >&6; }
9199objdir=$lt_cv_objdir
9200
9201
9202
9203
9204
9205cat >>confdefs.h <<_ACEOF
9206#define LT_OBJDIR "$lt_cv_objdir/"
9207_ACEOF
9208
9209
9210
9211
9212case $host_os in
9213aix3*)
9214  # AIX sometimes has problems with the GCC collect2 program.  For some
9215  # reason, if we set the COLLECT_NAMES environment variable, the problems
9216  # vanish in a puff of smoke.
9217  if test set != "${COLLECT_NAMES+set}"; then
9218    COLLECT_NAMES=
9219    export COLLECT_NAMES
9220  fi
9221  ;;
9222esac
9223
9224# Global variables:
9225ofile=libtool
9226can_build_shared=yes
9227
9228# All known linkers require a '.a' archive for static linking (except MSVC,
9229# which needs '.lib').
9230libext=a
9231
9232with_gnu_ld=$lt_cv_prog_gnu_ld
9233
9234old_CC=$CC
9235old_CFLAGS=$CFLAGS
9236
9237# Set sane defaults for various variables
9238test -z "$CC" && CC=cc
9239test -z "$LTCC" && LTCC=$CC
9240test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9241test -z "$LD" && LD=ld
9242test -z "$ac_objext" && ac_objext=o
9243
9244func_cc_basename $compiler
9245cc_basename=$func_cc_basename_result
9246
9247
9248# Only perform the check for file, if the check method requires it
9249test -z "$MAGIC_CMD" && MAGIC_CMD=file
9250case $deplibs_check_method in
9251file_magic*)
9252  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9253    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9254$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9255if ${lt_cv_path_MAGIC_CMD+:} false; then :
9256  $as_echo_n "(cached) " >&6
9257else
9258  case $MAGIC_CMD in
9259[\\/*] |  ?:[\\/]*)
9260  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9261  ;;
9262*)
9263  lt_save_MAGIC_CMD=$MAGIC_CMD
9264  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9265  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9266  for ac_dir in $ac_dummy; do
9267    IFS=$lt_save_ifs
9268    test -z "$ac_dir" && ac_dir=.
9269    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9270      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9271      if test -n "$file_magic_test_file"; then
9272	case $deplibs_check_method in
9273	"file_magic "*)
9274	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9275	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9276	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9277	    $EGREP "$file_magic_regex" > /dev/null; then
9278	    :
9279	  else
9280	    cat <<_LT_EOF 1>&2
9281
9282*** Warning: the command libtool uses to detect shared libraries,
9283*** $file_magic_cmd, produces output that libtool cannot recognize.
9284*** The result is that libtool may fail to recognize shared libraries
9285*** as such.  This will affect the creation of libtool libraries that
9286*** depend on shared libraries, but programs linked with such libtool
9287*** libraries will work regardless of this problem.  Nevertheless, you
9288*** may want to report the problem to your system manager and/or to
9289*** bug-libtool@gnu.org
9290
9291_LT_EOF
9292	  fi ;;
9293	esac
9294      fi
9295      break
9296    fi
9297  done
9298  IFS=$lt_save_ifs
9299  MAGIC_CMD=$lt_save_MAGIC_CMD
9300  ;;
9301esac
9302fi
9303
9304MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9305if test -n "$MAGIC_CMD"; then
9306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9307$as_echo "$MAGIC_CMD" >&6; }
9308else
9309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310$as_echo "no" >&6; }
9311fi
9312
9313
9314
9315
9316
9317if test -z "$lt_cv_path_MAGIC_CMD"; then
9318  if test -n "$ac_tool_prefix"; then
9319    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9320$as_echo_n "checking for file... " >&6; }
9321if ${lt_cv_path_MAGIC_CMD+:} false; then :
9322  $as_echo_n "(cached) " >&6
9323else
9324  case $MAGIC_CMD in
9325[\\/*] |  ?:[\\/]*)
9326  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9327  ;;
9328*)
9329  lt_save_MAGIC_CMD=$MAGIC_CMD
9330  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9331  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9332  for ac_dir in $ac_dummy; do
9333    IFS=$lt_save_ifs
9334    test -z "$ac_dir" && ac_dir=.
9335    if test -f "$ac_dir/file"; then
9336      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9337      if test -n "$file_magic_test_file"; then
9338	case $deplibs_check_method in
9339	"file_magic "*)
9340	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9341	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9342	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9343	    $EGREP "$file_magic_regex" > /dev/null; then
9344	    :
9345	  else
9346	    cat <<_LT_EOF 1>&2
9347
9348*** Warning: the command libtool uses to detect shared libraries,
9349*** $file_magic_cmd, produces output that libtool cannot recognize.
9350*** The result is that libtool may fail to recognize shared libraries
9351*** as such.  This will affect the creation of libtool libraries that
9352*** depend on shared libraries, but programs linked with such libtool
9353*** libraries will work regardless of this problem.  Nevertheless, you
9354*** may want to report the problem to your system manager and/or to
9355*** bug-libtool@gnu.org
9356
9357_LT_EOF
9358	  fi ;;
9359	esac
9360      fi
9361      break
9362    fi
9363  done
9364  IFS=$lt_save_ifs
9365  MAGIC_CMD=$lt_save_MAGIC_CMD
9366  ;;
9367esac
9368fi
9369
9370MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9371if test -n "$MAGIC_CMD"; then
9372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9373$as_echo "$MAGIC_CMD" >&6; }
9374else
9375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376$as_echo "no" >&6; }
9377fi
9378
9379
9380  else
9381    MAGIC_CMD=:
9382  fi
9383fi
9384
9385  fi
9386  ;;
9387esac
9388
9389# Use C for the default configuration in the libtool script
9390
9391lt_save_CC=$CC
9392ac_ext=c
9393ac_cpp='$CPP $CPPFLAGS'
9394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9396ac_compiler_gnu=$ac_cv_c_compiler_gnu
9397
9398
9399# Source file extension for C test sources.
9400ac_ext=c
9401
9402# Object file extension for compiled C test sources.
9403objext=o
9404objext=$objext
9405
9406# Code to be used in simple compile tests
9407lt_simple_compile_test_code="int some_variable = 0;"
9408
9409# Code to be used in simple link tests
9410lt_simple_link_test_code='int main(){return(0);}'
9411
9412
9413
9414
9415
9416
9417
9418# If no C compiler was specified, use CC.
9419LTCC=${LTCC-"$CC"}
9420
9421# If no C compiler flags were specified, use CFLAGS.
9422LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9423
9424# Allow CC to be a program name with arguments.
9425compiler=$CC
9426
9427# Save the default compiler, since it gets overwritten when the other
9428# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9429compiler_DEFAULT=$CC
9430
9431# save warnings/boilerplate of simple test code
9432ac_outfile=conftest.$ac_objext
9433echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9434eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9435_lt_compiler_boilerplate=`cat conftest.err`
9436$RM conftest*
9437
9438ac_outfile=conftest.$ac_objext
9439echo "$lt_simple_link_test_code" >conftest.$ac_ext
9440eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9441_lt_linker_boilerplate=`cat conftest.err`
9442$RM -r conftest*
9443
9444
9445if test -n "$compiler"; then
9446
9447lt_prog_compiler_no_builtin_flag=
9448
9449if test yes = "$GCC"; then
9450  case $cc_basename in
9451  nvcc*)
9452    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9453  *)
9454    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9455  esac
9456
9457  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9458$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9459if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9460  $as_echo_n "(cached) " >&6
9461else
9462  lt_cv_prog_compiler_rtti_exceptions=no
9463   ac_outfile=conftest.$ac_objext
9464   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9465   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9466   # Insert the option either (1) after the last *FLAGS variable, or
9467   # (2) before a word containing "conftest.", or (3) at the end.
9468   # Note that $ac_compile itself does not contain backslashes and begins
9469   # with a dollar sign (not a hyphen), so the echo should work correctly.
9470   # The option is referenced via a variable to avoid confusing sed.
9471   lt_compile=`echo "$ac_compile" | $SED \
9472   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9473   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9474   -e 's:$: $lt_compiler_flag:'`
9475   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9476   (eval "$lt_compile" 2>conftest.err)
9477   ac_status=$?
9478   cat conftest.err >&5
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   if (exit $ac_status) && test -s "$ac_outfile"; then
9481     # The compiler can only warn and ignore the option if not recognized
9482     # So say no if there are warnings other than the usual output.
9483     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9484     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9485     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9486       lt_cv_prog_compiler_rtti_exceptions=yes
9487     fi
9488   fi
9489   $RM conftest*
9490
9491fi
9492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9493$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9494
9495if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9496    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9497else
9498    :
9499fi
9500
9501fi
9502
9503
9504
9505
9506
9507
9508  lt_prog_compiler_wl=
9509lt_prog_compiler_pic=
9510lt_prog_compiler_static=
9511
9512
9513  if test yes = "$GCC"; then
9514    lt_prog_compiler_wl='-Wl,'
9515    lt_prog_compiler_static='-static'
9516
9517    case $host_os in
9518      aix*)
9519      # All AIX code is PIC.
9520      if test ia64 = "$host_cpu"; then
9521	# AIX 5 now supports IA64 processor
9522	lt_prog_compiler_static='-Bstatic'
9523      fi
9524      lt_prog_compiler_pic='-fPIC'
9525      ;;
9526
9527    amigaos*)
9528      case $host_cpu in
9529      powerpc)
9530            # see comment about AmigaOS4 .so support
9531            lt_prog_compiler_pic='-fPIC'
9532        ;;
9533      m68k)
9534            # FIXME: we need at least 68020 code to build shared libraries, but
9535            # adding the '-m68020' flag to GCC prevents building anything better,
9536            # like '-m68040'.
9537            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9538        ;;
9539      esac
9540      ;;
9541
9542    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9543      # PIC is the default for these OSes.
9544      ;;
9545
9546    mingw* | cygwin* | pw32* | os2* | cegcc*)
9547      # This hack is so that the source file can tell whether it is being
9548      # built for inclusion in a dll (and should export symbols for example).
9549      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9550      # (--disable-auto-import) libraries
9551      lt_prog_compiler_pic='-DDLL_EXPORT'
9552      case $host_os in
9553      os2*)
9554	lt_prog_compiler_static='$wl-static'
9555	;;
9556      esac
9557      ;;
9558
9559    darwin* | rhapsody*)
9560      # PIC is the default on this platform
9561      # Common symbols not allowed in MH_DYLIB files
9562      lt_prog_compiler_pic='-fno-common'
9563      ;;
9564
9565    haiku*)
9566      # PIC is the default for Haiku.
9567      # The "-static" flag exists, but is broken.
9568      lt_prog_compiler_static=
9569      ;;
9570
9571    hpux*)
9572      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9573      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9574      # sets the default TLS model and affects inlining.
9575      case $host_cpu in
9576      hppa*64*)
9577	# +Z the default
9578	;;
9579      *)
9580	lt_prog_compiler_pic='-fPIC'
9581	;;
9582      esac
9583      ;;
9584
9585    interix[3-9]*)
9586      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9587      # Instead, we relocate shared libraries at runtime.
9588      ;;
9589
9590    msdosdjgpp*)
9591      # Just because we use GCC doesn't mean we suddenly get shared libraries
9592      # on systems that don't support them.
9593      lt_prog_compiler_can_build_shared=no
9594      enable_shared=no
9595      ;;
9596
9597    *nto* | *qnx*)
9598      # QNX uses GNU C++, but need to define -shared option too, otherwise
9599      # it will coredump.
9600      lt_prog_compiler_pic='-fPIC -shared'
9601      ;;
9602
9603    sysv4*MP*)
9604      if test -d /usr/nec; then
9605	lt_prog_compiler_pic=-Kconform_pic
9606      fi
9607      ;;
9608
9609    *)
9610      lt_prog_compiler_pic='-fPIC'
9611      ;;
9612    esac
9613
9614    case $cc_basename in
9615    nvcc*) # Cuda Compiler Driver 2.2
9616      lt_prog_compiler_wl='-Xlinker '
9617      if test -n "$lt_prog_compiler_pic"; then
9618        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9619      fi
9620      ;;
9621    esac
9622  else
9623    # PORTME Check for flag to pass linker flags through the system compiler.
9624    case $host_os in
9625    aix*)
9626      lt_prog_compiler_wl='-Wl,'
9627      if test ia64 = "$host_cpu"; then
9628	# AIX 5 now supports IA64 processor
9629	lt_prog_compiler_static='-Bstatic'
9630      else
9631	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9632      fi
9633      ;;
9634
9635    darwin* | rhapsody*)
9636      # PIC is the default on this platform
9637      # Common symbols not allowed in MH_DYLIB files
9638      lt_prog_compiler_pic='-fno-common'
9639      case $cc_basename in
9640      nagfor*)
9641        # NAG Fortran compiler
9642        lt_prog_compiler_wl='-Wl,-Wl,,'
9643        lt_prog_compiler_pic='-PIC'
9644        lt_prog_compiler_static='-Bstatic'
9645        ;;
9646      esac
9647      ;;
9648
9649    mingw* | cygwin* | pw32* | os2* | cegcc*)
9650      # This hack is so that the source file can tell whether it is being
9651      # built for inclusion in a dll (and should export symbols for example).
9652      lt_prog_compiler_pic='-DDLL_EXPORT'
9653      case $host_os in
9654      os2*)
9655	lt_prog_compiler_static='$wl-static'
9656	;;
9657      esac
9658      ;;
9659
9660    hpux9* | hpux10* | hpux11*)
9661      lt_prog_compiler_wl='-Wl,'
9662      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9663      # not for PA HP-UX.
9664      case $host_cpu in
9665      hppa*64*|ia64*)
9666	# +Z the default
9667	;;
9668      *)
9669	lt_prog_compiler_pic='+Z'
9670	;;
9671      esac
9672      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9673      lt_prog_compiler_static='$wl-a ${wl}archive'
9674      ;;
9675
9676    irix5* | irix6* | nonstopux*)
9677      lt_prog_compiler_wl='-Wl,'
9678      # PIC (with -KPIC) is the default.
9679      lt_prog_compiler_static='-non_shared'
9680      ;;
9681
9682    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9683      case $cc_basename in
9684      # old Intel for x86_64, which still supported -KPIC.
9685      ecc*)
9686	lt_prog_compiler_wl='-Wl,'
9687	lt_prog_compiler_pic='-KPIC'
9688	lt_prog_compiler_static='-static'
9689        ;;
9690      # flang / f18. f95 an alias for gfortran or flang on Debian
9691      flang* | f18* | f95*)
9692	lt_prog_compiler_wl='-Wl,'
9693	lt_prog_compiler_pic='-fPIC'
9694	lt_prog_compiler_static='-static'
9695        ;;
9696      # icc used to be incompatible with GCC.
9697      # ICC 10 doesn't accept -KPIC any more.
9698      icc* | ifort*)
9699	lt_prog_compiler_wl='-Wl,'
9700	lt_prog_compiler_pic='-fPIC'
9701	lt_prog_compiler_static='-static'
9702        ;;
9703      # Lahey Fortran 8.1.
9704      lf95*)
9705	lt_prog_compiler_wl='-Wl,'
9706	lt_prog_compiler_pic='--shared'
9707	lt_prog_compiler_static='--static'
9708	;;
9709      nagfor*)
9710	# NAG Fortran compiler
9711	lt_prog_compiler_wl='-Wl,-Wl,,'
9712	lt_prog_compiler_pic='-PIC'
9713	lt_prog_compiler_static='-Bstatic'
9714	;;
9715      tcc*)
9716	# Fabrice Bellard et al's Tiny C Compiler
9717	lt_prog_compiler_wl='-Wl,'
9718	lt_prog_compiler_pic='-fPIC'
9719	lt_prog_compiler_static='-static'
9720	;;
9721      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9722        # Portland Group compilers (*not* the Pentium gcc compiler,
9723	# which looks to be a dead project)
9724	lt_prog_compiler_wl='-Wl,'
9725	lt_prog_compiler_pic='-fpic'
9726	lt_prog_compiler_static='-Bstatic'
9727        ;;
9728      ccc*)
9729        lt_prog_compiler_wl='-Wl,'
9730        # All Alpha code is PIC.
9731        lt_prog_compiler_static='-non_shared'
9732        ;;
9733      xl* | bgxl* | bgf* | mpixl*)
9734	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9735	lt_prog_compiler_wl='-Wl,'
9736	lt_prog_compiler_pic='-qpic'
9737	lt_prog_compiler_static='-qstaticlink'
9738	;;
9739      *)
9740	case `$CC -V 2>&1 | sed 5q` in
9741	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9742	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9743	  lt_prog_compiler_pic='-KPIC'
9744	  lt_prog_compiler_static='-Bstatic'
9745	  lt_prog_compiler_wl=''
9746	  ;;
9747	*Sun\ F* | *Sun*Fortran*)
9748	  lt_prog_compiler_pic='-KPIC'
9749	  lt_prog_compiler_static='-Bstatic'
9750	  lt_prog_compiler_wl='-Qoption ld '
9751	  ;;
9752	*Sun\ C*)
9753	  # Sun C 5.9
9754	  lt_prog_compiler_pic='-KPIC'
9755	  lt_prog_compiler_static='-Bstatic'
9756	  lt_prog_compiler_wl='-Wl,'
9757	  ;;
9758        *Intel*\ [CF]*Compiler*)
9759	  lt_prog_compiler_wl='-Wl,'
9760	  lt_prog_compiler_pic='-fPIC'
9761	  lt_prog_compiler_static='-static'
9762	  ;;
9763	*Portland\ Group*)
9764	  lt_prog_compiler_wl='-Wl,'
9765	  lt_prog_compiler_pic='-fpic'
9766	  lt_prog_compiler_static='-Bstatic'
9767	  ;;
9768	esac
9769	;;
9770      esac
9771      ;;
9772
9773    newsos6)
9774      lt_prog_compiler_pic='-KPIC'
9775      lt_prog_compiler_static='-Bstatic'
9776      ;;
9777
9778    *nto* | *qnx*)
9779      # QNX uses GNU C++, but need to define -shared option too, otherwise
9780      # it will coredump.
9781      lt_prog_compiler_pic='-fPIC -shared'
9782      ;;
9783
9784    osf3* | osf4* | osf5*)
9785      lt_prog_compiler_wl='-Wl,'
9786      # All OSF/1 code is PIC.
9787      lt_prog_compiler_static='-non_shared'
9788      ;;
9789
9790    rdos*)
9791      lt_prog_compiler_static='-non_shared'
9792      ;;
9793
9794    solaris*)
9795      lt_prog_compiler_pic='-KPIC'
9796      lt_prog_compiler_static='-Bstatic'
9797      case $cc_basename in
9798      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9799	lt_prog_compiler_wl='-Qoption ld ';;
9800      *)
9801	lt_prog_compiler_wl='-Wl,';;
9802      esac
9803      ;;
9804
9805    sunos4*)
9806      lt_prog_compiler_wl='-Qoption ld '
9807      lt_prog_compiler_pic='-PIC'
9808      lt_prog_compiler_static='-Bstatic'
9809      ;;
9810
9811    sysv4 | sysv4.2uw2* | sysv4.3*)
9812      lt_prog_compiler_wl='-Wl,'
9813      lt_prog_compiler_pic='-KPIC'
9814      lt_prog_compiler_static='-Bstatic'
9815      ;;
9816
9817    sysv4*MP*)
9818      if test -d /usr/nec; then
9819	lt_prog_compiler_pic='-Kconform_pic'
9820	lt_prog_compiler_static='-Bstatic'
9821      fi
9822      ;;
9823
9824    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9825      lt_prog_compiler_wl='-Wl,'
9826      lt_prog_compiler_pic='-KPIC'
9827      lt_prog_compiler_static='-Bstatic'
9828      ;;
9829
9830    unicos*)
9831      lt_prog_compiler_wl='-Wl,'
9832      lt_prog_compiler_can_build_shared=no
9833      ;;
9834
9835    uts4*)
9836      lt_prog_compiler_pic='-pic'
9837      lt_prog_compiler_static='-Bstatic'
9838      ;;
9839
9840    *)
9841      lt_prog_compiler_can_build_shared=no
9842      ;;
9843    esac
9844  fi
9845
9846case $host_os in
9847  # For platforms that do not support PIC, -DPIC is meaningless:
9848  *djgpp*)
9849    lt_prog_compiler_pic=
9850    ;;
9851  *)
9852    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9853    ;;
9854esac
9855
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9857$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9858if ${lt_cv_prog_compiler_pic+:} false; then :
9859  $as_echo_n "(cached) " >&6
9860else
9861  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9862fi
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9864$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9865lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9866
9867#
9868# Check to make sure the PIC flag actually works.
9869#
9870if test -n "$lt_prog_compiler_pic"; then
9871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9872$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9873if ${lt_cv_prog_compiler_pic_works+:} false; then :
9874  $as_echo_n "(cached) " >&6
9875else
9876  lt_cv_prog_compiler_pic_works=no
9877   ac_outfile=conftest.$ac_objext
9878   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9879   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9880   # Insert the option either (1) after the last *FLAGS variable, or
9881   # (2) before a word containing "conftest.", or (3) at the end.
9882   # Note that $ac_compile itself does not contain backslashes and begins
9883   # with a dollar sign (not a hyphen), so the echo should work correctly.
9884   # The option is referenced via a variable to avoid confusing sed.
9885   lt_compile=`echo "$ac_compile" | $SED \
9886   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9887   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9888   -e 's:$: $lt_compiler_flag:'`
9889   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9890   (eval "$lt_compile" 2>conftest.err)
9891   ac_status=$?
9892   cat conftest.err >&5
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   if (exit $ac_status) && test -s "$ac_outfile"; then
9895     # The compiler can only warn and ignore the option if not recognized
9896     # So say no if there are warnings other than the usual output.
9897     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9898     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9899     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9900       lt_cv_prog_compiler_pic_works=yes
9901     fi
9902   fi
9903   $RM conftest*
9904
9905fi
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9907$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9908
9909if test yes = "$lt_cv_prog_compiler_pic_works"; then
9910    case $lt_prog_compiler_pic in
9911     "" | " "*) ;;
9912     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9913     esac
9914else
9915    lt_prog_compiler_pic=
9916     lt_prog_compiler_can_build_shared=no
9917fi
9918
9919fi
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931#
9932# Check to make sure the static flag actually works.
9933#
9934wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9936$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9937if ${lt_cv_prog_compiler_static_works+:} false; then :
9938  $as_echo_n "(cached) " >&6
9939else
9940  lt_cv_prog_compiler_static_works=no
9941   save_LDFLAGS=$LDFLAGS
9942   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9943   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9944   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9945     # The linker can only warn and ignore the option if not recognized
9946     # So say no if there are warnings
9947     if test -s conftest.err; then
9948       # Append any errors to the config.log.
9949       cat conftest.err 1>&5
9950       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9951       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9952       if diff conftest.exp conftest.er2 >/dev/null; then
9953         lt_cv_prog_compiler_static_works=yes
9954       fi
9955     else
9956       lt_cv_prog_compiler_static_works=yes
9957     fi
9958   fi
9959   $RM -r conftest*
9960   LDFLAGS=$save_LDFLAGS
9961
9962fi
9963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9964$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9965
9966if test yes = "$lt_cv_prog_compiler_static_works"; then
9967    :
9968else
9969    lt_prog_compiler_static=
9970fi
9971
9972
9973
9974
9975
9976
9977
9978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9979$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9980if ${lt_cv_prog_compiler_c_o+:} false; then :
9981  $as_echo_n "(cached) " >&6
9982else
9983  lt_cv_prog_compiler_c_o=no
9984   $RM -r conftest 2>/dev/null
9985   mkdir conftest
9986   cd conftest
9987   mkdir out
9988   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9989
9990   lt_compiler_flag="-o out/conftest2.$ac_objext"
9991   # Insert the option either (1) after the last *FLAGS variable, or
9992   # (2) before a word containing "conftest.", or (3) at the end.
9993   # Note that $ac_compile itself does not contain backslashes and begins
9994   # with a dollar sign (not a hyphen), so the echo should work correctly.
9995   lt_compile=`echo "$ac_compile" | $SED \
9996   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9997   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9998   -e 's:$: $lt_compiler_flag:'`
9999   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10000   (eval "$lt_compile" 2>out/conftest.err)
10001   ac_status=$?
10002   cat out/conftest.err >&5
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10005   then
10006     # The compiler can only warn and ignore the option if not recognized
10007     # So say no if there are warnings
10008     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10009     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10010     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10011       lt_cv_prog_compiler_c_o=yes
10012     fi
10013   fi
10014   chmod u+w . 2>&5
10015   $RM conftest*
10016   # SGI C++ compiler will create directory out/ii_files/ for
10017   # template instantiation
10018   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10019   $RM out/* && rmdir out
10020   cd ..
10021   $RM -r conftest
10022   $RM conftest*
10023
10024fi
10025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10026$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10027
10028
10029
10030
10031
10032
10033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10034$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10035if ${lt_cv_prog_compiler_c_o+:} false; then :
10036  $as_echo_n "(cached) " >&6
10037else
10038  lt_cv_prog_compiler_c_o=no
10039   $RM -r conftest 2>/dev/null
10040   mkdir conftest
10041   cd conftest
10042   mkdir out
10043   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10044
10045   lt_compiler_flag="-o out/conftest2.$ac_objext"
10046   # Insert the option either (1) after the last *FLAGS variable, or
10047   # (2) before a word containing "conftest.", or (3) at the end.
10048   # Note that $ac_compile itself does not contain backslashes and begins
10049   # with a dollar sign (not a hyphen), so the echo should work correctly.
10050   lt_compile=`echo "$ac_compile" | $SED \
10051   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10052   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10053   -e 's:$: $lt_compiler_flag:'`
10054   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10055   (eval "$lt_compile" 2>out/conftest.err)
10056   ac_status=$?
10057   cat out/conftest.err >&5
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10060   then
10061     # The compiler can only warn and ignore the option if not recognized
10062     # So say no if there are warnings
10063     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10064     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10065     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10066       lt_cv_prog_compiler_c_o=yes
10067     fi
10068   fi
10069   chmod u+w . 2>&5
10070   $RM conftest*
10071   # SGI C++ compiler will create directory out/ii_files/ for
10072   # template instantiation
10073   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10074   $RM out/* && rmdir out
10075   cd ..
10076   $RM -r conftest
10077   $RM conftest*
10078
10079fi
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10081$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10082
10083
10084
10085
10086hard_links=nottested
10087if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10088  # do not overwrite the value of need_locks provided by the user
10089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10090$as_echo_n "checking if we can lock with hard links... " >&6; }
10091  hard_links=yes
10092  $RM conftest*
10093  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10094  touch conftest.a
10095  ln conftest.a conftest.b 2>&5 || hard_links=no
10096  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10098$as_echo "$hard_links" >&6; }
10099  if test no = "$hard_links"; then
10100    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10101$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10102    need_locks=warn
10103  fi
10104else
10105  need_locks=no
10106fi
10107
10108
10109
10110
10111
10112
10113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10114$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10115
10116  runpath_var=
10117  allow_undefined_flag=
10118  always_export_symbols=no
10119  archive_cmds=
10120  archive_expsym_cmds=
10121  compiler_needs_object=no
10122  enable_shared_with_static_runtimes=no
10123  export_dynamic_flag_spec=
10124  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10125  hardcode_automatic=no
10126  hardcode_direct=no
10127  hardcode_direct_absolute=no
10128  hardcode_libdir_flag_spec=
10129  hardcode_libdir_separator=
10130  hardcode_minus_L=no
10131  hardcode_shlibpath_var=unsupported
10132  inherit_rpath=no
10133  link_all_deplibs=no
10134  module_cmds=
10135  module_expsym_cmds=
10136  old_archive_from_new_cmds=
10137  old_archive_from_expsyms_cmds=
10138  thread_safe_flag_spec=
10139  whole_archive_flag_spec=
10140  # include_expsyms should be a list of space-separated symbols to be *always*
10141  # included in the symbol list
10142  include_expsyms=
10143  # exclude_expsyms can be an extended regexp of symbols to exclude
10144  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10145  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10146  # as well as any symbol that contains 'd'.
10147  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10148  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10149  # platforms (ab)use it in PIC code, but their linkers get confused if
10150  # the symbol is explicitly referenced.  Since portable code cannot
10151  # rely on this symbol name, it's probably fine to never include it in
10152  # preloaded symbol tables.
10153  # Exclude shared library initialization/finalization symbols.
10154  extract_expsyms_cmds=
10155
10156  case $host_os in
10157  cygwin* | mingw* | pw32* | cegcc*)
10158    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10159    # When not using gcc, we currently assume that we are using
10160    # Microsoft Visual C++.
10161    if test yes != "$GCC"; then
10162      with_gnu_ld=no
10163    fi
10164    ;;
10165  interix*)
10166    # we just hope/assume this is gcc and not c89 (= MSVC++)
10167    with_gnu_ld=yes
10168    ;;
10169  openbsd* | bitrig*)
10170    with_gnu_ld=no
10171    ;;
10172  linux* | k*bsd*-gnu | gnu*)
10173    link_all_deplibs=no
10174    ;;
10175  esac
10176
10177  ld_shlibs=yes
10178
10179  # On some targets, GNU ld is compatible enough with the native linker
10180  # that we're better off using the native interface for both.
10181  lt_use_gnu_ld_interface=no
10182  if test yes = "$with_gnu_ld"; then
10183    case $host_os in
10184      aix*)
10185	# The AIX port of GNU ld has always aspired to compatibility
10186	# with the native linker.  However, as the warning in the GNU ld
10187	# block says, versions before 2.19.5* couldn't really create working
10188	# shared libraries, regardless of the interface used.
10189	case `$LD -v 2>&1` in
10190	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10191	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10192	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10193	  *)
10194	    lt_use_gnu_ld_interface=yes
10195	    ;;
10196	esac
10197	;;
10198      *)
10199	lt_use_gnu_ld_interface=yes
10200	;;
10201    esac
10202  fi
10203
10204  if test yes = "$lt_use_gnu_ld_interface"; then
10205    # If archive_cmds runs LD, not CC, wlarc should be empty
10206    wlarc='$wl'
10207
10208    # Set some defaults for GNU ld with shared library support. These
10209    # are reset later if shared libraries are not supported. Putting them
10210    # here allows them to be overridden if necessary.
10211    runpath_var=LD_RUN_PATH
10212    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10213    export_dynamic_flag_spec='$wl--export-dynamic'
10214    # ancient GNU ld didn't support --whole-archive et. al.
10215    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10216      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10217    else
10218      whole_archive_flag_spec=
10219    fi
10220    supports_anon_versioning=no
10221    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10222      *GNU\ gold*) supports_anon_versioning=yes ;;
10223      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10224      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10225      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10226      *\ 2.11.*) ;; # other 2.11 versions
10227      *) supports_anon_versioning=yes ;;
10228    esac
10229
10230    # See if GNU ld supports shared libraries.
10231    case $host_os in
10232    aix[3-9]*)
10233      # On AIX/PPC, the GNU linker is very broken
10234      if test ia64 != "$host_cpu"; then
10235	ld_shlibs=no
10236	cat <<_LT_EOF 1>&2
10237
10238*** Warning: the GNU linker, at least up to release 2.19, is reported
10239*** to be unable to reliably create shared libraries on AIX.
10240*** Therefore, libtool is disabling shared libraries support.  If you
10241*** really care for shared libraries, you may want to install binutils
10242*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10243*** You will then need to restart the configuration process.
10244
10245_LT_EOF
10246      fi
10247      ;;
10248
10249    amigaos*)
10250      case $host_cpu in
10251      powerpc)
10252            # see comment about AmigaOS4 .so support
10253            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10254            archive_expsym_cmds=''
10255        ;;
10256      m68k)
10257            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10258            hardcode_libdir_flag_spec='-L$libdir'
10259            hardcode_minus_L=yes
10260        ;;
10261      esac
10262      ;;
10263
10264    beos*)
10265      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10266	allow_undefined_flag=unsupported
10267	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10268	# support --undefined.  This deserves some investigation.  FIXME
10269	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10270      else
10271	ld_shlibs=no
10272      fi
10273      ;;
10274
10275    cygwin* | mingw* | pw32* | cegcc*)
10276      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10277      # as there is no search path for DLLs.
10278      hardcode_libdir_flag_spec='-L$libdir'
10279      export_dynamic_flag_spec='$wl--export-all-symbols'
10280      allow_undefined_flag=unsupported
10281      always_export_symbols=no
10282      enable_shared_with_static_runtimes=yes
10283      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10284      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10285
10286      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10287        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10288	# If the export-symbols file already is a .def file, use it as
10289	# is; otherwise, prepend EXPORTS...
10290	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10291          cp $export_symbols $output_objdir/$soname.def;
10292        else
10293          echo EXPORTS > $output_objdir/$soname.def;
10294          cat $export_symbols >> $output_objdir/$soname.def;
10295        fi~
10296        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10297      else
10298	ld_shlibs=no
10299      fi
10300      ;;
10301
10302    haiku*)
10303      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10304      link_all_deplibs=yes
10305      ;;
10306
10307    os2*)
10308      hardcode_libdir_flag_spec='-L$libdir'
10309      hardcode_minus_L=yes
10310      allow_undefined_flag=unsupported
10311      shrext_cmds=.dll
10312      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10313	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10314	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10315	$ECHO EXPORTS >> $output_objdir/$libname.def~
10316	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10317	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10318	emximp -o $lib $output_objdir/$libname.def'
10319      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10320	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10321	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10322	$ECHO EXPORTS >> $output_objdir/$libname.def~
10323	prefix_cmds="$SED"~
10324	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10325	  prefix_cmds="$prefix_cmds -e 1d";
10326	fi~
10327	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10328	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10329	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10330	emximp -o $lib $output_objdir/$libname.def'
10331      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10332      enable_shared_with_static_runtimes=yes
10333      ;;
10334
10335    interix[3-9]*)
10336      hardcode_direct=no
10337      hardcode_shlibpath_var=no
10338      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10339      export_dynamic_flag_spec='$wl-E'
10340      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10341      # Instead, shared libraries are loaded at an image base (0x10000000 by
10342      # default) and relocated if they conflict, which is a slow very memory
10343      # consuming and fragmenting process.  To avoid this, we pick a random,
10344      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10345      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10346      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10347      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10348      ;;
10349
10350    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10351      tmp_diet=no
10352      if test linux-dietlibc = "$host_os"; then
10353	case $cc_basename in
10354	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10355	esac
10356      fi
10357      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10358	 && test no = "$tmp_diet"
10359      then
10360	tmp_addflag=' $pic_flag'
10361	tmp_sharedflag='-shared'
10362	case $cc_basename,$host_cpu in
10363        pgcc*)				# Portland Group C compiler
10364	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10365	  tmp_addflag=' $pic_flag'
10366	  ;;
10367	pgf77* | pgf90* | pgf95* | pgfortran*)
10368					# Portland Group f77 and f90 compilers
10369	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10370	  tmp_addflag=' $pic_flag -Mnomain' ;;
10371	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10372	  tmp_addflag=' -i_dynamic' ;;
10373	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10374	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10375	ifc* | ifort*)			# Intel Fortran compiler
10376	  tmp_addflag=' -nofor_main' ;;
10377	lf95*)				# Lahey Fortran 8.1
10378	  whole_archive_flag_spec=
10379	  tmp_sharedflag='--shared' ;;
10380        nagfor*)                        # NAGFOR 5.3
10381          tmp_sharedflag='-Wl,-shared' ;;
10382	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10383	  tmp_sharedflag='-qmkshrobj'
10384	  tmp_addflag= ;;
10385	nvcc*)	# Cuda Compiler Driver 2.2
10386	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10387	  compiler_needs_object=yes
10388	  ;;
10389	esac
10390	case `$CC -V 2>&1 | sed 5q` in
10391	*Sun\ C*)			# Sun C 5.9
10392	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10393	  compiler_needs_object=yes
10394	  tmp_sharedflag='-G' ;;
10395	*Sun\ F*)			# Sun Fortran 8.3
10396	  tmp_sharedflag='-G' ;;
10397	esac
10398	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10399
10400        if test yes = "$supports_anon_versioning"; then
10401          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10402            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10403            echo "local: *; };" >> $output_objdir/$libname.ver~
10404            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10405        fi
10406
10407	case $cc_basename in
10408	tcc*)
10409	  export_dynamic_flag_spec='-rdynamic'
10410	  ;;
10411	xlf* | bgf* | bgxlf* | mpixlf*)
10412	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10413	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10414	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10415	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10416	  if test yes = "$supports_anon_versioning"; then
10417	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10418              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10419              echo "local: *; };" >> $output_objdir/$libname.ver~
10420              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10421	  fi
10422	  ;;
10423	esac
10424      else
10425        ld_shlibs=no
10426      fi
10427      ;;
10428
10429    netbsd* | netbsdelf*-gnu)
10430      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10431	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10432	wlarc=
10433      else
10434	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10435	archive_expsym_cmds='echo "{ global:" > $lib-ver~		 sed -e "s|$|;|" < $export_symbols >> $lib-ver~	 echo "local: *; };" >> $lib-ver~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$lib-ver -o $lib'
10436      fi
10437      ;;
10438
10439    solaris*)
10440      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10441	ld_shlibs=no
10442	cat <<_LT_EOF 1>&2
10443
10444*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10445*** create shared libraries on Solaris systems.  Therefore, libtool
10446*** is disabling shared libraries support.  We urge you to upgrade GNU
10447*** binutils to release 2.9.1 or newer.  Another option is to modify
10448*** your PATH or compiler configuration so that the native linker is
10449*** used, and then restart.
10450
10451_LT_EOF
10452      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10453	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10454	archive_expsym_cmds='echo "{ global:" > $lib-ver~		 sed -e "s|$|;|" < $export_symbols >> $lib-ver~	 echo "local: *; };" >> $lib-ver~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$lib-ver -o $lib'
10455      else
10456	ld_shlibs=no
10457      fi
10458      ;;
10459
10460    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10461      case `$LD -v 2>&1` in
10462        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10463	ld_shlibs=no
10464	cat <<_LT_EOF 1>&2
10465
10466*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10467*** reliably create shared libraries on SCO systems.  Therefore, libtool
10468*** is disabling shared libraries support.  We urge you to upgrade GNU
10469*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10470*** your PATH or compiler configuration so that the native linker is
10471*** used, and then restart.
10472
10473_LT_EOF
10474	;;
10475	*)
10476	  # For security reasons, it is highly recommended that you always
10477	  # use absolute paths for naming shared libraries, and exclude the
10478	  # DT_RUNPATH tag from executables and libraries.  But doing so
10479	  # requires that you compile everything twice, which is a pain.
10480	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10481	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10482	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10483	    archive_expsym_cmds='echo "{ global:" > $lib-ver~		 sed -e "s|$|;|" < $export_symbols >> $lib-ver~	 echo "local: *; };" >> $lib-ver~$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$lib-ver -o $lib'
10484	  else
10485	    ld_shlibs=no
10486	  fi
10487	;;
10488      esac
10489      ;;
10490
10491    sunos4*)
10492      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10493      wlarc=
10494      hardcode_direct=yes
10495      hardcode_shlibpath_var=no
10496      ;;
10497
10498    *)
10499      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10500	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10501	archive_expsym_cmds='echo "{ global:" > $lib-ver~		 sed -e "s|$|;|" < $export_symbols >> $lib-ver~	 echo "local: *; };" >> $lib-ver~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$lib-ver -o $lib'
10502      else
10503	ld_shlibs=no
10504      fi
10505      ;;
10506    esac
10507
10508    if test no = "$ld_shlibs"; then
10509      runpath_var=
10510      hardcode_libdir_flag_spec=
10511      export_dynamic_flag_spec=
10512      whole_archive_flag_spec=
10513    fi
10514  else
10515    # PORTME fill in a description of your system's linker (not GNU ld)
10516    case $host_os in
10517    aix3*)
10518      allow_undefined_flag=unsupported
10519      always_export_symbols=yes
10520      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10521      # Note: this linker hardcodes the directories in LIBPATH if there
10522      # are no directories specified by -L.
10523      hardcode_minus_L=yes
10524      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10525	# Neither direct hardcoding nor static linking is supported with a
10526	# broken collect2.
10527	hardcode_direct=unsupported
10528      fi
10529      ;;
10530
10531    aix[4-9]*)
10532      if test ia64 = "$host_cpu"; then
10533	# On IA64, the linker does run time linking by default, so we don't
10534	# have to do anything special.
10535	aix_use_runtimelinking=no
10536	exp_sym_flag='-Bexport'
10537	no_entry_flag=
10538      else
10539	# If we're using GNU nm, then we don't want the "-C" option.
10540	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10541	# Without the "-l" option, or with the "-B" option, AIX nm treats
10542	# weak defined symbols like other global defined symbols, whereas
10543	# GNU nm marks them as "W".
10544	# While the 'weak' keyword is ignored in the Export File, we need
10545	# it in the Import File for the 'aix-soname' feature, so we have
10546	# to replace the "-B" option with "-P" for AIX nm.
10547	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10548	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10549	else
10550	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10551	fi
10552	aix_use_runtimelinking=no
10553
10554	# Test if we are trying to use run time linking or normal
10555	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10556	# have runtime linking enabled, and use it for executables.
10557	# For shared libraries, we enable/disable runtime linking
10558	# depending on the kind of the shared library created -
10559	# when "with_aix_soname,aix_use_runtimelinking" is:
10560	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10561	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10562	#            lib.a           static archive
10563	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10564	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10565	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10566	#            lib.a(lib.so.V) shared, rtl:no
10567	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10568	#            lib.a           static archive
10569	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10570	  for ld_flag in $LDFLAGS; do
10571	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10572	    aix_use_runtimelinking=yes
10573	    break
10574	  fi
10575	  done
10576	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10577	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10578	    # so we don't have lib.a shared libs to link our executables.
10579	    # We have to force runtime linking in this case.
10580	    aix_use_runtimelinking=yes
10581	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10582	  fi
10583	  ;;
10584	esac
10585
10586	exp_sym_flag='-bexport'
10587	no_entry_flag='-bnoentry'
10588      fi
10589
10590      # When large executables or shared objects are built, AIX ld can
10591      # have problems creating the table of contents.  If linking a library
10592      # or program results in "error TOC overflow" add -mminimal-toc to
10593      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10594      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10595
10596      archive_cmds=''
10597      hardcode_direct=yes
10598      hardcode_direct_absolute=yes
10599      hardcode_libdir_separator=':'
10600      link_all_deplibs=yes
10601      file_list_spec='$wl-f,'
10602      case $with_aix_soname,$aix_use_runtimelinking in
10603      aix,*) ;; # traditional, no import file
10604      svr4,* | *,yes) # use import file
10605	# The Import File defines what to hardcode.
10606	hardcode_direct=no
10607	hardcode_direct_absolute=no
10608	;;
10609      esac
10610
10611      if test yes = "$GCC"; then
10612	case $host_os in aix4.[012]|aix4.[012].*)
10613	# We only want to do this on AIX 4.2 and lower, the check
10614	# below for broken collect2 doesn't work under 4.3+
10615	  collect2name=`$CC -print-prog-name=collect2`
10616	  if test -f "$collect2name" &&
10617	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10618	  then
10619	  # We have reworked collect2
10620	  :
10621	  else
10622	  # We have old collect2
10623	  hardcode_direct=unsupported
10624	  # It fails to find uninstalled libraries when the uninstalled
10625	  # path is not listed in the libpath.  Setting hardcode_minus_L
10626	  # to unsupported forces relinking
10627	  hardcode_minus_L=yes
10628	  hardcode_libdir_flag_spec='-L$libdir'
10629	  hardcode_libdir_separator=
10630	  fi
10631	  ;;
10632	esac
10633	shared_flag='-shared'
10634	if test yes = "$aix_use_runtimelinking"; then
10635	  shared_flag="$shared_flag "'$wl-G'
10636	fi
10637	# Need to ensure runtime linking is disabled for the traditional
10638	# shared library, or the linker may eventually find shared libraries
10639	# /with/ Import File - we do not want to mix them.
10640	shared_flag_aix='-shared'
10641	shared_flag_svr4='-shared $wl-G'
10642      else
10643	# not using gcc
10644	if test ia64 = "$host_cpu"; then
10645	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10646	# chokes on -Wl,-G. The following line is correct:
10647	  shared_flag='-G'
10648	else
10649	  if test yes = "$aix_use_runtimelinking"; then
10650	    shared_flag='$wl-G'
10651	  else
10652	    shared_flag='$wl-bM:SRE'
10653	  fi
10654	  shared_flag_aix='$wl-bM:SRE'
10655	  shared_flag_svr4='$wl-G'
10656	fi
10657      fi
10658
10659      export_dynamic_flag_spec='$wl-bexpall'
10660      # It seems that -bexpall does not export symbols beginning with
10661      # underscore (_), so it is better to generate a list of symbols to export.
10662      always_export_symbols=yes
10663      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10664	# Warning - without using the other runtime loading flags (-brtl),
10665	# -berok will link without error, but may produce a broken library.
10666	allow_undefined_flag='-berok'
10667        # Determine the default libpath from the value encoded in an
10668        # empty executable.
10669        if test set = "${lt_cv_aix_libpath+set}"; then
10670  aix_libpath=$lt_cv_aix_libpath
10671else
10672  if ${lt_cv_aix_libpath_+:} false; then :
10673  $as_echo_n "(cached) " >&6
10674else
10675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h.  */
10677
10678int
10679main ()
10680{
10681
10682  ;
10683  return 0;
10684}
10685_ACEOF
10686if ac_fn_c_try_link "$LINENO"; then :
10687
10688  lt_aix_libpath_sed='
10689      /Import File Strings/,/^$/ {
10690	  /^0/ {
10691	      s/^0  *\([^ ]*\) *$/\1/
10692	      p
10693	  }
10694      }'
10695  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10696  # Check for a 64-bit object if we didn't find anything.
10697  if test -z "$lt_cv_aix_libpath_"; then
10698    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10699  fi
10700fi
10701rm -f core conftest.err conftest.$ac_objext \
10702    conftest$ac_exeext conftest.$ac_ext
10703  if test -z "$lt_cv_aix_libpath_"; then
10704    lt_cv_aix_libpath_=/usr/lib:/lib
10705  fi
10706
10707fi
10708
10709  aix_libpath=$lt_cv_aix_libpath_
10710fi
10711
10712        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10713        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10714      else
10715	if test ia64 = "$host_cpu"; then
10716	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10717	  allow_undefined_flag="-z nodefs"
10718	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10719	else
10720	 # Determine the default libpath from the value encoded in an
10721	 # empty executable.
10722	 if test set = "${lt_cv_aix_libpath+set}"; then
10723  aix_libpath=$lt_cv_aix_libpath
10724else
10725  if ${lt_cv_aix_libpath_+:} false; then :
10726  $as_echo_n "(cached) " >&6
10727else
10728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729/* end confdefs.h.  */
10730
10731int
10732main ()
10733{
10734
10735  ;
10736  return 0;
10737}
10738_ACEOF
10739if ac_fn_c_try_link "$LINENO"; then :
10740
10741  lt_aix_libpath_sed='
10742      /Import File Strings/,/^$/ {
10743	  /^0/ {
10744	      s/^0  *\([^ ]*\) *$/\1/
10745	      p
10746	  }
10747      }'
10748  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10749  # Check for a 64-bit object if we didn't find anything.
10750  if test -z "$lt_cv_aix_libpath_"; then
10751    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10752  fi
10753fi
10754rm -f core conftest.err conftest.$ac_objext \
10755    conftest$ac_exeext conftest.$ac_ext
10756  if test -z "$lt_cv_aix_libpath_"; then
10757    lt_cv_aix_libpath_=/usr/lib:/lib
10758  fi
10759
10760fi
10761
10762  aix_libpath=$lt_cv_aix_libpath_
10763fi
10764
10765	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10766	  # Warning - without using the other run time loading flags,
10767	  # -berok will link without error, but may produce a broken library.
10768	  no_undefined_flag=' $wl-bernotok'
10769	  allow_undefined_flag=' $wl-berok'
10770	  if test yes = "$with_gnu_ld"; then
10771	    # We only use this code for GNU lds that support --whole-archive.
10772	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10773	  else
10774	    # Exported symbols can be pulled into shared objects from archives
10775	    whole_archive_flag_spec='$convenience'
10776	  fi
10777	  archive_cmds_need_lc=yes
10778	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10779	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10780	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10781	  if test svr4 != "$with_aix_soname"; then
10782	    # This is similar to how AIX traditionally builds its shared libraries.
10783	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10784	  fi
10785	  if test aix != "$with_aix_soname"; then
10786	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10787	  else
10788	    # used by -dlpreopen to get the symbols
10789	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10790	  fi
10791	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10792	fi
10793      fi
10794      ;;
10795
10796    amigaos*)
10797      case $host_cpu in
10798      powerpc)
10799            # see comment about AmigaOS4 .so support
10800            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10801            archive_expsym_cmds=''
10802        ;;
10803      m68k)
10804            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10805            hardcode_libdir_flag_spec='-L$libdir'
10806            hardcode_minus_L=yes
10807        ;;
10808      esac
10809      ;;
10810
10811    bsdi[45]*)
10812      export_dynamic_flag_spec=-rdynamic
10813      ;;
10814
10815    cygwin* | mingw* | pw32* | cegcc*)
10816      # When not using gcc, we currently assume that we are using
10817      # Microsoft Visual C++.
10818      # hardcode_libdir_flag_spec is actually meaningless, as there is
10819      # no search path for DLLs.
10820      case $cc_basename in
10821      cl*)
10822	# Native MSVC
10823	hardcode_libdir_flag_spec=' '
10824	allow_undefined_flag=unsupported
10825	always_export_symbols=yes
10826	file_list_spec='@'
10827	# Tell ltmain to make .lib files, not .a files.
10828	libext=lib
10829	# Tell ltmain to make .dll files, not .so files.
10830	shrext_cmds=.dll
10831	# FIXME: Setting linknames here is a bad hack.
10832	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10833	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10834            cp "$export_symbols" "$output_objdir/$soname.def";
10835            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10836          else
10837            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10838          fi~
10839          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10840          linknames='
10841	# The linker will not automatically build a static lib if we build a DLL.
10842	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10843	enable_shared_with_static_runtimes=yes
10844	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10845	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10846	# Don't use ranlib
10847	old_postinstall_cmds='chmod 644 $oldlib'
10848	postlink_cmds='lt_outputfile="@OUTPUT@"~
10849          lt_tool_outputfile="@TOOL_OUTPUT@"~
10850          case $lt_outputfile in
10851            *.exe|*.EXE) ;;
10852            *)
10853              lt_outputfile=$lt_outputfile.exe
10854              lt_tool_outputfile=$lt_tool_outputfile.exe
10855              ;;
10856          esac~
10857          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10858            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10859            $RM "$lt_outputfile.manifest";
10860          fi'
10861	;;
10862      *)
10863	# Assume MSVC wrapper
10864	hardcode_libdir_flag_spec=' '
10865	allow_undefined_flag=unsupported
10866	# Tell ltmain to make .lib files, not .a files.
10867	libext=lib
10868	# Tell ltmain to make .dll files, not .so files.
10869	shrext_cmds=.dll
10870	# FIXME: Setting linknames here is a bad hack.
10871	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10872	# The linker will automatically build a .lib file if we build a DLL.
10873	old_archive_from_new_cmds='true'
10874	# FIXME: Should let the user specify the lib program.
10875	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10876	enable_shared_with_static_runtimes=yes
10877	;;
10878      esac
10879      ;;
10880
10881    darwin* | rhapsody*)
10882
10883
10884  archive_cmds_need_lc=no
10885  hardcode_direct=no
10886  hardcode_automatic=yes
10887  hardcode_shlibpath_var=unsupported
10888  if test yes = "$lt_cv_ld_force_load"; then
10889    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10890
10891  else
10892    whole_archive_flag_spec=''
10893  fi
10894  link_all_deplibs=yes
10895  allow_undefined_flag=$_lt_dar_allow_undefined
10896  case $cc_basename in
10897     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10898     *) _lt_dar_can_shared=$GCC ;;
10899  esac
10900  if test yes = "$_lt_dar_can_shared"; then
10901    output_verbose_link_cmd=func_echo_all
10902    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10903    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10904    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10905    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10906
10907  else
10908  ld_shlibs=no
10909  fi
10910
10911      ;;
10912
10913    dgux*)
10914      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915      hardcode_libdir_flag_spec='-L$libdir'
10916      hardcode_shlibpath_var=no
10917      ;;
10918
10919    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10920    # support.  Future versions do this automatically, but an explicit c++rt0.o
10921    # does not break anything, and helps significantly (at the cost of a little
10922    # extra space).
10923    freebsd2.2*)
10924      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10925      hardcode_libdir_flag_spec='-R$libdir'
10926      hardcode_direct=yes
10927      hardcode_shlibpath_var=no
10928      ;;
10929
10930    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10931    freebsd2.*)
10932      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10933      hardcode_direct=yes
10934      hardcode_minus_L=yes
10935      hardcode_shlibpath_var=no
10936      ;;
10937
10938    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10939    freebsd* | dragonfly*)
10940      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10941      hardcode_libdir_flag_spec='-R$libdir'
10942      hardcode_direct=yes
10943      hardcode_shlibpath_var=no
10944      ;;
10945
10946    hpux9*)
10947      if test yes = "$GCC"; then
10948	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10949      else
10950	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10951      fi
10952      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10953      hardcode_libdir_separator=:
10954      hardcode_direct=yes
10955
10956      # hardcode_minus_L: Not really in the search PATH,
10957      # but as the default location of the library.
10958      hardcode_minus_L=yes
10959      export_dynamic_flag_spec='$wl-E'
10960      ;;
10961
10962    hpux10*)
10963      if test yes,no = "$GCC,$with_gnu_ld"; then
10964	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10965      else
10966	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10967      fi
10968      if test no = "$with_gnu_ld"; then
10969	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10970	hardcode_libdir_separator=:
10971	hardcode_direct=yes
10972	hardcode_direct_absolute=yes
10973	export_dynamic_flag_spec='$wl-E'
10974	# hardcode_minus_L: Not really in the search PATH,
10975	# but as the default location of the library.
10976	hardcode_minus_L=yes
10977      fi
10978      ;;
10979
10980    hpux11*)
10981      if test yes,no = "$GCC,$with_gnu_ld"; then
10982	case $host_cpu in
10983	hppa*64*)
10984	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10985	  ;;
10986	ia64*)
10987	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10988	  ;;
10989	*)
10990	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10991	  ;;
10992	esac
10993      else
10994	case $host_cpu in
10995	hppa*64*)
10996	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10997	  ;;
10998	ia64*)
10999	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11000	  ;;
11001	*)
11002
11003	  # Older versions of the 11.00 compiler do not understand -b yet
11004	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11005	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11006$as_echo_n "checking if $CC understands -b... " >&6; }
11007if ${lt_cv_prog_compiler__b+:} false; then :
11008  $as_echo_n "(cached) " >&6
11009else
11010  lt_cv_prog_compiler__b=no
11011   save_LDFLAGS=$LDFLAGS
11012   LDFLAGS="$LDFLAGS -b"
11013   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11014   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11015     # The linker can only warn and ignore the option if not recognized
11016     # So say no if there are warnings
11017     if test -s conftest.err; then
11018       # Append any errors to the config.log.
11019       cat conftest.err 1>&5
11020       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11021       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11022       if diff conftest.exp conftest.er2 >/dev/null; then
11023         lt_cv_prog_compiler__b=yes
11024       fi
11025     else
11026       lt_cv_prog_compiler__b=yes
11027     fi
11028   fi
11029   $RM -r conftest*
11030   LDFLAGS=$save_LDFLAGS
11031
11032fi
11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11034$as_echo "$lt_cv_prog_compiler__b" >&6; }
11035
11036if test yes = "$lt_cv_prog_compiler__b"; then
11037    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11038else
11039    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11040fi
11041
11042	  ;;
11043	esac
11044      fi
11045      if test no = "$with_gnu_ld"; then
11046	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11047	hardcode_libdir_separator=:
11048
11049	case $host_cpu in
11050	hppa*64*|ia64*)
11051	  hardcode_direct=no
11052	  hardcode_shlibpath_var=no
11053	  ;;
11054	*)
11055	  hardcode_direct=yes
11056	  hardcode_direct_absolute=yes
11057	  export_dynamic_flag_spec='$wl-E'
11058
11059	  # hardcode_minus_L: Not really in the search PATH,
11060	  # but as the default location of the library.
11061	  hardcode_minus_L=yes
11062	  ;;
11063	esac
11064      fi
11065      ;;
11066
11067    irix5* | irix6* | nonstopux*)
11068      if test yes = "$GCC"; then
11069	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11070	# Try to use the -exported_symbol ld option, if it does not
11071	# work, assume that -exports_file does not work either and
11072	# implicitly export all symbols.
11073	# This should be the same for all languages, so no per-tag cache variable.
11074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11075$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11076if ${lt_cv_irix_exported_symbol+:} false; then :
11077  $as_echo_n "(cached) " >&6
11078else
11079  save_LDFLAGS=$LDFLAGS
11080	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11081	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082/* end confdefs.h.  */
11083int foo (void) { return 0; }
11084_ACEOF
11085if ac_fn_c_try_link "$LINENO"; then :
11086  lt_cv_irix_exported_symbol=yes
11087else
11088  lt_cv_irix_exported_symbol=no
11089fi
11090rm -f core conftest.err conftest.$ac_objext \
11091    conftest$ac_exeext conftest.$ac_ext
11092           LDFLAGS=$save_LDFLAGS
11093fi
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11095$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11096	if test yes = "$lt_cv_irix_exported_symbol"; then
11097          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11098	fi
11099	link_all_deplibs=no
11100      else
11101	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11102	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11103      fi
11104      archive_cmds_need_lc='no'
11105      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11106      hardcode_libdir_separator=:
11107      inherit_rpath=yes
11108      link_all_deplibs=yes
11109      ;;
11110
11111    linux*)
11112      case $cc_basename in
11113      tcc*)
11114	# Fabrice Bellard et al's Tiny C Compiler
11115	ld_shlibs=yes
11116	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11117	;;
11118      esac
11119      ;;
11120
11121    netbsd* | netbsdelf*-gnu)
11122      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11123	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11124      else
11125	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11126      fi
11127      hardcode_libdir_flag_spec='-R$libdir'
11128      hardcode_direct=yes
11129      hardcode_shlibpath_var=no
11130      ;;
11131
11132    newsos6)
11133      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11134      hardcode_direct=yes
11135      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11136      hardcode_libdir_separator=:
11137      hardcode_shlibpath_var=no
11138      ;;
11139
11140    *nto* | *qnx*)
11141      ;;
11142
11143    openbsd* | bitrig*)
11144      if test -f /usr/libexec/ld.so; then
11145	hardcode_direct=yes
11146	hardcode_shlibpath_var=no
11147	hardcode_direct_absolute=yes
11148	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11149	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11150	  archive_expsym_cmds='echo "{ global:" > $lib-ver~		 sed -e "s|$|;|" < $export_symbols >> $lib-ver~	 echo "local: *; };" >> $lib-ver~$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-version-script,$lib-ver'
11151	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11152	  export_dynamic_flag_spec='$wl-E'
11153	else
11154	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11155	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11156	fi
11157      else
11158	ld_shlibs=no
11159      fi
11160      ;;
11161
11162    os2*)
11163      hardcode_libdir_flag_spec='-L$libdir'
11164      hardcode_minus_L=yes
11165      allow_undefined_flag=unsupported
11166      shrext_cmds=.dll
11167      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11168	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11169	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11170	$ECHO EXPORTS >> $output_objdir/$libname.def~
11171	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11172	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11173	emximp -o $lib $output_objdir/$libname.def'
11174      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11175	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11176	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11177	$ECHO EXPORTS >> $output_objdir/$libname.def~
11178	prefix_cmds="$SED"~
11179	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11180	  prefix_cmds="$prefix_cmds -e 1d";
11181	fi~
11182	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11183	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11184	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11185	emximp -o $lib $output_objdir/$libname.def'
11186      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11187      enable_shared_with_static_runtimes=yes
11188      ;;
11189
11190    osf3*)
11191      if test yes = "$GCC"; then
11192	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11193	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11194      else
11195	allow_undefined_flag=' -expect_unresolved \*'
11196	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11197      fi
11198      archive_cmds_need_lc='no'
11199      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11200      hardcode_libdir_separator=:
11201      ;;
11202
11203    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11204      if test yes = "$GCC"; then
11205	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11206	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11207	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11208      else
11209	allow_undefined_flag=' -expect_unresolved \*'
11210	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11211	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11212          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11213
11214	# Both c and cxx compiler support -rpath directly
11215	hardcode_libdir_flag_spec='-rpath $libdir'
11216      fi
11217      archive_cmds_need_lc='no'
11218      hardcode_libdir_separator=:
11219      ;;
11220
11221    solaris*)
11222      no_undefined_flag=' -z defs'
11223      if test yes = "$GCC"; then
11224	wlarc='$wl'
11225	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11226	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11227          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11228      else
11229	case `$CC -V 2>&1` in
11230	*"Compilers 5.0"*)
11231	  wlarc=''
11232	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11233	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11234            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11235	  ;;
11236	*)
11237	  wlarc='$wl'
11238	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11239	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11240            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11241	  ;;
11242	esac
11243      fi
11244      hardcode_libdir_flag_spec='-R$libdir'
11245      hardcode_shlibpath_var=no
11246      case $host_os in
11247      solaris2.[0-5] | solaris2.[0-5].*) ;;
11248      *)
11249	# The compiler driver will combine and reorder linker options,
11250	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11251	# but is careful enough not to reorder.
11252	# Supported since Solaris 2.6 (maybe 2.5.1?)
11253	if test yes = "$GCC"; then
11254	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11255	else
11256	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11257	fi
11258	;;
11259      esac
11260      link_all_deplibs=yes
11261      ;;
11262
11263    sunos4*)
11264      if test sequent = "$host_vendor"; then
11265	# Use $CC to link under sequent, because it throws in some extra .o
11266	# files that make .init and .fini sections work.
11267	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11268      else
11269	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11270      fi
11271      hardcode_libdir_flag_spec='-L$libdir'
11272      hardcode_direct=yes
11273      hardcode_minus_L=yes
11274      hardcode_shlibpath_var=no
11275      ;;
11276
11277    sysv4)
11278      case $host_vendor in
11279	sni)
11280	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11281	  hardcode_direct=yes # is this really true???
11282	;;
11283	siemens)
11284	  ## LD is ld it makes a PLAMLIB
11285	  ## CC just makes a GrossModule.
11286	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11287	  reload_cmds='$CC -r -o $output$reload_objs'
11288	  hardcode_direct=no
11289        ;;
11290	motorola)
11291	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11292	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11293	;;
11294      esac
11295      runpath_var='LD_RUN_PATH'
11296      hardcode_shlibpath_var=no
11297      ;;
11298
11299    sysv4.3*)
11300      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11301      hardcode_shlibpath_var=no
11302      export_dynamic_flag_spec='-Bexport'
11303      ;;
11304
11305    sysv4*MP*)
11306      if test -d /usr/nec; then
11307	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11308	hardcode_shlibpath_var=no
11309	runpath_var=LD_RUN_PATH
11310	hardcode_runpath_var=yes
11311	ld_shlibs=yes
11312      fi
11313      ;;
11314
11315    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11316      no_undefined_flag='$wl-z,text'
11317      archive_cmds_need_lc=no
11318      hardcode_shlibpath_var=no
11319      runpath_var='LD_RUN_PATH'
11320
11321      if test yes = "$GCC"; then
11322	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11323	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11324      else
11325	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11326	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11327      fi
11328      ;;
11329
11330    sysv5* | sco3.2v5* | sco5v6*)
11331      # Note: We CANNOT use -z defs as we might desire, because we do not
11332      # link with -lc, and that would cause any symbols used from libc to
11333      # always be unresolved, which means just about no library would
11334      # ever link correctly.  If we're not using GNU ld we use -z text
11335      # though, which does catch some bad symbols but isn't as heavy-handed
11336      # as -z defs.
11337      no_undefined_flag='$wl-z,text'
11338      allow_undefined_flag='$wl-z,nodefs'
11339      archive_cmds_need_lc=no
11340      hardcode_shlibpath_var=no
11341      hardcode_libdir_flag_spec='$wl-R,$libdir'
11342      hardcode_libdir_separator=':'
11343      link_all_deplibs=yes
11344      export_dynamic_flag_spec='$wl-Bexport'
11345      runpath_var='LD_RUN_PATH'
11346
11347      if test yes = "$GCC"; then
11348	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11349	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11350      else
11351	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11352	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11353      fi
11354      ;;
11355
11356    uts4*)
11357      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11358      hardcode_libdir_flag_spec='-L$libdir'
11359      hardcode_shlibpath_var=no
11360      ;;
11361
11362    *)
11363      ld_shlibs=no
11364      ;;
11365    esac
11366
11367    if test sni = "$host_vendor"; then
11368      case $host in
11369      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11370	export_dynamic_flag_spec='$wl-Blargedynsym'
11371	;;
11372      esac
11373    fi
11374  fi
11375
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11377$as_echo "$ld_shlibs" >&6; }
11378test no = "$ld_shlibs" && can_build_shared=no
11379
11380with_gnu_ld=$with_gnu_ld
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396#
11397# Do we need to explicitly link libc?
11398#
11399case "x$archive_cmds_need_lc" in
11400x|xyes)
11401  # Assume -lc should be added
11402  archive_cmds_need_lc=yes
11403
11404  if test yes,yes = "$GCC,$enable_shared"; then
11405    case $archive_cmds in
11406    *'~'*)
11407      # FIXME: we may have to deal with multi-command sequences.
11408      ;;
11409    '$CC '*)
11410      # Test whether the compiler implicitly links with -lc since on some
11411      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11412      # to ld, don't add -lc before -lgcc.
11413      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11414$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11415if ${lt_cv_archive_cmds_need_lc+:} false; then :
11416  $as_echo_n "(cached) " >&6
11417else
11418  $RM conftest*
11419	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11420
11421	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11422  (eval $ac_compile) 2>&5
11423  ac_status=$?
11424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11425  test $ac_status = 0; } 2>conftest.err; then
11426	  soname=conftest
11427	  lib=conftest
11428	  libobjs=conftest.$ac_objext
11429	  deplibs=
11430	  wl=$lt_prog_compiler_wl
11431	  pic_flag=$lt_prog_compiler_pic
11432	  compiler_flags=-v
11433	  linker_flags=-v
11434	  verstring=
11435	  output_objdir=.
11436	  libname=conftest
11437	  lt_save_allow_undefined_flag=$allow_undefined_flag
11438	  allow_undefined_flag=
11439	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11440  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11441  ac_status=$?
11442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11443  test $ac_status = 0; }
11444	  then
11445	    lt_cv_archive_cmds_need_lc=no
11446	  else
11447	    lt_cv_archive_cmds_need_lc=yes
11448	  fi
11449	  allow_undefined_flag=$lt_save_allow_undefined_flag
11450	else
11451	  cat conftest.err 1>&5
11452	fi
11453	$RM conftest*
11454
11455fi
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11457$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11458      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11459      ;;
11460    esac
11461  fi
11462  ;;
11463esac
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11617$as_echo_n "checking dynamic linker characteristics... " >&6; }
11618
11619if test yes = "$GCC"; then
11620  case $host_os in
11621    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11622    *) lt_awk_arg='/^libraries:/' ;;
11623  esac
11624  case $host_os in
11625    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11626    *) lt_sed_strip_eq='s|=/|/|g' ;;
11627  esac
11628  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11629  case $lt_search_path_spec in
11630  *\;*)
11631    # if the path contains ";" then we assume it to be the separator
11632    # otherwise default to the standard path separator (i.e. ":") - it is
11633    # assumed that no part of a normal pathname contains ";" but that should
11634    # okay in the real world where ";" in dirpaths is itself problematic.
11635    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11636    ;;
11637  *)
11638    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11639    ;;
11640  esac
11641  # Ok, now we have the path, separated by spaces, we can step through it
11642  # and add multilib dir if necessary...
11643  lt_tmp_lt_search_path_spec=
11644  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11645  # ...but if some path component already ends with the multilib dir we assume
11646  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11647  case "$lt_multi_os_dir; $lt_search_path_spec " in
11648  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11649    lt_multi_os_dir=
11650    ;;
11651  esac
11652  for lt_sys_path in $lt_search_path_spec; do
11653    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11654      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11655    elif test -n "$lt_multi_os_dir"; then
11656      test -d "$lt_sys_path" && \
11657	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11658    fi
11659  done
11660  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11661BEGIN {RS = " "; FS = "/|\n";} {
11662  lt_foo = "";
11663  lt_count = 0;
11664  for (lt_i = NF; lt_i > 0; lt_i--) {
11665    if ($lt_i != "" && $lt_i != ".") {
11666      if ($lt_i == "..") {
11667        lt_count++;
11668      } else {
11669        if (lt_count == 0) {
11670          lt_foo = "/" $lt_i lt_foo;
11671        } else {
11672          lt_count--;
11673        }
11674      }
11675    }
11676  }
11677  if (lt_foo != "") { lt_freq[lt_foo]++; }
11678  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11679}'`
11680  # AWK program above erroneously prepends '/' to C:/dos/paths
11681  # for these hosts.
11682  case $host_os in
11683    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11684      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11685  esac
11686  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11687else
11688  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11689fi
11690library_names_spec=
11691libname_spec='lib$name'
11692soname_spec=
11693shrext_cmds=.so
11694postinstall_cmds=
11695postuninstall_cmds=
11696finish_cmds=
11697finish_eval=
11698shlibpath_var=
11699shlibpath_overrides_runpath=unknown
11700version_type=none
11701dynamic_linker="$host_os ld.so"
11702sys_lib_dlsearch_path_spec="/lib /usr/lib"
11703need_lib_prefix=unknown
11704hardcode_into_libs=no
11705
11706# when you set need_version to no, make sure it does not cause -set_version
11707# flags to be left without arguments
11708need_version=unknown
11709
11710
11711
11712case $host_os in
11713aix3*)
11714  version_type=linux # correct to gnu/linux during the next big refactor
11715  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11716  shlibpath_var=LIBPATH
11717
11718  # AIX 3 has no versioning support, so we append a major version to the name.
11719  soname_spec='$libname$release$shared_ext$major'
11720  ;;
11721
11722aix[4-9]*)
11723  version_type=linux # correct to gnu/linux during the next big refactor
11724  need_lib_prefix=no
11725  need_version=no
11726  hardcode_into_libs=yes
11727  if test ia64 = "$host_cpu"; then
11728    # AIX 5 supports IA64
11729    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11730    shlibpath_var=LD_LIBRARY_PATH
11731  else
11732    # With GCC up to 2.95.x, collect2 would create an import file
11733    # for dependence libraries.  The import file would start with
11734    # the line '#! .'.  This would cause the generated library to
11735    # depend on '.', always an invalid library.  This was fixed in
11736    # development snapshots of GCC prior to 3.0.
11737    case $host_os in
11738      aix4 | aix4.[01] | aix4.[01].*)
11739      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11740	   echo ' yes '
11741	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11742	:
11743      else
11744	can_build_shared=no
11745      fi
11746      ;;
11747    esac
11748    # Using Import Files as archive members, it is possible to support
11749    # filename-based versioning of shared library archives on AIX. While
11750    # this would work for both with and without runtime linking, it will
11751    # prevent static linking of such archives. So we do filename-based
11752    # shared library versioning with .so extension only, which is used
11753    # when both runtime linking and shared linking is enabled.
11754    # Unfortunately, runtime linking may impact performance, so we do
11755    # not want this to be the default eventually. Also, we use the
11756    # versioned .so libs for executables only if there is the -brtl
11757    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11758    # To allow for filename-based versioning support, we need to create
11759    # libNAME.so.V as an archive file, containing:
11760    # *) an Import File, referring to the versioned filename of the
11761    #    archive as well as the shared archive member, telling the
11762    #    bitwidth (32 or 64) of that shared object, and providing the
11763    #    list of exported symbols of that shared object, eventually
11764    #    decorated with the 'weak' keyword
11765    # *) the shared object with the F_LOADONLY flag set, to really avoid
11766    #    it being seen by the linker.
11767    # At run time we better use the real file rather than another symlink,
11768    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11769
11770    case $with_aix_soname,$aix_use_runtimelinking in
11771    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11772    # soname into executable. Probably we can add versioning support to
11773    # collect2, so additional links can be useful in future.
11774    aix,yes) # traditional libtool
11775      dynamic_linker='AIX unversionable lib.so'
11776      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11777      # instead of lib<name>.a to let people know that these are not
11778      # typical AIX shared libraries.
11779      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11780      ;;
11781    aix,no) # traditional AIX only
11782      dynamic_linker='AIX lib.a(lib.so.V)'
11783      # We preserve .a as extension for shared libraries through AIX4.2
11784      # and later when we are not doing run time linking.
11785      library_names_spec='$libname$release.a $libname.a'
11786      soname_spec='$libname$release$shared_ext$major'
11787      ;;
11788    svr4,*) # full svr4 only
11789      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11790      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11791      # We do not specify a path in Import Files, so LIBPATH fires.
11792      shlibpath_overrides_runpath=yes
11793      ;;
11794    *,yes) # both, prefer svr4
11795      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11796      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11797      # unpreferred sharedlib libNAME.a needs extra handling
11798      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11799      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11800      # We do not specify a path in Import Files, so LIBPATH fires.
11801      shlibpath_overrides_runpath=yes
11802      ;;
11803    *,no) # both, prefer aix
11804      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11805      library_names_spec='$libname$release.a $libname.a'
11806      soname_spec='$libname$release$shared_ext$major'
11807      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11808      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11809      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11810      ;;
11811    esac
11812    shlibpath_var=LIBPATH
11813  fi
11814  ;;
11815
11816amigaos*)
11817  case $host_cpu in
11818  powerpc)
11819    # Since July 2007 AmigaOS4 officially supports .so libraries.
11820    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11821    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11822    ;;
11823  m68k)
11824    library_names_spec='$libname.ixlibrary $libname.a'
11825    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11826    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11827    ;;
11828  esac
11829  ;;
11830
11831beos*)
11832  library_names_spec='$libname$shared_ext'
11833  dynamic_linker="$host_os ld.so"
11834  shlibpath_var=LIBRARY_PATH
11835  ;;
11836
11837bsdi[45]*)
11838  version_type=linux # correct to gnu/linux during the next big refactor
11839  need_version=no
11840  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11841  soname_spec='$libname$release$shared_ext$major'
11842  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11843  shlibpath_var=LD_LIBRARY_PATH
11844  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11845  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11846  # the default ld.so.conf also contains /usr/contrib/lib and
11847  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11848  # libtool to hard-code these into programs
11849  ;;
11850
11851cygwin* | mingw* | pw32* | cegcc*)
11852  version_type=windows
11853  shrext_cmds=.dll
11854  need_version=no
11855  need_lib_prefix=no
11856
11857  case $GCC,$cc_basename in
11858  yes,*)
11859    # gcc
11860    library_names_spec='$libname.dll.a'
11861    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11862    postinstall_cmds='base_file=`basename \$file`~
11863      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11864      dldir=$destdir/`dirname \$dlpath`~
11865      test -d \$dldir || mkdir -p \$dldir~
11866      $install_prog $dir/$dlname \$dldir/$dlname~
11867      chmod a+x \$dldir/$dlname~
11868      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11869        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11870      fi'
11871    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11872      dlpath=$dir/\$dldll~
11873       $RM \$dlpath'
11874    shlibpath_overrides_runpath=yes
11875
11876    case $host_os in
11877    cygwin*)
11878      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11879      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11880
11881      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11882      ;;
11883    mingw* | cegcc*)
11884      # MinGW DLLs use traditional 'lib' prefix
11885      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11886      ;;
11887    pw32*)
11888      # pw32 DLLs use 'pw' prefix rather than 'lib'
11889      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11890      ;;
11891    esac
11892    dynamic_linker='Win32 ld.exe'
11893    ;;
11894
11895  *,cl*)
11896    # Native MSVC
11897    libname_spec='$name'
11898    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11899    library_names_spec='$libname.dll.lib'
11900
11901    case $build_os in
11902    mingw*)
11903      sys_lib_search_path_spec=
11904      lt_save_ifs=$IFS
11905      IFS=';'
11906      for lt_path in $LIB
11907      do
11908        IFS=$lt_save_ifs
11909        # Let DOS variable expansion print the short 8.3 style file name.
11910        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11911        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11912      done
11913      IFS=$lt_save_ifs
11914      # Convert to MSYS style.
11915      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11916      ;;
11917    cygwin*)
11918      # Convert to unix form, then to dos form, then back to unix form
11919      # but this time dos style (no spaces!) so that the unix form looks
11920      # like /cygdrive/c/PROGRA~1:/cygdr...
11921      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11922      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11923      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11924      ;;
11925    *)
11926      sys_lib_search_path_spec=$LIB
11927      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11928        # It is most probably a Windows format PATH.
11929        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11930      else
11931        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11932      fi
11933      # FIXME: find the short name or the path components, as spaces are
11934      # common. (e.g. "Program Files" -> "PROGRA~1")
11935      ;;
11936    esac
11937
11938    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11939    postinstall_cmds='base_file=`basename \$file`~
11940      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11941      dldir=$destdir/`dirname \$dlpath`~
11942      test -d \$dldir || mkdir -p \$dldir~
11943      $install_prog $dir/$dlname \$dldir/$dlname'
11944    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11945      dlpath=$dir/\$dldll~
11946       $RM \$dlpath'
11947    shlibpath_overrides_runpath=yes
11948    dynamic_linker='Win32 link.exe'
11949    ;;
11950
11951  *)
11952    # Assume MSVC wrapper
11953    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11954    dynamic_linker='Win32 ld.exe'
11955    ;;
11956  esac
11957  # FIXME: first we should search . and the directory the executable is in
11958  shlibpath_var=PATH
11959  ;;
11960
11961darwin* | rhapsody*)
11962  dynamic_linker="$host_os dyld"
11963  version_type=darwin
11964  need_lib_prefix=no
11965  need_version=no
11966  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11967  soname_spec='$libname$release$major$shared_ext'
11968  shlibpath_overrides_runpath=yes
11969  shlibpath_var=DYLD_LIBRARY_PATH
11970  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11971
11972  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11973  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11974  ;;
11975
11976dgux*)
11977  version_type=linux # correct to gnu/linux during the next big refactor
11978  need_lib_prefix=no
11979  need_version=no
11980  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11981  soname_spec='$libname$release$shared_ext$major'
11982  shlibpath_var=LD_LIBRARY_PATH
11983  ;;
11984
11985freebsd* | dragonfly*)
11986  # DragonFly does not have aout.  When/if they implement a new
11987  # versioning mechanism, adjust this.
11988  if test -x /usr/bin/objformat; then
11989    objformat=`/usr/bin/objformat`
11990  else
11991    case $host_os in
11992    freebsd[23].*) objformat=aout ;;
11993    *) objformat=elf ;;
11994    esac
11995  fi
11996  version_type=freebsd-$objformat
11997  case $version_type in
11998    freebsd-elf*)
11999      library_names_spec='$libname$release$shared_ext$versuffix  $libname$release$shared_ext$major	 $libname$shared_ext'			 soname_spec='$libname$release$shared_ext$major'
12000      soname_spec='$libname$release$shared_ext$major'
12001      need_version=no
12002      need_lib_prefix=no
12003      ;;
12004    freebsd-*)
12005      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12006      need_version=yes
12007      ;;
12008  esac
12009  shlibpath_var=LD_LIBRARY_PATH
12010  case $host_os in
12011  freebsd2.*)
12012    shlibpath_overrides_runpath=yes
12013    ;;
12014  freebsd3.[01]* | freebsdelf3.[01]*)
12015    shlibpath_overrides_runpath=yes
12016    hardcode_into_libs=yes
12017    ;;
12018  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12019  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12020    shlibpath_overrides_runpath=no
12021    hardcode_into_libs=yes
12022    ;;
12023  *) # from 4.6 on, and DragonFly
12024    shlibpath_overrides_runpath=yes
12025    hardcode_into_libs=yes
12026    ;;
12027  esac
12028  ;;
12029
12030haiku*)
12031  version_type=linux # correct to gnu/linux during the next big refactor
12032  need_lib_prefix=no
12033  need_version=no
12034  dynamic_linker="$host_os runtime_loader"
12035  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12036  soname_spec='$libname$release$shared_ext$major'
12037  shlibpath_var=LIBRARY_PATH
12038  shlibpath_overrides_runpath=no
12039  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12040  hardcode_into_libs=yes
12041  ;;
12042
12043hpux9* | hpux10* | hpux11*)
12044  # Give a soname corresponding to the major version so that dld.sl refuses to
12045  # link against other versions.
12046  version_type=sunos
12047  need_lib_prefix=no
12048  need_version=no
12049  case $host_cpu in
12050  ia64*)
12051    shrext_cmds='.so'
12052    hardcode_into_libs=yes
12053    dynamic_linker="$host_os dld.so"
12054    shlibpath_var=LD_LIBRARY_PATH
12055    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12056    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12057    soname_spec='$libname$release$shared_ext$major'
12058    if test 32 = "$HPUX_IA64_MODE"; then
12059      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12060      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12061    else
12062      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12063      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12064    fi
12065    ;;
12066  hppa*64*)
12067    shrext_cmds='.sl'
12068    hardcode_into_libs=yes
12069    dynamic_linker="$host_os dld.sl"
12070    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12071    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12072    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12073    soname_spec='$libname$release$shared_ext$major'
12074    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12075    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12076    ;;
12077  *)
12078    shrext_cmds='.sl'
12079    dynamic_linker="$host_os dld.sl"
12080    shlibpath_var=SHLIB_PATH
12081    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12082    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12083    soname_spec='$libname$release$shared_ext$major'
12084    ;;
12085  esac
12086  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12087  postinstall_cmds='chmod 555 $lib'
12088  # or fails outright, so override atomically:
12089  install_override_mode=555
12090  ;;
12091
12092interix[3-9]*)
12093  version_type=linux # correct to gnu/linux during the next big refactor
12094  need_lib_prefix=no
12095  need_version=no
12096  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12097  soname_spec='$libname$release$shared_ext$major'
12098  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12099  shlibpath_var=LD_LIBRARY_PATH
12100  shlibpath_overrides_runpath=no
12101  hardcode_into_libs=yes
12102  ;;
12103
12104irix5* | irix6* | nonstopux*)
12105  case $host_os in
12106    nonstopux*) version_type=nonstopux ;;
12107    *)
12108	if test yes = "$lt_cv_prog_gnu_ld"; then
12109		version_type=linux # correct to gnu/linux during the next big refactor
12110	else
12111		version_type=irix
12112	fi ;;
12113  esac
12114  need_lib_prefix=no
12115  need_version=no
12116  soname_spec='$libname$release$shared_ext$major'
12117  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12118  case $host_os in
12119  irix5* | nonstopux*)
12120    libsuff= shlibsuff=
12121    ;;
12122  *)
12123    case $LD in # libtool.m4 will add one of these switches to LD
12124    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12125      libsuff= shlibsuff= libmagic=32-bit;;
12126    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12127      libsuff=32 shlibsuff=N32 libmagic=N32;;
12128    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12129      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12130    *) libsuff= shlibsuff= libmagic=never-match;;
12131    esac
12132    ;;
12133  esac
12134  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12135  shlibpath_overrides_runpath=no
12136  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12137  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12138  hardcode_into_libs=yes
12139  ;;
12140
12141# No shared lib support for Linux oldld, aout, or coff.
12142linux*oldld* | linux*aout* | linux*coff*)
12143  dynamic_linker=no
12144  ;;
12145
12146linux*android*)
12147  version_type=none # Android doesn't support versioned libraries.
12148  need_lib_prefix=no
12149  need_version=no
12150  library_names_spec='$libname$release$shared_ext'
12151  soname_spec='$libname$release$shared_ext'
12152  finish_cmds=
12153  shlibpath_var=LD_LIBRARY_PATH
12154  shlibpath_overrides_runpath=yes
12155
12156  # This implies no fast_install, which is unacceptable.
12157  # Some rework will be needed to allow for fast_install
12158  # before this can be enabled.
12159  hardcode_into_libs=yes
12160
12161  dynamic_linker='Android linker'
12162  # Don't embed -rpath directories since the linker doesn't support them.
12163  hardcode_libdir_flag_spec='-L$libdir'
12164  ;;
12165
12166# This must be glibc/ELF.
12167linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12168  version_type=linux # correct to gnu/linux during the next big refactor
12169  need_lib_prefix=no
12170  need_version=no
12171  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12172  soname_spec='$libname$release$shared_ext$major'
12173  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12174  shlibpath_var=LD_LIBRARY_PATH
12175  shlibpath_overrides_runpath=no
12176
12177  # Some binutils ld are patched to set DT_RUNPATH
12178  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12179  $as_echo_n "(cached) " >&6
12180else
12181  lt_cv_shlibpath_overrides_runpath=no
12182    save_LDFLAGS=$LDFLAGS
12183    save_libdir=$libdir
12184    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12185	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12186    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187/* end confdefs.h.  */
12188
12189int
12190main ()
12191{
12192
12193  ;
12194  return 0;
12195}
12196_ACEOF
12197if ac_fn_c_try_link "$LINENO"; then :
12198  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12199  lt_cv_shlibpath_overrides_runpath=yes
12200fi
12201fi
12202rm -f core conftest.err conftest.$ac_objext \
12203    conftest$ac_exeext conftest.$ac_ext
12204    LDFLAGS=$save_LDFLAGS
12205    libdir=$save_libdir
12206
12207fi
12208
12209  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12210
12211  # This implies no fast_install, which is unacceptable.
12212  # Some rework will be needed to allow for fast_install
12213  # before this can be enabled.
12214  hardcode_into_libs=yes
12215
12216  # Ideally, we could use ldconfig to report *all* directores which are
12217  # searched for libraries, however this is still not possible.  Aside from not
12218  # being certain /sbin/ldconfig is available, command
12219  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12220  # even though it is searched at run-time.  Try to do the best guess by
12221  # appending ld.so.conf contents (and includes) to the search path.
12222  if test -f /etc/ld.so.conf; then
12223    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12224    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12225  fi
12226
12227  # We used to test for /lib/ld.so.1 and disable shared libraries on
12228  # powerpc, because MkLinux only supported shared libraries with the
12229  # GNU dynamic linker.  Since this was broken with cross compilers,
12230  # most powerpc-linux boxes support dynamic linking these days and
12231  # people can always --disable-shared, the test was removed, and we
12232  # assume the GNU/Linux dynamic linker is in use.
12233  dynamic_linker='GNU/Linux ld.so'
12234  ;;
12235
12236netbsdelf*-gnu)
12237  version_type=linux
12238  need_lib_prefix=no
12239  need_version=no
12240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12241  soname_spec='${libname}${release}${shared_ext}$major'
12242  shlibpath_var=LD_LIBRARY_PATH
12243  shlibpath_overrides_runpath=no
12244  hardcode_into_libs=yes
12245  dynamic_linker='NetBSD ld.elf_so'
12246  ;;
12247
12248netbsd*)
12249  version_type=sunos
12250  need_lib_prefix=no
12251  need_version=no
12252  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12253    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12254    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12255    dynamic_linker='NetBSD (a.out) ld.so'
12256  else
12257    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12258    soname_spec='$libname$release$shared_ext$major'
12259    dynamic_linker='NetBSD ld.elf_so'
12260  fi
12261  shlibpath_var=LD_LIBRARY_PATH
12262  shlibpath_overrides_runpath=yes
12263  hardcode_into_libs=yes
12264  ;;
12265
12266newsos6)
12267  version_type=linux # correct to gnu/linux during the next big refactor
12268  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12269  shlibpath_var=LD_LIBRARY_PATH
12270  shlibpath_overrides_runpath=yes
12271  ;;
12272
12273*nto* | *qnx*)
12274  version_type=qnx
12275  need_lib_prefix=no
12276  need_version=no
12277  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12278  soname_spec='$libname$release$shared_ext$major'
12279  shlibpath_var=LD_LIBRARY_PATH
12280  shlibpath_overrides_runpath=no
12281  hardcode_into_libs=yes
12282  dynamic_linker='ldqnx.so'
12283  ;;
12284
12285openbsd* | bitrig*)
12286  version_type=sunos
12287  sys_lib_dlsearch_path_spec=/usr/lib
12288  need_lib_prefix=no
12289  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12290    need_version=no
12291  else
12292    need_version=yes
12293  fi
12294  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12295  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12296  shlibpath_var=LD_LIBRARY_PATH
12297  shlibpath_overrides_runpath=yes
12298  ;;
12299
12300os2*)
12301  libname_spec='$name'
12302  version_type=windows
12303  shrext_cmds=.dll
12304  need_version=no
12305  need_lib_prefix=no
12306  # OS/2 can only load a DLL with a base name of 8 characters or less.
12307  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12308    v=$($ECHO $release$versuffix | tr -d .-);
12309    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12310    $ECHO $n$v`$shared_ext'
12311  library_names_spec='${libname}_dll.$libext'
12312  dynamic_linker='OS/2 ld.exe'
12313  shlibpath_var=BEGINLIBPATH
12314  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12315  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12316  postinstall_cmds='base_file=`basename \$file`~
12317    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12318    dldir=$destdir/`dirname \$dlpath`~
12319    test -d \$dldir || mkdir -p \$dldir~
12320    $install_prog $dir/$dlname \$dldir/$dlname~
12321    chmod a+x \$dldir/$dlname~
12322    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12323      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12324    fi'
12325  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12326    dlpath=$dir/\$dldll~
12327    $RM \$dlpath'
12328  ;;
12329
12330osf3* | osf4* | osf5*)
12331  version_type=osf
12332  need_lib_prefix=no
12333  need_version=no
12334  soname_spec='$libname$release$shared_ext$major'
12335  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12336  shlibpath_var=LD_LIBRARY_PATH
12337  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12338  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12339  ;;
12340
12341rdos*)
12342  dynamic_linker=no
12343  ;;
12344
12345solaris*)
12346  version_type=linux # correct to gnu/linux during the next big refactor
12347  need_lib_prefix=no
12348  need_version=no
12349  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12350  soname_spec='$libname$release$shared_ext$major'
12351  shlibpath_var=LD_LIBRARY_PATH
12352  shlibpath_overrides_runpath=yes
12353  hardcode_into_libs=yes
12354  # ldd complains unless libraries are executable
12355  postinstall_cmds='chmod +x $lib'
12356  ;;
12357
12358sunos4*)
12359  version_type=sunos
12360  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12361  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12362  shlibpath_var=LD_LIBRARY_PATH
12363  shlibpath_overrides_runpath=yes
12364  if test yes = "$with_gnu_ld"; then
12365    need_lib_prefix=no
12366  fi
12367  need_version=yes
12368  ;;
12369
12370sysv4 | sysv4.3*)
12371  version_type=linux # correct to gnu/linux during the next big refactor
12372  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12373  soname_spec='$libname$release$shared_ext$major'
12374  shlibpath_var=LD_LIBRARY_PATH
12375  case $host_vendor in
12376    sni)
12377      shlibpath_overrides_runpath=no
12378      need_lib_prefix=no
12379      runpath_var=LD_RUN_PATH
12380      ;;
12381    siemens)
12382      need_lib_prefix=no
12383      ;;
12384    motorola)
12385      need_lib_prefix=no
12386      need_version=no
12387      shlibpath_overrides_runpath=no
12388      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12389      ;;
12390  esac
12391  ;;
12392
12393sysv4*MP*)
12394  if test -d /usr/nec; then
12395    version_type=linux # correct to gnu/linux during the next big refactor
12396    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12397    soname_spec='$libname$shared_ext.$major'
12398    shlibpath_var=LD_LIBRARY_PATH
12399  fi
12400  ;;
12401
12402sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12403  version_type=sco
12404  need_lib_prefix=no
12405  need_version=no
12406  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12407  soname_spec='$libname$release$shared_ext$major'
12408  shlibpath_var=LD_LIBRARY_PATH
12409  shlibpath_overrides_runpath=yes
12410  hardcode_into_libs=yes
12411  if test yes = "$with_gnu_ld"; then
12412    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12413  else
12414    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12415    case $host_os in
12416      sco3.2v5*)
12417        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12418	;;
12419    esac
12420  fi
12421  sys_lib_dlsearch_path_spec='/usr/lib'
12422  ;;
12423
12424tpf*)
12425  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12426  version_type=linux # correct to gnu/linux during the next big refactor
12427  need_lib_prefix=no
12428  need_version=no
12429  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12430  shlibpath_var=LD_LIBRARY_PATH
12431  shlibpath_overrides_runpath=no
12432  hardcode_into_libs=yes
12433  ;;
12434
12435uts4*)
12436  version_type=linux # correct to gnu/linux during the next big refactor
12437  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12438  soname_spec='$libname$release$shared_ext$major'
12439  shlibpath_var=LD_LIBRARY_PATH
12440  ;;
12441
12442*)
12443  dynamic_linker=no
12444  ;;
12445esac
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12447$as_echo "$dynamic_linker" >&6; }
12448test no = "$dynamic_linker" && can_build_shared=no
12449
12450variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12451if test yes = "$GCC"; then
12452  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12453fi
12454
12455if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12456  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12457fi
12458
12459if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12460  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12461fi
12462
12463# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12464configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12465
12466# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12467func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12468
12469# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12470configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12569$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12570hardcode_action=
12571if test -n "$hardcode_libdir_flag_spec" ||
12572   test -n "$runpath_var" ||
12573   test yes = "$hardcode_automatic"; then
12574
12575  # We can hardcode non-existent directories.
12576  if test no != "$hardcode_direct" &&
12577     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12578     # have to relink, otherwise we might link with an installed library
12579     # when we should be linking with a yet-to-be-installed one
12580     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12581     test no != "$hardcode_minus_L"; then
12582    # Linking always hardcodes the temporary library directory.
12583    hardcode_action=relink
12584  else
12585    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12586    hardcode_action=immediate
12587  fi
12588else
12589  # We cannot hardcode anything, or else we can only hardcode existing
12590  # directories.
12591  hardcode_action=unsupported
12592fi
12593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12594$as_echo "$hardcode_action" >&6; }
12595
12596if test relink = "$hardcode_action" ||
12597   test yes = "$inherit_rpath"; then
12598  # Fast installation is not supported
12599  enable_fast_install=no
12600elif test yes = "$shlibpath_overrides_runpath" ||
12601     test no = "$enable_shared"; then
12602  # Fast installation is not necessary
12603  enable_fast_install=needless
12604fi
12605
12606
12607
12608
12609
12610
12611  if test yes != "$enable_dlopen"; then
12612  enable_dlopen=unknown
12613  enable_dlopen_self=unknown
12614  enable_dlopen_self_static=unknown
12615else
12616  lt_cv_dlopen=no
12617  lt_cv_dlopen_libs=
12618
12619  case $host_os in
12620  beos*)
12621    lt_cv_dlopen=load_add_on
12622    lt_cv_dlopen_libs=
12623    lt_cv_dlopen_self=yes
12624    ;;
12625
12626  mingw* | pw32* | cegcc*)
12627    lt_cv_dlopen=LoadLibrary
12628    lt_cv_dlopen_libs=
12629    ;;
12630
12631  cygwin*)
12632    lt_cv_dlopen=dlopen
12633    lt_cv_dlopen_libs=
12634    ;;
12635
12636  darwin*)
12637    # if libdl is installed we need to link against it
12638    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12639$as_echo_n "checking for dlopen in -ldl... " >&6; }
12640if ${ac_cv_lib_dl_dlopen+:} false; then :
12641  $as_echo_n "(cached) " >&6
12642else
12643  ac_check_lib_save_LIBS=$LIBS
12644LIBS="-ldl  $LIBS"
12645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646/* end confdefs.h.  */
12647
12648/* Override any GCC internal prototype to avoid an error.
12649   Use char because int might match the return type of a GCC
12650   builtin and then its argument prototype would still apply.  */
12651#ifdef __cplusplus
12652extern "C"
12653#endif
12654char dlopen ();
12655int
12656main ()
12657{
12658return dlopen ();
12659  ;
12660  return 0;
12661}
12662_ACEOF
12663if ac_fn_c_try_link "$LINENO"; then :
12664  ac_cv_lib_dl_dlopen=yes
12665else
12666  ac_cv_lib_dl_dlopen=no
12667fi
12668rm -f core conftest.err conftest.$ac_objext \
12669    conftest$ac_exeext conftest.$ac_ext
12670LIBS=$ac_check_lib_save_LIBS
12671fi
12672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12673$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12674if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12675  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12676else
12677
12678    lt_cv_dlopen=dyld
12679    lt_cv_dlopen_libs=
12680    lt_cv_dlopen_self=yes
12681
12682fi
12683
12684    ;;
12685
12686  tpf*)
12687    # Don't try to run any link tests for TPF.  We know it's impossible
12688    # because TPF is a cross-compiler, and we know how we open DSOs.
12689    lt_cv_dlopen=dlopen
12690    lt_cv_dlopen_libs=
12691    lt_cv_dlopen_self=no
12692    ;;
12693
12694  *)
12695    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12696if test "x$ac_cv_func_shl_load" = xyes; then :
12697  lt_cv_dlopen=shl_load
12698else
12699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12700$as_echo_n "checking for shl_load in -ldld... " >&6; }
12701if ${ac_cv_lib_dld_shl_load+:} false; then :
12702  $as_echo_n "(cached) " >&6
12703else
12704  ac_check_lib_save_LIBS=$LIBS
12705LIBS="-ldld  $LIBS"
12706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707/* end confdefs.h.  */
12708
12709/* Override any GCC internal prototype to avoid an error.
12710   Use char because int might match the return type of a GCC
12711   builtin and then its argument prototype would still apply.  */
12712#ifdef __cplusplus
12713extern "C"
12714#endif
12715char shl_load ();
12716int
12717main ()
12718{
12719return shl_load ();
12720  ;
12721  return 0;
12722}
12723_ACEOF
12724if ac_fn_c_try_link "$LINENO"; then :
12725  ac_cv_lib_dld_shl_load=yes
12726else
12727  ac_cv_lib_dld_shl_load=no
12728fi
12729rm -f core conftest.err conftest.$ac_objext \
12730    conftest$ac_exeext conftest.$ac_ext
12731LIBS=$ac_check_lib_save_LIBS
12732fi
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12734$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12735if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12736  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12737else
12738  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12739if test "x$ac_cv_func_dlopen" = xyes; then :
12740  lt_cv_dlopen=dlopen
12741else
12742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12743$as_echo_n "checking for dlopen in -ldl... " >&6; }
12744if ${ac_cv_lib_dl_dlopen+:} false; then :
12745  $as_echo_n "(cached) " >&6
12746else
12747  ac_check_lib_save_LIBS=$LIBS
12748LIBS="-ldl  $LIBS"
12749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750/* end confdefs.h.  */
12751
12752/* Override any GCC internal prototype to avoid an error.
12753   Use char because int might match the return type of a GCC
12754   builtin and then its argument prototype would still apply.  */
12755#ifdef __cplusplus
12756extern "C"
12757#endif
12758char dlopen ();
12759int
12760main ()
12761{
12762return dlopen ();
12763  ;
12764  return 0;
12765}
12766_ACEOF
12767if ac_fn_c_try_link "$LINENO"; then :
12768  ac_cv_lib_dl_dlopen=yes
12769else
12770  ac_cv_lib_dl_dlopen=no
12771fi
12772rm -f core conftest.err conftest.$ac_objext \
12773    conftest$ac_exeext conftest.$ac_ext
12774LIBS=$ac_check_lib_save_LIBS
12775fi
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12777$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12778if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12779  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12780else
12781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12782$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12783if ${ac_cv_lib_svld_dlopen+:} false; then :
12784  $as_echo_n "(cached) " >&6
12785else
12786  ac_check_lib_save_LIBS=$LIBS
12787LIBS="-lsvld  $LIBS"
12788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12789/* end confdefs.h.  */
12790
12791/* Override any GCC internal prototype to avoid an error.
12792   Use char because int might match the return type of a GCC
12793   builtin and then its argument prototype would still apply.  */
12794#ifdef __cplusplus
12795extern "C"
12796#endif
12797char dlopen ();
12798int
12799main ()
12800{
12801return dlopen ();
12802  ;
12803  return 0;
12804}
12805_ACEOF
12806if ac_fn_c_try_link "$LINENO"; then :
12807  ac_cv_lib_svld_dlopen=yes
12808else
12809  ac_cv_lib_svld_dlopen=no
12810fi
12811rm -f core conftest.err conftest.$ac_objext \
12812    conftest$ac_exeext conftest.$ac_ext
12813LIBS=$ac_check_lib_save_LIBS
12814fi
12815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12816$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12817if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12818  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12819else
12820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12821$as_echo_n "checking for dld_link in -ldld... " >&6; }
12822if ${ac_cv_lib_dld_dld_link+:} false; then :
12823  $as_echo_n "(cached) " >&6
12824else
12825  ac_check_lib_save_LIBS=$LIBS
12826LIBS="-ldld  $LIBS"
12827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12828/* end confdefs.h.  */
12829
12830/* Override any GCC internal prototype to avoid an error.
12831   Use char because int might match the return type of a GCC
12832   builtin and then its argument prototype would still apply.  */
12833#ifdef __cplusplus
12834extern "C"
12835#endif
12836char dld_link ();
12837int
12838main ()
12839{
12840return dld_link ();
12841  ;
12842  return 0;
12843}
12844_ACEOF
12845if ac_fn_c_try_link "$LINENO"; then :
12846  ac_cv_lib_dld_dld_link=yes
12847else
12848  ac_cv_lib_dld_dld_link=no
12849fi
12850rm -f core conftest.err conftest.$ac_objext \
12851    conftest$ac_exeext conftest.$ac_ext
12852LIBS=$ac_check_lib_save_LIBS
12853fi
12854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12855$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12856if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12857  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12858fi
12859
12860
12861fi
12862
12863
12864fi
12865
12866
12867fi
12868
12869
12870fi
12871
12872
12873fi
12874
12875    ;;
12876  esac
12877
12878  if test no = "$lt_cv_dlopen"; then
12879    enable_dlopen=no
12880  else
12881    enable_dlopen=yes
12882  fi
12883
12884  case $lt_cv_dlopen in
12885  dlopen)
12886    save_CPPFLAGS=$CPPFLAGS
12887    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12888
12889    save_LDFLAGS=$LDFLAGS
12890    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12891
12892    save_LIBS=$LIBS
12893    LIBS="$lt_cv_dlopen_libs $LIBS"
12894
12895    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12896$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12897if ${lt_cv_dlopen_self+:} false; then :
12898  $as_echo_n "(cached) " >&6
12899else
12900  	  if test yes = "$cross_compiling"; then :
12901  lt_cv_dlopen_self=cross
12902else
12903  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12904  lt_status=$lt_dlunknown
12905  cat > conftest.$ac_ext <<_LT_EOF
12906#line $LINENO "configure"
12907#include "confdefs.h"
12908
12909#if HAVE_DLFCN_H
12910#include <dlfcn.h>
12911#endif
12912
12913#include <stdio.h>
12914
12915#ifdef RTLD_GLOBAL
12916#  define LT_DLGLOBAL		RTLD_GLOBAL
12917#else
12918#  ifdef DL_GLOBAL
12919#    define LT_DLGLOBAL		DL_GLOBAL
12920#  else
12921#    define LT_DLGLOBAL		0
12922#  endif
12923#endif
12924
12925/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12926   find out it does not work in some platform. */
12927#ifndef LT_DLLAZY_OR_NOW
12928#  ifdef RTLD_LAZY
12929#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12930#  else
12931#    ifdef DL_LAZY
12932#      define LT_DLLAZY_OR_NOW		DL_LAZY
12933#    else
12934#      ifdef RTLD_NOW
12935#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12936#      else
12937#        ifdef DL_NOW
12938#          define LT_DLLAZY_OR_NOW	DL_NOW
12939#        else
12940#          define LT_DLLAZY_OR_NOW	0
12941#        endif
12942#      endif
12943#    endif
12944#  endif
12945#endif
12946
12947/* When -fvisibility=hidden is used, assume the code has been annotated
12948   correspondingly for the symbols needed.  */
12949#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12950int fnord () __attribute__((visibility("default")));
12951#endif
12952
12953int fnord () { return 42; }
12954int main ()
12955{
12956  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12957  int status = $lt_dlunknown;
12958
12959  if (self)
12960    {
12961      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12962      else
12963        {
12964	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12965          else puts (dlerror ());
12966	}
12967      /* dlclose (self); */
12968    }
12969  else
12970    puts (dlerror ());
12971
12972  return status;
12973}
12974_LT_EOF
12975  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12976  (eval $ac_link) 2>&5
12977  ac_status=$?
12978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12979  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12980    (./conftest; exit; ) >&5 2>/dev/null
12981    lt_status=$?
12982    case x$lt_status in
12983      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12984      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12985      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12986    esac
12987  else :
12988    # compilation failed
12989    lt_cv_dlopen_self=no
12990  fi
12991fi
12992rm -fr conftest*
12993
12994
12995fi
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12997$as_echo "$lt_cv_dlopen_self" >&6; }
12998
12999    if test yes = "$lt_cv_dlopen_self"; then
13000      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13001      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13002$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13003if ${lt_cv_dlopen_self_static+:} false; then :
13004  $as_echo_n "(cached) " >&6
13005else
13006  	  if test yes = "$cross_compiling"; then :
13007  lt_cv_dlopen_self_static=cross
13008else
13009  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13010  lt_status=$lt_dlunknown
13011  cat > conftest.$ac_ext <<_LT_EOF
13012#line $LINENO "configure"
13013#include "confdefs.h"
13014
13015#if HAVE_DLFCN_H
13016#include <dlfcn.h>
13017#endif
13018
13019#include <stdio.h>
13020
13021#ifdef RTLD_GLOBAL
13022#  define LT_DLGLOBAL		RTLD_GLOBAL
13023#else
13024#  ifdef DL_GLOBAL
13025#    define LT_DLGLOBAL		DL_GLOBAL
13026#  else
13027#    define LT_DLGLOBAL		0
13028#  endif
13029#endif
13030
13031/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13032   find out it does not work in some platform. */
13033#ifndef LT_DLLAZY_OR_NOW
13034#  ifdef RTLD_LAZY
13035#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13036#  else
13037#    ifdef DL_LAZY
13038#      define LT_DLLAZY_OR_NOW		DL_LAZY
13039#    else
13040#      ifdef RTLD_NOW
13041#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13042#      else
13043#        ifdef DL_NOW
13044#          define LT_DLLAZY_OR_NOW	DL_NOW
13045#        else
13046#          define LT_DLLAZY_OR_NOW	0
13047#        endif
13048#      endif
13049#    endif
13050#  endif
13051#endif
13052
13053/* When -fvisibility=hidden is used, assume the code has been annotated
13054   correspondingly for the symbols needed.  */
13055#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13056int fnord () __attribute__((visibility("default")));
13057#endif
13058
13059int fnord () { return 42; }
13060int main ()
13061{
13062  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13063  int status = $lt_dlunknown;
13064
13065  if (self)
13066    {
13067      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13068      else
13069        {
13070	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13071          else puts (dlerror ());
13072	}
13073      /* dlclose (self); */
13074    }
13075  else
13076    puts (dlerror ());
13077
13078  return status;
13079}
13080_LT_EOF
13081  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13082  (eval $ac_link) 2>&5
13083  ac_status=$?
13084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13085  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13086    (./conftest; exit; ) >&5 2>/dev/null
13087    lt_status=$?
13088    case x$lt_status in
13089      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13090      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13091      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13092    esac
13093  else :
13094    # compilation failed
13095    lt_cv_dlopen_self_static=no
13096  fi
13097fi
13098rm -fr conftest*
13099
13100
13101fi
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13103$as_echo "$lt_cv_dlopen_self_static" >&6; }
13104    fi
13105
13106    CPPFLAGS=$save_CPPFLAGS
13107    LDFLAGS=$save_LDFLAGS
13108    LIBS=$save_LIBS
13109    ;;
13110  esac
13111
13112  case $lt_cv_dlopen_self in
13113  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13114  *) enable_dlopen_self=unknown ;;
13115  esac
13116
13117  case $lt_cv_dlopen_self_static in
13118  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13119  *) enable_dlopen_self_static=unknown ;;
13120  esac
13121fi
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139striplib=
13140old_striplib=
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13142$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13143if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "strip" >/dev/null; then
13144  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13145  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13147$as_echo "yes" >&6; }
13148else
13149# FIXME - insert some real tests, host_os isn't really good enough
13150  case $host_os in
13151  darwin*)
13152    if test -n "$STRIP"; then
13153      striplib="$STRIP -x"
13154      old_striplib="$STRIP -S"
13155      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13156$as_echo "yes" >&6; }
13157    else
13158      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159$as_echo "no" >&6; }
13160    fi
13161    ;;
13162  *)
13163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164$as_echo "no" >&6; }
13165    ;;
13166  esac
13167fi
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180  # Report what library types will actually be built
13181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13182$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13184$as_echo "$can_build_shared" >&6; }
13185
13186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13187$as_echo_n "checking whether to build shared libraries... " >&6; }
13188  test no = "$can_build_shared" && enable_shared=no
13189
13190  # On AIX, shared libraries and static libraries use the same namespace, and
13191  # are all built from PIC.
13192  case $host_os in
13193  aix3*)
13194    test yes = "$enable_shared" && enable_static=no
13195    if test -n "$RANLIB"; then
13196      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13197      postinstall_cmds='$RANLIB $lib'
13198    fi
13199    ;;
13200
13201  aix[4-9]*)
13202    if test ia64 != "$host_cpu"; then
13203      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13204      yes,aix,yes) ;;			# shared object as lib.so file only
13205      yes,svr4,*) ;;			# shared object as lib.so archive member only
13206      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13207      esac
13208    fi
13209    ;;
13210  esac
13211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13212$as_echo "$enable_shared" >&6; }
13213
13214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13215$as_echo_n "checking whether to build static libraries... " >&6; }
13216  # Make sure either enable_shared or enable_static is yes.
13217  test yes = "$enable_shared" || enable_static=yes
13218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13219$as_echo "$enable_static" >&6; }
13220
13221
13222
13223
13224fi
13225ac_ext=c
13226ac_cpp='$CPP $CPPFLAGS'
13227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229ac_compiler_gnu=$ac_cv_c_compiler_gnu
13230
13231CC=$lt_save_CC
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247        ac_config_commands="$ac_config_commands libtool"
13248
13249
13250
13251
13252# Only expand once:
13253
13254
13255if test -n "$ac_tool_prefix"; then
13256  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13257set dummy ${ac_tool_prefix}strip; ac_word=$2
13258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259$as_echo_n "checking for $ac_word... " >&6; }
13260if ${ac_cv_prog_STRIP+:} false; then :
13261  $as_echo_n "(cached) " >&6
13262else
13263  if test -n "$STRIP"; then
13264  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13265else
13266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267for as_dir in $PATH
13268do
13269  IFS=$as_save_IFS
13270  test -z "$as_dir" && as_dir=.
13271    for ac_exec_ext in '' $ac_executable_extensions; do
13272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13273    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275    break 2
13276  fi
13277done
13278  done
13279IFS=$as_save_IFS
13280
13281fi
13282fi
13283STRIP=$ac_cv_prog_STRIP
13284if test -n "$STRIP"; then
13285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13286$as_echo "$STRIP" >&6; }
13287else
13288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289$as_echo "no" >&6; }
13290fi
13291
13292
13293fi
13294if test -z "$ac_cv_prog_STRIP"; then
13295  ac_ct_STRIP=$STRIP
13296  # Extract the first word of "strip", so it can be a program name with args.
13297set dummy strip; ac_word=$2
13298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13299$as_echo_n "checking for $ac_word... " >&6; }
13300if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13301  $as_echo_n "(cached) " >&6
13302else
13303  if test -n "$ac_ct_STRIP"; then
13304  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13305else
13306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13307for as_dir in $PATH
13308do
13309  IFS=$as_save_IFS
13310  test -z "$as_dir" && as_dir=.
13311    for ac_exec_ext in '' $ac_executable_extensions; do
13312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13313    ac_cv_prog_ac_ct_STRIP="strip"
13314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13315    break 2
13316  fi
13317done
13318  done
13319IFS=$as_save_IFS
13320
13321fi
13322fi
13323ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13324if test -n "$ac_ct_STRIP"; then
13325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13326$as_echo "$ac_ct_STRIP" >&6; }
13327else
13328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13329$as_echo "no" >&6; }
13330fi
13331
13332  if test "x$ac_ct_STRIP" = x; then
13333    STRIP=""
13334  else
13335    case $cross_compiling:$ac_tool_warned in
13336yes:)
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13339ac_tool_warned=yes ;;
13340esac
13341    STRIP=$ac_ct_STRIP
13342  fi
13343else
13344  STRIP="$ac_cv_prog_STRIP"
13345fi
13346
13347
13348
13349#
13350# Options for building bsdtar.
13351#
13352# Default is to build bsdtar, but allow people to override that.
13353#
13354# Check whether --enable-bsdtar was given.
13355if test "${enable_bsdtar+set}" = set; then :
13356  enableval=$enable_bsdtar;
13357else
13358  enable_bsdtar=yes
13359fi
13360
13361
13362case "$enable_bsdtar" in
13363yes)
13364	if test "$enable_static" = "no"; then
13365		static_bsdtar=no
13366	else
13367		static_bsdtar=yes
13368	fi
13369	build_bsdtar=yes
13370	;;
13371dynamic|shared)
13372	if test "$enable_shared" = "no"; then
13373		{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13375as_fn_error $? "Shared linking of bsdtar requires shared libarchive
13376See \`config.log' for more details" "$LINENO" 5; }
13377	fi
13378	build_bsdtar=yes
13379	static_bsdtar=no
13380	;;
13381static)
13382	build_bsdtar=yes
13383	static_bsdtar=yes
13384	;;
13385no)
13386	build_bsdtar=no
13387	static_bsdtar=no
13388	;;
13389*)
13390	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13392as_fn_error $? "Unsupported value for --enable-bsdtar
13393See \`config.log' for more details" "$LINENO" 5; }
13394	;;
13395esac
13396
13397 if  test "$build_bsdtar" = yes ; then
13398  BUILD_BSDTAR_TRUE=
13399  BUILD_BSDTAR_FALSE='#'
13400else
13401  BUILD_BSDTAR_TRUE='#'
13402  BUILD_BSDTAR_FALSE=
13403fi
13404
13405 if  test "$static_bsdtar" = yes ; then
13406  STATIC_BSDTAR_TRUE=
13407  STATIC_BSDTAR_FALSE='#'
13408else
13409  STATIC_BSDTAR_TRUE='#'
13410  STATIC_BSDTAR_FALSE=
13411fi
13412
13413
13414#
13415# Options for building bsdcat.
13416#
13417# Default is to build bsdcat, but allow people to override that.
13418#
13419# Check whether --enable-bsdcat was given.
13420if test "${enable_bsdcat+set}" = set; then :
13421  enableval=$enable_bsdcat;
13422else
13423  enable_bsdcat=yes
13424fi
13425
13426
13427case "$enable_bsdcat" in
13428yes)
13429	if test "$enable_static" = "no"; then
13430		static_bsdcat=no
13431	else
13432		static_bsdcat=yes
13433	fi
13434	build_bsdcat=yes
13435	;;
13436dynamic|shared)
13437	if test "$enable_shared" = "no"; then
13438		{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13440as_fn_error $? "Shared linking of bsdcat requires shared libarchive
13441See \`config.log' for more details" "$LINENO" 5; }
13442	fi
13443	build_bsdcat=yes
13444	static_bsdcat=no
13445	;;
13446static)
13447	build_bsdcat=yes
13448	static_bsdcat=yes
13449	;;
13450no)
13451	build_bsdcat=no
13452	static_bsdcat=no
13453	;;
13454*)
13455	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13457as_fn_error $? "Unsupported value for --enable-bsdcat
13458See \`config.log' for more details" "$LINENO" 5; }
13459	;;
13460esac
13461
13462 if  test "$build_bsdcat" = yes ; then
13463  BUILD_BSDCAT_TRUE=
13464  BUILD_BSDCAT_FALSE='#'
13465else
13466  BUILD_BSDCAT_TRUE='#'
13467  BUILD_BSDCAT_FALSE=
13468fi
13469
13470 if  test "$static_bsdcat" = yes ; then
13471  STATIC_BSDCAT_TRUE=
13472  STATIC_BSDCAT_FALSE='#'
13473else
13474  STATIC_BSDCAT_TRUE='#'
13475  STATIC_BSDCAT_FALSE=
13476fi
13477
13478
13479#
13480# Options for building bsdcpio.
13481#
13482# Default is not to build bsdcpio, but that can be overridden.
13483#
13484# Check whether --enable-bsdcpio was given.
13485if test "${enable_bsdcpio+set}" = set; then :
13486  enableval=$enable_bsdcpio;
13487else
13488  enable_bsdcpio=yes
13489fi
13490
13491
13492case "$enable_bsdcpio" in
13493yes)
13494	if test "$enable_static" = "no"; then
13495	   static_bsdcpio=no
13496	else
13497	   static_bsdcpio=yes
13498        fi
13499	build_bsdcpio=yes
13500	;;
13501dynamic|shared)
13502	if test "$enabled_shared" = "no"; then
13503	   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13505as_fn_error $? "Shared linking of bsdcpio requires shared libarchive
13506See \`config.log' for more details" "$LINENO" 5; }
13507	fi
13508	build_bsdcpio=yes
13509	;;
13510static)
13511	build_bsdcpio=yes
13512	static_bsdcpio=yes
13513	;;
13514no)
13515	build_bsdcpio=no
13516	static_bsdcpio=no
13517	;;
13518*)
13519	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13521as_fn_error $? "Unsupported value for --enable-bsdcpio
13522See \`config.log' for more details" "$LINENO" 5; }
13523	;;
13524esac
13525
13526 if  test "$build_bsdcpio" = yes ; then
13527  BUILD_BSDCPIO_TRUE=
13528  BUILD_BSDCPIO_FALSE='#'
13529else
13530  BUILD_BSDCPIO_TRUE='#'
13531  BUILD_BSDCPIO_FALSE=
13532fi
13533
13534 if  test "$static_bsdcpio" = yes ; then
13535  STATIC_BSDCPIO_TRUE=
13536  STATIC_BSDCPIO_FALSE='#'
13537else
13538  STATIC_BSDCPIO_TRUE='#'
13539  STATIC_BSDCPIO_FALSE=
13540fi
13541
13542
13543# Set up defines needed before including any headers
13544case $host in
13545  *mingw* | *cygwin* | *msys*  )
13546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547/* end confdefs.h.  */
13548#ifdef _WIN32_WINNT
13549     # error _WIN32_WINNT already defined
13550     #endif
13551
13552int
13553main ()
13554{
13555;
13556  ;
13557  return 0;
13558}
13559
13560_ACEOF
13561if ac_fn_c_try_cpp "$LINENO"; then :
13562
13563
13564$as_echo "#define _WIN32_WINNT 0x0502" >>confdefs.h
13565
13566
13567$as_echo "#define NTDDI_VERSION 0x05020000" >>confdefs.h
13568
13569
13570fi
13571rm -f conftest.err conftest.i conftest.$ac_ext
13572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573/* end confdefs.h.  */
13574#ifdef WINVER
13575     # error WINVER already defined
13576     #endif
13577
13578int
13579main ()
13580{
13581;
13582  ;
13583  return 0;
13584}
13585
13586_ACEOF
13587if ac_fn_c_try_cpp "$LINENO"; then :
13588
13589
13590$as_echo "#define WINVER 0x0502" >>confdefs.h
13591
13592
13593fi
13594rm -f conftest.err conftest.i conftest.$ac_ext
13595  ;;
13596esac
13597
13598# Checks for header files.
13599ac_header_dirent=no
13600for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13601  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13603$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13604if eval \${$as_ac_Header+:} false; then :
13605  $as_echo_n "(cached) " >&6
13606else
13607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608/* end confdefs.h.  */
13609#include <sys/types.h>
13610#include <$ac_hdr>
13611
13612int
13613main ()
13614{
13615if ((DIR *) 0)
13616return 0;
13617  ;
13618  return 0;
13619}
13620_ACEOF
13621if ac_fn_c_try_compile "$LINENO"; then :
13622  eval "$as_ac_Header=yes"
13623else
13624  eval "$as_ac_Header=no"
13625fi
13626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13627fi
13628eval ac_res=\$$as_ac_Header
13629	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13630$as_echo "$ac_res" >&6; }
13631if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13632  cat >>confdefs.h <<_ACEOF
13633#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13634_ACEOF
13635
13636ac_header_dirent=$ac_hdr; break
13637fi
13638
13639done
13640# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13641if test $ac_header_dirent = dirent.h; then
13642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13643$as_echo_n "checking for library containing opendir... " >&6; }
13644if ${ac_cv_search_opendir+:} false; then :
13645  $as_echo_n "(cached) " >&6
13646else
13647  ac_func_search_save_LIBS=$LIBS
13648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649/* end confdefs.h.  */
13650
13651/* Override any GCC internal prototype to avoid an error.
13652   Use char because int might match the return type of a GCC
13653   builtin and then its argument prototype would still apply.  */
13654#ifdef __cplusplus
13655extern "C"
13656#endif
13657char opendir ();
13658int
13659main ()
13660{
13661return opendir ();
13662  ;
13663  return 0;
13664}
13665_ACEOF
13666for ac_lib in '' dir; do
13667  if test -z "$ac_lib"; then
13668    ac_res="none required"
13669  else
13670    ac_res=-l$ac_lib
13671    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13672  fi
13673  if ac_fn_c_try_link "$LINENO"; then :
13674  ac_cv_search_opendir=$ac_res
13675fi
13676rm -f core conftest.err conftest.$ac_objext \
13677    conftest$ac_exeext
13678  if ${ac_cv_search_opendir+:} false; then :
13679  break
13680fi
13681done
13682if ${ac_cv_search_opendir+:} false; then :
13683
13684else
13685  ac_cv_search_opendir=no
13686fi
13687rm conftest.$ac_ext
13688LIBS=$ac_func_search_save_LIBS
13689fi
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13691$as_echo "$ac_cv_search_opendir" >&6; }
13692ac_res=$ac_cv_search_opendir
13693if test "$ac_res" != no; then :
13694  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13695
13696fi
13697
13698else
13699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13700$as_echo_n "checking for library containing opendir... " >&6; }
13701if ${ac_cv_search_opendir+:} false; then :
13702  $as_echo_n "(cached) " >&6
13703else
13704  ac_func_search_save_LIBS=$LIBS
13705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706/* end confdefs.h.  */
13707
13708/* Override any GCC internal prototype to avoid an error.
13709   Use char because int might match the return type of a GCC
13710   builtin and then its argument prototype would still apply.  */
13711#ifdef __cplusplus
13712extern "C"
13713#endif
13714char opendir ();
13715int
13716main ()
13717{
13718return opendir ();
13719  ;
13720  return 0;
13721}
13722_ACEOF
13723for ac_lib in '' x; do
13724  if test -z "$ac_lib"; then
13725    ac_res="none required"
13726  else
13727    ac_res=-l$ac_lib
13728    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13729  fi
13730  if ac_fn_c_try_link "$LINENO"; then :
13731  ac_cv_search_opendir=$ac_res
13732fi
13733rm -f core conftest.err conftest.$ac_objext \
13734    conftest$ac_exeext
13735  if ${ac_cv_search_opendir+:} false; then :
13736  break
13737fi
13738done
13739if ${ac_cv_search_opendir+:} false; then :
13740
13741else
13742  ac_cv_search_opendir=no
13743fi
13744rm conftest.$ac_ext
13745LIBS=$ac_func_search_save_LIBS
13746fi
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13748$as_echo "$ac_cv_search_opendir" >&6; }
13749ac_res=$ac_cv_search_opendir
13750if test "$ac_res" != no; then :
13751  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13752
13753fi
13754
13755fi
13756
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13758$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13759if ${ac_cv_header_sys_wait_h+:} false; then :
13760  $as_echo_n "(cached) " >&6
13761else
13762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763/* end confdefs.h.  */
13764#include <sys/types.h>
13765#include <sys/wait.h>
13766#ifndef WEXITSTATUS
13767# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13768#endif
13769#ifndef WIFEXITED
13770# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13771#endif
13772
13773int
13774main ()
13775{
13776  int s;
13777  wait (&s);
13778  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13779  ;
13780  return 0;
13781}
13782_ACEOF
13783if ac_fn_c_try_compile "$LINENO"; then :
13784  ac_cv_header_sys_wait_h=yes
13785else
13786  ac_cv_header_sys_wait_h=no
13787fi
13788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13789fi
13790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13791$as_echo "$ac_cv_header_sys_wait_h" >&6; }
13792if test $ac_cv_header_sys_wait_h = yes; then
13793
13794$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13795
13796fi
13797
13798for ac_header in acl/libacl.h attr/xattr.h
13799do :
13800  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13801ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13802if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13803  cat >>confdefs.h <<_ACEOF
13804#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13805_ACEOF
13806
13807fi
13808
13809done
13810
13811for ac_header in copyfile.h ctype.h
13812do :
13813  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13814ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13815if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13816  cat >>confdefs.h <<_ACEOF
13817#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13818_ACEOF
13819
13820fi
13821
13822done
13823
13824for ac_header in errno.h ext2fs/ext2_fs.h fcntl.h grp.h
13825do :
13826  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13827ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13828if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13829  cat >>confdefs.h <<_ACEOF
13830#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13831_ACEOF
13832
13833fi
13834
13835done
13836
13837
13838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXT2_IOC_GETFLAGS is usable" >&5
13839$as_echo_n "checking whether EXT2_IOC_GETFLAGS is usable... " >&6; }
13840if ${ac_cv_have_decl_EXT2_IOC_GETFLAGS+:} false; then :
13841  $as_echo_n "(cached) " >&6
13842else
13843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844/* end confdefs.h.  */
13845#include <sys/ioctl.h>
13846#include <ext2fs/ext2_fs.h>
13847int
13848main ()
13849{
13850int x = EXT2_IOC_GETFLAGS
13851  ;
13852  return 0;
13853}
13854_ACEOF
13855if ac_fn_c_try_compile "$LINENO"; then :
13856  ac_cv_have_decl_EXT2_IOC_GETFLAGS=yes
13857else
13858  ac_cv_have_decl_EXT2_IOC_GETFLAGS=no
13859fi
13860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861fi
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&5
13863$as_echo "$ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&6; }
13864
13865if test "x$ac_cv_have_decl_EXT2_IOC_GETFLAGS" = xyes; then :
13866
13867cat >>confdefs.h <<_ACEOF
13868#define HAVE_WORKING_EXT2_IOC_GETFLAGS 1
13869_ACEOF
13870
13871fi
13872
13873for ac_header in inttypes.h io.h langinfo.h limits.h
13874do :
13875  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13876ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13877if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13878  cat >>confdefs.h <<_ACEOF
13879#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13880_ACEOF
13881
13882fi
13883
13884done
13885
13886for ac_header in linux/fiemap.h linux/fs.h linux/magic.h linux/types.h
13887do :
13888  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13889ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13890if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13891  cat >>confdefs.h <<_ACEOF
13892#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13893_ACEOF
13894
13895fi
13896
13897done
13898
13899
13900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FS_IOC_GETFLAGS is usable" >&5
13901$as_echo_n "checking whether FS_IOC_GETFLAGS is usable... " >&6; }
13902if ${ac_cv_have_decl_FS_IOC_GETFLAGS+:} false; then :
13903  $as_echo_n "(cached) " >&6
13904else
13905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906/* end confdefs.h.  */
13907#include <sys/ioctl.h>
13908#include <linux/fs.h>
13909int
13910main ()
13911{
13912int x = FS_IOC_GETFLAGS
13913  ;
13914  return 0;
13915}
13916_ACEOF
13917if ac_fn_c_try_compile "$LINENO"; then :
13918  ac_cv_have_decl_FS_IOC_GETFLAGS=yes
13919else
13920  ac_cv_have_decl_FS_IOC_GETFLAGS=no
13921fi
13922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13923fi
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_FS_IOC_GETFLAGS" >&5
13925$as_echo "$ac_cv_have_decl_FS_IOC_GETFLAGS" >&6; }
13926
13927if test "x$ac_cv_have_decl_FS_IOC_GETFLAGS" = xyes; then :
13928
13929cat >>confdefs.h <<_ACEOF
13930#define HAVE_WORKING_FS_IOC_GETFLAGS 1
13931_ACEOF
13932
13933fi
13934
13935for ac_header in locale.h membership.h paths.h poll.h pthread.h pwd.h
13936do :
13937  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13938ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13939if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13940  cat >>confdefs.h <<_ACEOF
13941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13942_ACEOF
13943
13944fi
13945
13946done
13947
13948for ac_header in readpassphrase.h signal.h spawn.h
13949do :
13950  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13951ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13952if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13953  cat >>confdefs.h <<_ACEOF
13954#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13955_ACEOF
13956
13957fi
13958
13959done
13960
13961for ac_header in stdarg.h stdint.h stdlib.h string.h
13962do :
13963  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13964ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13965if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13966  cat >>confdefs.h <<_ACEOF
13967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13968_ACEOF
13969
13970fi
13971
13972done
13973
13974for ac_header in sys/acl.h sys/cdefs.h sys/ea.h sys/extattr.h
13975do :
13976  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13977ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13978if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13979  cat >>confdefs.h <<_ACEOF
13980#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13981_ACEOF
13982
13983fi
13984
13985done
13986
13987for ac_header in sys/ioctl.h sys/mkdev.h sys/mount.h
13988do :
13989  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13990ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13991if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13992  cat >>confdefs.h <<_ACEOF
13993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13994_ACEOF
13995
13996fi
13997
13998done
13999
14000for ac_header in sys/param.h sys/poll.h sys/richacl.h
14001do :
14002  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14003ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14004if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14005  cat >>confdefs.h <<_ACEOF
14006#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14007_ACEOF
14008
14009fi
14010
14011done
14012
14013for ac_header in sys/select.h sys/statfs.h sys/statvfs.h sys/sysmacros.h
14014do :
14015  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14016ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14017if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14018  cat >>confdefs.h <<_ACEOF
14019#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14020_ACEOF
14021
14022fi
14023
14024done
14025
14026for ac_header in sys/time.h sys/utime.h sys/utsname.h sys/vfs.h sys/xattr.h
14027do :
14028  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14029ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14030if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14031  cat >>confdefs.h <<_ACEOF
14032#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14033_ACEOF
14034
14035fi
14036
14037done
14038
14039for ac_header in time.h unistd.h utime.h wchar.h wctype.h
14040do :
14041  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14042ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14043if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14044  cat >>confdefs.h <<_ACEOF
14045#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14046_ACEOF
14047
14048fi
14049
14050done
14051
14052for ac_header in windows.h
14053do :
14054  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
14055if test "x$ac_cv_header_windows_h" = xyes; then :
14056  cat >>confdefs.h <<_ACEOF
14057#define HAVE_WINDOWS_H 1
14058_ACEOF
14059
14060fi
14061
14062done
14063
14064# check windows.h first; the other headers require it.
14065for ac_header in wincrypt.h winioctl.h
14066do :
14067  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14068ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
14069# include <windows.h>
14070#endif
14071
14072"
14073if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14074  cat >>confdefs.h <<_ACEOF
14075#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14076_ACEOF
14077
14078fi
14079
14080done
14081
14082
14083# Checks for libraries.
14084
14085# Check whether --with-zlib was given.
14086if test "${with_zlib+set}" = set; then :
14087  withval=$with_zlib;
14088fi
14089
14090
14091if test "x$with_zlib" != "xno"; then
14092  for ac_header in zlib.h
14093do :
14094  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14095if test "x$ac_cv_header_zlib_h" = xyes; then :
14096  cat >>confdefs.h <<_ACEOF
14097#define HAVE_ZLIB_H 1
14098_ACEOF
14099
14100fi
14101
14102done
14103
14104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
14105$as_echo_n "checking for inflate in -lz... " >&6; }
14106if ${ac_cv_lib_z_inflate+:} false; then :
14107  $as_echo_n "(cached) " >&6
14108else
14109  ac_check_lib_save_LIBS=$LIBS
14110LIBS="-lz  $LIBS"
14111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112/* end confdefs.h.  */
14113
14114/* Override any GCC internal prototype to avoid an error.
14115   Use char because int might match the return type of a GCC
14116   builtin and then its argument prototype would still apply.  */
14117#ifdef __cplusplus
14118extern "C"
14119#endif
14120char inflate ();
14121int
14122main ()
14123{
14124return inflate ();
14125  ;
14126  return 0;
14127}
14128_ACEOF
14129if ac_fn_c_try_link "$LINENO"; then :
14130  ac_cv_lib_z_inflate=yes
14131else
14132  ac_cv_lib_z_inflate=no
14133fi
14134rm -f core conftest.err conftest.$ac_objext \
14135    conftest$ac_exeext conftest.$ac_ext
14136LIBS=$ac_check_lib_save_LIBS
14137fi
14138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
14139$as_echo "$ac_cv_lib_z_inflate" >&6; }
14140if test "x$ac_cv_lib_z_inflate" = xyes; then :
14141  cat >>confdefs.h <<_ACEOF
14142#define HAVE_LIBZ 1
14143_ACEOF
14144
14145  LIBS="-lz $LIBS"
14146
14147fi
14148
14149fi
14150
14151
14152# Check whether --with-bz2lib was given.
14153if test "${with_bz2lib+set}" = set; then :
14154  withval=$with_bz2lib;
14155fi
14156
14157
14158if test "x$with_bz2lib" != "xno"; then
14159  for ac_header in bzlib.h
14160do :
14161  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
14162if test "x$ac_cv_header_bzlib_h" = xyes; then :
14163  cat >>confdefs.h <<_ACEOF
14164#define HAVE_BZLIB_H 1
14165_ACEOF
14166
14167fi
14168
14169done
14170
14171  case "$host_os" in
14172    *mingw* | *cygwin* | *msys*)
14173      	  	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5
14174$as_echo_n "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }
14175      old_LIBS="$LIBS"
14176      LIBS="-lbz2 $LIBS"
14177      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178/* end confdefs.h.  */
14179#include <bzlib.h>
14180          int main() { return BZ2_bzDecompressInit(NULL, 0, 0); }
14181_ACEOF
14182if ac_fn_c_try_link "$LINENO"; then :
14183  ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
14184else
14185  ac_cv_lib_bz2_BZ2_bzDecompressInit=no
14186fi
14187rm -f core conftest.err conftest.$ac_objext \
14188    conftest$ac_exeext conftest.$ac_ext
14189      LIBS="$old_LIBS"
14190	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
14191$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
14192      if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes; then
14193
14194$as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h
14195
14196        LIBS="-lbz2 $LIBS"
14197      fi
14198    ;;
14199    *)
14200      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5
14201$as_echo_n "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }
14202if ${ac_cv_lib_bz2_BZ2_bzDecompressInit+:} false; then :
14203  $as_echo_n "(cached) " >&6
14204else
14205  ac_check_lib_save_LIBS=$LIBS
14206LIBS="-lbz2  $LIBS"
14207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208/* end confdefs.h.  */
14209
14210/* Override any GCC internal prototype to avoid an error.
14211   Use char because int might match the return type of a GCC
14212   builtin and then its argument prototype would still apply.  */
14213#ifdef __cplusplus
14214extern "C"
14215#endif
14216char BZ2_bzDecompressInit ();
14217int
14218main ()
14219{
14220return BZ2_bzDecompressInit ();
14221  ;
14222  return 0;
14223}
14224_ACEOF
14225if ac_fn_c_try_link "$LINENO"; then :
14226  ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
14227else
14228  ac_cv_lib_bz2_BZ2_bzDecompressInit=no
14229fi
14230rm -f core conftest.err conftest.$ac_objext \
14231    conftest$ac_exeext conftest.$ac_ext
14232LIBS=$ac_check_lib_save_LIBS
14233fi
14234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
14235$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
14236if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes; then :
14237  cat >>confdefs.h <<_ACEOF
14238#define HAVE_LIBBZ2 1
14239_ACEOF
14240
14241  LIBS="-lbz2 $LIBS"
14242
14243fi
14244
14245    ;;
14246  esac
14247fi
14248
14249
14250# Check whether --with-libb2 was given.
14251if test "${with_libb2+set}" = set; then :
14252  withval=$with_libb2;
14253fi
14254
14255
14256if test "x$with_libb2" != "xno"; then
14257  for ac_header in blake2.h
14258do :
14259  ac_fn_c_check_header_mongrel "$LINENO" "blake2.h" "ac_cv_header_blake2_h" "$ac_includes_default"
14260if test "x$ac_cv_header_blake2_h" = xyes; then :
14261  cat >>confdefs.h <<_ACEOF
14262#define HAVE_BLAKE2_H 1
14263_ACEOF
14264
14265fi
14266
14267done
14268
14269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blake2sp_init in -lb2" >&5
14270$as_echo_n "checking for blake2sp_init in -lb2... " >&6; }
14271if ${ac_cv_lib_b2_blake2sp_init+:} false; then :
14272  $as_echo_n "(cached) " >&6
14273else
14274  ac_check_lib_save_LIBS=$LIBS
14275LIBS="-lb2  $LIBS"
14276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277/* end confdefs.h.  */
14278
14279/* Override any GCC internal prototype to avoid an error.
14280   Use char because int might match the return type of a GCC
14281   builtin and then its argument prototype would still apply.  */
14282#ifdef __cplusplus
14283extern "C"
14284#endif
14285char blake2sp_init ();
14286int
14287main ()
14288{
14289return blake2sp_init ();
14290  ;
14291  return 0;
14292}
14293_ACEOF
14294if ac_fn_c_try_link "$LINENO"; then :
14295  ac_cv_lib_b2_blake2sp_init=yes
14296else
14297  ac_cv_lib_b2_blake2sp_init=no
14298fi
14299rm -f core conftest.err conftest.$ac_objext \
14300    conftest$ac_exeext conftest.$ac_ext
14301LIBS=$ac_check_lib_save_LIBS
14302fi
14303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_b2_blake2sp_init" >&5
14304$as_echo "$ac_cv_lib_b2_blake2sp_init" >&6; }
14305if test "x$ac_cv_lib_b2_blake2sp_init" = xyes; then :
14306  cat >>confdefs.h <<_ACEOF
14307#define HAVE_LIBB2 1
14308_ACEOF
14309
14310  LIBS="-lb2 $LIBS"
14311
14312fi
14313
14314fi
14315
14316 if test "x$ac_cv_lib_b2_blake2sp_init" != "xyes"; then
14317  INC_BLAKE2_TRUE=
14318  INC_BLAKE2_FALSE='#'
14319else
14320  INC_BLAKE2_TRUE='#'
14321  INC_BLAKE2_FALSE=
14322fi
14323
14324
14325
14326# Check whether --with-iconv was given.
14327if test "${with_iconv+set}" = set; then :
14328  withval=$with_iconv;
14329fi
14330
14331
14332if test "x$with_iconv" != "xno"; then
14333
14334      if test "X$prefix" = "XNONE"; then
14335    acl_final_prefix="$ac_default_prefix"
14336  else
14337    acl_final_prefix="$prefix"
14338  fi
14339  if test "X$exec_prefix" = "XNONE"; then
14340    acl_final_exec_prefix='${prefix}'
14341  else
14342    acl_final_exec_prefix="$exec_prefix"
14343  fi
14344  acl_save_prefix="$prefix"
14345  prefix="$acl_final_prefix"
14346  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14347  prefix="$acl_save_prefix"
14348
14349
14350# Check whether --with-gnu-ld was given.
14351if test "${with_gnu_ld+set}" = set; then :
14352  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14353else
14354  with_gnu_ld=no
14355fi
14356
14357# Prepare PATH_SEPARATOR.
14358# The user is always right.
14359if test "${PATH_SEPARATOR+set}" != set; then
14360  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14361  # contains only /bin. Note that ksh looks also at the FPATH variable,
14362  # so we have to set that as well for the test.
14363  PATH_SEPARATOR=:
14364  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14365    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14366           || PATH_SEPARATOR=';'
14367       }
14368fi
14369ac_prog=ld
14370if test "$GCC" = yes; then
14371  # Check if gcc -print-prog-name=ld gives a path.
14372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14373$as_echo_n "checking for ld used by GCC... " >&6; }
14374  case $host in
14375  *-*-mingw*)
14376    # gcc leaves a trailing carriage return which upsets mingw
14377    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14378  *)
14379    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14380  esac
14381  case $ac_prog in
14382    # Accept absolute paths.
14383    [\\/]* | [A-Za-z]:[\\/]*)
14384      re_direlt='/[^/][^/]*/\.\./'
14385      # Canonicalize the path of ld
14386      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14387      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14388        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14389      done
14390      test -z "$LD" && LD="$ac_prog"
14391      ;;
14392  "")
14393    # If it fails, then pretend we aren't using GCC.
14394    ac_prog=ld
14395    ;;
14396  *)
14397    # If it is relative, then search for the first ld in PATH.
14398    with_gnu_ld=unknown
14399    ;;
14400  esac
14401elif test "$with_gnu_ld" = yes; then
14402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14403$as_echo_n "checking for GNU ld... " >&6; }
14404else
14405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14406$as_echo_n "checking for non-GNU ld... " >&6; }
14407fi
14408if ${acl_cv_path_LD+:} false; then :
14409  $as_echo_n "(cached) " >&6
14410else
14411  if test -z "$LD"; then
14412  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14413  for ac_dir in $PATH; do
14414    test -z "$ac_dir" && ac_dir=.
14415    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14416      acl_cv_path_LD="$ac_dir/$ac_prog"
14417      # Check to see if the program is GNU ld.  I'd rather use --version,
14418      # but apparently some GNU ld's only accept -v.
14419      # Break only if it was the GNU/non-GNU ld that we prefer.
14420      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14421      *GNU* | *'with BFD'*)
14422        test "$with_gnu_ld" != no && break ;;
14423      *)
14424        test "$with_gnu_ld" != yes && break ;;
14425      esac
14426    fi
14427  done
14428  IFS="$ac_save_ifs"
14429else
14430  acl_cv_path_LD="$LD" # Let the user override the test with a path.
14431fi
14432fi
14433
14434LD="$acl_cv_path_LD"
14435if test -n "$LD"; then
14436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14437$as_echo "$LD" >&6; }
14438else
14439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440$as_echo "no" >&6; }
14441fi
14442test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14444$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14445if ${acl_cv_prog_gnu_ld+:} false; then :
14446  $as_echo_n "(cached) " >&6
14447else
14448  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14449case `$LD -v 2>&1 </dev/null` in
14450*GNU* | *'with BFD'*)
14451  acl_cv_prog_gnu_ld=yes ;;
14452*)
14453  acl_cv_prog_gnu_ld=no ;;
14454esac
14455fi
14456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14457$as_echo "$acl_cv_prog_gnu_ld" >&6; }
14458with_gnu_ld=$acl_cv_prog_gnu_ld
14459
14460
14461
14462
14463                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14464$as_echo_n "checking for shared library run path origin... " >&6; }
14465if ${acl_cv_rpath+:} false; then :
14466  $as_echo_n "(cached) " >&6
14467else
14468
14469    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14470    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14471    . ./conftest.sh
14472    rm -f ./conftest.sh
14473    acl_cv_rpath=done
14474
14475fi
14476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14477$as_echo "$acl_cv_rpath" >&6; }
14478  wl="$acl_cv_wl"
14479  acl_libext="$acl_cv_libext"
14480  acl_shlibext="$acl_cv_shlibext"
14481  acl_libname_spec="$acl_cv_libname_spec"
14482  acl_library_names_spec="$acl_cv_library_names_spec"
14483  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14484  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14485  acl_hardcode_direct="$acl_cv_hardcode_direct"
14486  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14487    # Check whether --enable-rpath was given.
14488if test "${enable_rpath+set}" = set; then :
14489  enableval=$enable_rpath; :
14490else
14491  enable_rpath=yes
14492fi
14493
14494
14495
14496
14497  acl_libdirstem=lib
14498  acl_libdirstem2=
14499  case "$host_os" in
14500    solaris*)
14501                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14502$as_echo_n "checking for 64-bit host... " >&6; }
14503if ${gl_cv_solaris_64bit+:} false; then :
14504  $as_echo_n "(cached) " >&6
14505else
14506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507/* end confdefs.h.  */
14508
14509#ifdef _LP64
14510sixtyfour bits
14511#endif
14512
14513_ACEOF
14514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14515  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
14516  gl_cv_solaris_64bit=yes
14517else
14518  gl_cv_solaris_64bit=no
14519fi
14520rm -f conftest*
14521
14522
14523fi
14524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14525$as_echo "$gl_cv_solaris_64bit" >&6; }
14526      if test $gl_cv_solaris_64bit = yes; then
14527        acl_libdirstem=lib/64
14528        case "$host_cpu" in
14529          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
14530          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14531        esac
14532      fi
14533      ;;
14534    *)
14535      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14536      if test -n "$searchpath"; then
14537        acl_save_IFS="${IFS= 	}"; IFS=":"
14538        for searchdir in $searchpath; do
14539          if test -d "$searchdir"; then
14540            case "$searchdir" in
14541              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14542              */../ | */.. )
14543                # Better ignore directories of this form. They are misleading.
14544                ;;
14545              *) searchdir=`cd "$searchdir" && pwd`
14546                 case "$searchdir" in
14547                   */lib64 ) acl_libdirstem=lib64 ;;
14548                 esac ;;
14549            esac
14550          fi
14551        done
14552        IFS="$acl_save_IFS"
14553      fi
14554      ;;
14555  esac
14556  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569    use_additional=yes
14570
14571  acl_save_prefix="$prefix"
14572  prefix="$acl_final_prefix"
14573  acl_save_exec_prefix="$exec_prefix"
14574  exec_prefix="$acl_final_exec_prefix"
14575
14576    eval additional_includedir=\"$includedir\"
14577    eval additional_libdir=\"$libdir\"
14578
14579  exec_prefix="$acl_save_exec_prefix"
14580  prefix="$acl_save_prefix"
14581
14582
14583# Check whether --with-libiconv-prefix was given.
14584if test "${with_libiconv_prefix+set}" = set; then :
14585  withval=$with_libiconv_prefix;
14586    if test "X$withval" = "Xno"; then
14587      use_additional=no
14588    else
14589      if test "X$withval" = "X"; then
14590
14591  acl_save_prefix="$prefix"
14592  prefix="$acl_final_prefix"
14593  acl_save_exec_prefix="$exec_prefix"
14594  exec_prefix="$acl_final_exec_prefix"
14595
14596          eval additional_includedir=\"$includedir\"
14597          eval additional_libdir=\"$libdir\"
14598
14599  exec_prefix="$acl_save_exec_prefix"
14600  prefix="$acl_save_prefix"
14601
14602      else
14603        additional_includedir="$withval/include"
14604        additional_libdir="$withval/$acl_libdirstem"
14605        if test "$acl_libdirstem2" != "$acl_libdirstem" \
14606           && ! test -d "$withval/$acl_libdirstem"; then
14607          additional_libdir="$withval/$acl_libdirstem2"
14608        fi
14609      fi
14610    fi
14611
14612fi
14613
14614      LIBICONV=
14615  LTLIBICONV=
14616  INCICONV=
14617  LIBICONV_PREFIX=
14618      HAVE_LIBICONV=
14619  rpathdirs=
14620  ltrpathdirs=
14621  names_already_handled=
14622  names_next_round='iconv '
14623  while test -n "$names_next_round"; do
14624    names_this_round="$names_next_round"
14625    names_next_round=
14626    for name in $names_this_round; do
14627      already_handled=
14628      for n in $names_already_handled; do
14629        if test "$n" = "$name"; then
14630          already_handled=yes
14631          break
14632        fi
14633      done
14634      if test -z "$already_handled"; then
14635        names_already_handled="$names_already_handled $name"
14636                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14637        eval value=\"\$HAVE_LIB$uppername\"
14638        if test -n "$value"; then
14639          if test "$value" = yes; then
14640            eval value=\"\$LIB$uppername\"
14641            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14642            eval value=\"\$LTLIB$uppername\"
14643            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14644          else
14645                                    :
14646          fi
14647        else
14648                              found_dir=
14649          found_la=
14650          found_so=
14651          found_a=
14652          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14653          if test -n "$acl_shlibext"; then
14654            shrext=".$acl_shlibext"             # typically: shrext=.so
14655          else
14656            shrext=
14657          fi
14658          if test $use_additional = yes; then
14659            dir="$additional_libdir"
14660                                    if test -n "$acl_shlibext"; then
14661              if test -f "$dir/$libname$shrext"; then
14662                found_dir="$dir"
14663                found_so="$dir/$libname$shrext"
14664              else
14665                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14666                  ver=`(cd "$dir" && \
14667                        for f in "$libname$shrext".*; do echo "$f"; done \
14668                        | sed -e "s,^$libname$shrext\\\\.,," \
14669                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14670                        | sed 1q ) 2>/dev/null`
14671                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14672                    found_dir="$dir"
14673                    found_so="$dir/$libname$shrext.$ver"
14674                  fi
14675                else
14676                  eval library_names=\"$acl_library_names_spec\"
14677                  for f in $library_names; do
14678                    if test -f "$dir/$f"; then
14679                      found_dir="$dir"
14680                      found_so="$dir/$f"
14681                      break
14682                    fi
14683                  done
14684                fi
14685              fi
14686            fi
14687                        if test "X$found_dir" = "X"; then
14688              if test -f "$dir/$libname.$acl_libext"; then
14689                found_dir="$dir"
14690                found_a="$dir/$libname.$acl_libext"
14691              fi
14692            fi
14693            if test "X$found_dir" != "X"; then
14694              if test -f "$dir/$libname.la"; then
14695                found_la="$dir/$libname.la"
14696              fi
14697            fi
14698          fi
14699          if test "X$found_dir" = "X"; then
14700            for x in $LDFLAGS $LTLIBICONV; do
14701
14702  acl_save_prefix="$prefix"
14703  prefix="$acl_final_prefix"
14704  acl_save_exec_prefix="$exec_prefix"
14705  exec_prefix="$acl_final_exec_prefix"
14706  eval x=\"$x\"
14707  exec_prefix="$acl_save_exec_prefix"
14708  prefix="$acl_save_prefix"
14709
14710              case "$x" in
14711                -L*)
14712                  dir=`echo "X$x" | sed -e 's/^X-L//'`
14713                                    if test -n "$acl_shlibext"; then
14714                    if test -f "$dir/$libname$shrext"; then
14715                      found_dir="$dir"
14716                      found_so="$dir/$libname$shrext"
14717                    else
14718                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14719                        ver=`(cd "$dir" && \
14720                              for f in "$libname$shrext".*; do echo "$f"; done \
14721                              | sed -e "s,^$libname$shrext\\\\.,," \
14722                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14723                              | sed 1q ) 2>/dev/null`
14724                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14725                          found_dir="$dir"
14726                          found_so="$dir/$libname$shrext.$ver"
14727                        fi
14728                      else
14729                        eval library_names=\"$acl_library_names_spec\"
14730                        for f in $library_names; do
14731                          if test -f "$dir/$f"; then
14732                            found_dir="$dir"
14733                            found_so="$dir/$f"
14734                            break
14735                          fi
14736                        done
14737                      fi
14738                    fi
14739                  fi
14740                                    if test "X$found_dir" = "X"; then
14741                    if test -f "$dir/$libname.$acl_libext"; then
14742                      found_dir="$dir"
14743                      found_a="$dir/$libname.$acl_libext"
14744                    fi
14745                  fi
14746                  if test "X$found_dir" != "X"; then
14747                    if test -f "$dir/$libname.la"; then
14748                      found_la="$dir/$libname.la"
14749                    fi
14750                  fi
14751                  ;;
14752              esac
14753              if test "X$found_dir" != "X"; then
14754                break
14755              fi
14756            done
14757          fi
14758          if test "X$found_dir" != "X"; then
14759                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14760            if test "X$found_so" != "X"; then
14761                                                        if test "$enable_rpath" = no \
14762                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14763                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14764                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14765              else
14766                                                                                haveit=
14767                for x in $ltrpathdirs; do
14768                  if test "X$x" = "X$found_dir"; then
14769                    haveit=yes
14770                    break
14771                  fi
14772                done
14773                if test -z "$haveit"; then
14774                  ltrpathdirs="$ltrpathdirs $found_dir"
14775                fi
14776                                if test "$acl_hardcode_direct" = yes; then
14777                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14778                else
14779                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14780                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14781                                                            haveit=
14782                    for x in $rpathdirs; do
14783                      if test "X$x" = "X$found_dir"; then
14784                        haveit=yes
14785                        break
14786                      fi
14787                    done
14788                    if test -z "$haveit"; then
14789                      rpathdirs="$rpathdirs $found_dir"
14790                    fi
14791                  else
14792                                                                                haveit=
14793                    for x in $LDFLAGS $LIBICONV; do
14794
14795  acl_save_prefix="$prefix"
14796  prefix="$acl_final_prefix"
14797  acl_save_exec_prefix="$exec_prefix"
14798  exec_prefix="$acl_final_exec_prefix"
14799  eval x=\"$x\"
14800  exec_prefix="$acl_save_exec_prefix"
14801  prefix="$acl_save_prefix"
14802
14803                      if test "X$x" = "X-L$found_dir"; then
14804                        haveit=yes
14805                        break
14806                      fi
14807                    done
14808                    if test -z "$haveit"; then
14809                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14810                    fi
14811                    if test "$acl_hardcode_minus_L" != no; then
14812                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14813                    else
14814                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14815                    fi
14816                  fi
14817                fi
14818              fi
14819            else
14820              if test "X$found_a" != "X"; then
14821                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14822              else
14823                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14824              fi
14825            fi
14826                        additional_includedir=
14827            case "$found_dir" in
14828              */$acl_libdirstem | */$acl_libdirstem/)
14829                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14830                if test "$name" = 'iconv'; then
14831                  LIBICONV_PREFIX="$basedir"
14832                fi
14833                additional_includedir="$basedir/include"
14834                ;;
14835              */$acl_libdirstem2 | */$acl_libdirstem2/)
14836                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14837                if test "$name" = 'iconv'; then
14838                  LIBICONV_PREFIX="$basedir"
14839                fi
14840                additional_includedir="$basedir/include"
14841                ;;
14842            esac
14843            if test "X$additional_includedir" != "X"; then
14844                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
14845                haveit=
14846                if test "X$additional_includedir" = "X/usr/local/include"; then
14847                  if test -n "$GCC"; then
14848                    case $host_os in
14849                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14850                    esac
14851                  fi
14852                fi
14853                if test -z "$haveit"; then
14854                  for x in $CPPFLAGS $INCICONV; do
14855
14856  acl_save_prefix="$prefix"
14857  prefix="$acl_final_prefix"
14858  acl_save_exec_prefix="$exec_prefix"
14859  exec_prefix="$acl_final_exec_prefix"
14860  eval x=\"$x\"
14861  exec_prefix="$acl_save_exec_prefix"
14862  prefix="$acl_save_prefix"
14863
14864                    if test "X$x" = "X-I$additional_includedir"; then
14865                      haveit=yes
14866                      break
14867                    fi
14868                  done
14869                  if test -z "$haveit"; then
14870                    if test -d "$additional_includedir"; then
14871                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14872                    fi
14873                  fi
14874                fi
14875              fi
14876            fi
14877                        if test -n "$found_la"; then
14878                                                        save_libdir="$libdir"
14879              case "$found_la" in
14880                */* | *\\*) . "$found_la" ;;
14881                *) . "./$found_la" ;;
14882              esac
14883              libdir="$save_libdir"
14884                            for dep in $dependency_libs; do
14885                case "$dep" in
14886                  -L*)
14887                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14888                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14889                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14890                      haveit=
14891                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14892                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14893                        if test -n "$GCC"; then
14894                          case $host_os in
14895                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14896                          esac
14897                        fi
14898                      fi
14899                      if test -z "$haveit"; then
14900                        haveit=
14901                        for x in $LDFLAGS $LIBICONV; do
14902
14903  acl_save_prefix="$prefix"
14904  prefix="$acl_final_prefix"
14905  acl_save_exec_prefix="$exec_prefix"
14906  exec_prefix="$acl_final_exec_prefix"
14907  eval x=\"$x\"
14908  exec_prefix="$acl_save_exec_prefix"
14909  prefix="$acl_save_prefix"
14910
14911                          if test "X$x" = "X-L$additional_libdir"; then
14912                            haveit=yes
14913                            break
14914                          fi
14915                        done
14916                        if test -z "$haveit"; then
14917                          if test -d "$additional_libdir"; then
14918                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14919                          fi
14920                        fi
14921                        haveit=
14922                        for x in $LDFLAGS $LTLIBICONV; do
14923
14924  acl_save_prefix="$prefix"
14925  prefix="$acl_final_prefix"
14926  acl_save_exec_prefix="$exec_prefix"
14927  exec_prefix="$acl_final_exec_prefix"
14928  eval x=\"$x\"
14929  exec_prefix="$acl_save_exec_prefix"
14930  prefix="$acl_save_prefix"
14931
14932                          if test "X$x" = "X-L$additional_libdir"; then
14933                            haveit=yes
14934                            break
14935                          fi
14936                        done
14937                        if test -z "$haveit"; then
14938                          if test -d "$additional_libdir"; then
14939                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14940                          fi
14941                        fi
14942                      fi
14943                    fi
14944                    ;;
14945                  -R*)
14946                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14947                    if test "$enable_rpath" != no; then
14948                                                                  haveit=
14949                      for x in $rpathdirs; do
14950                        if test "X$x" = "X$dir"; then
14951                          haveit=yes
14952                          break
14953                        fi
14954                      done
14955                      if test -z "$haveit"; then
14956                        rpathdirs="$rpathdirs $dir"
14957                      fi
14958                                                                  haveit=
14959                      for x in $ltrpathdirs; do
14960                        if test "X$x" = "X$dir"; then
14961                          haveit=yes
14962                          break
14963                        fi
14964                      done
14965                      if test -z "$haveit"; then
14966                        ltrpathdirs="$ltrpathdirs $dir"
14967                      fi
14968                    fi
14969                    ;;
14970                  -l*)
14971                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14972                    ;;
14973                  *.la)
14974                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14975                    ;;
14976                  *)
14977                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14978                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14979                    ;;
14980                esac
14981              done
14982            fi
14983          else
14984                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14985            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14986          fi
14987        fi
14988      fi
14989    done
14990  done
14991  if test "X$rpathdirs" != "X"; then
14992    if test -n "$acl_hardcode_libdir_separator"; then
14993                        alldirs=
14994      for found_dir in $rpathdirs; do
14995        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14996      done
14997            acl_save_libdir="$libdir"
14998      libdir="$alldirs"
14999      eval flag=\"$acl_hardcode_libdir_flag_spec\"
15000      libdir="$acl_save_libdir"
15001      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15002    else
15003            for found_dir in $rpathdirs; do
15004        acl_save_libdir="$libdir"
15005        libdir="$found_dir"
15006        eval flag=\"$acl_hardcode_libdir_flag_spec\"
15007        libdir="$acl_save_libdir"
15008        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15009      done
15010    fi
15011  fi
15012  if test "X$ltrpathdirs" != "X"; then
15013            for found_dir in $ltrpathdirs; do
15014      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15015    done
15016  fi
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029          am_save_CPPFLAGS="$CPPFLAGS"
15030
15031  for element in $INCICONV; do
15032    haveit=
15033    for x in $CPPFLAGS; do
15034
15035  acl_save_prefix="$prefix"
15036  prefix="$acl_final_prefix"
15037  acl_save_exec_prefix="$exec_prefix"
15038  exec_prefix="$acl_final_exec_prefix"
15039  eval x=\"$x\"
15040  exec_prefix="$acl_save_exec_prefix"
15041  prefix="$acl_save_prefix"
15042
15043      if test "X$x" = "X$element"; then
15044        haveit=yes
15045        break
15046      fi
15047    done
15048    if test -z "$haveit"; then
15049      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15050    fi
15051  done
15052
15053
15054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15055$as_echo_n "checking for iconv... " >&6; }
15056if ${am_cv_func_iconv+:} false; then :
15057  $as_echo_n "(cached) " >&6
15058else
15059
15060    am_cv_func_iconv="no, consider installing GNU libiconv"
15061    am_cv_lib_iconv=no
15062    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063/* end confdefs.h.  */
15064
15065#include <stdlib.h>
15066#include <iconv.h>
15067
15068int
15069main ()
15070{
15071iconv_t cd = iconv_open("","");
15072           iconv(cd,NULL,NULL,NULL,NULL);
15073           iconv_close(cd);
15074  ;
15075  return 0;
15076}
15077_ACEOF
15078if ac_fn_c_try_link "$LINENO"; then :
15079  am_cv_func_iconv=yes
15080fi
15081rm -f core conftest.err conftest.$ac_objext \
15082    conftest$ac_exeext conftest.$ac_ext
15083    if test "$am_cv_func_iconv" != yes; then
15084      am_save_LIBS="$LIBS"
15085      LIBS="$LIBS $LIBICONV"
15086      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087/* end confdefs.h.  */
15088
15089#include <stdlib.h>
15090#include <iconv.h>
15091
15092int
15093main ()
15094{
15095iconv_t cd = iconv_open("","");
15096             iconv(cd,NULL,NULL,NULL,NULL);
15097             iconv_close(cd);
15098  ;
15099  return 0;
15100}
15101_ACEOF
15102if ac_fn_c_try_link "$LINENO"; then :
15103  am_cv_lib_iconv=yes
15104        am_cv_func_iconv=yes
15105fi
15106rm -f core conftest.err conftest.$ac_objext \
15107    conftest$ac_exeext conftest.$ac_ext
15108      LIBS="$am_save_LIBS"
15109    fi
15110
15111fi
15112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15113$as_echo "$am_cv_func_iconv" >&6; }
15114  if test "$am_cv_func_iconv" = yes; then
15115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15116$as_echo_n "checking for working iconv... " >&6; }
15117if ${am_cv_func_iconv_works+:} false; then :
15118  $as_echo_n "(cached) " >&6
15119else
15120
15121                  am_save_LIBS="$LIBS"
15122      if test $am_cv_lib_iconv = yes; then
15123        LIBS="$LIBS $LIBICONV"
15124      fi
15125      am_cv_func_iconv_works=no
15126      for ac_iconv_const in '' 'const'; do
15127        if test "$cross_compiling" = yes; then :
15128  case "$host_os" in
15129             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15130             *)            am_cv_func_iconv_works="guessing yes" ;;
15131           esac
15132else
15133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134/* end confdefs.h.  */
15135
15136#include <iconv.h>
15137#include <string.h>
15138
15139#ifndef ICONV_CONST
15140# define ICONV_CONST $ac_iconv_const
15141#endif
15142
15143int
15144main ()
15145{
15146int result = 0;
15147  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15148     returns.  */
15149  {
15150    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15151    if (cd_utf8_to_88591 != (iconv_t)(-1))
15152      {
15153        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
15154        char buf[10];
15155        ICONV_CONST char *inptr = input;
15156        size_t inbytesleft = strlen (input);
15157        char *outptr = buf;
15158        size_t outbytesleft = sizeof (buf);
15159        size_t res = iconv (cd_utf8_to_88591,
15160                            &inptr, &inbytesleft,
15161                            &outptr, &outbytesleft);
15162        if (res == 0)
15163          result |= 1;
15164        iconv_close (cd_utf8_to_88591);
15165      }
15166  }
15167  /* Test against Solaris 10 bug: Failures are not distinguishable from
15168     successful returns.  */
15169  {
15170    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15171    if (cd_ascii_to_88591 != (iconv_t)(-1))
15172      {
15173        static ICONV_CONST char input[] = "\263";
15174        char buf[10];
15175        ICONV_CONST char *inptr = input;
15176        size_t inbytesleft = strlen (input);
15177        char *outptr = buf;
15178        size_t outbytesleft = sizeof (buf);
15179        size_t res = iconv (cd_ascii_to_88591,
15180                            &inptr, &inbytesleft,
15181                            &outptr, &outbytesleft);
15182        if (res == 0)
15183          result |= 2;
15184        iconv_close (cd_ascii_to_88591);
15185      }
15186  }
15187  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
15188  {
15189    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
15190    if (cd_88591_to_utf8 != (iconv_t)(-1))
15191      {
15192        static ICONV_CONST char input[] = "\304";
15193        static char buf[2] = { (char)0xDE, (char)0xAD };
15194        ICONV_CONST char *inptr = input;
15195        size_t inbytesleft = 1;
15196        char *outptr = buf;
15197        size_t outbytesleft = 1;
15198        size_t res = iconv (cd_88591_to_utf8,
15199                            &inptr, &inbytesleft,
15200                            &outptr, &outbytesleft);
15201        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
15202          result |= 4;
15203        iconv_close (cd_88591_to_utf8);
15204      }
15205  }
15206#if 0 /* This bug could be worked around by the caller.  */
15207  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15208  {
15209    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15210    if (cd_88591_to_utf8 != (iconv_t)(-1))
15211      {
15212        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15213        char buf[50];
15214        ICONV_CONST char *inptr = input;
15215        size_t inbytesleft = strlen (input);
15216        char *outptr = buf;
15217        size_t outbytesleft = sizeof (buf);
15218        size_t res = iconv (cd_88591_to_utf8,
15219                            &inptr, &inbytesleft,
15220                            &outptr, &outbytesleft);
15221        if ((int)res > 0)
15222          result |= 8;
15223        iconv_close (cd_88591_to_utf8);
15224      }
15225  }
15226#endif
15227  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15228     provided.  */
15229  if (/* Try standardized names.  */
15230      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15231      /* Try IRIX, OSF/1 names.  */
15232      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15233      /* Try AIX names.  */
15234      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15235      /* Try HP-UX names.  */
15236      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15237    result |= 16;
15238  return result;
15239
15240  ;
15241  return 0;
15242}
15243_ACEOF
15244if ac_fn_c_try_run "$LINENO"; then :
15245  am_cv_func_iconv_works=yes
15246fi
15247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15248  conftest.$ac_objext conftest.beam conftest.$ac_ext
15249fi
15250
15251        test "$am_cv_func_iconv_works" = no || break
15252      done
15253      LIBS="$am_save_LIBS"
15254
15255fi
15256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15257$as_echo "$am_cv_func_iconv_works" >&6; }
15258    case "$am_cv_func_iconv_works" in
15259      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15260      *)   am_func_iconv=yes ;;
15261    esac
15262  else
15263    am_func_iconv=no am_cv_lib_iconv=no
15264  fi
15265  if test "$am_func_iconv" = yes; then
15266
15267$as_echo "#define HAVE_ICONV 1" >>confdefs.h
15268
15269  fi
15270  if test "$am_cv_lib_iconv" = yes; then
15271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15272$as_echo_n "checking how to link with libiconv... " >&6; }
15273    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15274$as_echo "$LIBICONV" >&6; }
15275  else
15276            CPPFLAGS="$am_save_CPPFLAGS"
15277    LIBICONV=
15278    LTLIBICONV=
15279  fi
15280
15281
15282
15283  if test "$am_cv_func_iconv" = yes; then
15284    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15285$as_echo_n "checking for iconv declaration... " >&6; }
15286    if ${am_cv_proto_iconv+:} false; then :
15287  $as_echo_n "(cached) " >&6
15288else
15289
15290      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291/* end confdefs.h.  */
15292
15293#include <stdlib.h>
15294#include <iconv.h>
15295extern
15296#ifdef __cplusplus
15297"C"
15298#endif
15299#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
15300size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15301#else
15302size_t iconv();
15303#endif
15304
15305int
15306main ()
15307{
15308
15309  ;
15310  return 0;
15311}
15312_ACEOF
15313if ac_fn_c_try_compile "$LINENO"; then :
15314  am_cv_proto_iconv_arg1=""
15315else
15316  am_cv_proto_iconv_arg1="const"
15317fi
15318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15319      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
15320fi
15321
15322    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15323    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
15324         $am_cv_proto_iconv" >&5
15325$as_echo "
15326         $am_cv_proto_iconv" >&6; }
15327
15328cat >>confdefs.h <<_ACEOF
15329#define ICONV_CONST $am_cv_proto_iconv_arg1
15330_ACEOF
15331
15332
15333  fi
15334
15335  for ac_header in iconv.h
15336do :
15337  ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "#include <stdlib.h>
15338"
15339if test "x$ac_cv_header_iconv_h" = xyes; then :
15340  cat >>confdefs.h <<_ACEOF
15341#define HAVE_ICONV_H 1
15342_ACEOF
15343
15344fi
15345
15346done
15347
15348  if test "x$am_cv_func_iconv" = "xyes"; then
15349    for ac_header in localcharset.h
15350do :
15351  ac_fn_c_check_header_mongrel "$LINENO" "localcharset.h" "ac_cv_header_localcharset_h" "$ac_includes_default"
15352if test "x$ac_cv_header_localcharset_h" = xyes; then :
15353  cat >>confdefs.h <<_ACEOF
15354#define HAVE_LOCALCHARSET_H 1
15355_ACEOF
15356
15357fi
15358
15359done
15360
15361    am_save_LIBS="$LIBS"
15362    LIBS="${LIBS} ${LIBICONV}"
15363    for ac_func in locale_charset
15364do :
15365  ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
15366if test "x$ac_cv_func_locale_charset" = xyes; then :
15367  cat >>confdefs.h <<_ACEOF
15368#define HAVE_LOCALE_CHARSET 1
15369_ACEOF
15370
15371fi
15372done
15373
15374    LIBS="${am_save_LIBS}"
15375    if test "x$ac_cv_func_locale_charset" != "xyes"; then
15376      # If locale_charset() is not in libiconv, we have to find libcharset.
15377      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -lcharset" >&5
15378$as_echo_n "checking for locale_charset in -lcharset... " >&6; }
15379if ${ac_cv_lib_charset_locale_charset+:} false; then :
15380  $as_echo_n "(cached) " >&6
15381else
15382  ac_check_lib_save_LIBS=$LIBS
15383LIBS="-lcharset  $LIBS"
15384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385/* end confdefs.h.  */
15386
15387/* Override any GCC internal prototype to avoid an error.
15388   Use char because int might match the return type of a GCC
15389   builtin and then its argument prototype would still apply.  */
15390#ifdef __cplusplus
15391extern "C"
15392#endif
15393char locale_charset ();
15394int
15395main ()
15396{
15397return locale_charset ();
15398  ;
15399  return 0;
15400}
15401_ACEOF
15402if ac_fn_c_try_link "$LINENO"; then :
15403  ac_cv_lib_charset_locale_charset=yes
15404else
15405  ac_cv_lib_charset_locale_charset=no
15406fi
15407rm -f core conftest.err conftest.$ac_objext \
15408    conftest$ac_exeext conftest.$ac_ext
15409LIBS=$ac_check_lib_save_LIBS
15410fi
15411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_charset_locale_charset" >&5
15412$as_echo "$ac_cv_lib_charset_locale_charset" >&6; }
15413if test "x$ac_cv_lib_charset_locale_charset" = xyes; then :
15414  cat >>confdefs.h <<_ACEOF
15415#define HAVE_LIBCHARSET 1
15416_ACEOF
15417
15418  LIBS="-lcharset $LIBS"
15419
15420fi
15421
15422    fi
15423  fi
15424fi
15425
15426
15427# Check whether --with-lz4 was given.
15428if test "${with_lz4+set}" = set; then :
15429  withval=$with_lz4;
15430fi
15431
15432
15433if test "x$with_lz4" != "xno"; then
15434  for ac_header in lz4.h lz4hc.h
15435do :
15436  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15437ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15439  cat >>confdefs.h <<_ACEOF
15440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15441_ACEOF
15442
15443fi
15444
15445done
15446
15447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_decompress_safe in -llz4" >&5
15448$as_echo_n "checking for LZ4_decompress_safe in -llz4... " >&6; }
15449if ${ac_cv_lib_lz4_LZ4_decompress_safe+:} false; then :
15450  $as_echo_n "(cached) " >&6
15451else
15452  ac_check_lib_save_LIBS=$LIBS
15453LIBS="-llz4  $LIBS"
15454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15455/* end confdefs.h.  */
15456
15457/* Override any GCC internal prototype to avoid an error.
15458   Use char because int might match the return type of a GCC
15459   builtin and then its argument prototype would still apply.  */
15460#ifdef __cplusplus
15461extern "C"
15462#endif
15463char LZ4_decompress_safe ();
15464int
15465main ()
15466{
15467return LZ4_decompress_safe ();
15468  ;
15469  return 0;
15470}
15471_ACEOF
15472if ac_fn_c_try_link "$LINENO"; then :
15473  ac_cv_lib_lz4_LZ4_decompress_safe=yes
15474else
15475  ac_cv_lib_lz4_LZ4_decompress_safe=no
15476fi
15477rm -f core conftest.err conftest.$ac_objext \
15478    conftest$ac_exeext conftest.$ac_ext
15479LIBS=$ac_check_lib_save_LIBS
15480fi
15481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_decompress_safe" >&5
15482$as_echo "$ac_cv_lib_lz4_LZ4_decompress_safe" >&6; }
15483if test "x$ac_cv_lib_lz4_LZ4_decompress_safe" = xyes; then :
15484  cat >>confdefs.h <<_ACEOF
15485#define HAVE_LIBLZ4 1
15486_ACEOF
15487
15488  LIBS="-llz4 $LIBS"
15489
15490fi
15491
15492fi
15493
15494
15495# Check whether --with-zstd was given.
15496if test "${with_zstd+set}" = set; then :
15497  withval=$with_zstd;
15498fi
15499
15500
15501if test "x$with_zstd" != "xno"; then
15502  for ac_header in zstd.h
15503do :
15504  ac_fn_c_check_header_mongrel "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
15505if test "x$ac_cv_header_zstd_h" = xyes; then :
15506  cat >>confdefs.h <<_ACEOF
15507#define HAVE_ZSTD_H 1
15508_ACEOF
15509
15510fi
15511
15512done
15513
15514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compressStream in -lzstd" >&5
15515$as_echo_n "checking for ZSTD_compressStream in -lzstd... " >&6; }
15516if ${ac_cv_lib_zstd_ZSTD_compressStream+:} false; then :
15517  $as_echo_n "(cached) " >&6
15518else
15519  ac_check_lib_save_LIBS=$LIBS
15520LIBS="-lzstd  $LIBS"
15521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15522/* end confdefs.h.  */
15523
15524/* Override any GCC internal prototype to avoid an error.
15525   Use char because int might match the return type of a GCC
15526   builtin and then its argument prototype would still apply.  */
15527#ifdef __cplusplus
15528extern "C"
15529#endif
15530char ZSTD_compressStream ();
15531int
15532main ()
15533{
15534return ZSTD_compressStream ();
15535  ;
15536  return 0;
15537}
15538_ACEOF
15539if ac_fn_c_try_link "$LINENO"; then :
15540  ac_cv_lib_zstd_ZSTD_compressStream=yes
15541else
15542  ac_cv_lib_zstd_ZSTD_compressStream=no
15543fi
15544rm -f core conftest.err conftest.$ac_objext \
15545    conftest$ac_exeext conftest.$ac_ext
15546LIBS=$ac_check_lib_save_LIBS
15547fi
15548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compressStream" >&5
15549$as_echo "$ac_cv_lib_zstd_ZSTD_compressStream" >&6; }
15550if test "x$ac_cv_lib_zstd_ZSTD_compressStream" = xyes; then :
15551  cat >>confdefs.h <<_ACEOF
15552#define HAVE_LIBZSTD 1
15553_ACEOF
15554
15555  LIBS="-lzstd $LIBS"
15556
15557fi
15558
15559fi
15560
15561
15562# Check whether --with-lzma was given.
15563if test "${with_lzma+set}" = set; then :
15564  withval=$with_lzma;
15565fi
15566
15567
15568if test "x$with_lzma" != "xno"; then
15569  for ac_header in lzma.h
15570do :
15571  ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
15572if test "x$ac_cv_header_lzma_h" = xyes; then :
15573  cat >>confdefs.h <<_ACEOF
15574#define HAVE_LZMA_H 1
15575_ACEOF
15576
15577fi
15578
15579done
15580
15581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
15582$as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; }
15583if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then :
15584  $as_echo_n "(cached) " >&6
15585else
15586  ac_check_lib_save_LIBS=$LIBS
15587LIBS="-llzma  $LIBS"
15588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15589/* end confdefs.h.  */
15590
15591/* Override any GCC internal prototype to avoid an error.
15592   Use char because int might match the return type of a GCC
15593   builtin and then its argument prototype would still apply.  */
15594#ifdef __cplusplus
15595extern "C"
15596#endif
15597char lzma_stream_decoder ();
15598int
15599main ()
15600{
15601return lzma_stream_decoder ();
15602  ;
15603  return 0;
15604}
15605_ACEOF
15606if ac_fn_c_try_link "$LINENO"; then :
15607  ac_cv_lib_lzma_lzma_stream_decoder=yes
15608else
15609  ac_cv_lib_lzma_lzma_stream_decoder=no
15610fi
15611rm -f core conftest.err conftest.$ac_objext \
15612    conftest$ac_exeext conftest.$ac_ext
15613LIBS=$ac_check_lib_save_LIBS
15614fi
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
15616$as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
15617if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then :
15618  cat >>confdefs.h <<_ACEOF
15619#define HAVE_LIBLZMA 1
15620_ACEOF
15621
15622  LIBS="-llzma $LIBS"
15623
15624fi
15625
15626  # Some pre-release (but widely distributed) versions of liblzma
15627  # included a disabled version of lzma_stream_encoder_mt that
15628  # fools a naive AC_CHECK_LIB or AC_CHECK_FUNC, so we need
15629  # to do something more complex here:
15630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have multithread support in lzma" >&5
15631$as_echo_n "checking whether we have multithread support in lzma... " >&6; }
15632if ${ac_cv_lzma_has_mt+:} false; then :
15633  $as_echo_n "(cached) " >&6
15634else
15635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636/* end confdefs.h.  */
15637
15638      #include <lzma.h>
15639                       #if LZMA_VERSION < 50020000
15640                       #error unsupported
15641                       #endif
15642int
15643main ()
15644{
15645lzma_stream_encoder_mt(0, 0);
15646  ;
15647  return 0;
15648}
15649_ACEOF
15650if ac_fn_c_try_link "$LINENO"; then :
15651  ac_cv_lzma_has_mt=yes
15652else
15653  ac_cv_lzma_has_mt=no
15654fi
15655rm -f core conftest.err conftest.$ac_objext \
15656    conftest$ac_exeext conftest.$ac_ext
15657fi
15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lzma_has_mt" >&5
15659$as_echo "$ac_cv_lzma_has_mt" >&6; }
15660  if test "x$ac_cv_lzma_has_mt" != xno; then
15661
15662$as_echo "#define HAVE_LZMA_STREAM_ENCODER_MT 1" >>confdefs.h
15663
15664  fi
15665fi
15666
15667
15668# Check whether --with-lzo2 was given.
15669if test "${with_lzo2+set}" = set; then :
15670  withval=$with_lzo2;
15671fi
15672
15673
15674if test "x$with_lzo2" = "xyes"; then
15675  for ac_header in lzo/lzoconf.h lzo/lzo1x.h
15676do :
15677  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15678ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15679if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15680  cat >>confdefs.h <<_ACEOF
15681#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15682_ACEOF
15683
15684fi
15685
15686done
15687
15688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_decompress_safe in -llzo2" >&5
15689$as_echo_n "checking for lzo1x_decompress_safe in -llzo2... " >&6; }
15690if ${ac_cv_lib_lzo2_lzo1x_decompress_safe+:} false; then :
15691  $as_echo_n "(cached) " >&6
15692else
15693  ac_check_lib_save_LIBS=$LIBS
15694LIBS="-llzo2  $LIBS"
15695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696/* end confdefs.h.  */
15697
15698/* Override any GCC internal prototype to avoid an error.
15699   Use char because int might match the return type of a GCC
15700   builtin and then its argument prototype would still apply.  */
15701#ifdef __cplusplus
15702extern "C"
15703#endif
15704char lzo1x_decompress_safe ();
15705int
15706main ()
15707{
15708return lzo1x_decompress_safe ();
15709  ;
15710  return 0;
15711}
15712_ACEOF
15713if ac_fn_c_try_link "$LINENO"; then :
15714  ac_cv_lib_lzo2_lzo1x_decompress_safe=yes
15715else
15716  ac_cv_lib_lzo2_lzo1x_decompress_safe=no
15717fi
15718rm -f core conftest.err conftest.$ac_objext \
15719    conftest$ac_exeext conftest.$ac_ext
15720LIBS=$ac_check_lib_save_LIBS
15721fi
15722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_decompress_safe" >&5
15723$as_echo "$ac_cv_lib_lzo2_lzo1x_decompress_safe" >&6; }
15724if test "x$ac_cv_lib_lzo2_lzo1x_decompress_safe" = xyes; then :
15725  cat >>confdefs.h <<_ACEOF
15726#define HAVE_LIBLZO2 1
15727_ACEOF
15728
15729  LIBS="-llzo2 $LIBS"
15730
15731fi
15732
15733fi
15734
15735
15736# Check whether --with-cng was given.
15737if test "${with_cng+set}" = set; then :
15738  withval=$with_cng;
15739fi
15740
15741
15742
15743# Check whether --with-mbedtls was given.
15744if test "${with_mbedtls+set}" = set; then :
15745  withval=$with_mbedtls;
15746fi
15747
15748
15749# Check whether --with-nettle was given.
15750if test "${with_nettle+set}" = set; then :
15751  withval=$with_nettle;
15752fi
15753
15754
15755# Check whether --with-openssl was given.
15756if test "${with_openssl+set}" = set; then :
15757  withval=$with_openssl;
15758fi
15759
15760case "$host_os" in
15761  *darwin* ) with_openssl=no ;;
15762esac
15763
15764
15765# Check whether --with-xml2 was given.
15766if test "${with_xml2+set}" = set; then :
15767  withval=$with_xml2;
15768fi
15769
15770
15771# Check whether --with-expat was given.
15772if test "${with_expat+set}" = set; then :
15773  withval=$with_expat;
15774fi
15775
15776
15777if test "x$with_xml2" != "xno"; then
15778
15779
15780
15781
15782
15783
15784
15785if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15786	if test -n "$ac_tool_prefix"; then
15787  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15788set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15790$as_echo_n "checking for $ac_word... " >&6; }
15791if ${ac_cv_path_PKG_CONFIG+:} false; then :
15792  $as_echo_n "(cached) " >&6
15793else
15794  case $PKG_CONFIG in
15795  [\\/]* | ?:[\\/]*)
15796  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15797  ;;
15798  *)
15799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15800for as_dir in $PATH
15801do
15802  IFS=$as_save_IFS
15803  test -z "$as_dir" && as_dir=.
15804    for ac_exec_ext in '' $ac_executable_extensions; do
15805  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15806    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15808    break 2
15809  fi
15810done
15811  done
15812IFS=$as_save_IFS
15813
15814  ;;
15815esac
15816fi
15817PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15818if test -n "$PKG_CONFIG"; then
15819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15820$as_echo "$PKG_CONFIG" >&6; }
15821else
15822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15823$as_echo "no" >&6; }
15824fi
15825
15826
15827fi
15828if test -z "$ac_cv_path_PKG_CONFIG"; then
15829  ac_pt_PKG_CONFIG=$PKG_CONFIG
15830  # Extract the first word of "pkg-config", so it can be a program name with args.
15831set dummy pkg-config; ac_word=$2
15832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15833$as_echo_n "checking for $ac_word... " >&6; }
15834if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15835  $as_echo_n "(cached) " >&6
15836else
15837  case $ac_pt_PKG_CONFIG in
15838  [\\/]* | ?:[\\/]*)
15839  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15840  ;;
15841  *)
15842  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15843for as_dir in $PATH
15844do
15845  IFS=$as_save_IFS
15846  test -z "$as_dir" && as_dir=.
15847    for ac_exec_ext in '' $ac_executable_extensions; do
15848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15849    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15851    break 2
15852  fi
15853done
15854  done
15855IFS=$as_save_IFS
15856
15857  ;;
15858esac
15859fi
15860ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15861if test -n "$ac_pt_PKG_CONFIG"; then
15862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15863$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15864else
15865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15866$as_echo "no" >&6; }
15867fi
15868
15869  if test "x$ac_pt_PKG_CONFIG" = x; then
15870    PKG_CONFIG=""
15871  else
15872    case $cross_compiling:$ac_tool_warned in
15873yes:)
15874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15876ac_tool_warned=yes ;;
15877esac
15878    PKG_CONFIG=$ac_pt_PKG_CONFIG
15879  fi
15880else
15881  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15882fi
15883
15884fi
15885if test -n "$PKG_CONFIG"; then
15886	_pkg_min_version=0.9.0
15887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15888$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15889	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15890		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15891$as_echo "yes" >&6; }
15892	else
15893		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15894$as_echo "no" >&6; }
15895		PKG_CONFIG=""
15896	fi
15897fi
15898
15899pkg_failed=no
15900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2_PC" >&5
15901$as_echo_n "checking for LIBXML2_PC... " >&6; }
15902
15903if test -n "$LIBXML2_PC_CFLAGS"; then
15904    pkg_cv_LIBXML2_PC_CFLAGS="$LIBXML2_PC_CFLAGS"
15905 elif test -n "$PKG_CONFIG"; then
15906    if test -n "$PKG_CONFIG" && \
15907    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
15908  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
15909  ac_status=$?
15910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15911  test $ac_status = 0; }; then
15912  pkg_cv_LIBXML2_PC_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
15913		      test "x$?" != "x0" && pkg_failed=yes
15914else
15915  pkg_failed=yes
15916fi
15917 else
15918    pkg_failed=untried
15919fi
15920if test -n "$LIBXML2_PC_LIBS"; then
15921    pkg_cv_LIBXML2_PC_LIBS="$LIBXML2_PC_LIBS"
15922 elif test -n "$PKG_CONFIG"; then
15923    if test -n "$PKG_CONFIG" && \
15924    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
15925  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
15926  ac_status=$?
15927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15928  test $ac_status = 0; }; then
15929  pkg_cv_LIBXML2_PC_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
15930		      test "x$?" != "x0" && pkg_failed=yes
15931else
15932  pkg_failed=yes
15933fi
15934 else
15935    pkg_failed=untried
15936fi
15937
15938
15939
15940if test $pkg_failed = yes; then
15941   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15942$as_echo "no" >&6; }
15943
15944if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15945        _pkg_short_errors_supported=yes
15946else
15947        _pkg_short_errors_supported=no
15948fi
15949        if test $_pkg_short_errors_supported = yes; then
15950	        LIBXML2_PC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
15951        else
15952	        LIBXML2_PC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
15953        fi
15954	# Put the nasty error message in config.log where it belongs
15955	echo "$LIBXML2_PC_PKG_ERRORS" >&5
15956
15957
15958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
15959$as_echo_n "checking for xmlInitParser in -lxml2... " >&6; }
15960if ${ac_cv_lib_xml2_xmlInitParser+:} false; then :
15961  $as_echo_n "(cached) " >&6
15962else
15963  ac_check_lib_save_LIBS=$LIBS
15964LIBS="-lxml2  $LIBS"
15965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966/* end confdefs.h.  */
15967
15968/* Override any GCC internal prototype to avoid an error.
15969   Use char because int might match the return type of a GCC
15970   builtin and then its argument prototype would still apply.  */
15971#ifdef __cplusplus
15972extern "C"
15973#endif
15974char xmlInitParser ();
15975int
15976main ()
15977{
15978return xmlInitParser ();
15979  ;
15980  return 0;
15981}
15982_ACEOF
15983if ac_fn_c_try_link "$LINENO"; then :
15984  ac_cv_lib_xml2_xmlInitParser=yes
15985else
15986  ac_cv_lib_xml2_xmlInitParser=no
15987fi
15988rm -f core conftest.err conftest.$ac_objext \
15989    conftest$ac_exeext conftest.$ac_ext
15990LIBS=$ac_check_lib_save_LIBS
15991fi
15992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
15993$as_echo "$ac_cv_lib_xml2_xmlInitParser" >&6; }
15994if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes; then :
15995  cat >>confdefs.h <<_ACEOF
15996#define HAVE_LIBXML2 1
15997_ACEOF
15998
15999  LIBS="-lxml2 $LIBS"
16000
16001fi
16002
16003
16004elif test $pkg_failed = untried; then
16005     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16006$as_echo "no" >&6; }
16007
16008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
16009$as_echo_n "checking for xmlInitParser in -lxml2... " >&6; }
16010if ${ac_cv_lib_xml2_xmlInitParser+:} false; then :
16011  $as_echo_n "(cached) " >&6
16012else
16013  ac_check_lib_save_LIBS=$LIBS
16014LIBS="-lxml2  $LIBS"
16015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016/* end confdefs.h.  */
16017
16018/* Override any GCC internal prototype to avoid an error.
16019   Use char because int might match the return type of a GCC
16020   builtin and then its argument prototype would still apply.  */
16021#ifdef __cplusplus
16022extern "C"
16023#endif
16024char xmlInitParser ();
16025int
16026main ()
16027{
16028return xmlInitParser ();
16029  ;
16030  return 0;
16031}
16032_ACEOF
16033if ac_fn_c_try_link "$LINENO"; then :
16034  ac_cv_lib_xml2_xmlInitParser=yes
16035else
16036  ac_cv_lib_xml2_xmlInitParser=no
16037fi
16038rm -f core conftest.err conftest.$ac_objext \
16039    conftest$ac_exeext conftest.$ac_ext
16040LIBS=$ac_check_lib_save_LIBS
16041fi
16042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
16043$as_echo "$ac_cv_lib_xml2_xmlInitParser" >&6; }
16044if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes; then :
16045  cat >>confdefs.h <<_ACEOF
16046#define HAVE_LIBXML2 1
16047_ACEOF
16048
16049  LIBS="-lxml2 $LIBS"
16050
16051fi
16052
16053
16054else
16055	LIBXML2_PC_CFLAGS=$pkg_cv_LIBXML2_PC_CFLAGS
16056	LIBXML2_PC_LIBS=$pkg_cv_LIBXML2_PC_LIBS
16057        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16058$as_echo "yes" >&6; }
16059
16060    CPPFLAGS="${CPPFLAGS} ${LIBXML2_PC_CFLAGS}"
16061    LIBS="${LIBS} ${LIBXML2_PC_LIBS}"
16062    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
16063$as_echo_n "checking for xmlInitParser in -lxml2... " >&6; }
16064if ${ac_cv_lib_xml2_xmlInitParser+:} false; then :
16065  $as_echo_n "(cached) " >&6
16066else
16067  ac_check_lib_save_LIBS=$LIBS
16068LIBS="-lxml2  $LIBS"
16069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070/* end confdefs.h.  */
16071
16072/* Override any GCC internal prototype to avoid an error.
16073   Use char because int might match the return type of a GCC
16074   builtin and then its argument prototype would still apply.  */
16075#ifdef __cplusplus
16076extern "C"
16077#endif
16078char xmlInitParser ();
16079int
16080main ()
16081{
16082return xmlInitParser ();
16083  ;
16084  return 0;
16085}
16086_ACEOF
16087if ac_fn_c_try_link "$LINENO"; then :
16088  ac_cv_lib_xml2_xmlInitParser=yes
16089else
16090  ac_cv_lib_xml2_xmlInitParser=no
16091fi
16092rm -f core conftest.err conftest.$ac_objext \
16093    conftest$ac_exeext conftest.$ac_ext
16094LIBS=$ac_check_lib_save_LIBS
16095fi
16096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
16097$as_echo "$ac_cv_lib_xml2_xmlInitParser" >&6; }
16098if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes; then :
16099  true
16100else
16101  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16103as_fn_error $? "Missing xml2 library
16104See \`config.log' for more details" "$LINENO" 5; }
16105fi
16106
16107
16108fi
16109  for ac_header in libxml/xmlreader.h libxml/xmlwriter.h
16110do :
16111  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16112ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16113if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16114  cat >>confdefs.h <<_ACEOF
16115#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16116_ACEOF
16117
16118fi
16119
16120done
16121
16122fi
16123if test "x$ac_cv_header_libxml_xmlreader_h" != "xyes"; then
16124  if test "x$with_expat" != "xno"; then
16125    for ac_header in expat.h
16126do :
16127  ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
16128if test "x$ac_cv_header_expat_h" = xyes; then :
16129  cat >>confdefs.h <<_ACEOF
16130#define HAVE_EXPAT_H 1
16131_ACEOF
16132
16133fi
16134
16135done
16136
16137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
16138$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
16139if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
16140  $as_echo_n "(cached) " >&6
16141else
16142  ac_check_lib_save_LIBS=$LIBS
16143LIBS="-lexpat  $LIBS"
16144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145/* end confdefs.h.  */
16146
16147/* Override any GCC internal prototype to avoid an error.
16148   Use char because int might match the return type of a GCC
16149   builtin and then its argument prototype would still apply.  */
16150#ifdef __cplusplus
16151extern "C"
16152#endif
16153char XML_ParserCreate ();
16154int
16155main ()
16156{
16157return XML_ParserCreate ();
16158  ;
16159  return 0;
16160}
16161_ACEOF
16162if ac_fn_c_try_link "$LINENO"; then :
16163  ac_cv_lib_expat_XML_ParserCreate=yes
16164else
16165  ac_cv_lib_expat_XML_ParserCreate=no
16166fi
16167rm -f core conftest.err conftest.$ac_objext \
16168    conftest$ac_exeext conftest.$ac_ext
16169LIBS=$ac_check_lib_save_LIBS
16170fi
16171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
16172$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
16173if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
16174  cat >>confdefs.h <<_ACEOF
16175#define HAVE_LIBEXPAT 1
16176_ACEOF
16177
16178  LIBS="-lexpat $LIBS"
16179
16180fi
16181
16182  fi
16183fi
16184
16185# Check whether --enable-posix-regex-lib was given.
16186if test "${enable_posix_regex_lib+set}" = set; then :
16187  enableval=$enable_posix_regex_lib;
16188else
16189  enable_posix_regex_lib=auto
16190fi
16191
16192
16193posix_regex_lib_found=
16194if test "$enable_posix_regex_lib" = "auto" || test "$enable_posix_regex_lib" = "libc" || test "$enable_posix_regex_lib" = "libregex"; then
16195  for ac_header in regex.h
16196do :
16197  ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
16198if test "x$ac_cv_header_regex_h" = xyes; then :
16199  cat >>confdefs.h <<_ACEOF
16200#define HAVE_REGEX_H 1
16201_ACEOF
16202
16203fi
16204
16205done
16206
16207  if test "x$ac_cv_header_regex_h" != "xno"; then
16208    ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
16209if test "x$ac_cv_func_regcomp" = xyes; then :
16210
16211fi
16212
16213    if test "x$ac_cv_func_regcomp" = xyes; then
16214      posix_regex_lib_found=1
16215    else
16216      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
16217$as_echo_n "checking for regcomp in -lregex... " >&6; }
16218if ${ac_cv_lib_regex_regcomp+:} false; then :
16219  $as_echo_n "(cached) " >&6
16220else
16221  ac_check_lib_save_LIBS=$LIBS
16222LIBS="-lregex  $LIBS"
16223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224/* end confdefs.h.  */
16225
16226/* Override any GCC internal prototype to avoid an error.
16227   Use char because int might match the return type of a GCC
16228   builtin and then its argument prototype would still apply.  */
16229#ifdef __cplusplus
16230extern "C"
16231#endif
16232char regcomp ();
16233int
16234main ()
16235{
16236return regcomp ();
16237  ;
16238  return 0;
16239}
16240_ACEOF
16241if ac_fn_c_try_link "$LINENO"; then :
16242  ac_cv_lib_regex_regcomp=yes
16243else
16244  ac_cv_lib_regex_regcomp=no
16245fi
16246rm -f core conftest.err conftest.$ac_objext \
16247    conftest$ac_exeext conftest.$ac_ext
16248LIBS=$ac_check_lib_save_LIBS
16249fi
16250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
16251$as_echo "$ac_cv_lib_regex_regcomp" >&6; }
16252if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
16253  cat >>confdefs.h <<_ACEOF
16254#define HAVE_LIBREGEX 1
16255_ACEOF
16256
16257  LIBS="-lregex $LIBS"
16258
16259fi
16260
16261      if test "x$ac_cv_lib_regex_regcomp" = xyes; then
16262        posix_regex_lib_found=1
16263      fi
16264    fi
16265  fi
16266fi
16267if test -z $posix_regex_lib_found && (test "$enable_posix_regex_lib" = "auto" || test "$enable_posix_regex_lib" = "libpcreposix"); then
16268  for ac_header in pcreposix.h
16269do :
16270  ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
16271if test "x$ac_cv_header_pcreposix_h" = xyes; then :
16272  cat >>confdefs.h <<_ACEOF
16273#define HAVE_PCREPOSIX_H 1
16274_ACEOF
16275
16276fi
16277
16278done
16279
16280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lpcreposix" >&5
16281$as_echo_n "checking for regcomp in -lpcreposix... " >&6; }
16282if ${ac_cv_lib_pcreposix_regcomp+:} false; then :
16283  $as_echo_n "(cached) " >&6
16284else
16285  ac_check_lib_save_LIBS=$LIBS
16286LIBS="-lpcreposix  $LIBS"
16287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288/* end confdefs.h.  */
16289
16290/* Override any GCC internal prototype to avoid an error.
16291   Use char because int might match the return type of a GCC
16292   builtin and then its argument prototype would still apply.  */
16293#ifdef __cplusplus
16294extern "C"
16295#endif
16296char regcomp ();
16297int
16298main ()
16299{
16300return regcomp ();
16301  ;
16302  return 0;
16303}
16304_ACEOF
16305if ac_fn_c_try_link "$LINENO"; then :
16306  ac_cv_lib_pcreposix_regcomp=yes
16307else
16308  ac_cv_lib_pcreposix_regcomp=no
16309fi
16310rm -f core conftest.err conftest.$ac_objext \
16311    conftest$ac_exeext conftest.$ac_ext
16312LIBS=$ac_check_lib_save_LIBS
16313fi
16314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_regcomp" >&5
16315$as_echo "$ac_cv_lib_pcreposix_regcomp" >&6; }
16316if test "x$ac_cv_lib_pcreposix_regcomp" = xyes; then :
16317  cat >>confdefs.h <<_ACEOF
16318#define HAVE_LIBPCREPOSIX 1
16319_ACEOF
16320
16321  LIBS="-lpcreposix $LIBS"
16322
16323fi
16324
16325  if test "x$ac_cv_lib_pcreposix_regcomp" != xyes; then
16326    { $as_echo "$as_me:${as_lineno-$LINENO}: trying libpcreposix check again with libpcre" >&5
16327$as_echo "$as_me: trying libpcreposix check again with libpcre" >&6;}
16328	unset ac_cv_lib_pcreposix_regcomp
16329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_exec in -lpcre" >&5
16330$as_echo_n "checking for pcre_exec in -lpcre... " >&6; }
16331if ${ac_cv_lib_pcre_pcre_exec+:} false; then :
16332  $as_echo_n "(cached) " >&6
16333else
16334  ac_check_lib_save_LIBS=$LIBS
16335LIBS="-lpcre  $LIBS"
16336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337/* end confdefs.h.  */
16338
16339/* Override any GCC internal prototype to avoid an error.
16340   Use char because int might match the return type of a GCC
16341   builtin and then its argument prototype would still apply.  */
16342#ifdef __cplusplus
16343extern "C"
16344#endif
16345char pcre_exec ();
16346int
16347main ()
16348{
16349return pcre_exec ();
16350  ;
16351  return 0;
16352}
16353_ACEOF
16354if ac_fn_c_try_link "$LINENO"; then :
16355  ac_cv_lib_pcre_pcre_exec=yes
16356else
16357  ac_cv_lib_pcre_pcre_exec=no
16358fi
16359rm -f core conftest.err conftest.$ac_objext \
16360    conftest$ac_exeext conftest.$ac_ext
16361LIBS=$ac_check_lib_save_LIBS
16362fi
16363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_exec" >&5
16364$as_echo "$ac_cv_lib_pcre_pcre_exec" >&6; }
16365if test "x$ac_cv_lib_pcre_pcre_exec" = xyes; then :
16366  cat >>confdefs.h <<_ACEOF
16367#define HAVE_LIBPCRE 1
16368_ACEOF
16369
16370  LIBS="-lpcre $LIBS"
16371
16372fi
16373
16374    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lpcreposix" >&5
16375$as_echo_n "checking for regcomp in -lpcreposix... " >&6; }
16376if ${ac_cv_lib_pcreposix_regcomp+:} false; then :
16377  $as_echo_n "(cached) " >&6
16378else
16379  ac_check_lib_save_LIBS=$LIBS
16380LIBS="-lpcreposix  $LIBS"
16381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382/* end confdefs.h.  */
16383
16384/* Override any GCC internal prototype to avoid an error.
16385   Use char because int might match the return type of a GCC
16386   builtin and then its argument prototype would still apply.  */
16387#ifdef __cplusplus
16388extern "C"
16389#endif
16390char regcomp ();
16391int
16392main ()
16393{
16394return regcomp ();
16395  ;
16396  return 0;
16397}
16398_ACEOF
16399if ac_fn_c_try_link "$LINENO"; then :
16400  ac_cv_lib_pcreposix_regcomp=yes
16401else
16402  ac_cv_lib_pcreposix_regcomp=no
16403fi
16404rm -f core conftest.err conftest.$ac_objext \
16405    conftest$ac_exeext conftest.$ac_ext
16406LIBS=$ac_check_lib_save_LIBS
16407fi
16408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_regcomp" >&5
16409$as_echo "$ac_cv_lib_pcreposix_regcomp" >&6; }
16410if test "x$ac_cv_lib_pcreposix_regcomp" = xyes; then :
16411  cat >>confdefs.h <<_ACEOF
16412#define HAVE_LIBPCREPOSIX 1
16413_ACEOF
16414
16415  LIBS="-lpcreposix $LIBS"
16416
16417fi
16418
16419    if test "x$ac_cv_lib_pcre_pcre_exec" = xyes && test "x$ac_cv_lib_pcreposix_regcomp" = xyes; then
16420      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PCRE_STATIC needs to be defined" >&5
16421$as_echo_n "checking if PCRE_STATIC needs to be defined... " >&6; }
16422      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423/* end confdefs.h.  */
16424#include <pcreposix.h>
16425          int main() { return regcomp(NULL, NULL, 0); }
16426_ACEOF
16427if ac_fn_c_try_link "$LINENO"; then :
16428  without_pcre_static=yes
16429else
16430  without_pcre_static=no
16431fi
16432rm -f core conftest.err conftest.$ac_objext \
16433    conftest$ac_exeext conftest.$ac_ext
16434      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435/* end confdefs.h.  */
16436#define PCRE_STATIC
16437          #include <pcreposix.h>
16438          int main() { return regcomp(NULL, NULL, 0); }
16439_ACEOF
16440if ac_fn_c_try_link "$LINENO"; then :
16441  with_pcre_static=yes
16442else
16443  with_pcre_static=no
16444fi
16445rm -f core conftest.err conftest.$ac_objext \
16446    conftest$ac_exeext conftest.$ac_ext
16447      if test "x$without_pcre_static" != xyes && test "x$with_pcre_static" = xyes; then
16448        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16449$as_echo "yes" >&6; }
16450
16451$as_echo "#define PCRE_STATIC 1" >>confdefs.h
16452
16453      elif test "x$without_pcre_static" = xyes || test "x$with_pcre_static" = xyes; then
16454        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16455$as_echo "no" >&6; }
16456      fi
16457      posix_regex_lib_found=1
16458    fi
16459  else
16460    posix_regex_lib_found=1
16461  fi
16462fi
16463
16464# TODO: Give the user the option of using a pre-existing system
16465# libarchive.  This will define HAVE_LIBARCHIVE which will cause
16466# bsdtar_platform.h to use #include <...> for the libarchive headers.
16467# Need to include Makefile.am magic to link against system
16468# -larchive in that case.
16469#AC_CHECK_LIB(archive,archive_version)
16470
16471# Checks for supported compiler flags
16472
16473
16474
16475
16476for flag in -Wall -Wformat -Wformat-security; do
16477  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16479$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16480if eval \${$as_CACHEVAR+:} false; then :
16481  $as_echo_n "(cached) " >&6
16482else
16483
16484  ax_check_save_flags=$CFLAGS
16485  CFLAGS="$CFLAGS  $flag"
16486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487/* end confdefs.h.  */
16488
16489int
16490main ()
16491{
16492
16493  ;
16494  return 0;
16495}
16496_ACEOF
16497if ac_fn_c_try_compile "$LINENO"; then :
16498  eval "$as_CACHEVAR=yes"
16499else
16500  eval "$as_CACHEVAR=no"
16501fi
16502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16503  CFLAGS=$ax_check_save_flags
16504fi
16505eval ac_res=\$$as_CACHEVAR
16506	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16507$as_echo "$ac_res" >&6; }
16508if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16509
16510if ${CFLAGS+:} false; then :
16511
16512  case " $CFLAGS " in #(
16513  *" $flag "*) :
16514    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
16515  (: CFLAGS already contains $flag) 2>&5
16516  ac_status=$?
16517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16518  test $ac_status = 0; } ;; #(
16519  *) :
16520
16521     as_fn_append CFLAGS " $flag"
16522     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16523  (: CFLAGS="$CFLAGS") 2>&5
16524  ac_status=$?
16525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16526  test $ac_status = 0; }
16527     ;;
16528esac
16529
16530else
16531
16532  CFLAGS=$flag
16533  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
16534  (: CFLAGS="$CFLAGS") 2>&5
16535  ac_status=$?
16536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16537  test $ac_status = 0; }
16538
16539fi
16540
16541else
16542  :
16543fi
16544
16545done
16546
16547
16548# Checks for typedefs, structures, and compiler characteristics.
16549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16550$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16551if ${ac_cv_c_const+:} false; then :
16552  $as_echo_n "(cached) " >&6
16553else
16554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555/* end confdefs.h.  */
16556
16557int
16558main ()
16559{
16560
16561#ifndef __cplusplus
16562  /* Ultrix mips cc rejects this sort of thing.  */
16563  typedef int charset[2];
16564  const charset cs = { 0, 0 };
16565  /* SunOS 4.1.1 cc rejects this.  */
16566  char const *const *pcpcc;
16567  char **ppc;
16568  /* NEC SVR4.0.2 mips cc rejects this.  */
16569  struct point {int x, y;};
16570  static struct point const zero = {0,0};
16571  /* AIX XL C 1.02.0.0 rejects this.
16572     It does not let you subtract one const X* pointer from another in
16573     an arm of an if-expression whose if-part is not a constant
16574     expression */
16575  const char *g = "string";
16576  pcpcc = &g + (g ? g-g : 0);
16577  /* HPUX 7.0 cc rejects these. */
16578  ++pcpcc;
16579  ppc = (char**) pcpcc;
16580  pcpcc = (char const *const *) ppc;
16581  { /* SCO 3.2v4 cc rejects this sort of thing.  */
16582    char tx;
16583    char *t = &tx;
16584    char const *s = 0 ? (char *) 0 : (char const *) 0;
16585
16586    *t++ = 0;
16587    if (s) return 0;
16588  }
16589  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16590    int x[] = {25, 17};
16591    const int *foo = &x[0];
16592    ++foo;
16593  }
16594  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16595    typedef const int *iptr;
16596    iptr p = 0;
16597    ++p;
16598  }
16599  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16600       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16601    struct s { int j; const int *ap[3]; } bx;
16602    struct s *b = &bx; b->j = 5;
16603  }
16604  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16605    const int foo = 10;
16606    if (!foo) return 0;
16607  }
16608  return !cs[0] && !zero.x;
16609#endif
16610
16611  ;
16612  return 0;
16613}
16614_ACEOF
16615if ac_fn_c_try_compile "$LINENO"; then :
16616  ac_cv_c_const=yes
16617else
16618  ac_cv_c_const=no
16619fi
16620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621fi
16622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16623$as_echo "$ac_cv_c_const" >&6; }
16624if test $ac_cv_c_const = no; then
16625
16626$as_echo "#define const /**/" >>confdefs.h
16627
16628fi
16629
16630# la_TYPE_UID_T defaults to "int", which is incorrect for MinGW
16631# and MSVC. Use a customized version.
16632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16633$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16634if ${la_cv_type_uid_t+:} false; then :
16635  $as_echo_n "(cached) " >&6
16636else
16637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638/* end confdefs.h.  */
16639#include <sys/types.h>
16640
16641_ACEOF
16642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16643  $EGREP "uid_t" >/dev/null 2>&1; then :
16644  la_cv_type_uid_t=yes
16645else
16646  la_cv_type_uid_t=no
16647fi
16648rm -f conftest*
16649
16650fi
16651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $la_cv_type_uid_t" >&5
16652$as_echo "$la_cv_type_uid_t" >&6; }
16653if test $la_cv_type_uid_t = no; then
16654  case $host in
16655    *mingw*) def_uid_t=short ;;
16656    *) def_uid_t=int ;;
16657  esac
16658
16659cat >>confdefs.h <<_ACEOF
16660#define uid_t $def_uid_t
16661_ACEOF
16662
16663
16664cat >>confdefs.h <<_ACEOF
16665#define gid_t $def_uid_t
16666_ACEOF
16667
16668fi
16669
16670ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16671if test "x$ac_cv_type_mode_t" = xyes; then :
16672
16673else
16674
16675cat >>confdefs.h <<_ACEOF
16676#define mode_t int
16677_ACEOF
16678
16679fi
16680
16681# AC_TYPE_OFF_T defaults to "long", which limits us to 4GB files on
16682# most systems... default to "long long" instead.
16683ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16684if test "x$ac_cv_type_off_t" = xyes; then :
16685
16686else
16687
16688cat >>confdefs.h <<_ACEOF
16689#define off_t long long
16690_ACEOF
16691
16692fi
16693
16694ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16695if test "x$ac_cv_type_size_t" = xyes; then :
16696
16697else
16698
16699cat >>confdefs.h <<_ACEOF
16700#define size_t unsigned int
16701_ACEOF
16702
16703fi
16704
16705ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
16706if test "x$ac_cv_type_id_t" = xyes; then :
16707
16708else
16709
16710cat >>confdefs.h <<_ACEOF
16711#define id_t unsigned long
16712_ACEOF
16713
16714fi
16715
16716ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16717if test "x$ac_cv_type_uintptr_t" = xyes; then :
16718
16719else
16720
16721cat >>confdefs.h <<_ACEOF
16722#define uintptr_t unsigned int
16723_ACEOF
16724
16725fi
16726
16727
16728# Check for tm_gmtoff in struct tm
16729ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
16730#include <time.h>
16731
16732"
16733if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
16734
16735cat >>confdefs.h <<_ACEOF
16736#define HAVE_STRUCT_TM_TM_GMTOFF 1
16737_ACEOF
16738
16739
16740fi
16741ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
16742#include <time.h>
16743
16744"
16745if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
16746
16747cat >>confdefs.h <<_ACEOF
16748#define HAVE_STRUCT_TM___TM_GMTOFF 1
16749_ACEOF
16750
16751
16752fi
16753
16754
16755# Check for f_namemax in struct statfs
16756ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "
16757#include <sys/param.h>
16758#include <sys/mount.h>
16759
16760"
16761if test "x$ac_cv_member_struct_statfs_f_namemax" = xyes; then :
16762
16763cat >>confdefs.h <<_ACEOF
16764#define HAVE_STRUCT_STATFS_F_NAMEMAX 1
16765_ACEOF
16766
16767
16768fi
16769
16770
16771# Check for f_iosize in struct statfs
16772ac_fn_c_check_member "$LINENO" "struct statfs" "f_iosize" "ac_cv_member_struct_statfs_f_iosize" "
16773#include <sys/param.h>
16774#include <sys/mount.h>
16775
16776"
16777if test "x$ac_cv_member_struct_statfs_f_iosize" = xyes; then :
16778
16779cat >>confdefs.h <<_ACEOF
16780#define HAVE_STRUCT_STATFS_F_IOSIZE 1
16781_ACEOF
16782
16783
16784fi
16785
16786
16787# Check for f_iosize in struct statvfs
16788ac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "
16789#include <sys/statvfs.h>
16790
16791"
16792if test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes; then :
16793
16794cat >>confdefs.h <<_ACEOF
16795#define HAVE_STRUCT_STATVFS_F_IOSIZE 1
16796_ACEOF
16797
16798
16799fi
16800
16801
16802# Check for birthtime in struct stat
16803ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
16804if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
16805
16806cat >>confdefs.h <<_ACEOF
16807#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
16808_ACEOF
16809
16810
16811fi
16812
16813
16814# Check for high-resolution timestamps in struct stat
16815ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "$ac_includes_default"
16816if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
16817
16818cat >>confdefs.h <<_ACEOF
16819#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
16820_ACEOF
16821
16822
16823fi
16824
16825ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "$ac_includes_default"
16826if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes; then :
16827
16828cat >>confdefs.h <<_ACEOF
16829#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1
16830_ACEOF
16831
16832
16833fi
16834
16835ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
16836if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
16837
16838cat >>confdefs.h <<_ACEOF
16839#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
16840_ACEOF
16841
16842
16843fi
16844
16845ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "$ac_includes_default"
16846if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then :
16847
16848cat >>confdefs.h <<_ACEOF
16849#define HAVE_STRUCT_STAT_ST_MTIME_N 1
16850_ACEOF
16851
16852
16853fi
16854 # AIX
16855ac_fn_c_check_member "$LINENO" "struct stat" "st_umtime" "ac_cv_member_struct_stat_st_umtime" "$ac_includes_default"
16856if test "x$ac_cv_member_struct_stat_st_umtime" = xyes; then :
16857
16858cat >>confdefs.h <<_ACEOF
16859#define HAVE_STRUCT_STAT_ST_UMTIME 1
16860_ACEOF
16861
16862
16863fi
16864 # Tru64
16865ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_usec" "ac_cv_member_struct_stat_st_mtime_usec" "$ac_includes_default"
16866if test "x$ac_cv_member_struct_stat_st_mtime_usec" = xyes; then :
16867
16868cat >>confdefs.h <<_ACEOF
16869#define HAVE_STRUCT_STAT_ST_MTIME_USEC 1
16870_ACEOF
16871
16872
16873fi
16874 # Hurd
16875# Check for block size support in struct stat
16876ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16877if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
16878
16879cat >>confdefs.h <<_ACEOF
16880#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16881_ACEOF
16882
16883
16884fi
16885
16886# Check for st_flags in struct stat (BSD fflags)
16887ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
16888if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
16889
16890cat >>confdefs.h <<_ACEOF
16891#define HAVE_STRUCT_STAT_ST_FLAGS 1
16892_ACEOF
16893
16894
16895fi
16896
16897
16898# If you have uintmax_t, we assume printf supports %ju
16899# If you have unsigned long long, we assume printf supports %llu
16900# TODO: Check for %ju and %llu support directly.
16901ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
16902if test "x$ac_cv_type_uintmax_t" = xyes; then :
16903
16904cat >>confdefs.h <<_ACEOF
16905#define HAVE_UINTMAX_T 1
16906_ACEOF
16907
16908
16909fi
16910ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
16911if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
16912
16913cat >>confdefs.h <<_ACEOF
16914#define HAVE_UNSIGNED_LONG_LONG 1
16915_ACEOF
16916
16917
16918fi
16919
16920
16921# We use C99-style integer types
16922# Declare them if the local platform doesn't already do so.
16923
16924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16925$as_echo_n "checking for unsigned long long int... " >&6; }
16926if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16927  $as_echo_n "(cached) " >&6
16928else
16929  ac_cv_type_unsigned_long_long_int=yes
16930     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16931       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16932/* end confdefs.h.  */
16933
16934  /* For now, do not test the preprocessor; as of 2007 there are too many
16935	 implementations with broken preprocessors.  Perhaps this can
16936	 be revisited in 2012.  In the meantime, code should not expect
16937	 #if to work with literals wider than 32 bits.  */
16938      /* Test literals.  */
16939      long long int ll = 9223372036854775807ll;
16940      long long int nll = -9223372036854775807LL;
16941      unsigned long long int ull = 18446744073709551615ULL;
16942      /* Test constant expressions.   */
16943      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16944		     ? 1 : -1)];
16945      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16946		     ? 1 : -1)];
16947      int i = 63;
16948int
16949main ()
16950{
16951/* Test availability of runtime routines for shift and division.  */
16952      long long int llmax = 9223372036854775807ll;
16953      unsigned long long int ullmax = 18446744073709551615ull;
16954      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16955	      | (llmax / ll) | (llmax % ll)
16956	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16957	      | (ullmax / ull) | (ullmax % ull));
16958  ;
16959  return 0;
16960}
16961
16962_ACEOF
16963if ac_fn_c_try_link "$LINENO"; then :
16964
16965else
16966  ac_cv_type_unsigned_long_long_int=no
16967fi
16968rm -f core conftest.err conftest.$ac_objext \
16969    conftest$ac_exeext conftest.$ac_ext
16970     fi
16971fi
16972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16973$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16974  if test $ac_cv_type_unsigned_long_long_int = yes; then
16975
16976$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16977
16978  fi
16979
16980
16981
16982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16983$as_echo_n "checking for long long int... " >&6; }
16984if ${ac_cv_type_long_long_int+:} false; then :
16985  $as_echo_n "(cached) " >&6
16986else
16987  ac_cv_type_long_long_int=yes
16988      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16989	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16990	if test $ac_cv_type_long_long_int = yes; then
16991	  	  	  	  if test "$cross_compiling" = yes; then :
16992  :
16993else
16994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995/* end confdefs.h.  */
16996#include <limits.h>
16997		 #ifndef LLONG_MAX
16998		 # define HALF \
16999			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17000		 # define LLONG_MAX (HALF - 1 + HALF)
17001		 #endif
17002int
17003main ()
17004{
17005long long int n = 1;
17006		 int i;
17007		 for (i = 0; ; i++)
17008		   {
17009		     long long int m = n << i;
17010		     if (m >> i != n)
17011		       return 1;
17012		     if (LLONG_MAX / 2 < m)
17013		       break;
17014		   }
17015		 return 0;
17016  ;
17017  return 0;
17018}
17019_ACEOF
17020if ac_fn_c_try_run "$LINENO"; then :
17021
17022else
17023  ac_cv_type_long_long_int=no
17024fi
17025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17026  conftest.$ac_objext conftest.beam conftest.$ac_ext
17027fi
17028
17029	fi
17030      fi
17031fi
17032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17033$as_echo "$ac_cv_type_long_long_int" >&6; }
17034  if test $ac_cv_type_long_long_int = yes; then
17035
17036$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17037
17038  fi
17039
17040
17041
17042  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
17043if test "x$ac_cv_type_intmax_t" = xyes; then :
17044
17045$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
17046
17047else
17048  test $ac_cv_type_long_long_int = yes \
17049       && ac_type='long long int' \
17050       || ac_type='long int'
17051
17052cat >>confdefs.h <<_ACEOF
17053#define intmax_t $ac_type
17054_ACEOF
17055
17056fi
17057
17058
17059
17060
17061  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
17062if test "x$ac_cv_type_uintmax_t" = xyes; then :
17063
17064$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
17065
17066else
17067  test $ac_cv_type_unsigned_long_long_int = yes \
17068       && ac_type='unsigned long long int' \
17069       || ac_type='unsigned long int'
17070
17071cat >>confdefs.h <<_ACEOF
17072#define uintmax_t $ac_type
17073_ACEOF
17074
17075fi
17076
17077
17078ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
17079case $ac_cv_c_int64_t in #(
17080  no|yes) ;; #(
17081  *)
17082
17083cat >>confdefs.h <<_ACEOF
17084#define int64_t $ac_cv_c_int64_t
17085_ACEOF
17086;;
17087esac
17088
17089ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17090case $ac_cv_c_uint64_t in #(
17091  no|yes) ;; #(
17092  *)
17093
17094$as_echo "#define _UINT64_T 1" >>confdefs.h
17095
17096
17097cat >>confdefs.h <<_ACEOF
17098#define uint64_t $ac_cv_c_uint64_t
17099_ACEOF
17100;;
17101  esac
17102
17103ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
17104case $ac_cv_c_int32_t in #(
17105  no|yes) ;; #(
17106  *)
17107
17108cat >>confdefs.h <<_ACEOF
17109#define int32_t $ac_cv_c_int32_t
17110_ACEOF
17111;;
17112esac
17113
17114ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17115case $ac_cv_c_uint32_t in #(
17116  no|yes) ;; #(
17117  *)
17118
17119$as_echo "#define _UINT32_T 1" >>confdefs.h
17120
17121
17122cat >>confdefs.h <<_ACEOF
17123#define uint32_t $ac_cv_c_uint32_t
17124_ACEOF
17125;;
17126  esac
17127
17128ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
17129case $ac_cv_c_int16_t in #(
17130  no|yes) ;; #(
17131  *)
17132
17133cat >>confdefs.h <<_ACEOF
17134#define int16_t $ac_cv_c_int16_t
17135_ACEOF
17136;;
17137esac
17138
17139ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17140case $ac_cv_c_uint16_t in #(
17141  no|yes) ;; #(
17142  *)
17143
17144
17145cat >>confdefs.h <<_ACEOF
17146#define uint16_t $ac_cv_c_uint16_t
17147_ACEOF
17148;;
17149  esac
17150
17151ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17152case $ac_cv_c_uint8_t in #(
17153  no|yes) ;; #(
17154  *)
17155
17156$as_echo "#define _UINT8_T 1" >>confdefs.h
17157
17158
17159cat >>confdefs.h <<_ACEOF
17160#define uint8_t $ac_cv_c_uint8_t
17161_ACEOF
17162;;
17163  esac
17164
17165
17166ac_fn_c_check_decl "$LINENO" "SIZE_MAX" "ac_cv_have_decl_SIZE_MAX" "$ac_includes_default"
17167if test "x$ac_cv_have_decl_SIZE_MAX" = xyes; then :
17168  ac_have_decl=1
17169else
17170  ac_have_decl=0
17171fi
17172
17173cat >>confdefs.h <<_ACEOF
17174#define HAVE_DECL_SIZE_MAX $ac_have_decl
17175_ACEOF
17176ac_fn_c_check_decl "$LINENO" "INT32_MAX" "ac_cv_have_decl_INT32_MAX" "$ac_includes_default"
17177if test "x$ac_cv_have_decl_INT32_MAX" = xyes; then :
17178  ac_have_decl=1
17179else
17180  ac_have_decl=0
17181fi
17182
17183cat >>confdefs.h <<_ACEOF
17184#define HAVE_DECL_INT32_MAX $ac_have_decl
17185_ACEOF
17186ac_fn_c_check_decl "$LINENO" "INT32_MIN" "ac_cv_have_decl_INT32_MIN" "$ac_includes_default"
17187if test "x$ac_cv_have_decl_INT32_MIN" = xyes; then :
17188  ac_have_decl=1
17189else
17190  ac_have_decl=0
17191fi
17192
17193cat >>confdefs.h <<_ACEOF
17194#define HAVE_DECL_INT32_MIN $ac_have_decl
17195_ACEOF
17196
17197ac_fn_c_check_decl "$LINENO" "INT64_MAX" "ac_cv_have_decl_INT64_MAX" "$ac_includes_default"
17198if test "x$ac_cv_have_decl_INT64_MAX" = xyes; then :
17199  ac_have_decl=1
17200else
17201  ac_have_decl=0
17202fi
17203
17204cat >>confdefs.h <<_ACEOF
17205#define HAVE_DECL_INT64_MAX $ac_have_decl
17206_ACEOF
17207ac_fn_c_check_decl "$LINENO" "INT64_MIN" "ac_cv_have_decl_INT64_MIN" "$ac_includes_default"
17208if test "x$ac_cv_have_decl_INT64_MIN" = xyes; then :
17209  ac_have_decl=1
17210else
17211  ac_have_decl=0
17212fi
17213
17214cat >>confdefs.h <<_ACEOF
17215#define HAVE_DECL_INT64_MIN $ac_have_decl
17216_ACEOF
17217ac_fn_c_check_decl "$LINENO" "UINT64_MAX" "ac_cv_have_decl_UINT64_MAX" "$ac_includes_default"
17218if test "x$ac_cv_have_decl_UINT64_MAX" = xyes; then :
17219  ac_have_decl=1
17220else
17221  ac_have_decl=0
17222fi
17223
17224cat >>confdefs.h <<_ACEOF
17225#define HAVE_DECL_UINT64_MAX $ac_have_decl
17226_ACEOF
17227ac_fn_c_check_decl "$LINENO" "UINT32_MAX" "ac_cv_have_decl_UINT32_MAX" "$ac_includes_default"
17228if test "x$ac_cv_have_decl_UINT32_MAX" = xyes; then :
17229  ac_have_decl=1
17230else
17231  ac_have_decl=0
17232fi
17233
17234cat >>confdefs.h <<_ACEOF
17235#define HAVE_DECL_UINT32_MAX $ac_have_decl
17236_ACEOF
17237
17238ac_fn_c_check_decl "$LINENO" "INTMAX_MAX" "ac_cv_have_decl_INTMAX_MAX" "$ac_includes_default"
17239if test "x$ac_cv_have_decl_INTMAX_MAX" = xyes; then :
17240  ac_have_decl=1
17241else
17242  ac_have_decl=0
17243fi
17244
17245cat >>confdefs.h <<_ACEOF
17246#define HAVE_DECL_INTMAX_MAX $ac_have_decl
17247_ACEOF
17248ac_fn_c_check_decl "$LINENO" "INTMAX_MIN" "ac_cv_have_decl_INTMAX_MIN" "$ac_includes_default"
17249if test "x$ac_cv_have_decl_INTMAX_MIN" = xyes; then :
17250  ac_have_decl=1
17251else
17252  ac_have_decl=0
17253fi
17254
17255cat >>confdefs.h <<_ACEOF
17256#define HAVE_DECL_INTMAX_MIN $ac_have_decl
17257_ACEOF
17258ac_fn_c_check_decl "$LINENO" "UINTMAX_MAX" "ac_cv_have_decl_UINTMAX_MAX" "$ac_includes_default"
17259if test "x$ac_cv_have_decl_UINTMAX_MAX" = xyes; then :
17260  ac_have_decl=1
17261else
17262  ac_have_decl=0
17263fi
17264
17265cat >>confdefs.h <<_ACEOF
17266#define HAVE_DECL_UINTMAX_MAX $ac_have_decl
17267_ACEOF
17268
17269
17270ac_fn_c_check_decl "$LINENO" "SSIZE_MAX" "ac_cv_have_decl_SSIZE_MAX" "#include <limits.h>
17271"
17272if test "x$ac_cv_have_decl_SSIZE_MAX" = xyes; then :
17273
17274$as_echo "#define HAVE_DECL_SSIZE_MAX 1" >>confdefs.h
17275
17276fi
17277
17278
17279ac_fn_c_check_decl "$LINENO" "EFTYPE" "ac_cv_have_decl_EFTYPE" "#include <errno.h>
17280"
17281if test "x$ac_cv_have_decl_EFTYPE" = xyes; then :
17282
17283$as_echo "#define HAVE_EFTYPE 1" >>confdefs.h
17284
17285fi
17286
17287ac_fn_c_check_decl "$LINENO" "EILSEQ" "ac_cv_have_decl_EILSEQ" "#include <errno.h>
17288"
17289if test "x$ac_cv_have_decl_EILSEQ" = xyes; then :
17290
17291$as_echo "#define HAVE_EILSEQ 1" >>confdefs.h
17292
17293fi
17294
17295ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
17296if test "x$ac_cv_type_wchar_t" = xyes; then :
17297
17298cat >>confdefs.h <<_ACEOF
17299#define HAVE_WCHAR_T 1
17300_ACEOF
17301		# The cast to long int works around a bug in the HP C Compiler
17302# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17303# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17304# This bug is HP SR number 8606223364.
17305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
17306$as_echo_n "checking size of wchar_t... " >&6; }
17307if ${ac_cv_sizeof_wchar_t+:} false; then :
17308  $as_echo_n "(cached) " >&6
17309else
17310  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
17311
17312else
17313  if test "$ac_cv_type_wchar_t" = yes; then
17314     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17316as_fn_error 77 "cannot compute sizeof (wchar_t)
17317See \`config.log' for more details" "$LINENO" 5; }
17318   else
17319     ac_cv_sizeof_wchar_t=0
17320   fi
17321fi
17322
17323fi
17324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
17325$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
17326
17327
17328
17329cat >>confdefs.h <<_ACEOF
17330#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
17331_ACEOF
17332
17333
17334fi
17335
17336
17337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17338$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17339if ${ac_cv_header_time+:} false; then :
17340  $as_echo_n "(cached) " >&6
17341else
17342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343/* end confdefs.h.  */
17344#include <sys/types.h>
17345#include <sys/time.h>
17346#include <time.h>
17347
17348int
17349main ()
17350{
17351if ((struct tm *) 0)
17352return 0;
17353  ;
17354  return 0;
17355}
17356_ACEOF
17357if ac_fn_c_try_compile "$LINENO"; then :
17358  ac_cv_header_time=yes
17359else
17360  ac_cv_header_time=no
17361fi
17362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17363fi
17364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17365$as_echo "$ac_cv_header_time" >&6; }
17366if test $ac_cv_header_time = yes; then
17367
17368$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17369
17370fi
17371
17372
17373# Checks for library functions.
17374if test $ac_cv_c_compiler_gnu = yes; then
17375    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
17376$as_echo_n "checking whether $CC needs -traditional... " >&6; }
17377if ${ac_cv_prog_gcc_traditional+:} false; then :
17378  $as_echo_n "(cached) " >&6
17379else
17380    ac_pattern="Autoconf.*'x'"
17381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382/* end confdefs.h.  */
17383#include <sgtty.h>
17384Autoconf TIOCGETP
17385_ACEOF
17386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17387  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
17388  ac_cv_prog_gcc_traditional=yes
17389else
17390  ac_cv_prog_gcc_traditional=no
17391fi
17392rm -f conftest*
17393
17394
17395  if test $ac_cv_prog_gcc_traditional = no; then
17396    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397/* end confdefs.h.  */
17398#include <termio.h>
17399Autoconf TCGETA
17400_ACEOF
17401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17402  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
17403  ac_cv_prog_gcc_traditional=yes
17404fi
17405rm -f conftest*
17406
17407  fi
17408fi
17409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
17410$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
17411  if test $ac_cv_prog_gcc_traditional = yes; then
17412    CC="$CC -traditional"
17413  fi
17414fi
17415
17416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
17417$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
17418if ${ac_cv_header_sys_types_h_makedev+:} false; then :
17419  $as_echo_n "(cached) " >&6
17420else
17421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422/* end confdefs.h.  */
17423#include <sys/types.h>
17424int
17425main ()
17426{
17427return makedev(0, 0);
17428  ;
17429  return 0;
17430}
17431_ACEOF
17432if ac_fn_c_try_link "$LINENO"; then :
17433  ac_cv_header_sys_types_h_makedev=yes
17434else
17435  ac_cv_header_sys_types_h_makedev=no
17436fi
17437rm -f core conftest.err conftest.$ac_objext \
17438    conftest$ac_exeext conftest.$ac_ext
17439
17440fi
17441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
17442$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
17443
17444if test $ac_cv_header_sys_types_h_makedev = no; then
17445ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
17446if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
17447
17448$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
17449
17450fi
17451
17452
17453
17454  if test $ac_cv_header_sys_mkdev_h = no; then
17455    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
17456if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
17457
17458$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
17459
17460fi
17461
17462
17463  fi
17464fi
17465
17466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17467$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
17468if ${ac_cv_sys_largefile_source+:} false; then :
17469  $as_echo_n "(cached) " >&6
17470else
17471  while :; do
17472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473/* end confdefs.h.  */
17474#include <sys/types.h> /* for off_t */
17475     #include <stdio.h>
17476int
17477main ()
17478{
17479int (*fp) (FILE *, off_t, int) = fseeko;
17480     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17481  ;
17482  return 0;
17483}
17484_ACEOF
17485if ac_fn_c_try_link "$LINENO"; then :
17486  ac_cv_sys_largefile_source=no; break
17487fi
17488rm -f core conftest.err conftest.$ac_objext \
17489    conftest$ac_exeext conftest.$ac_ext
17490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491/* end confdefs.h.  */
17492#define _LARGEFILE_SOURCE 1
17493#include <sys/types.h> /* for off_t */
17494     #include <stdio.h>
17495int
17496main ()
17497{
17498int (*fp) (FILE *, off_t, int) = fseeko;
17499     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17500  ;
17501  return 0;
17502}
17503_ACEOF
17504if ac_fn_c_try_link "$LINENO"; then :
17505  ac_cv_sys_largefile_source=1; break
17506fi
17507rm -f core conftest.err conftest.$ac_objext \
17508    conftest$ac_exeext conftest.$ac_ext
17509  ac_cv_sys_largefile_source=unknown
17510  break
17511done
17512fi
17513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17514$as_echo "$ac_cv_sys_largefile_source" >&6; }
17515case $ac_cv_sys_largefile_source in #(
17516  no | unknown) ;;
17517  *)
17518cat >>confdefs.h <<_ACEOF
17519#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17520_ACEOF
17521;;
17522esac
17523rm -rf conftest*
17524
17525# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17526# in glibc 2.1.3, but that breaks too many other things.
17527# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17528if test $ac_cv_sys_largefile_source != unknown; then
17529
17530$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
17531
17532fi
17533
17534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
17535$as_echo_n "checking for working memcmp... " >&6; }
17536if ${ac_cv_func_memcmp_working+:} false; then :
17537  $as_echo_n "(cached) " >&6
17538else
17539  if test "$cross_compiling" = yes; then :
17540  ac_cv_func_memcmp_working=no
17541else
17542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17543/* end confdefs.h.  */
17544$ac_includes_default
17545int
17546main ()
17547{
17548
17549  /* Some versions of memcmp are not 8-bit clean.  */
17550  char c0 = '\100', c1 = '\200', c2 = '\201';
17551  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
17552    return 1;
17553
17554  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
17555     or more and with at least one buffer not starting on a 4-byte boundary.
17556     William Lewis provided this test program.   */
17557  {
17558    char foo[21];
17559    char bar[21];
17560    int i;
17561    for (i = 0; i < 4; i++)
17562      {
17563	char *a = foo + i;
17564	char *b = bar + i;
17565	strcpy (a, "--------01111111");
17566	strcpy (b, "--------10000000");
17567	if (memcmp (a, b, 16) >= 0)
17568	  return 1;
17569      }
17570    return 0;
17571  }
17572
17573  ;
17574  return 0;
17575}
17576_ACEOF
17577if ac_fn_c_try_run "$LINENO"; then :
17578  ac_cv_func_memcmp_working=yes
17579else
17580  ac_cv_func_memcmp_working=no
17581fi
17582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17583  conftest.$ac_objext conftest.beam conftest.$ac_ext
17584fi
17585
17586fi
17587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
17588$as_echo "$ac_cv_func_memcmp_working" >&6; }
17589test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
17590  *" memcmp.$ac_objext "* ) ;;
17591  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
17592 ;;
17593esac
17594
17595
17596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17597$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17598if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
17599  $as_echo_n "(cached) " >&6
17600else
17601  rm -f conftest.sym conftest.file
17602echo >conftest.file
17603if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17604  if test "$cross_compiling" = yes; then :
17605  ac_cv_func_lstat_dereferences_slashed_symlink=no
17606else
17607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608/* end confdefs.h.  */
17609$ac_includes_default
17610int
17611main ()
17612{
17613struct stat sbuf;
17614     /* Linux will dereference the symlink and fail, as required by POSIX.
17615	That is better in the sense that it means we will not
17616	have to compile and use the lstat wrapper.  */
17617     return lstat ("conftest.sym/", &sbuf) == 0;
17618  ;
17619  return 0;
17620}
17621_ACEOF
17622if ac_fn_c_try_run "$LINENO"; then :
17623  ac_cv_func_lstat_dereferences_slashed_symlink=yes
17624else
17625  ac_cv_func_lstat_dereferences_slashed_symlink=no
17626fi
17627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17628  conftest.$ac_objext conftest.beam conftest.$ac_ext
17629fi
17630
17631else
17632  # If the `ln -s' command failed, then we probably don't even
17633  # have an lstat function.
17634  ac_cv_func_lstat_dereferences_slashed_symlink=no
17635fi
17636rm -f conftest.sym conftest.file
17637
17638fi
17639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
17640$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17641
17642test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
17643
17644cat >>confdefs.h <<_ACEOF
17645#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17646_ACEOF
17647
17648
17649if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
17650  case " $LIBOBJS " in
17651  *" lstat.$ac_objext "* ) ;;
17652  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
17653 ;;
17654esac
17655
17656fi
17657
17658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
17659$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
17660if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
17661  $as_echo_n "(cached) " >&6
17662else
17663  if test "$cross_compiling" = yes; then :
17664  ac_cv_func_lstat_empty_string_bug=yes
17665else
17666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667/* end confdefs.h.  */
17668$ac_includes_default
17669int
17670main ()
17671{
17672struct stat sbuf;
17673  return lstat ("", &sbuf) == 0;
17674  ;
17675  return 0;
17676}
17677_ACEOF
17678if ac_fn_c_try_run "$LINENO"; then :
17679  ac_cv_func_lstat_empty_string_bug=no
17680else
17681  ac_cv_func_lstat_empty_string_bug=yes
17682fi
17683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17684  conftest.$ac_objext conftest.beam conftest.$ac_ext
17685fi
17686
17687fi
17688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
17689$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
17690if test $ac_cv_func_lstat_empty_string_bug = yes; then
17691  case " $LIBOBJS " in
17692  *" lstat.$ac_objext "* ) ;;
17693  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
17694 ;;
17695esac
17696
17697
17698cat >>confdefs.h <<_ACEOF
17699#define HAVE_LSTAT_EMPTY_STRING_BUG 1
17700_ACEOF
17701
17702fi
17703
17704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
17705$as_echo_n "checking whether stat accepts an empty string... " >&6; }
17706if ${ac_cv_func_stat_empty_string_bug+:} false; then :
17707  $as_echo_n "(cached) " >&6
17708else
17709  if test "$cross_compiling" = yes; then :
17710  ac_cv_func_stat_empty_string_bug=yes
17711else
17712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713/* end confdefs.h.  */
17714$ac_includes_default
17715int
17716main ()
17717{
17718struct stat sbuf;
17719  return stat ("", &sbuf) == 0;
17720  ;
17721  return 0;
17722}
17723_ACEOF
17724if ac_fn_c_try_run "$LINENO"; then :
17725  ac_cv_func_stat_empty_string_bug=no
17726else
17727  ac_cv_func_stat_empty_string_bug=yes
17728fi
17729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17730  conftest.$ac_objext conftest.beam conftest.$ac_ext
17731fi
17732
17733fi
17734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
17735$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
17736if test $ac_cv_func_stat_empty_string_bug = yes; then
17737  case " $LIBOBJS " in
17738  *" stat.$ac_objext "* ) ;;
17739  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
17740 ;;
17741esac
17742
17743
17744cat >>confdefs.h <<_ACEOF
17745#define HAVE_STAT_EMPTY_STRING_BUG 1
17746_ACEOF
17747
17748fi
17749
17750ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
17751if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
17752  ac_have_decl=1
17753else
17754  ac_have_decl=0
17755fi
17756
17757cat >>confdefs.h <<_ACEOF
17758#define HAVE_DECL_STRERROR_R $ac_have_decl
17759_ACEOF
17760
17761for ac_func in strerror_r
17762do :
17763  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
17764if test "x$ac_cv_func_strerror_r" = xyes; then :
17765  cat >>confdefs.h <<_ACEOF
17766#define HAVE_STRERROR_R 1
17767_ACEOF
17768
17769fi
17770done
17771
17772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
17773$as_echo_n "checking whether strerror_r returns char *... " >&6; }
17774if ${ac_cv_func_strerror_r_char_p+:} false; then :
17775  $as_echo_n "(cached) " >&6
17776else
17777
17778    ac_cv_func_strerror_r_char_p=no
17779    if test $ac_cv_have_decl_strerror_r = yes; then
17780      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17781/* end confdefs.h.  */
17782$ac_includes_default
17783int
17784main ()
17785{
17786
17787	  char buf[100];
17788	  char x = *strerror_r (0, buf, sizeof buf);
17789	  char *p = strerror_r (0, buf, sizeof buf);
17790	  return !p || x;
17791
17792  ;
17793  return 0;
17794}
17795_ACEOF
17796if ac_fn_c_try_compile "$LINENO"; then :
17797  ac_cv_func_strerror_r_char_p=yes
17798fi
17799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17800    else
17801      # strerror_r is not declared.  Choose between
17802      # systems that have relatively inaccessible declarations for the
17803      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
17804      # former has a strerror_r that returns char*, while the latter
17805      # has a strerror_r that returns `int'.
17806      # This test should segfault on the DEC system.
17807      if test "$cross_compiling" = yes; then :
17808  :
17809else
17810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17811/* end confdefs.h.  */
17812$ac_includes_default
17813	extern char *strerror_r ();
17814int
17815main ()
17816{
17817char buf[100];
17818	  char x = *strerror_r (0, buf, sizeof buf);
17819	  return ! isalpha (x);
17820  ;
17821  return 0;
17822}
17823_ACEOF
17824if ac_fn_c_try_run "$LINENO"; then :
17825  ac_cv_func_strerror_r_char_p=yes
17826fi
17827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17828  conftest.$ac_objext conftest.beam conftest.$ac_ext
17829fi
17830
17831    fi
17832
17833fi
17834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17835$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
17836if test $ac_cv_func_strerror_r_char_p = yes; then
17837
17838$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17839
17840fi
17841
17842for ac_func in strftime
17843do :
17844  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
17845if test "x$ac_cv_func_strftime" = xyes; then :
17846  cat >>confdefs.h <<_ACEOF
17847#define HAVE_STRFTIME 1
17848_ACEOF
17849
17850else
17851  # strftime is in -lintl on SCO UNIX.
17852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
17853$as_echo_n "checking for strftime in -lintl... " >&6; }
17854if ${ac_cv_lib_intl_strftime+:} false; then :
17855  $as_echo_n "(cached) " >&6
17856else
17857  ac_check_lib_save_LIBS=$LIBS
17858LIBS="-lintl  $LIBS"
17859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860/* end confdefs.h.  */
17861
17862/* Override any GCC internal prototype to avoid an error.
17863   Use char because int might match the return type of a GCC
17864   builtin and then its argument prototype would still apply.  */
17865#ifdef __cplusplus
17866extern "C"
17867#endif
17868char strftime ();
17869int
17870main ()
17871{
17872return strftime ();
17873  ;
17874  return 0;
17875}
17876_ACEOF
17877if ac_fn_c_try_link "$LINENO"; then :
17878  ac_cv_lib_intl_strftime=yes
17879else
17880  ac_cv_lib_intl_strftime=no
17881fi
17882rm -f core conftest.err conftest.$ac_objext \
17883    conftest$ac_exeext conftest.$ac_ext
17884LIBS=$ac_check_lib_save_LIBS
17885fi
17886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
17887$as_echo "$ac_cv_lib_intl_strftime" >&6; }
17888if test "x$ac_cv_lib_intl_strftime" = xyes; then :
17889  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
17890
17891LIBS="-lintl $LIBS"
17892fi
17893
17894fi
17895done
17896
17897for ac_func in vprintf
17898do :
17899  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
17900if test "x$ac_cv_func_vprintf" = xyes; then :
17901  cat >>confdefs.h <<_ACEOF
17902#define HAVE_VPRINTF 1
17903_ACEOF
17904
17905ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
17906if test "x$ac_cv_func__doprnt" = xyes; then :
17907
17908$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
17909
17910fi
17911
17912fi
17913done
17914
17915
17916# check for:
17917#   CreateHardLinkA(LPCSTR, LPCSTR, LPSECURITY_ATTRIBUTES)
17918# To avoid necessity for including windows.h or special forward declaration
17919# workarounds, we use 'void *' for 'struct SECURITY_ATTRIBUTES *'
17920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateHardLinkA" >&5
17921$as_echo_n "checking for CreateHardLinkA... " >&6; }
17922if ${ac_cv_func_CreateHardLinkA+:} false; then :
17923  $as_echo_n "(cached) " >&6
17924else
17925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926/* end confdefs.h.  */
17927/* System header to define __stub macros and hopefully few prototypes,
17928    which can conflict with char __stdcall CreateHardLinkA ( const char *, const char *, void * ) below.  */
17929#include <assert.h>
17930/* Override any gcc2 internal prototype to avoid an error.  */
17931#ifdef __cplusplus
17932extern "C"
17933#endif
17934/* We use char because int might match the return type of a gcc2
17935   builtin and then its argument prototype would still apply.  */
17936char __stdcall CreateHardLinkA ( const char *, const char *, void * );
17937char (*f) ( const char *, const char *, void * );
17938
17939int
17940main ()
17941{
17942/* The GNU C library defines this for functions which it implements
17943    to always fail with ENOSYS.  Some functions are actually named
17944    something starting with __ and the normal name is an alias.  */
17945#if defined (__stub_CreateHardLinkA) || defined (__stub___CreateHardLinkA)
17946choke me
17947#else
17948f = CreateHardLinkA;
17949#endif
17950
17951  ;
17952  return 0;
17953}
17954_ACEOF
17955if ac_fn_c_try_link "$LINENO"; then :
17956  ac_cv_func_CreateHardLinkA=yes
17957else
17958  ac_cv_func_CreateHardLinkA=no
17959fi
17960rm -f core conftest.err conftest.$ac_objext \
17961    conftest$ac_exeext conftest.$ac_ext
17962fi
17963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_CreateHardLinkA" >&5
17964$as_echo "$ac_cv_func_CreateHardLinkA" >&6; }
17965if test $ac_cv_func_CreateHardLinkA = yes; then :
17966
17967fi
17968for ac_func in arc4random_buf chflags chown chroot ctime_r
17969do :
17970  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17971ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17972if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17973  cat >>confdefs.h <<_ACEOF
17974#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17975_ACEOF
17976
17977fi
17978done
17979
17980for ac_func in fchdir fchflags fchmod fchown fcntl fdopendir fork
17981do :
17982  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17983ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17984if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17985  cat >>confdefs.h <<_ACEOF
17986#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17987_ACEOF
17988
17989fi
17990done
17991
17992for ac_func in fstat fstatat fstatfs fstatvfs ftruncate
17993do :
17994  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17995ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17996if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17997  cat >>confdefs.h <<_ACEOF
17998#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17999_ACEOF
18000
18001fi
18002done
18003
18004for ac_func in futimens futimes futimesat
18005do :
18006  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18007ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18008if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18009  cat >>confdefs.h <<_ACEOF
18010#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18011_ACEOF
18012
18013fi
18014done
18015
18016for ac_func in geteuid getpid getgrgid_r getgrnam_r
18017do :
18018  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18019ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18020if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18021  cat >>confdefs.h <<_ACEOF
18022#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18023_ACEOF
18024
18025fi
18026done
18027
18028for ac_func in getpwnam_r getpwuid_r getvfsbyname gmtime_r
18029do :
18030  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18031ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18032if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18033  cat >>confdefs.h <<_ACEOF
18034#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18035_ACEOF
18036
18037fi
18038done
18039
18040for ac_func in lchflags lchmod lchown link linkat localtime_r lstat lutimes
18041do :
18042  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18043ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18044if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18045  cat >>confdefs.h <<_ACEOF
18046#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18047_ACEOF
18048
18049fi
18050done
18051
18052for ac_func in mbrtowc memmove memset
18053do :
18054  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18055ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18056if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18057  cat >>confdefs.h <<_ACEOF
18058#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18059_ACEOF
18060
18061fi
18062done
18063
18064for ac_func in mkdir mkfifo mknod mkstemp
18065do :
18066  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18067ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18068if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18069  cat >>confdefs.h <<_ACEOF
18070#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18071_ACEOF
18072
18073fi
18074done
18075
18076for ac_func in nl_langinfo openat pipe poll posix_spawnp readlink readlinkat
18077do :
18078  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18079ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18080if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18081  cat >>confdefs.h <<_ACEOF
18082#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18083_ACEOF
18084
18085fi
18086done
18087
18088for ac_func in readpassphrase
18089do :
18090  ac_fn_c_check_func "$LINENO" "readpassphrase" "ac_cv_func_readpassphrase"
18091if test "x$ac_cv_func_readpassphrase" = xyes; then :
18092  cat >>confdefs.h <<_ACEOF
18093#define HAVE_READPASSPHRASE 1
18094_ACEOF
18095
18096fi
18097done
18098
18099for ac_func in select setenv setlocale sigaction statfs statvfs
18100do :
18101  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18102ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18103if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18104  cat >>confdefs.h <<_ACEOF
18105#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18106_ACEOF
18107
18108fi
18109done
18110
18111for ac_func in strchr strdup strerror strncpy_s strnlen strrchr symlink
18112do :
18113  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18114ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18115if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18116  cat >>confdefs.h <<_ACEOF
18117#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18118_ACEOF
18119
18120fi
18121done
18122
18123for ac_func in timegm tzset unlinkat unsetenv utime utimensat utimes vfork
18124do :
18125  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18126ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18127if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18128  cat >>confdefs.h <<_ACEOF
18129#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18130_ACEOF
18131
18132fi
18133done
18134
18135for ac_func in wcrtomb wcscmp wcscpy wcslen wctomb wmemcmp wmemcpy wmemmove
18136do :
18137  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18138ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18139if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18140  cat >>confdefs.h <<_ACEOF
18141#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18142_ACEOF
18143
18144fi
18145done
18146
18147for ac_func in _ctime64_s _fseeki64
18148do :
18149  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18150ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18151if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18152  cat >>confdefs.h <<_ACEOF
18153#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18154_ACEOF
18155
18156fi
18157done
18158
18159for ac_func in _get_timezone _gmtime64_s _localtime64_s _mkgmtime64
18160do :
18161  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18162ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18163if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18164  cat >>confdefs.h <<_ACEOF
18165#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18166_ACEOF
18167
18168fi
18169done
18170
18171# detects cygwin-1.7, as opposed to older versions
18172for ac_func in cygwin_conv_path
18173do :
18174  ac_fn_c_check_func "$LINENO" "cygwin_conv_path" "ac_cv_func_cygwin_conv_path"
18175if test "x$ac_cv_func_cygwin_conv_path" = xyes; then :
18176  cat >>confdefs.h <<_ACEOF
18177#define HAVE_CYGWIN_CONV_PATH 1
18178_ACEOF
18179
18180fi
18181done
18182
18183
18184# DragonFly uses vfsconf, FreeBSD xvfsconf.
18185ac_fn_c_check_type "$LINENO" "struct vfsconf" "ac_cv_type_struct_vfsconf" "#if HAVE_SYS_TYPES_H
18186	#include <sys/types.h>
18187	#endif
18188	#include <sys/mount.h>
18189
18190"
18191if test "x$ac_cv_type_struct_vfsconf" = xyes; then :
18192
18193cat >>confdefs.h <<_ACEOF
18194#define HAVE_STRUCT_VFSCONF 1
18195_ACEOF
18196
18197
18198fi
18199
18200
18201ac_fn_c_check_type "$LINENO" "struct xvfsconf" "ac_cv_type_struct_xvfsconf" "#if HAVE_SYS_TYPES_H
18202	#include <sys/types.h>
18203	#endif
18204	#include <sys/mount.h>
18205
18206"
18207if test "x$ac_cv_type_struct_xvfsconf" = xyes; then :
18208
18209cat >>confdefs.h <<_ACEOF
18210#define HAVE_STRUCT_XVFSCONF 1
18211_ACEOF
18212
18213
18214fi
18215
18216
18217ac_fn_c_check_type "$LINENO" "struct statfs" "ac_cv_type_struct_statfs" "#if HAVE_SYS_TYPES_H
18218	#include <sys/types.h>
18219	#endif
18220	#include <sys/mount.h>
18221
18222"
18223if test "x$ac_cv_type_struct_statfs" = xyes; then :
18224
18225cat >>confdefs.h <<_ACEOF
18226#define HAVE_STRUCT_STATFS 1
18227_ACEOF
18228
18229
18230fi
18231
18232
18233# There are several variants of readdir_r around; we only
18234# accept the POSIX-compliant version.
18235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236/* end confdefs.h.  */
18237#include <dirent.h>
18238int
18239main ()
18240{
18241DIR *dir; struct dirent e, *r;
18242		    return(readdir_r(dir, &e, &r));
18243  ;
18244  return 0;
18245}
18246_ACEOF
18247if ac_fn_c_try_compile "$LINENO"; then :
18248
18249$as_echo "#define HAVE_READDIR_R 1" >>confdefs.h
18250
18251
18252fi
18253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18254# dirfd can be either a function or a macro.
18255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256/* end confdefs.h.  */
18257#include <dirent.h>
18258                    DIR *dir;
18259int
18260main ()
18261{
18262return(dirfd(dir));
18263  ;
18264  return 0;
18265}
18266_ACEOF
18267if ac_fn_c_try_compile "$LINENO"; then :
18268
18269$as_echo "#define HAVE_DIRFD 1" >>confdefs.h
18270
18271
18272fi
18273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18274
18275# FreeBSD's nl_langinfo supports an option to specify whether the
18276# current locale uses month/day or day/month ordering.  It makes the
18277# output a little prettier...
18278ac_fn_c_check_decl "$LINENO" "D_MD_ORDER" "ac_cv_have_decl_D_MD_ORDER" "#if HAVE_LANGINFO_H
18279#include <langinfo.h>
18280#endif
18281
18282"
18283if test "x$ac_cv_have_decl_D_MD_ORDER" = xyes; then :
18284
18285$as_echo "#define HAVE_D_MD_ORDER 1" >>confdefs.h
18286
18287fi
18288
18289
18290# Check for dirent.d_namlen field explicitly
18291# (This is a bit more straightforward than, if not quite as portable as,
18292# the recipe given by the autoconf maintainers.)
18293ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#if HAVE_DIRENT_H
18294#include <dirent.h>
18295#endif
18296
18297"
18298if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes; then :
18299
18300fi
18301
18302
18303# Check for Extended Attributes support
18304# Check whether --enable-xattr was given.
18305if test "${enable_xattr+set}" = set; then :
18306  enableval=$enable_xattr;
18307fi
18308
18309
18310if test "x$enable_xattr" != "xno"; then
18311    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setxattr" >&5
18312$as_echo_n "checking for library containing setxattr... " >&6; }
18313if ${ac_cv_search_setxattr+:} false; then :
18314  $as_echo_n "(cached) " >&6
18315else
18316  ac_func_search_save_LIBS=$LIBS
18317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318/* end confdefs.h.  */
18319
18320/* Override any GCC internal prototype to avoid an error.
18321   Use char because int might match the return type of a GCC
18322   builtin and then its argument prototype would still apply.  */
18323#ifdef __cplusplus
18324extern "C"
18325#endif
18326char setxattr ();
18327int
18328main ()
18329{
18330return setxattr ();
18331  ;
18332  return 0;
18333}
18334_ACEOF
18335for ac_lib in '' attr gnu; do
18336  if test -z "$ac_lib"; then
18337    ac_res="none required"
18338  else
18339    ac_res=-l$ac_lib
18340    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18341  fi
18342  if ac_fn_c_try_link "$LINENO"; then :
18343  ac_cv_search_setxattr=$ac_res
18344fi
18345rm -f core conftest.err conftest.$ac_objext \
18346    conftest$ac_exeext
18347  if ${ac_cv_search_setxattr+:} false; then :
18348  break
18349fi
18350done
18351if ${ac_cv_search_setxattr+:} false; then :
18352
18353else
18354  ac_cv_search_setxattr=no
18355fi
18356rm conftest.$ac_ext
18357LIBS=$ac_func_search_save_LIBS
18358fi
18359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setxattr" >&5
18360$as_echo "$ac_cv_search_setxattr" >&6; }
18361ac_res=$ac_cv_search_setxattr
18362if test "$ac_res" != no; then :
18363  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18364
18365fi
18366
18367    ac_fn_c_check_decl "$LINENO" "EXTATTR_NAMESPACE_USER" "ac_cv_have_decl_EXTATTR_NAMESPACE_USER" "#include <sys/types.h>
18368#include <sys/extattr.h>
18369
18370"
18371if test "x$ac_cv_have_decl_EXTATTR_NAMESPACE_USER" = xyes; then :
18372  ac_have_decl=1
18373else
18374  ac_have_decl=0
18375fi
18376
18377cat >>confdefs.h <<_ACEOF
18378#define HAVE_DECL_EXTATTR_NAMESPACE_USER $ac_have_decl
18379_ACEOF
18380
18381    ac_fn_c_check_decl "$LINENO" "XATTR_NOFOLLOW" "ac_cv_have_decl_XATTR_NOFOLLOW" "#include <sys/xattr.h>
18382
18383"
18384if test "x$ac_cv_have_decl_XATTR_NOFOLLOW" = xyes; then :
18385  ac_have_decl=1
18386else
18387  ac_have_decl=0
18388fi
18389
18390cat >>confdefs.h <<_ACEOF
18391#define HAVE_DECL_XATTR_NOFOLLOW $ac_have_decl
18392_ACEOF
18393
18394    if test "x$ac_cv_header_sys_xattr_h" = "xyes" \
18395	 -a "x$ac_cv_have_decl_XATTR_NOFOLLOW" = "xyes"; then
18396	# Darwin extended attributes support
18397	if ${ac_cv_archive_xattr_darwin+:} false; then :
18398  $as_echo_n "(cached) " >&6
18399else
18400  for ac_func in fgetxattr \
18401			  flistxattr \
18402			  fsetxattr \
18403			  getxattr \
18404			  listxattr \
18405			  setxattr
18406do :
18407  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18408ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18409if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18410  cat >>confdefs.h <<_ACEOF
18411#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18412_ACEOF
18413 ac_cv_archive_xattr_darwin=yes
18414else
18415  ac_cv_archive_xattr_darwin=no
18416fi
18417done
18418
18419
18420
18421fi
18422
18423    elif test "x$ac_cv_header_sys_extattr_h" = "xyes" \
18424           -a "x$ac_cv_have_decl_EXTATTR_NAMESPACE_USER" = "xyes"; then
18425	# FreeBSD extended attributes support
18426	if ${ac_cv_archive_xattr_freebsd+:} false; then :
18427  $as_echo_n "(cached) " >&6
18428else
18429  for ac_func in extattr_get_fd \
18430			  extattr_get_file \
18431			  extattr_get_link \
18432			  extattr_list_fd \
18433			  extattr_list_file \
18434			  extattr_list_link \
18435			  extattr_set_fd \
18436			  extattr_set_link
18437do :
18438  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18439ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18440if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18441  cat >>confdefs.h <<_ACEOF
18442#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18443_ACEOF
18444 ac_cv_archive_xattr_freebsd=yes
18445else
18446  ac_cv_archive_xattr_freebsd=no
18447fi
18448done
18449
18450
18451
18452fi
18453
18454    elif test "x$ac_cv_header_sys_xattr_h" = "xyes" \
18455	   -o "x$ac_cv_header_attr_xattr_h" = "xyes"; then
18456	# Linux extended attributes support
18457	if ${ac_cv_archive_xattr_linux+:} false; then :
18458  $as_echo_n "(cached) " >&6
18459else
18460  for ac_func in fgetxattr \
18461			  flistxattr \
18462			  fsetxattr \
18463			  getxattr \
18464			  lgetxattr \
18465			  listxattr \
18466			  llistxattr \
18467			  lsetxattr
18468do :
18469  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18470ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18471if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18472  cat >>confdefs.h <<_ACEOF
18473#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18474_ACEOF
18475 ac_cv_archive_xattr_linux=yes
18476else
18477  ac_cv_archive_xattr_linux=no
18478fi
18479done
18480
18481
18482
18483fi
18484
18485    elif test "x$ac_cv_header_sys_ea_h" = "xyes"; then
18486	# AIX extended attributes support
18487	if ${ac_cv_archive_xattr_aix+:} false; then :
18488  $as_echo_n "(cached) " >&6
18489else
18490  for ac_func in fgetea \
18491			  flistea \
18492			  fsetea \
18493			  getea \
18494			  lgetea \
18495			  listea \
18496			  llistea \
18497			  lsetea
18498do :
18499  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18500ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18501if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18502  cat >>confdefs.h <<_ACEOF
18503#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18504_ACEOF
18505 ac_cv_archive_xattr_aix=yes
18506else
18507  ac_cv_archive_xattr_aix=no
18508fi
18509done
18510
18511
18512
18513fi
18514
18515    fi
18516
18517    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5
18518$as_echo_n "checking for extended attributes support... " >&6; }
18519    if test "x$ac_cv_archive_xattr_linux" = "xyes"; then
18520
18521$as_echo "#define ARCHIVE_XATTR_LINUX 1" >>confdefs.h
18522
18523	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
18524$as_echo "Linux" >&6; }
18525    elif test "x$ac_cv_archive_xattr_darwin" = "xyes"; then
18526
18527$as_echo "#define ARCHIVE_XATTR_DARWIN 1" >>confdefs.h
18528
18529	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
18530$as_echo "Darwin" >&6; }
18531    elif test "x$ac_cv_archive_xattr_freebsd" = "xyes"; then
18532
18533$as_echo "#define ARCHIVE_XATTR_FREEBSD 1" >>confdefs.h
18534
18535	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
18536$as_echo "FreeBSD" >&6; }
18537    elif test "x$ac_cv_archive_xattr_aix" = "xyes"; then
18538
18539$as_echo "#define ARCHIVE_XATTR_AIX 1" >>confdefs.h
18540
18541	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX" >&5
18542$as_echo "AIX" >&6; }
18543    else
18544	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
18545$as_echo "none" >&6; }
18546    fi
18547fi
18548
18549# Check for ACL support
18550#
18551# The ACL support in libarchive is written against the POSIX1e draft,
18552# which was never officially approved and varies quite a bit across
18553# platforms.  Worse, some systems have completely non-POSIX acl functions,
18554# which makes the following checks rather more complex than I would like.
18555#
18556# Check whether --enable-acl was given.
18557if test "${enable_acl+set}" = set; then :
18558  enableval=$enable_acl;
18559fi
18560
18561
18562if test "x$enable_acl" != "xno"; then
18563    # Libacl
18564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
18565$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
18566if ${ac_cv_lib_acl_acl_get_file+:} false; then :
18567  $as_echo_n "(cached) " >&6
18568else
18569  ac_check_lib_save_LIBS=$LIBS
18570LIBS="-lacl  $LIBS"
18571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18572/* end confdefs.h.  */
18573
18574/* Override any GCC internal prototype to avoid an error.
18575   Use char because int might match the return type of a GCC
18576   builtin and then its argument prototype would still apply.  */
18577#ifdef __cplusplus
18578extern "C"
18579#endif
18580char acl_get_file ();
18581int
18582main ()
18583{
18584return acl_get_file ();
18585  ;
18586  return 0;
18587}
18588_ACEOF
18589if ac_fn_c_try_link "$LINENO"; then :
18590  ac_cv_lib_acl_acl_get_file=yes
18591else
18592  ac_cv_lib_acl_acl_get_file=no
18593fi
18594rm -f core conftest.err conftest.$ac_objext \
18595    conftest$ac_exeext conftest.$ac_ext
18596LIBS=$ac_check_lib_save_LIBS
18597fi
18598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
18599$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
18600if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
18601  cat >>confdefs.h <<_ACEOF
18602#define HAVE_LIBACL 1
18603_ACEOF
18604
18605  LIBS="-lacl $LIBS"
18606
18607fi
18608
18609
18610    ac_fn_c_check_type "$LINENO" "acl_t" "ac_cv_type_acl_t" "
18611      #if HAVE_SYS_TYPES_H
18612      #include <sys/types.h>
18613      #endif
18614      #if HAVE_SYS_ACL_H
18615      #include <sys/acl.h>
18616      #endif
18617
18618"
18619if test "x$ac_cv_type_acl_t" = xyes; then :
18620
18621cat >>confdefs.h <<_ACEOF
18622#define HAVE_ACL_T 1
18623_ACEOF
18624
18625
18626fi
18627ac_fn_c_check_type "$LINENO" "acl_entry_t" "ac_cv_type_acl_entry_t" "
18628      #if HAVE_SYS_TYPES_H
18629      #include <sys/types.h>
18630      #endif
18631      #if HAVE_SYS_ACL_H
18632      #include <sys/acl.h>
18633      #endif
18634
18635"
18636if test "x$ac_cv_type_acl_entry_t" = xyes; then :
18637
18638cat >>confdefs.h <<_ACEOF
18639#define HAVE_ACL_ENTRY_T 1
18640_ACEOF
18641
18642
18643fi
18644ac_fn_c_check_type "$LINENO" "acl_permset_t" "ac_cv_type_acl_permset_t" "
18645      #if HAVE_SYS_TYPES_H
18646      #include <sys/types.h>
18647      #endif
18648      #if HAVE_SYS_ACL_H
18649      #include <sys/acl.h>
18650      #endif
18651
18652"
18653if test "x$ac_cv_type_acl_permset_t" = xyes; then :
18654
18655cat >>confdefs.h <<_ACEOF
18656#define HAVE_ACL_PERMSET_T 1
18657_ACEOF
18658
18659
18660fi
18661ac_fn_c_check_type "$LINENO" "acl_tag_t" "ac_cv_type_acl_tag_t" "
18662      #if HAVE_SYS_TYPES_H
18663      #include <sys/types.h>
18664      #endif
18665      #if HAVE_SYS_ACL_H
18666      #include <sys/acl.h>
18667      #endif
18668
18669"
18670if test "x$ac_cv_type_acl_tag_t" = xyes; then :
18671
18672cat >>confdefs.h <<_ACEOF
18673#define HAVE_ACL_TAG_T 1
18674_ACEOF
18675
18676
18677fi
18678
18679
18680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for richacl_get_file in -lrichacl" >&5
18681$as_echo_n "checking for richacl_get_file in -lrichacl... " >&6; }
18682if ${ac_cv_lib_richacl_richacl_get_file+:} false; then :
18683  $as_echo_n "(cached) " >&6
18684else
18685  ac_check_lib_save_LIBS=$LIBS
18686LIBS="-lrichacl  $LIBS"
18687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688/* end confdefs.h.  */
18689
18690/* Override any GCC internal prototype to avoid an error.
18691   Use char because int might match the return type of a GCC
18692   builtin and then its argument prototype would still apply.  */
18693#ifdef __cplusplus
18694extern "C"
18695#endif
18696char richacl_get_file ();
18697int
18698main ()
18699{
18700return richacl_get_file ();
18701  ;
18702  return 0;
18703}
18704_ACEOF
18705if ac_fn_c_try_link "$LINENO"; then :
18706  ac_cv_lib_richacl_richacl_get_file=yes
18707else
18708  ac_cv_lib_richacl_richacl_get_file=no
18709fi
18710rm -f core conftest.err conftest.$ac_objext \
18711    conftest$ac_exeext conftest.$ac_ext
18712LIBS=$ac_check_lib_save_LIBS
18713fi
18714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_richacl_richacl_get_file" >&5
18715$as_echo "$ac_cv_lib_richacl_richacl_get_file" >&6; }
18716if test "x$ac_cv_lib_richacl_richacl_get_file" = xyes; then :
18717  cat >>confdefs.h <<_ACEOF
18718#define HAVE_LIBRICHACL 1
18719_ACEOF
18720
18721  LIBS="-lrichacl $LIBS"
18722
18723fi
18724
18725
18726    ac_fn_c_check_type "$LINENO" "struct richace" "ac_cv_type_struct_richace" "
18727      #if HAVE_SYS_RICHACL_H
18728      #include <sys/richacl.h>
18729      #endif
18730
18731"
18732if test "x$ac_cv_type_struct_richace" = xyes; then :
18733
18734cat >>confdefs.h <<_ACEOF
18735#define HAVE_STRUCT_RICHACE 1
18736_ACEOF
18737
18738
18739fi
18740ac_fn_c_check_type "$LINENO" "struct richacl" "ac_cv_type_struct_richacl" "
18741      #if HAVE_SYS_RICHACL_H
18742      #include <sys/richacl.h>
18743      #endif
18744
18745"
18746if test "x$ac_cv_type_struct_richacl" = xyes; then :
18747
18748cat >>confdefs.h <<_ACEOF
18749#define HAVE_STRUCT_RICHACL 1
18750_ACEOF
18751
18752
18753fi
18754
18755
18756    # Solaris and derivates ACLs
18757    for ac_func in acl facl
18758do :
18759  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18760ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18761if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18762  cat >>confdefs.h <<_ACEOF
18763#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18764_ACEOF
18765
18766fi
18767done
18768
18769
18770    if test "x$ac_cv_lib_richacl_richacl_get_file" = "xyes" \
18771	 -a "x$ac_cv_type_struct_richace" = "xyes" \
18772	 -a "x$ac_cv_type_struct_richacl" = "xyes"; then
18773	if ${ac_cv_archive_acl_librichacl+:} false; then :
18774  $as_echo_n "(cached) " >&6
18775else
18776  for ac_func in richacl_alloc \
18777			  richacl_equiv_mode \
18778			  richacl_free \
18779			  richacl_get_fd \
18780			  richacl_get_file \
18781			  richacl_set_fd \
18782			  richacl_set_file
18783do :
18784  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18785ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18786if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18787  cat >>confdefs.h <<_ACEOF
18788#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18789_ACEOF
18790 ac_cv_archive_acl_librichacl=yes
18791else
18792  ac_cv_archive_acl_librichacl=no
18793fi
18794done
18795
18796fi
18797
18798    fi
18799
18800    if test "x$ac_cv_func_acl" = "xyes" \
18801	 -a "x$ac_cv_func_facl" = "xyes"; then
18802	ac_fn_c_check_type "$LINENO" "aclent_t" "ac_cv_type_aclent_t" "#include <sys/acl.h>
18803"
18804if test "x$ac_cv_type_aclent_t" = xyes; then :
18805
18806cat >>confdefs.h <<_ACEOF
18807#define HAVE_ACLENT_T 1
18808_ACEOF
18809
18810
18811fi
18812
18813	if test "x$ac_cv_type_aclent_t" = "xyes"; then
18814	    if ${ac_cv_archive_acl_sunos+:} false; then :
18815  $as_echo_n "(cached) " >&6
18816else
18817  ac_fn_c_check_decl "$LINENO" "GETACL" "ac_cv_have_decl_GETACL" "#include <sys/acl.h>
18818"
18819if test "x$ac_cv_have_decl_GETACL" = xyes; then :
18820  ac_have_decl=1
18821else
18822  ac_have_decl=0
18823fi
18824
18825cat >>confdefs.h <<_ACEOF
18826#define HAVE_DECL_GETACL $ac_have_decl
18827_ACEOF
18828if test $ac_have_decl = 1; then :
18829  ac_cv_archive_acl_sunos=yes
18830else
18831  ac_cv_archive_acl_sunos=no
18832fi
18833ac_fn_c_check_decl "$LINENO" "SETACL" "ac_cv_have_decl_SETACL" "#include <sys/acl.h>
18834"
18835if test "x$ac_cv_have_decl_SETACL" = xyes; then :
18836  ac_have_decl=1
18837else
18838  ac_have_decl=0
18839fi
18840
18841cat >>confdefs.h <<_ACEOF
18842#define HAVE_DECL_SETACL $ac_have_decl
18843_ACEOF
18844if test $ac_have_decl = 1; then :
18845  ac_cv_archive_acl_sunos=yes
18846else
18847  ac_cv_archive_acl_sunos=no
18848fi
18849ac_fn_c_check_decl "$LINENO" "GETACLCNT" "ac_cv_have_decl_GETACLCNT" "#include <sys/acl.h>
18850"
18851if test "x$ac_cv_have_decl_GETACLCNT" = xyes; then :
18852  ac_have_decl=1
18853else
18854  ac_have_decl=0
18855fi
18856
18857cat >>confdefs.h <<_ACEOF
18858#define HAVE_DECL_GETACLCNT $ac_have_decl
18859_ACEOF
18860if test $ac_have_decl = 1; then :
18861  ac_cv_archive_acl_sunos=yes
18862else
18863  ac_cv_archive_acl_sunos=no
18864fi
18865
18866fi
18867
18868	    ac_fn_c_check_type "$LINENO" "ace_t" "ac_cv_type_ace_t" "#include <sys/acl.h>
18869"
18870if test "x$ac_cv_type_ace_t" = xyes; then :
18871
18872cat >>confdefs.h <<_ACEOF
18873#define HAVE_ACE_T 1
18874_ACEOF
18875
18876
18877fi
18878
18879	    if test "x$ac_cv_type_ace_t" = "xyes"; then
18880		if ${ac_cv_archive_acl_sunos_nfs4+:} false; then :
18881  $as_echo_n "(cached) " >&6
18882else
18883  ac_fn_c_check_decl "$LINENO" "ACE_GETACL" "ac_cv_have_decl_ACE_GETACL" "#include <sys/acl.h>
18884"
18885if test "x$ac_cv_have_decl_ACE_GETACL" = xyes; then :
18886  ac_have_decl=1
18887else
18888  ac_have_decl=0
18889fi
18890
18891cat >>confdefs.h <<_ACEOF
18892#define HAVE_DECL_ACE_GETACL $ac_have_decl
18893_ACEOF
18894if test $ac_have_decl = 1; then :
18895  ac_cv_archive_acl_sunos_nfs4=yes
18896else
18897  ac_cv_archive_acl_sonos_nfs4=no
18898fi
18899ac_fn_c_check_decl "$LINENO" "ACE_SETACL" "ac_cv_have_decl_ACE_SETACL" "#include <sys/acl.h>
18900"
18901if test "x$ac_cv_have_decl_ACE_SETACL" = xyes; then :
18902  ac_have_decl=1
18903else
18904  ac_have_decl=0
18905fi
18906
18907cat >>confdefs.h <<_ACEOF
18908#define HAVE_DECL_ACE_SETACL $ac_have_decl
18909_ACEOF
18910if test $ac_have_decl = 1; then :
18911  ac_cv_archive_acl_sunos_nfs4=yes
18912else
18913  ac_cv_archive_acl_sonos_nfs4=no
18914fi
18915ac_fn_c_check_decl "$LINENO" "ACE_GETACLCNT" "ac_cv_have_decl_ACE_GETACLCNT" "#include <sys/acl.h>
18916"
18917if test "x$ac_cv_have_decl_ACE_GETACLCNT" = xyes; then :
18918  ac_have_decl=1
18919else
18920  ac_have_decl=0
18921fi
18922
18923cat >>confdefs.h <<_ACEOF
18924#define HAVE_DECL_ACE_GETACLCNT $ac_have_decl
18925_ACEOF
18926if test $ac_have_decl = 1; then :
18927  ac_cv_archive_acl_sunos_nfs4=yes
18928else
18929  ac_cv_archive_acl_sonos_nfs4=no
18930fi
18931
18932fi
18933
18934	    fi
18935	fi
18936    elif test "x$ac_cv_type_acl_t" = "xyes" \
18937	 -a "x$ac_cv_type_acl_entry_t" = "xyes" \
18938	 -a "x$ac_cv_type_acl_permset_t" = "xyes" \
18939	 -a "x$ac_cv_type_acl_tag_t" = "xyes"; then
18940	# POSIX.1e ACL functions
18941	if ${ac_cv_posix_acl_funcs+:} false; then :
18942  $as_echo_n "(cached) " >&6
18943else
18944  for ac_func in acl_add_perm \
18945			  acl_clear_perms \
18946			  acl_create_entry \
18947			  acl_delete_def_file \
18948			  acl_free \
18949			  acl_get_entry \
18950			  acl_get_fd \
18951			  acl_get_file \
18952			  acl_get_permset \
18953			  acl_get_qualifier \
18954			  acl_get_tag_type \
18955			  acl_init \
18956			  acl_set_fd \
18957			  acl_set_file \
18958			  acl_set_qualifier \
18959			  acl_set_tag_type
18960do :
18961  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18962ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18963if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18964  cat >>confdefs.h <<_ACEOF
18965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18966_ACEOF
18967 ac_cv_posix_acl_funcs=yes
18968else
18969  ac_cv_posix_acl_funcs=no
18970fi
18971done
18972
18973
18974fi
18975
18976
18977	for ac_func in acl_get_perm
18978do :
18979  ac_fn_c_check_func "$LINENO" "acl_get_perm" "ac_cv_func_acl_get_perm"
18980if test "x$ac_cv_func_acl_get_perm" = xyes; then :
18981  cat >>confdefs.h <<_ACEOF
18982#define HAVE_ACL_GET_PERM 1
18983_ACEOF
18984
18985fi
18986done
18987
18988
18989	if test "x$ac_cv_posix_acl_funcs" = "xyes" \
18990	     -a "x$ac_cv_header_acl_libacl_h" = "xyes" \
18991	     -a "x$ac_cv_lib_acl_acl_get_file" = "xyes" \
18992	     -a "x$ac_cv_func_acl_get_perm"; then
18993	    if ${ac_cv_archive_acl_libacl+:} false; then :
18994  $as_echo_n "(cached) " >&6
18995else
18996  ac_cv_archive_acl_libacl=yes
18997fi
18998
18999
19000$as_echo "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h
19001
19002	else
19003	     # FreeBSD/Darwin
19004	     for ac_func in acl_add_flag_np \
19005			    acl_clear_flags_np \
19006			    acl_get_brand_np \
19007			    acl_get_entry_type_np \
19008			    acl_get_flag_np \
19009			    acl_get_flagset_np \
19010			    acl_get_fd_np \
19011			    acl_get_link_np \
19012			    acl_get_perm_np \
19013			    acl_is_trivial_np \
19014			    acl_set_entry_type_np \
19015			    acl_set_fd_np \
19016			    acl_set_link_np
19017do :
19018  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19019ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19020if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19021  cat >>confdefs.h <<_ACEOF
19022#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19023_ACEOF
19024
19025fi
19026done
19027
19028
19029	    for ac_func in mbr_uid_to_uuid \
19030			   mbr_uuid_to_id \
19031			   mbr_gid_to_uuid
19032do :
19033  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19034ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19035if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19036  cat >>confdefs.h <<_ACEOF
19037#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19038_ACEOF
19039
19040fi
19041done
19042
19043
19044	    ac_fn_c_check_decl "$LINENO" "ACL_TYPE_EXTENDED" "ac_cv_have_decl_ACL_TYPE_EXTENDED" "#include <sys/types.h>
19045	       #include <sys/acl.h>
19046"
19047if test "x$ac_cv_have_decl_ACL_TYPE_EXTENDED" = xyes; then :
19048  ac_have_decl=1
19049else
19050  ac_have_decl=0
19051fi
19052
19053cat >>confdefs.h <<_ACEOF
19054#define HAVE_DECL_ACL_TYPE_EXTENDED $ac_have_decl
19055_ACEOF
19056ac_fn_c_check_decl "$LINENO" "ACL_TYPE_NFS4" "ac_cv_have_decl_ACL_TYPE_NFS4" "#include <sys/types.h>
19057	       #include <sys/acl.h>
19058"
19059if test "x$ac_cv_have_decl_ACL_TYPE_NFS4" = xyes; then :
19060  ac_have_decl=1
19061else
19062  ac_have_decl=0
19063fi
19064
19065cat >>confdefs.h <<_ACEOF
19066#define HAVE_DECL_ACL_TYPE_NFS4 $ac_have_decl
19067_ACEOF
19068ac_fn_c_check_decl "$LINENO" "ACL_USER" "ac_cv_have_decl_ACL_USER" "#include <sys/types.h>
19069	       #include <sys/acl.h>
19070"
19071if test "x$ac_cv_have_decl_ACL_USER" = xyes; then :
19072  ac_have_decl=1
19073else
19074  ac_have_decl=0
19075fi
19076
19077cat >>confdefs.h <<_ACEOF
19078#define HAVE_DECL_ACL_USER $ac_have_decl
19079_ACEOF
19080ac_fn_c_check_decl "$LINENO" "ACL_SYNCHRONIZE" "ac_cv_have_decl_ACL_SYNCHRONIZE" "#include <sys/types.h>
19081	       #include <sys/acl.h>
19082"
19083if test "x$ac_cv_have_decl_ACL_SYNCHRONIZE" = xyes; then :
19084  ac_have_decl=1
19085else
19086  ac_have_decl=0
19087fi
19088
19089cat >>confdefs.h <<_ACEOF
19090#define HAVE_DECL_ACL_SYNCHRONIZE $ac_have_decl
19091_ACEOF
19092
19093	    if test "x$ac_cv_posix_acl_funcs" = "xyes" \
19094	         -a "x$ac_cv_func_acl_get_fd_np" = "xyes" \
19095                 -a "x$ac_cv_func_acl_get_perm" != "xyes" \
19096	         -a "x$ac_cv_func_acl_get_perm_np" = "xyes" \
19097	         -a "x$ac_cv_func_acl_set_fd_np" = "xyes"; then
19098		if test "x$ac_cv_have_decl_ACL_USER" = "xyes"; then
19099		    if ${ac_cv_archive_acl_freebsd+:} false; then :
19100  $as_echo_n "(cached) " >&6
19101else
19102  ac_cv_archive_acl_freebsd=yes
19103fi
19104
19105		    if test "x$ac_cv_have_decl_ACL_TYPE_NFS4" = "xyes" \
19106		         -a "x$ac_cv_func_acl_add_flag_np" = "xyes" \
19107		         -a "x$ac_cv_func_acl_get_brand_np" = "xyes" \
19108		         -a "x$ac_cv_func_acl_get_entry_type_np" = "xyes" \
19109		         -a "x$ac_cv_func_acl_get_flagset_np" = "xyes" \
19110		         -a "x$ac_cv_func_acl_set_entry_type_np" = "xyes"; then
19111			if ${ac_cv_archive_acl_freebsd_nfs4+:} false; then :
19112  $as_echo_n "(cached) " >&6
19113else
19114  ac_cv_archive_acl_freebsd_nfs4=yes
19115fi
19116
19117		    fi
19118	        elif test "x$ac_cv_have_decl_ACL_TYPE_EXTENDED" = "xyes" \
19119		       -a "x$ac_cv_func_acl_add_flag_np" = "xyes" \
19120		       -a "x$ac_cv_func_acl_get_flagset_np" = "xyes" \
19121		       -a "x$ac_cv_func_acl_get_link_np" = "xyes" \
19122		       -a "x$ac_cv_func_acl_set_link_np" = "xyes" \
19123		       -a "x$ac_cv_func_mbr_uid_to_uuid" = "xyes" \
19124		       -a "x$ac_cv_func_mbr_uuid_to_id" = "xyes" \
19125		       -a "x$ac_cv_func_mbr_gid_to_uuid" = "xyes"; then
19126		    if ${ac_cv_archive_acl_darwin+:} false; then :
19127  $as_echo_n "(cached) " >&6
19128else
19129  ac_cv_archive_acl_darwin=yes
19130fi
19131
19132	        fi
19133	    fi
19134	fi
19135    fi
19136    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL support" >&5
19137$as_echo_n "checking for ACL support... " >&6; }
19138    if test "x$ac_cv_archive_acl_libacl" = "xyes" \
19139	 -a "x$ac_cv_archive_acl_librichacl" = "xyes"; then
19140	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libacl (POSIX.1e) + librichacl (NFSv4)" >&5
19141$as_echo "libacl (POSIX.1e) + librichacl (NFSv4)" >&6; }
19142
19143$as_echo "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h
19144
19145
19146$as_echo "#define ARCHIVE_ACL_LIBRICHACL 1" >>confdefs.h
19147
19148    elif test "x$ac_cv_archive_acl_libacl" = "xyes"; then
19149	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libacl (POSIX.1e)" >&5
19150$as_echo "libacl (POSIX.1e)" >&6; }
19151
19152$as_echo "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h
19153
19154    elif test "x$ac_cv_archive_acl_librichacl" = "xyes"; then
19155	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: librichacl (NFSv4)" >&5
19156$as_echo "librichacl (NFSv4)" >&6; }
19157
19158$as_echo "#define ARCHIVE_ACL_LIBRICHACL 1" >>confdefs.h
19159
19160    elif test "x$ac_cv_archive_acl_darwin" = "xyes"; then
19161
19162$as_echo "#define ARCHIVE_ACL_DARWIN 1" >>confdefs.h
19163
19164	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin (limited NFSv4)" >&5
19165$as_echo "Darwin (limited NFSv4)" >&6; }
19166    elif test "x$ac_cv_archive_acl_sunos" = "xyes"; then
19167
19168$as_echo "#define ARCHIVE_ACL_SUNOS 1" >>confdefs.h
19169
19170	if test "x$ac_cv_archive_acl_sunos_nfs4" = "xyes"; then
19171
19172$as_echo "#define ARCHIVE_ACL_SUNOS_NFS4 1" >>confdefs.h
19173
19174	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris (POSIX.1e and NFSv4)" >&5
19175$as_echo "Solaris (POSIX.1e and NFSv4)" >&6; }
19176	else
19177	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris (POSIX.1e)" >&5
19178$as_echo "Solaris (POSIX.1e)" >&6; }
19179	fi
19180    elif test "x$ac_cv_archive_acl_freebsd" = "xyes"; then
19181
19182$as_echo "#define ARCHIVE_ACL_FREEBSD 1" >>confdefs.h
19183
19184	if test "x$ac_cv_archive_acl_freebsd_nfs4" = "xyes"; then
19185
19186$as_echo "#define ARCHIVE_ACL_FREEBSD_NFS4 1" >>confdefs.h
19187
19188	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD (POSIX.1e and NFSv4)" >&5
19189$as_echo "FreeBSD (POSIX.1e and NFSv4)" >&6; }
19190	else
19191	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD (POSIX.1e)" >&5
19192$as_echo "FreeBSD (POSIX.1e)" >&6; }
19193	fi
19194    else
19195	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
19196$as_echo "none" >&6; }
19197    fi
19198fi
19199
19200
19201 if test "x$ac_cv_archive_acl_libacl" = "xyes" \
19202     -o "x$ac_cv_archive_acl_librichacl" = "xyes"; then
19203  INC_LINUX_ACL_TRUE=
19204  INC_LINUX_ACL_FALSE='#'
19205else
19206  INC_LINUX_ACL_TRUE='#'
19207  INC_LINUX_ACL_FALSE=
19208fi
19209
19210 if test "x$ac_cv_archive_acl_sunos" = "xyes"; then
19211  INC_SUNOS_ACL_TRUE=
19212  INC_SUNOS_ACL_FALSE='#'
19213else
19214  INC_SUNOS_ACL_TRUE='#'
19215  INC_SUNOS_ACL_FALSE=
19216fi
19217
19218 if test "x$ac_cv_archive_acl_darwin" = "xyes"; then
19219  INC_DARWIN_ACL_TRUE=
19220  INC_DARWIN_ACL_FALSE='#'
19221else
19222  INC_DARWIN_ACL_TRUE='#'
19223  INC_DARWIN_ACL_FALSE=
19224fi
19225
19226 if test "x$ac_cv_archive_acl_freebsd" = "xyes"; then
19227  INC_FREEBSD_ACL_TRUE=
19228  INC_FREEBSD_ACL_FALSE='#'
19229else
19230  INC_FREEBSD_ACL_TRUE='#'
19231  INC_FREEBSD_ACL_FALSE=
19232fi
19233
19234
19235# Additional requirements
19236# Check whether --enable-largefile was given.
19237if test "${enable_largefile+set}" = set; then :
19238  enableval=$enable_largefile;
19239fi
19240
19241if test "$enable_largefile" != no; then
19242
19243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19244$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
19245if ${ac_cv_sys_largefile_CC+:} false; then :
19246  $as_echo_n "(cached) " >&6
19247else
19248  ac_cv_sys_largefile_CC=no
19249     if test "$GCC" != yes; then
19250       ac_save_CC=$CC
19251       while :; do
19252	 # IRIX 6.2 and later do not support large files by default,
19253	 # so use the C compiler's -n32 option if that helps.
19254	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19255/* end confdefs.h.  */
19256#include <sys/types.h>
19257 /* Check that off_t can represent 2**63 - 1 correctly.
19258    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19259    since some C++ compilers masquerading as C compilers
19260    incorrectly reject 9223372036854775807.  */
19261#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19262  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19263		       && LARGE_OFF_T % 2147483647 == 1)
19264		      ? 1 : -1];
19265int
19266main ()
19267{
19268
19269  ;
19270  return 0;
19271}
19272_ACEOF
19273	 if ac_fn_c_try_compile "$LINENO"; then :
19274  break
19275fi
19276rm -f core conftest.err conftest.$ac_objext
19277	 CC="$CC -n32"
19278	 if ac_fn_c_try_compile "$LINENO"; then :
19279  ac_cv_sys_largefile_CC=' -n32'; break
19280fi
19281rm -f core conftest.err conftest.$ac_objext
19282	 break
19283       done
19284       CC=$ac_save_CC
19285       rm -f conftest.$ac_ext
19286    fi
19287fi
19288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19289$as_echo "$ac_cv_sys_largefile_CC" >&6; }
19290  if test "$ac_cv_sys_largefile_CC" != no; then
19291    CC=$CC$ac_cv_sys_largefile_CC
19292  fi
19293
19294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19295$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19296if ${ac_cv_sys_file_offset_bits+:} false; then :
19297  $as_echo_n "(cached) " >&6
19298else
19299  while :; do
19300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19301/* end confdefs.h.  */
19302#include <sys/types.h>
19303 /* Check that off_t can represent 2**63 - 1 correctly.
19304    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19305    since some C++ compilers masquerading as C compilers
19306    incorrectly reject 9223372036854775807.  */
19307#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19308  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19309		       && LARGE_OFF_T % 2147483647 == 1)
19310		      ? 1 : -1];
19311int
19312main ()
19313{
19314
19315  ;
19316  return 0;
19317}
19318_ACEOF
19319if ac_fn_c_try_compile "$LINENO"; then :
19320  ac_cv_sys_file_offset_bits=no; break
19321fi
19322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19324/* end confdefs.h.  */
19325#define _FILE_OFFSET_BITS 64
19326#include <sys/types.h>
19327 /* Check that off_t can represent 2**63 - 1 correctly.
19328    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19329    since some C++ compilers masquerading as C compilers
19330    incorrectly reject 9223372036854775807.  */
19331#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19332  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19333		       && LARGE_OFF_T % 2147483647 == 1)
19334		      ? 1 : -1];
19335int
19336main ()
19337{
19338
19339  ;
19340  return 0;
19341}
19342_ACEOF
19343if ac_fn_c_try_compile "$LINENO"; then :
19344  ac_cv_sys_file_offset_bits=64; break
19345fi
19346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19347  ac_cv_sys_file_offset_bits=unknown
19348  break
19349done
19350fi
19351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19352$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19353case $ac_cv_sys_file_offset_bits in #(
19354  no | unknown) ;;
19355  *)
19356cat >>confdefs.h <<_ACEOF
19357#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19358_ACEOF
19359;;
19360esac
19361rm -rf conftest*
19362  if test $ac_cv_sys_file_offset_bits = unknown; then
19363    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19364$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19365if ${ac_cv_sys_large_files+:} false; then :
19366  $as_echo_n "(cached) " >&6
19367else
19368  while :; do
19369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19370/* end confdefs.h.  */
19371#include <sys/types.h>
19372 /* Check that off_t can represent 2**63 - 1 correctly.
19373    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19374    since some C++ compilers masquerading as C compilers
19375    incorrectly reject 9223372036854775807.  */
19376#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19377  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19378		       && LARGE_OFF_T % 2147483647 == 1)
19379		      ? 1 : -1];
19380int
19381main ()
19382{
19383
19384  ;
19385  return 0;
19386}
19387_ACEOF
19388if ac_fn_c_try_compile "$LINENO"; then :
19389  ac_cv_sys_large_files=no; break
19390fi
19391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19393/* end confdefs.h.  */
19394#define _LARGE_FILES 1
19395#include <sys/types.h>
19396 /* Check that off_t can represent 2**63 - 1 correctly.
19397    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19398    since some C++ compilers masquerading as C compilers
19399    incorrectly reject 9223372036854775807.  */
19400#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19401  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19402		       && LARGE_OFF_T % 2147483647 == 1)
19403		      ? 1 : -1];
19404int
19405main ()
19406{
19407
19408  ;
19409  return 0;
19410}
19411_ACEOF
19412if ac_fn_c_try_compile "$LINENO"; then :
19413  ac_cv_sys_large_files=1; break
19414fi
19415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19416  ac_cv_sys_large_files=unknown
19417  break
19418done
19419fi
19420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19421$as_echo "$ac_cv_sys_large_files" >&6; }
19422case $ac_cv_sys_large_files in #(
19423  no | unknown) ;;
19424  *)
19425cat >>confdefs.h <<_ACEOF
19426#define _LARGE_FILES $ac_cv_sys_large_files
19427_ACEOF
19428;;
19429esac
19430rm -rf conftest*
19431  fi
19432
19433
19434fi
19435
19436
19437
19438
19439
19440
19441case "$host_os" in
19442  *mingw* | *cygwin* | *msys*)
19443	;;
19444  *)
19445
19446  if test "$found_MD5" != yes; then
19447    saved_CPPFLAGS="$CPPFLAGS"
19448    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
19449    touch "check_crypto_md.h"
19450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBC" >&5
19451$as_echo_n "checking support for ARCHIVE_CRYPTO_MD5_LIBC... " >&6; }
19452    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19453/* end confdefs.h.  */
19454
19455#define ARCHIVE_MD5_COMPILE_TEST
19456#define ARCHIVE_CRYPTO_MD5_LIBC
19457#define PLATFORM_CONFIG_H "check_crypto_md.h"
19458
19459$(cat "$srcdir/libarchive/archive_digest.c")
19460
19461int
19462main(int argc, char **argv)
19463{
19464  archive_md5_ctx ctx;
19465  archive_md5_init(&ctx);
19466  archive_md5_update(&ctx, *argv, argc);
19467  archive_md5_final(&ctx, NULL);
19468  return 0;
19469}
19470
19471_ACEOF
19472if ac_fn_c_try_link "$LINENO"; then :
19473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19474$as_echo "yes" >&6; }
19475      found_MD5=yes
19476      found_LIBC=yes
19477
19478$as_echo "#define ARCHIVE_CRYPTO_MD5_LIBC 1" >>confdefs.h
19479
19480
19481else
19482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19483$as_echo "no" >&6; }
19484fi
19485rm -f core conftest.err conftest.$ac_objext \
19486    conftest$ac_exeext conftest.$ac_ext
19487    CPPFLAGS="$saved_CPPFLAGS"
19488    rm "check_crypto_md.h"
19489  fi
19490
19491
19492  if test "$found_MD5" != yes; then
19493    saved_CPPFLAGS="$CPPFLAGS"
19494    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
19495    touch "check_crypto_md.h"
19496    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM" >&5
19497$as_echo_n "checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM... " >&6; }
19498    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19499/* end confdefs.h.  */
19500
19501#define ARCHIVE_MD5_COMPILE_TEST
19502#define ARCHIVE_CRYPTO_MD5_LIBSYSTEM
19503#define PLATFORM_CONFIG_H "check_crypto_md.h"
19504
19505$(cat "$srcdir/libarchive/archive_digest.c")
19506
19507int
19508main(int argc, char **argv)
19509{
19510  archive_md5_ctx ctx;
19511  archive_md5_init(&ctx);
19512  archive_md5_update(&ctx, *argv, argc);
19513  archive_md5_final(&ctx, NULL);
19514  return 0;
19515}
19516
19517_ACEOF
19518if ac_fn_c_try_link "$LINENO"; then :
19519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19520$as_echo "yes" >&6; }
19521      found_MD5=yes
19522      found_LIBSYSTEM=yes
19523
19524$as_echo "#define ARCHIVE_CRYPTO_MD5_LIBSYSTEM 1" >>confdefs.h
19525
19526
19527else
19528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19529$as_echo "no" >&6; }
19530fi
19531rm -f core conftest.err conftest.$ac_objext \
19532    conftest$ac_exeext conftest.$ac_ext
19533    CPPFLAGS="$saved_CPPFLAGS"
19534    rm "check_crypto_md.h"
19535  fi
19536
19537
19538  if test "$found_RMD160" != yes; then
19539    saved_CPPFLAGS="$CPPFLAGS"
19540    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
19541    touch "check_crypto_md.h"
19542    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_LIBC" >&5
19543$as_echo_n "checking support for ARCHIVE_CRYPTO_RMD160_LIBC... " >&6; }
19544    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545/* end confdefs.h.  */
19546
19547#define ARCHIVE_RMD160_COMPILE_TEST
19548#define ARCHIVE_CRYPTO_RMD160_LIBC
19549#define PLATFORM_CONFIG_H "check_crypto_md.h"
19550
19551$(cat "$srcdir/libarchive/archive_digest.c")
19552
19553int
19554main(int argc, char **argv)
19555{
19556  archive_rmd160_ctx ctx;
19557  archive_rmd160_init(&ctx);
19558  archive_rmd160_update(&ctx, *argv, argc);
19559  archive_rmd160_final(&ctx, NULL);
19560  return 0;
19561}
19562
19563_ACEOF
19564if ac_fn_c_try_link "$LINENO"; then :
19565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19566$as_echo "yes" >&6; }
19567      found_RMD160=yes
19568      found_LIBC=yes
19569
19570$as_echo "#define ARCHIVE_CRYPTO_RMD160_LIBC 1" >>confdefs.h
19571
19572
19573else
19574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19575$as_echo "no" >&6; }
19576fi
19577rm -f core conftest.err conftest.$ac_objext \
19578    conftest$ac_exeext conftest.$ac_ext
19579    CPPFLAGS="$saved_CPPFLAGS"
19580    rm "check_crypto_md.h"
19581  fi
19582
19583
19584  if test "$found_SHA1" != yes; then
19585    saved_CPPFLAGS="$CPPFLAGS"
19586    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
19587    touch "check_crypto_md.h"
19588    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBC" >&5
19589$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA1_LIBC... " >&6; }
19590    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19591/* end confdefs.h.  */
19592
19593#define ARCHIVE_SHA1_COMPILE_TEST
19594#define ARCHIVE_CRYPTO_SHA1_LIBC
19595#define PLATFORM_CONFIG_H "check_crypto_md.h"
19596
19597$(cat "$srcdir/libarchive/archive_digest.c")
19598
19599int
19600main(int argc, char **argv)
19601{
19602  archive_sha1_ctx ctx;
19603  archive_sha1_init(&ctx);
19604  archive_sha1_update(&ctx, *argv, argc);
19605  archive_sha1_final(&ctx, NULL);
19606  return 0;
19607}
19608
19609_ACEOF
19610if ac_fn_c_try_link "$LINENO"; then :
19611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19612$as_echo "yes" >&6; }
19613      found_SHA1=yes
19614      found_LIBC=yes
19615
19616$as_echo "#define ARCHIVE_CRYPTO_SHA1_LIBC 1" >>confdefs.h
19617
19618
19619else
19620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19621$as_echo "no" >&6; }
19622fi
19623rm -f core conftest.err conftest.$ac_objext \
19624    conftest$ac_exeext conftest.$ac_ext
19625    CPPFLAGS="$saved_CPPFLAGS"
19626    rm "check_crypto_md.h"
19627  fi
19628
19629
19630  if test "$found_SHA1" != yes; then
19631    saved_CPPFLAGS="$CPPFLAGS"
19632    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
19633    touch "check_crypto_md.h"
19634    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM" >&5
19635$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM... " >&6; }
19636    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637/* end confdefs.h.  */
19638
19639#define ARCHIVE_SHA1_COMPILE_TEST
19640#define ARCHIVE_CRYPTO_SHA1_LIBSYSTEM
19641#define PLATFORM_CONFIG_H "check_crypto_md.h"
19642
19643$(cat "$srcdir/libarchive/archive_digest.c")
19644
19645int
19646main(int argc, char **argv)
19647{
19648  archive_sha1_ctx ctx;
19649  archive_sha1_init(&ctx);
19650  archive_sha1_update(&ctx, *argv, argc);
19651  archive_sha1_final(&ctx, NULL);
19652  return 0;
19653}
19654
19655_ACEOF
19656if ac_fn_c_try_link "$LINENO"; then :
19657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19658$as_echo "yes" >&6; }
19659      found_SHA1=yes
19660      found_LIBSYSTEM=yes
19661
19662$as_echo "#define ARCHIVE_CRYPTO_SHA1_LIBSYSTEM 1" >>confdefs.h
19663
19664
19665else
19666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19667$as_echo "no" >&6; }
19668fi
19669rm -f core conftest.err conftest.$ac_objext \
19670    conftest$ac_exeext conftest.$ac_ext
19671    CPPFLAGS="$saved_CPPFLAGS"
19672    rm "check_crypto_md.h"
19673  fi
19674
19675
19676  if test "$found_SHA256" != yes; then
19677    saved_CPPFLAGS="$CPPFLAGS"
19678    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
19679    touch "check_crypto_md.h"
19680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC" >&5
19681$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_LIBC... " >&6; }
19682    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683/* end confdefs.h.  */
19684
19685#define ARCHIVE_SHA256_COMPILE_TEST
19686#define ARCHIVE_CRYPTO_SHA256_LIBC
19687#define PLATFORM_CONFIG_H "check_crypto_md.h"
19688
19689$(cat "$srcdir/libarchive/archive_digest.c")
19690
19691int
19692main(int argc, char **argv)
19693{
19694  archive_sha256_ctx ctx;
19695  archive_sha256_init(&ctx);
19696  archive_sha256_update(&ctx, *argv, argc);
19697  archive_sha256_final(&ctx, NULL);
19698  return 0;
19699}
19700
19701_ACEOF
19702if ac_fn_c_try_link "$LINENO"; then :
19703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19704$as_echo "yes" >&6; }
19705      found_SHA256=yes
19706      found_LIBC=yes
19707
19708$as_echo "#define ARCHIVE_CRYPTO_SHA256_LIBC 1" >>confdefs.h
19709
19710
19711else
19712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19713$as_echo "no" >&6; }
19714fi
19715rm -f core conftest.err conftest.$ac_objext \
19716    conftest$ac_exeext conftest.$ac_ext
19717    CPPFLAGS="$saved_CPPFLAGS"
19718    rm "check_crypto_md.h"
19719  fi
19720
19721
19722  if test "$found_SHA256" != yes; then
19723    saved_CPPFLAGS="$CPPFLAGS"
19724    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
19725    touch "check_crypto_md.h"
19726    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC2" >&5
19727$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_LIBC2... " >&6; }
19728    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19729/* end confdefs.h.  */
19730
19731#define ARCHIVE_SHA256_COMPILE_TEST
19732#define ARCHIVE_CRYPTO_SHA256_LIBC2
19733#define PLATFORM_CONFIG_H "check_crypto_md.h"
19734
19735$(cat "$srcdir/libarchive/archive_digest.c")
19736
19737int
19738main(int argc, char **argv)
19739{
19740  archive_sha256_ctx ctx;
19741  archive_sha256_init(&ctx);
19742  archive_sha256_update(&ctx, *argv, argc);
19743  archive_sha256_final(&ctx, NULL);
19744  return 0;
19745}
19746
19747_ACEOF
19748if ac_fn_c_try_link "$LINENO"; then :
19749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19750$as_echo "yes" >&6; }
19751      found_SHA256=yes
19752      found_LIBC2=yes
19753
19754$as_echo "#define ARCHIVE_CRYPTO_SHA256_LIBC2 1" >>confdefs.h
19755
19756
19757else
19758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19759$as_echo "no" >&6; }
19760fi
19761rm -f core conftest.err conftest.$ac_objext \
19762    conftest$ac_exeext conftest.$ac_ext
19763    CPPFLAGS="$saved_CPPFLAGS"
19764    rm "check_crypto_md.h"
19765  fi
19766
19767
19768  if test "$found_SHA256" != yes; then
19769    saved_CPPFLAGS="$CPPFLAGS"
19770    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
19771    touch "check_crypto_md.h"
19772    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC3" >&5
19773$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_LIBC3... " >&6; }
19774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19775/* end confdefs.h.  */
19776
19777#define ARCHIVE_SHA256_COMPILE_TEST
19778#define ARCHIVE_CRYPTO_SHA256_LIBC3
19779#define PLATFORM_CONFIG_H "check_crypto_md.h"
19780
19781$(cat "$srcdir/libarchive/archive_digest.c")
19782
19783int
19784main(int argc, char **argv)
19785{
19786  archive_sha256_ctx ctx;
19787  archive_sha256_init(&ctx);
19788  archive_sha256_update(&ctx, *argv, argc);
19789  archive_sha256_final(&ctx, NULL);
19790  return 0;
19791}
19792
19793_ACEOF
19794if ac_fn_c_try_link "$LINENO"; then :
19795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19796$as_echo "yes" >&6; }
19797      found_SHA256=yes
19798      found_LIBC3=yes
19799
19800$as_echo "#define ARCHIVE_CRYPTO_SHA256_LIBC3 1" >>confdefs.h
19801
19802
19803else
19804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19805$as_echo "no" >&6; }
19806fi
19807rm -f core conftest.err conftest.$ac_objext \
19808    conftest$ac_exeext conftest.$ac_ext
19809    CPPFLAGS="$saved_CPPFLAGS"
19810    rm "check_crypto_md.h"
19811  fi
19812
19813
19814  if test "$found_SHA256" != yes; then
19815    saved_CPPFLAGS="$CPPFLAGS"
19816    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
19817    touch "check_crypto_md.h"
19818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM" >&5
19819$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM... " >&6; }
19820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19821/* end confdefs.h.  */
19822
19823#define ARCHIVE_SHA256_COMPILE_TEST
19824#define ARCHIVE_CRYPTO_SHA256_LIBSYSTEM
19825#define PLATFORM_CONFIG_H "check_crypto_md.h"
19826
19827$(cat "$srcdir/libarchive/archive_digest.c")
19828
19829int
19830main(int argc, char **argv)
19831{
19832  archive_sha256_ctx ctx;
19833  archive_sha256_init(&ctx);
19834  archive_sha256_update(&ctx, *argv, argc);
19835  archive_sha256_final(&ctx, NULL);
19836  return 0;
19837}
19838
19839_ACEOF
19840if ac_fn_c_try_link "$LINENO"; then :
19841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19842$as_echo "yes" >&6; }
19843      found_SHA256=yes
19844      found_LIBSYSTEM=yes
19845
19846$as_echo "#define ARCHIVE_CRYPTO_SHA256_LIBSYSTEM 1" >>confdefs.h
19847
19848
19849else
19850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19851$as_echo "no" >&6; }
19852fi
19853rm -f core conftest.err conftest.$ac_objext \
19854    conftest$ac_exeext conftest.$ac_ext
19855    CPPFLAGS="$saved_CPPFLAGS"
19856    rm "check_crypto_md.h"
19857  fi
19858
19859
19860  if test "$found_SHA384" != yes; then
19861    saved_CPPFLAGS="$CPPFLAGS"
19862    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
19863    touch "check_crypto_md.h"
19864    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC" >&5
19865$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_LIBC... " >&6; }
19866    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19867/* end confdefs.h.  */
19868
19869#define ARCHIVE_SHA384_COMPILE_TEST
19870#define ARCHIVE_CRYPTO_SHA384_LIBC
19871#define PLATFORM_CONFIG_H "check_crypto_md.h"
19872
19873$(cat "$srcdir/libarchive/archive_digest.c")
19874
19875int
19876main(int argc, char **argv)
19877{
19878  archive_sha384_ctx ctx;
19879  archive_sha384_init(&ctx);
19880  archive_sha384_update(&ctx, *argv, argc);
19881  archive_sha384_final(&ctx, NULL);
19882  return 0;
19883}
19884
19885_ACEOF
19886if ac_fn_c_try_link "$LINENO"; then :
19887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19888$as_echo "yes" >&6; }
19889      found_SHA384=yes
19890      found_LIBC=yes
19891
19892$as_echo "#define ARCHIVE_CRYPTO_SHA384_LIBC 1" >>confdefs.h
19893
19894
19895else
19896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19897$as_echo "no" >&6; }
19898fi
19899rm -f core conftest.err conftest.$ac_objext \
19900    conftest$ac_exeext conftest.$ac_ext
19901    CPPFLAGS="$saved_CPPFLAGS"
19902    rm "check_crypto_md.h"
19903  fi
19904
19905
19906  if test "$found_SHA384" != yes; then
19907    saved_CPPFLAGS="$CPPFLAGS"
19908    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
19909    touch "check_crypto_md.h"
19910    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC2" >&5
19911$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_LIBC2... " >&6; }
19912    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19913/* end confdefs.h.  */
19914
19915#define ARCHIVE_SHA384_COMPILE_TEST
19916#define ARCHIVE_CRYPTO_SHA384_LIBC2
19917#define PLATFORM_CONFIG_H "check_crypto_md.h"
19918
19919$(cat "$srcdir/libarchive/archive_digest.c")
19920
19921int
19922main(int argc, char **argv)
19923{
19924  archive_sha384_ctx ctx;
19925  archive_sha384_init(&ctx);
19926  archive_sha384_update(&ctx, *argv, argc);
19927  archive_sha384_final(&ctx, NULL);
19928  return 0;
19929}
19930
19931_ACEOF
19932if ac_fn_c_try_link "$LINENO"; then :
19933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19934$as_echo "yes" >&6; }
19935      found_SHA384=yes
19936      found_LIBC2=yes
19937
19938$as_echo "#define ARCHIVE_CRYPTO_SHA384_LIBC2 1" >>confdefs.h
19939
19940
19941else
19942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19943$as_echo "no" >&6; }
19944fi
19945rm -f core conftest.err conftest.$ac_objext \
19946    conftest$ac_exeext conftest.$ac_ext
19947    CPPFLAGS="$saved_CPPFLAGS"
19948    rm "check_crypto_md.h"
19949  fi
19950
19951
19952  if test "$found_SHA384" != yes; then
19953    saved_CPPFLAGS="$CPPFLAGS"
19954    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
19955    touch "check_crypto_md.h"
19956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC3" >&5
19957$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_LIBC3... " >&6; }
19958    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19959/* end confdefs.h.  */
19960
19961#define ARCHIVE_SHA384_COMPILE_TEST
19962#define ARCHIVE_CRYPTO_SHA384_LIBC3
19963#define PLATFORM_CONFIG_H "check_crypto_md.h"
19964
19965$(cat "$srcdir/libarchive/archive_digest.c")
19966
19967int
19968main(int argc, char **argv)
19969{
19970  archive_sha384_ctx ctx;
19971  archive_sha384_init(&ctx);
19972  archive_sha384_update(&ctx, *argv, argc);
19973  archive_sha384_final(&ctx, NULL);
19974  return 0;
19975}
19976
19977_ACEOF
19978if ac_fn_c_try_link "$LINENO"; then :
19979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19980$as_echo "yes" >&6; }
19981      found_SHA384=yes
19982      found_LIBC3=yes
19983
19984$as_echo "#define ARCHIVE_CRYPTO_SHA384_LIBC3 1" >>confdefs.h
19985
19986
19987else
19988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19989$as_echo "no" >&6; }
19990fi
19991rm -f core conftest.err conftest.$ac_objext \
19992    conftest$ac_exeext conftest.$ac_ext
19993    CPPFLAGS="$saved_CPPFLAGS"
19994    rm "check_crypto_md.h"
19995  fi
19996
19997
19998  if test "$found_SHA384" != yes; then
19999    saved_CPPFLAGS="$CPPFLAGS"
20000    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20001    touch "check_crypto_md.h"
20002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM" >&5
20003$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM... " >&6; }
20004    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005/* end confdefs.h.  */
20006
20007#define ARCHIVE_SHA384_COMPILE_TEST
20008#define ARCHIVE_CRYPTO_SHA384_LIBSYSTEM
20009#define PLATFORM_CONFIG_H "check_crypto_md.h"
20010
20011$(cat "$srcdir/libarchive/archive_digest.c")
20012
20013int
20014main(int argc, char **argv)
20015{
20016  archive_sha384_ctx ctx;
20017  archive_sha384_init(&ctx);
20018  archive_sha384_update(&ctx, *argv, argc);
20019  archive_sha384_final(&ctx, NULL);
20020  return 0;
20021}
20022
20023_ACEOF
20024if ac_fn_c_try_link "$LINENO"; then :
20025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20026$as_echo "yes" >&6; }
20027      found_SHA384=yes
20028      found_LIBSYSTEM=yes
20029
20030$as_echo "#define ARCHIVE_CRYPTO_SHA384_LIBSYSTEM 1" >>confdefs.h
20031
20032
20033else
20034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20035$as_echo "no" >&6; }
20036fi
20037rm -f core conftest.err conftest.$ac_objext \
20038    conftest$ac_exeext conftest.$ac_ext
20039    CPPFLAGS="$saved_CPPFLAGS"
20040    rm "check_crypto_md.h"
20041  fi
20042
20043
20044  if test "$found_SHA512" != yes; then
20045    saved_CPPFLAGS="$CPPFLAGS"
20046    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20047    touch "check_crypto_md.h"
20048    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC" >&5
20049$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_LIBC... " >&6; }
20050    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051/* end confdefs.h.  */
20052
20053#define ARCHIVE_SHA512_COMPILE_TEST
20054#define ARCHIVE_CRYPTO_SHA512_LIBC
20055#define PLATFORM_CONFIG_H "check_crypto_md.h"
20056
20057$(cat "$srcdir/libarchive/archive_digest.c")
20058
20059int
20060main(int argc, char **argv)
20061{
20062  archive_sha512_ctx ctx;
20063  archive_sha512_init(&ctx);
20064  archive_sha512_update(&ctx, *argv, argc);
20065  archive_sha512_final(&ctx, NULL);
20066  return 0;
20067}
20068
20069_ACEOF
20070if ac_fn_c_try_link "$LINENO"; then :
20071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20072$as_echo "yes" >&6; }
20073      found_SHA512=yes
20074      found_LIBC=yes
20075
20076$as_echo "#define ARCHIVE_CRYPTO_SHA512_LIBC 1" >>confdefs.h
20077
20078
20079else
20080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20081$as_echo "no" >&6; }
20082fi
20083rm -f core conftest.err conftest.$ac_objext \
20084    conftest$ac_exeext conftest.$ac_ext
20085    CPPFLAGS="$saved_CPPFLAGS"
20086    rm "check_crypto_md.h"
20087  fi
20088
20089
20090  if test "$found_SHA512" != yes; then
20091    saved_CPPFLAGS="$CPPFLAGS"
20092    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20093    touch "check_crypto_md.h"
20094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC2" >&5
20095$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_LIBC2... " >&6; }
20096    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097/* end confdefs.h.  */
20098
20099#define ARCHIVE_SHA512_COMPILE_TEST
20100#define ARCHIVE_CRYPTO_SHA512_LIBC2
20101#define PLATFORM_CONFIG_H "check_crypto_md.h"
20102
20103$(cat "$srcdir/libarchive/archive_digest.c")
20104
20105int
20106main(int argc, char **argv)
20107{
20108  archive_sha512_ctx ctx;
20109  archive_sha512_init(&ctx);
20110  archive_sha512_update(&ctx, *argv, argc);
20111  archive_sha512_final(&ctx, NULL);
20112  return 0;
20113}
20114
20115_ACEOF
20116if ac_fn_c_try_link "$LINENO"; then :
20117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20118$as_echo "yes" >&6; }
20119      found_SHA512=yes
20120      found_LIBC2=yes
20121
20122$as_echo "#define ARCHIVE_CRYPTO_SHA512_LIBC2 1" >>confdefs.h
20123
20124
20125else
20126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20127$as_echo "no" >&6; }
20128fi
20129rm -f core conftest.err conftest.$ac_objext \
20130    conftest$ac_exeext conftest.$ac_ext
20131    CPPFLAGS="$saved_CPPFLAGS"
20132    rm "check_crypto_md.h"
20133  fi
20134
20135
20136  if test "$found_SHA512" != yes; then
20137    saved_CPPFLAGS="$CPPFLAGS"
20138    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20139    touch "check_crypto_md.h"
20140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC3" >&5
20141$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_LIBC3... " >&6; }
20142    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20143/* end confdefs.h.  */
20144
20145#define ARCHIVE_SHA512_COMPILE_TEST
20146#define ARCHIVE_CRYPTO_SHA512_LIBC3
20147#define PLATFORM_CONFIG_H "check_crypto_md.h"
20148
20149$(cat "$srcdir/libarchive/archive_digest.c")
20150
20151int
20152main(int argc, char **argv)
20153{
20154  archive_sha512_ctx ctx;
20155  archive_sha512_init(&ctx);
20156  archive_sha512_update(&ctx, *argv, argc);
20157  archive_sha512_final(&ctx, NULL);
20158  return 0;
20159}
20160
20161_ACEOF
20162if ac_fn_c_try_link "$LINENO"; then :
20163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20164$as_echo "yes" >&6; }
20165      found_SHA512=yes
20166      found_LIBC3=yes
20167
20168$as_echo "#define ARCHIVE_CRYPTO_SHA512_LIBC3 1" >>confdefs.h
20169
20170
20171else
20172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20173$as_echo "no" >&6; }
20174fi
20175rm -f core conftest.err conftest.$ac_objext \
20176    conftest$ac_exeext conftest.$ac_ext
20177    CPPFLAGS="$saved_CPPFLAGS"
20178    rm "check_crypto_md.h"
20179  fi
20180
20181
20182  if test "$found_SHA512" != yes; then
20183    saved_CPPFLAGS="$CPPFLAGS"
20184    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20185    touch "check_crypto_md.h"
20186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM" >&5
20187$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM... " >&6; }
20188    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20189/* end confdefs.h.  */
20190
20191#define ARCHIVE_SHA512_COMPILE_TEST
20192#define ARCHIVE_CRYPTO_SHA512_LIBSYSTEM
20193#define PLATFORM_CONFIG_H "check_crypto_md.h"
20194
20195$(cat "$srcdir/libarchive/archive_digest.c")
20196
20197int
20198main(int argc, char **argv)
20199{
20200  archive_sha512_ctx ctx;
20201  archive_sha512_init(&ctx);
20202  archive_sha512_update(&ctx, *argv, argc);
20203  archive_sha512_final(&ctx, NULL);
20204  return 0;
20205}
20206
20207_ACEOF
20208if ac_fn_c_try_link "$LINENO"; then :
20209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20210$as_echo "yes" >&6; }
20211      found_SHA512=yes
20212      found_LIBSYSTEM=yes
20213
20214$as_echo "#define ARCHIVE_CRYPTO_SHA512_LIBSYSTEM 1" >>confdefs.h
20215
20216
20217else
20218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20219$as_echo "no" >&6; }
20220fi
20221rm -f core conftest.err conftest.$ac_objext \
20222    conftest$ac_exeext conftest.$ac_ext
20223    CPPFLAGS="$saved_CPPFLAGS"
20224    rm "check_crypto_md.h"
20225  fi
20226
20227	;;
20228esac
20229
20230if test "x$with_cng" != "xno"; then
20231    for ac_header in bcrypt.h
20232do :
20233  ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#ifdef HAVE_WINDOWS_H
20234    # include <windows.h>
20235    #endif
20236
20237"
20238if test "x$ac_cv_header_bcrypt_h" = xyes; then :
20239  cat >>confdefs.h <<_ACEOF
20240#define HAVE_BCRYPT_H 1
20241_ACEOF
20242
20243        LIBS="$LIBS -lbcrypt"
20244
20245fi
20246
20247done
20248
20249fi
20250
20251if test "x$with_mbedtls" = "xyes"; then
20252    for ac_header in mbedtls/aes.h mbedtls/md.h mbedtls/pkcs5.h
20253do :
20254  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20255ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20256if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20257  cat >>confdefs.h <<_ACEOF
20258#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20259_ACEOF
20260
20261fi
20262
20263done
20264
20265    saved_LIBS=$LIBS
20266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_sha1_init in -lmbedcrypto" >&5
20267$as_echo_n "checking for mbedtls_sha1_init in -lmbedcrypto... " >&6; }
20268if ${ac_cv_lib_mbedcrypto_mbedtls_sha1_init+:} false; then :
20269  $as_echo_n "(cached) " >&6
20270else
20271  ac_check_lib_save_LIBS=$LIBS
20272LIBS="-lmbedcrypto  $LIBS"
20273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20274/* end confdefs.h.  */
20275
20276/* Override any GCC internal prototype to avoid an error.
20277   Use char because int might match the return type of a GCC
20278   builtin and then its argument prototype would still apply.  */
20279#ifdef __cplusplus
20280extern "C"
20281#endif
20282char mbedtls_sha1_init ();
20283int
20284main ()
20285{
20286return mbedtls_sha1_init ();
20287  ;
20288  return 0;
20289}
20290_ACEOF
20291if ac_fn_c_try_link "$LINENO"; then :
20292  ac_cv_lib_mbedcrypto_mbedtls_sha1_init=yes
20293else
20294  ac_cv_lib_mbedcrypto_mbedtls_sha1_init=no
20295fi
20296rm -f core conftest.err conftest.$ac_objext \
20297    conftest$ac_exeext conftest.$ac_ext
20298LIBS=$ac_check_lib_save_LIBS
20299fi
20300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedcrypto_mbedtls_sha1_init" >&5
20301$as_echo "$ac_cv_lib_mbedcrypto_mbedtls_sha1_init" >&6; }
20302if test "x$ac_cv_lib_mbedcrypto_mbedtls_sha1_init" = xyes; then :
20303  cat >>confdefs.h <<_ACEOF
20304#define HAVE_LIBMBEDCRYPTO 1
20305_ACEOF
20306
20307  LIBS="-lmbedcrypto $LIBS"
20308
20309fi
20310
20311
20312  if test "$found_MD5" != yes; then
20313    saved_CPPFLAGS="$CPPFLAGS"
20314    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20315    touch "check_crypto_md.h"
20316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_MBEDTLS" >&5
20317$as_echo_n "checking support for ARCHIVE_CRYPTO_MD5_MBEDTLS... " >&6; }
20318    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20319/* end confdefs.h.  */
20320
20321#define ARCHIVE_MD5_COMPILE_TEST
20322#define ARCHIVE_CRYPTO_MD5_MBEDTLS
20323#define PLATFORM_CONFIG_H "check_crypto_md.h"
20324
20325$(cat "$srcdir/libarchive/archive_digest.c")
20326
20327int
20328main(int argc, char **argv)
20329{
20330  archive_md5_ctx ctx;
20331  archive_md5_init(&ctx);
20332  archive_md5_update(&ctx, *argv, argc);
20333  archive_md5_final(&ctx, NULL);
20334  return 0;
20335}
20336
20337_ACEOF
20338if ac_fn_c_try_link "$LINENO"; then :
20339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20340$as_echo "yes" >&6; }
20341      found_MD5=yes
20342      found_MBEDTLS=yes
20343
20344$as_echo "#define ARCHIVE_CRYPTO_MD5_MBEDTLS 1" >>confdefs.h
20345
20346
20347else
20348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20349$as_echo "no" >&6; }
20350fi
20351rm -f core conftest.err conftest.$ac_objext \
20352    conftest$ac_exeext conftest.$ac_ext
20353    CPPFLAGS="$saved_CPPFLAGS"
20354    rm "check_crypto_md.h"
20355  fi
20356
20357
20358  if test "$found_RMD160" != yes; then
20359    saved_CPPFLAGS="$CPPFLAGS"
20360    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20361    touch "check_crypto_md.h"
20362    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_MBEDTLS" >&5
20363$as_echo_n "checking support for ARCHIVE_CRYPTO_RMD160_MBEDTLS... " >&6; }
20364    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20365/* end confdefs.h.  */
20366
20367#define ARCHIVE_RMD160_COMPILE_TEST
20368#define ARCHIVE_CRYPTO_RMD160_MBEDTLS
20369#define PLATFORM_CONFIG_H "check_crypto_md.h"
20370
20371$(cat "$srcdir/libarchive/archive_digest.c")
20372
20373int
20374main(int argc, char **argv)
20375{
20376  archive_rmd160_ctx ctx;
20377  archive_rmd160_init(&ctx);
20378  archive_rmd160_update(&ctx, *argv, argc);
20379  archive_rmd160_final(&ctx, NULL);
20380  return 0;
20381}
20382
20383_ACEOF
20384if ac_fn_c_try_link "$LINENO"; then :
20385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20386$as_echo "yes" >&6; }
20387      found_RMD160=yes
20388      found_MBEDTLS=yes
20389
20390$as_echo "#define ARCHIVE_CRYPTO_RMD160_MBEDTLS 1" >>confdefs.h
20391
20392
20393else
20394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20395$as_echo "no" >&6; }
20396fi
20397rm -f core conftest.err conftest.$ac_objext \
20398    conftest$ac_exeext conftest.$ac_ext
20399    CPPFLAGS="$saved_CPPFLAGS"
20400    rm "check_crypto_md.h"
20401  fi
20402
20403
20404  if test "$found_SHA1" != yes; then
20405    saved_CPPFLAGS="$CPPFLAGS"
20406    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20407    touch "check_crypto_md.h"
20408    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_MBEDTLS" >&5
20409$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA1_MBEDTLS... " >&6; }
20410    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20411/* end confdefs.h.  */
20412
20413#define ARCHIVE_SHA1_COMPILE_TEST
20414#define ARCHIVE_CRYPTO_SHA1_MBEDTLS
20415#define PLATFORM_CONFIG_H "check_crypto_md.h"
20416
20417$(cat "$srcdir/libarchive/archive_digest.c")
20418
20419int
20420main(int argc, char **argv)
20421{
20422  archive_sha1_ctx ctx;
20423  archive_sha1_init(&ctx);
20424  archive_sha1_update(&ctx, *argv, argc);
20425  archive_sha1_final(&ctx, NULL);
20426  return 0;
20427}
20428
20429_ACEOF
20430if ac_fn_c_try_link "$LINENO"; then :
20431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20432$as_echo "yes" >&6; }
20433      found_SHA1=yes
20434      found_MBEDTLS=yes
20435
20436$as_echo "#define ARCHIVE_CRYPTO_SHA1_MBEDTLS 1" >>confdefs.h
20437
20438
20439else
20440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20441$as_echo "no" >&6; }
20442fi
20443rm -f core conftest.err conftest.$ac_objext \
20444    conftest$ac_exeext conftest.$ac_ext
20445    CPPFLAGS="$saved_CPPFLAGS"
20446    rm "check_crypto_md.h"
20447  fi
20448
20449
20450  if test "$found_SHA256" != yes; then
20451    saved_CPPFLAGS="$CPPFLAGS"
20452    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20453    touch "check_crypto_md.h"
20454    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_MBEDTLS" >&5
20455$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_MBEDTLS... " >&6; }
20456    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457/* end confdefs.h.  */
20458
20459#define ARCHIVE_SHA256_COMPILE_TEST
20460#define ARCHIVE_CRYPTO_SHA256_MBEDTLS
20461#define PLATFORM_CONFIG_H "check_crypto_md.h"
20462
20463$(cat "$srcdir/libarchive/archive_digest.c")
20464
20465int
20466main(int argc, char **argv)
20467{
20468  archive_sha256_ctx ctx;
20469  archive_sha256_init(&ctx);
20470  archive_sha256_update(&ctx, *argv, argc);
20471  archive_sha256_final(&ctx, NULL);
20472  return 0;
20473}
20474
20475_ACEOF
20476if ac_fn_c_try_link "$LINENO"; then :
20477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20478$as_echo "yes" >&6; }
20479      found_SHA256=yes
20480      found_MBEDTLS=yes
20481
20482$as_echo "#define ARCHIVE_CRYPTO_SHA256_MBEDTLS 1" >>confdefs.h
20483
20484
20485else
20486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20487$as_echo "no" >&6; }
20488fi
20489rm -f core conftest.err conftest.$ac_objext \
20490    conftest$ac_exeext conftest.$ac_ext
20491    CPPFLAGS="$saved_CPPFLAGS"
20492    rm "check_crypto_md.h"
20493  fi
20494
20495
20496  if test "$found_SHA384" != yes; then
20497    saved_CPPFLAGS="$CPPFLAGS"
20498    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20499    touch "check_crypto_md.h"
20500    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_MBEDTLS" >&5
20501$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_MBEDTLS... " >&6; }
20502    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20503/* end confdefs.h.  */
20504
20505#define ARCHIVE_SHA384_COMPILE_TEST
20506#define ARCHIVE_CRYPTO_SHA384_MBEDTLS
20507#define PLATFORM_CONFIG_H "check_crypto_md.h"
20508
20509$(cat "$srcdir/libarchive/archive_digest.c")
20510
20511int
20512main(int argc, char **argv)
20513{
20514  archive_sha384_ctx ctx;
20515  archive_sha384_init(&ctx);
20516  archive_sha384_update(&ctx, *argv, argc);
20517  archive_sha384_final(&ctx, NULL);
20518  return 0;
20519}
20520
20521_ACEOF
20522if ac_fn_c_try_link "$LINENO"; then :
20523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20524$as_echo "yes" >&6; }
20525      found_SHA384=yes
20526      found_MBEDTLS=yes
20527
20528$as_echo "#define ARCHIVE_CRYPTO_SHA384_MBEDTLS 1" >>confdefs.h
20529
20530
20531else
20532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20533$as_echo "no" >&6; }
20534fi
20535rm -f core conftest.err conftest.$ac_objext \
20536    conftest$ac_exeext conftest.$ac_ext
20537    CPPFLAGS="$saved_CPPFLAGS"
20538    rm "check_crypto_md.h"
20539  fi
20540
20541
20542  if test "$found_SHA512" != yes; then
20543    saved_CPPFLAGS="$CPPFLAGS"
20544    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20545    touch "check_crypto_md.h"
20546    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_MBEDTLS" >&5
20547$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_MBEDTLS... " >&6; }
20548    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20549/* end confdefs.h.  */
20550
20551#define ARCHIVE_SHA512_COMPILE_TEST
20552#define ARCHIVE_CRYPTO_SHA512_MBEDTLS
20553#define PLATFORM_CONFIG_H "check_crypto_md.h"
20554
20555$(cat "$srcdir/libarchive/archive_digest.c")
20556
20557int
20558main(int argc, char **argv)
20559{
20560  archive_sha512_ctx ctx;
20561  archive_sha512_init(&ctx);
20562  archive_sha512_update(&ctx, *argv, argc);
20563  archive_sha512_final(&ctx, NULL);
20564  return 0;
20565}
20566
20567_ACEOF
20568if ac_fn_c_try_link "$LINENO"; then :
20569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20570$as_echo "yes" >&6; }
20571      found_SHA512=yes
20572      found_MBEDTLS=yes
20573
20574$as_echo "#define ARCHIVE_CRYPTO_SHA512_MBEDTLS 1" >>confdefs.h
20575
20576
20577else
20578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20579$as_echo "no" >&6; }
20580fi
20581rm -f core conftest.err conftest.$ac_objext \
20582    conftest$ac_exeext conftest.$ac_ext
20583    CPPFLAGS="$saved_CPPFLAGS"
20584    rm "check_crypto_md.h"
20585  fi
20586
20587    if test "x$found_MBEDTLS" != "xyes"; then
20588      LIBS=$saved_LIBS
20589    fi
20590fi
20591
20592if test "x$with_nettle" = "xyes"; then
20593    for ac_header in nettle/md5.h nettle/ripemd160.h nettle/sha.h
20594do :
20595  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20596ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20598  cat >>confdefs.h <<_ACEOF
20599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20600_ACEOF
20601
20602fi
20603
20604done
20605
20606    for ac_header in nettle/pbkdf2.h nettle/aes.h nettle/hmac.h
20607do :
20608  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20609ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20610if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20611  cat >>confdefs.h <<_ACEOF
20612#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20613_ACEOF
20614
20615fi
20616
20617done
20618
20619    saved_LIBS=$LIBS
20620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5
20621$as_echo_n "checking for nettle_sha1_init in -lnettle... " >&6; }
20622if ${ac_cv_lib_nettle_nettle_sha1_init+:} false; then :
20623  $as_echo_n "(cached) " >&6
20624else
20625  ac_check_lib_save_LIBS=$LIBS
20626LIBS="-lnettle  $LIBS"
20627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20628/* end confdefs.h.  */
20629
20630/* Override any GCC internal prototype to avoid an error.
20631   Use char because int might match the return type of a GCC
20632   builtin and then its argument prototype would still apply.  */
20633#ifdef __cplusplus
20634extern "C"
20635#endif
20636char nettle_sha1_init ();
20637int
20638main ()
20639{
20640return nettle_sha1_init ();
20641  ;
20642  return 0;
20643}
20644_ACEOF
20645if ac_fn_c_try_link "$LINENO"; then :
20646  ac_cv_lib_nettle_nettle_sha1_init=yes
20647else
20648  ac_cv_lib_nettle_nettle_sha1_init=no
20649fi
20650rm -f core conftest.err conftest.$ac_objext \
20651    conftest$ac_exeext conftest.$ac_ext
20652LIBS=$ac_check_lib_save_LIBS
20653fi
20654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5
20655$as_echo "$ac_cv_lib_nettle_nettle_sha1_init" >&6; }
20656if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes; then :
20657  cat >>confdefs.h <<_ACEOF
20658#define HAVE_LIBNETTLE 1
20659_ACEOF
20660
20661  LIBS="-lnettle $LIBS"
20662
20663fi
20664
20665
20666  if test "$found_MD5" != yes; then
20667    saved_CPPFLAGS="$CPPFLAGS"
20668    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20669    touch "check_crypto_md.h"
20670    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_NETTLE" >&5
20671$as_echo_n "checking support for ARCHIVE_CRYPTO_MD5_NETTLE... " >&6; }
20672    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20673/* end confdefs.h.  */
20674
20675#define ARCHIVE_MD5_COMPILE_TEST
20676#define ARCHIVE_CRYPTO_MD5_NETTLE
20677#define PLATFORM_CONFIG_H "check_crypto_md.h"
20678
20679$(cat "$srcdir/libarchive/archive_digest.c")
20680
20681int
20682main(int argc, char **argv)
20683{
20684  archive_md5_ctx ctx;
20685  archive_md5_init(&ctx);
20686  archive_md5_update(&ctx, *argv, argc);
20687  archive_md5_final(&ctx, NULL);
20688  return 0;
20689}
20690
20691_ACEOF
20692if ac_fn_c_try_link "$LINENO"; then :
20693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20694$as_echo "yes" >&6; }
20695      found_MD5=yes
20696      found_NETTLE=yes
20697
20698$as_echo "#define ARCHIVE_CRYPTO_MD5_NETTLE 1" >>confdefs.h
20699
20700
20701else
20702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20703$as_echo "no" >&6; }
20704fi
20705rm -f core conftest.err conftest.$ac_objext \
20706    conftest$ac_exeext conftest.$ac_ext
20707    CPPFLAGS="$saved_CPPFLAGS"
20708    rm "check_crypto_md.h"
20709  fi
20710
20711
20712  if test "$found_RMD160" != yes; then
20713    saved_CPPFLAGS="$CPPFLAGS"
20714    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20715    touch "check_crypto_md.h"
20716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_NETTLE" >&5
20717$as_echo_n "checking support for ARCHIVE_CRYPTO_RMD160_NETTLE... " >&6; }
20718    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20719/* end confdefs.h.  */
20720
20721#define ARCHIVE_RMD160_COMPILE_TEST
20722#define ARCHIVE_CRYPTO_RMD160_NETTLE
20723#define PLATFORM_CONFIG_H "check_crypto_md.h"
20724
20725$(cat "$srcdir/libarchive/archive_digest.c")
20726
20727int
20728main(int argc, char **argv)
20729{
20730  archive_rmd160_ctx ctx;
20731  archive_rmd160_init(&ctx);
20732  archive_rmd160_update(&ctx, *argv, argc);
20733  archive_rmd160_final(&ctx, NULL);
20734  return 0;
20735}
20736
20737_ACEOF
20738if ac_fn_c_try_link "$LINENO"; then :
20739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20740$as_echo "yes" >&6; }
20741      found_RMD160=yes
20742      found_NETTLE=yes
20743
20744$as_echo "#define ARCHIVE_CRYPTO_RMD160_NETTLE 1" >>confdefs.h
20745
20746
20747else
20748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20749$as_echo "no" >&6; }
20750fi
20751rm -f core conftest.err conftest.$ac_objext \
20752    conftest$ac_exeext conftest.$ac_ext
20753    CPPFLAGS="$saved_CPPFLAGS"
20754    rm "check_crypto_md.h"
20755  fi
20756
20757
20758  if test "$found_SHA1" != yes; then
20759    saved_CPPFLAGS="$CPPFLAGS"
20760    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20761    touch "check_crypto_md.h"
20762    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_NETTLE" >&5
20763$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA1_NETTLE... " >&6; }
20764    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765/* end confdefs.h.  */
20766
20767#define ARCHIVE_SHA1_COMPILE_TEST
20768#define ARCHIVE_CRYPTO_SHA1_NETTLE
20769#define PLATFORM_CONFIG_H "check_crypto_md.h"
20770
20771$(cat "$srcdir/libarchive/archive_digest.c")
20772
20773int
20774main(int argc, char **argv)
20775{
20776  archive_sha1_ctx ctx;
20777  archive_sha1_init(&ctx);
20778  archive_sha1_update(&ctx, *argv, argc);
20779  archive_sha1_final(&ctx, NULL);
20780  return 0;
20781}
20782
20783_ACEOF
20784if ac_fn_c_try_link "$LINENO"; then :
20785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20786$as_echo "yes" >&6; }
20787      found_SHA1=yes
20788      found_NETTLE=yes
20789
20790$as_echo "#define ARCHIVE_CRYPTO_SHA1_NETTLE 1" >>confdefs.h
20791
20792
20793else
20794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20795$as_echo "no" >&6; }
20796fi
20797rm -f core conftest.err conftest.$ac_objext \
20798    conftest$ac_exeext conftest.$ac_ext
20799    CPPFLAGS="$saved_CPPFLAGS"
20800    rm "check_crypto_md.h"
20801  fi
20802
20803
20804  if test "$found_SHA256" != yes; then
20805    saved_CPPFLAGS="$CPPFLAGS"
20806    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20807    touch "check_crypto_md.h"
20808    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_NETTLE" >&5
20809$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_NETTLE... " >&6; }
20810    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20811/* end confdefs.h.  */
20812
20813#define ARCHIVE_SHA256_COMPILE_TEST
20814#define ARCHIVE_CRYPTO_SHA256_NETTLE
20815#define PLATFORM_CONFIG_H "check_crypto_md.h"
20816
20817$(cat "$srcdir/libarchive/archive_digest.c")
20818
20819int
20820main(int argc, char **argv)
20821{
20822  archive_sha256_ctx ctx;
20823  archive_sha256_init(&ctx);
20824  archive_sha256_update(&ctx, *argv, argc);
20825  archive_sha256_final(&ctx, NULL);
20826  return 0;
20827}
20828
20829_ACEOF
20830if ac_fn_c_try_link "$LINENO"; then :
20831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20832$as_echo "yes" >&6; }
20833      found_SHA256=yes
20834      found_NETTLE=yes
20835
20836$as_echo "#define ARCHIVE_CRYPTO_SHA256_NETTLE 1" >>confdefs.h
20837
20838
20839else
20840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20841$as_echo "no" >&6; }
20842fi
20843rm -f core conftest.err conftest.$ac_objext \
20844    conftest$ac_exeext conftest.$ac_ext
20845    CPPFLAGS="$saved_CPPFLAGS"
20846    rm "check_crypto_md.h"
20847  fi
20848
20849
20850  if test "$found_SHA384" != yes; then
20851    saved_CPPFLAGS="$CPPFLAGS"
20852    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20853    touch "check_crypto_md.h"
20854    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_NETTLE" >&5
20855$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_NETTLE... " >&6; }
20856    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20857/* end confdefs.h.  */
20858
20859#define ARCHIVE_SHA384_COMPILE_TEST
20860#define ARCHIVE_CRYPTO_SHA384_NETTLE
20861#define PLATFORM_CONFIG_H "check_crypto_md.h"
20862
20863$(cat "$srcdir/libarchive/archive_digest.c")
20864
20865int
20866main(int argc, char **argv)
20867{
20868  archive_sha384_ctx ctx;
20869  archive_sha384_init(&ctx);
20870  archive_sha384_update(&ctx, *argv, argc);
20871  archive_sha384_final(&ctx, NULL);
20872  return 0;
20873}
20874
20875_ACEOF
20876if ac_fn_c_try_link "$LINENO"; then :
20877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20878$as_echo "yes" >&6; }
20879      found_SHA384=yes
20880      found_NETTLE=yes
20881
20882$as_echo "#define ARCHIVE_CRYPTO_SHA384_NETTLE 1" >>confdefs.h
20883
20884
20885else
20886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20887$as_echo "no" >&6; }
20888fi
20889rm -f core conftest.err conftest.$ac_objext \
20890    conftest$ac_exeext conftest.$ac_ext
20891    CPPFLAGS="$saved_CPPFLAGS"
20892    rm "check_crypto_md.h"
20893  fi
20894
20895
20896  if test "$found_SHA512" != yes; then
20897    saved_CPPFLAGS="$CPPFLAGS"
20898    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20899    touch "check_crypto_md.h"
20900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_NETTLE" >&5
20901$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_NETTLE... " >&6; }
20902    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903/* end confdefs.h.  */
20904
20905#define ARCHIVE_SHA512_COMPILE_TEST
20906#define ARCHIVE_CRYPTO_SHA512_NETTLE
20907#define PLATFORM_CONFIG_H "check_crypto_md.h"
20908
20909$(cat "$srcdir/libarchive/archive_digest.c")
20910
20911int
20912main(int argc, char **argv)
20913{
20914  archive_sha512_ctx ctx;
20915  archive_sha512_init(&ctx);
20916  archive_sha512_update(&ctx, *argv, argc);
20917  archive_sha512_final(&ctx, NULL);
20918  return 0;
20919}
20920
20921_ACEOF
20922if ac_fn_c_try_link "$LINENO"; then :
20923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20924$as_echo "yes" >&6; }
20925      found_SHA512=yes
20926      found_NETTLE=yes
20927
20928$as_echo "#define ARCHIVE_CRYPTO_SHA512_NETTLE 1" >>confdefs.h
20929
20930
20931else
20932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20933$as_echo "no" >&6; }
20934fi
20935rm -f core conftest.err conftest.$ac_objext \
20936    conftest$ac_exeext conftest.$ac_ext
20937    CPPFLAGS="$saved_CPPFLAGS"
20938    rm "check_crypto_md.h"
20939  fi
20940
20941    if test "x$found_NETTLE" != "xyes"; then
20942      LIBS=$saved_LIBS
20943    fi
20944fi
20945
20946if test "x$with_openssl" != "xno"; then
20947    for ac_header in openssl/evp.h
20948do :
20949  ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
20950if test "x$ac_cv_header_openssl_evp_h" = xyes; then :
20951  cat >>confdefs.h <<_ACEOF
20952#define HAVE_OPENSSL_EVP_H 1
20953_ACEOF
20954
20955fi
20956
20957done
20958
20959    saved_LIBS=$LIBS
20960    case "$host_os" in
20961      *mingw* | *cygwin* | *msys*)
20962        case "$host_cpu" in
20963          x86_64)
20964            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_config in -leay64" >&5
20965$as_echo_n "checking for OPENSSL_config in -leay64... " >&6; }
20966if ${ac_cv_lib_eay64_OPENSSL_config+:} false; then :
20967  $as_echo_n "(cached) " >&6
20968else
20969  ac_check_lib_save_LIBS=$LIBS
20970LIBS="-leay64  $LIBS"
20971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20972/* end confdefs.h.  */
20973
20974/* Override any GCC internal prototype to avoid an error.
20975   Use char because int might match the return type of a GCC
20976   builtin and then its argument prototype would still apply.  */
20977#ifdef __cplusplus
20978extern "C"
20979#endif
20980char OPENSSL_config ();
20981int
20982main ()
20983{
20984return OPENSSL_config ();
20985  ;
20986  return 0;
20987}
20988_ACEOF
20989if ac_fn_c_try_link "$LINENO"; then :
20990  ac_cv_lib_eay64_OPENSSL_config=yes
20991else
20992  ac_cv_lib_eay64_OPENSSL_config=no
20993fi
20994rm -f core conftest.err conftest.$ac_objext \
20995    conftest$ac_exeext conftest.$ac_ext
20996LIBS=$ac_check_lib_save_LIBS
20997fi
20998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_eay64_OPENSSL_config" >&5
20999$as_echo "$ac_cv_lib_eay64_OPENSSL_config" >&6; }
21000if test "x$ac_cv_lib_eay64_OPENSSL_config" = xyes; then :
21001  cat >>confdefs.h <<_ACEOF
21002#define HAVE_LIBEAY64 1
21003_ACEOF
21004
21005  LIBS="-leay64 $LIBS"
21006
21007fi
21008
21009            if test "x$ac_cv_lib_eay64_main" != "xyes"; then
21010              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_config in -leay32" >&5
21011$as_echo_n "checking for OPENSSL_config in -leay32... " >&6; }
21012if ${ac_cv_lib_eay32_OPENSSL_config+:} false; then :
21013  $as_echo_n "(cached) " >&6
21014else
21015  ac_check_lib_save_LIBS=$LIBS
21016LIBS="-leay32  $LIBS"
21017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21018/* end confdefs.h.  */
21019
21020/* Override any GCC internal prototype to avoid an error.
21021   Use char because int might match the return type of a GCC
21022   builtin and then its argument prototype would still apply.  */
21023#ifdef __cplusplus
21024extern "C"
21025#endif
21026char OPENSSL_config ();
21027int
21028main ()
21029{
21030return OPENSSL_config ();
21031  ;
21032  return 0;
21033}
21034_ACEOF
21035if ac_fn_c_try_link "$LINENO"; then :
21036  ac_cv_lib_eay32_OPENSSL_config=yes
21037else
21038  ac_cv_lib_eay32_OPENSSL_config=no
21039fi
21040rm -f core conftest.err conftest.$ac_objext \
21041    conftest$ac_exeext conftest.$ac_ext
21042LIBS=$ac_check_lib_save_LIBS
21043fi
21044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_eay32_OPENSSL_config" >&5
21045$as_echo "$ac_cv_lib_eay32_OPENSSL_config" >&6; }
21046if test "x$ac_cv_lib_eay32_OPENSSL_config" = xyes; then :
21047  cat >>confdefs.h <<_ACEOF
21048#define HAVE_LIBEAY32 1
21049_ACEOF
21050
21051  LIBS="-leay32 $LIBS"
21052
21053fi
21054
21055            fi
21056            ;;
21057          *)
21058            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_config in -leay32" >&5
21059$as_echo_n "checking for OPENSSL_config in -leay32... " >&6; }
21060if ${ac_cv_lib_eay32_OPENSSL_config+:} false; then :
21061  $as_echo_n "(cached) " >&6
21062else
21063  ac_check_lib_save_LIBS=$LIBS
21064LIBS="-leay32  $LIBS"
21065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21066/* end confdefs.h.  */
21067
21068/* Override any GCC internal prototype to avoid an error.
21069   Use char because int might match the return type of a GCC
21070   builtin and then its argument prototype would still apply.  */
21071#ifdef __cplusplus
21072extern "C"
21073#endif
21074char OPENSSL_config ();
21075int
21076main ()
21077{
21078return OPENSSL_config ();
21079  ;
21080  return 0;
21081}
21082_ACEOF
21083if ac_fn_c_try_link "$LINENO"; then :
21084  ac_cv_lib_eay32_OPENSSL_config=yes
21085else
21086  ac_cv_lib_eay32_OPENSSL_config=no
21087fi
21088rm -f core conftest.err conftest.$ac_objext \
21089    conftest$ac_exeext conftest.$ac_ext
21090LIBS=$ac_check_lib_save_LIBS
21091fi
21092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_eay32_OPENSSL_config" >&5
21093$as_echo "$ac_cv_lib_eay32_OPENSSL_config" >&6; }
21094if test "x$ac_cv_lib_eay32_OPENSSL_config" = xyes; then :
21095  cat >>confdefs.h <<_ACEOF
21096#define HAVE_LIBEAY32 1
21097_ACEOF
21098
21099  LIBS="-leay32 $LIBS"
21100
21101fi
21102
21103            ;;
21104        esac
21105        ;;
21106      *)
21107        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_config in -lcrypto" >&5
21108$as_echo_n "checking for OPENSSL_config in -lcrypto... " >&6; }
21109if ${ac_cv_lib_crypto_OPENSSL_config+:} false; then :
21110  $as_echo_n "(cached) " >&6
21111else
21112  ac_check_lib_save_LIBS=$LIBS
21113LIBS="-lcrypto  $LIBS"
21114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21115/* end confdefs.h.  */
21116
21117/* Override any GCC internal prototype to avoid an error.
21118   Use char because int might match the return type of a GCC
21119   builtin and then its argument prototype would still apply.  */
21120#ifdef __cplusplus
21121extern "C"
21122#endif
21123char OPENSSL_config ();
21124int
21125main ()
21126{
21127return OPENSSL_config ();
21128  ;
21129  return 0;
21130}
21131_ACEOF
21132if ac_fn_c_try_link "$LINENO"; then :
21133  ac_cv_lib_crypto_OPENSSL_config=yes
21134else
21135  ac_cv_lib_crypto_OPENSSL_config=no
21136fi
21137rm -f core conftest.err conftest.$ac_objext \
21138    conftest$ac_exeext conftest.$ac_ext
21139LIBS=$ac_check_lib_save_LIBS
21140fi
21141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_config" >&5
21142$as_echo "$ac_cv_lib_crypto_OPENSSL_config" >&6; }
21143if test "x$ac_cv_lib_crypto_OPENSSL_config" = xyes; then :
21144  cat >>confdefs.h <<_ACEOF
21145#define HAVE_LIBCRYPTO 1
21146_ACEOF
21147
21148  LIBS="-lcrypto $LIBS"
21149
21150fi
21151
21152        ;;
21153    esac
21154
21155  if test "$found_MD5" != yes; then
21156    saved_CPPFLAGS="$CPPFLAGS"
21157    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21158    touch "check_crypto_md.h"
21159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_OPENSSL" >&5
21160$as_echo_n "checking support for ARCHIVE_CRYPTO_MD5_OPENSSL... " >&6; }
21161    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21162/* end confdefs.h.  */
21163
21164#define ARCHIVE_MD5_COMPILE_TEST
21165#define ARCHIVE_CRYPTO_MD5_OPENSSL
21166#define PLATFORM_CONFIG_H "check_crypto_md.h"
21167
21168$(cat "$srcdir/libarchive/archive_digest.c")
21169
21170int
21171main(int argc, char **argv)
21172{
21173  archive_md5_ctx ctx;
21174  archive_md5_init(&ctx);
21175  archive_md5_update(&ctx, *argv, argc);
21176  archive_md5_final(&ctx, NULL);
21177  return 0;
21178}
21179
21180_ACEOF
21181if ac_fn_c_try_link "$LINENO"; then :
21182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21183$as_echo "yes" >&6; }
21184      found_MD5=yes
21185      found_OPENSSL=yes
21186
21187$as_echo "#define ARCHIVE_CRYPTO_MD5_OPENSSL 1" >>confdefs.h
21188
21189
21190else
21191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21192$as_echo "no" >&6; }
21193fi
21194rm -f core conftest.err conftest.$ac_objext \
21195    conftest$ac_exeext conftest.$ac_ext
21196    CPPFLAGS="$saved_CPPFLAGS"
21197    rm "check_crypto_md.h"
21198  fi
21199
21200
21201  if test "$found_RMD160" != yes; then
21202    saved_CPPFLAGS="$CPPFLAGS"
21203    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21204    touch "check_crypto_md.h"
21205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_OPENSSL" >&5
21206$as_echo_n "checking support for ARCHIVE_CRYPTO_RMD160_OPENSSL... " >&6; }
21207    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21208/* end confdefs.h.  */
21209
21210#define ARCHIVE_RMD160_COMPILE_TEST
21211#define ARCHIVE_CRYPTO_RMD160_OPENSSL
21212#define PLATFORM_CONFIG_H "check_crypto_md.h"
21213
21214$(cat "$srcdir/libarchive/archive_digest.c")
21215
21216int
21217main(int argc, char **argv)
21218{
21219  archive_rmd160_ctx ctx;
21220  archive_rmd160_init(&ctx);
21221  archive_rmd160_update(&ctx, *argv, argc);
21222  archive_rmd160_final(&ctx, NULL);
21223  return 0;
21224}
21225
21226_ACEOF
21227if ac_fn_c_try_link "$LINENO"; then :
21228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21229$as_echo "yes" >&6; }
21230      found_RMD160=yes
21231      found_OPENSSL=yes
21232
21233$as_echo "#define ARCHIVE_CRYPTO_RMD160_OPENSSL 1" >>confdefs.h
21234
21235
21236else
21237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21238$as_echo "no" >&6; }
21239fi
21240rm -f core conftest.err conftest.$ac_objext \
21241    conftest$ac_exeext conftest.$ac_ext
21242    CPPFLAGS="$saved_CPPFLAGS"
21243    rm "check_crypto_md.h"
21244  fi
21245
21246
21247  if test "$found_SHA1" != yes; then
21248    saved_CPPFLAGS="$CPPFLAGS"
21249    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21250    touch "check_crypto_md.h"
21251    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_OPENSSL" >&5
21252$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA1_OPENSSL... " >&6; }
21253    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21254/* end confdefs.h.  */
21255
21256#define ARCHIVE_SHA1_COMPILE_TEST
21257#define ARCHIVE_CRYPTO_SHA1_OPENSSL
21258#define PLATFORM_CONFIG_H "check_crypto_md.h"
21259
21260$(cat "$srcdir/libarchive/archive_digest.c")
21261
21262int
21263main(int argc, char **argv)
21264{
21265  archive_sha1_ctx ctx;
21266  archive_sha1_init(&ctx);
21267  archive_sha1_update(&ctx, *argv, argc);
21268  archive_sha1_final(&ctx, NULL);
21269  return 0;
21270}
21271
21272_ACEOF
21273if ac_fn_c_try_link "$LINENO"; then :
21274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21275$as_echo "yes" >&6; }
21276      found_SHA1=yes
21277      found_OPENSSL=yes
21278
21279$as_echo "#define ARCHIVE_CRYPTO_SHA1_OPENSSL 1" >>confdefs.h
21280
21281
21282else
21283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21284$as_echo "no" >&6; }
21285fi
21286rm -f core conftest.err conftest.$ac_objext \
21287    conftest$ac_exeext conftest.$ac_ext
21288    CPPFLAGS="$saved_CPPFLAGS"
21289    rm "check_crypto_md.h"
21290  fi
21291
21292
21293  if test "$found_SHA256" != yes; then
21294    saved_CPPFLAGS="$CPPFLAGS"
21295    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21296    touch "check_crypto_md.h"
21297    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_OPENSSL" >&5
21298$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_OPENSSL... " >&6; }
21299    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21300/* end confdefs.h.  */
21301
21302#define ARCHIVE_SHA256_COMPILE_TEST
21303#define ARCHIVE_CRYPTO_SHA256_OPENSSL
21304#define PLATFORM_CONFIG_H "check_crypto_md.h"
21305
21306$(cat "$srcdir/libarchive/archive_digest.c")
21307
21308int
21309main(int argc, char **argv)
21310{
21311  archive_sha256_ctx ctx;
21312  archive_sha256_init(&ctx);
21313  archive_sha256_update(&ctx, *argv, argc);
21314  archive_sha256_final(&ctx, NULL);
21315  return 0;
21316}
21317
21318_ACEOF
21319if ac_fn_c_try_link "$LINENO"; then :
21320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21321$as_echo "yes" >&6; }
21322      found_SHA256=yes
21323      found_OPENSSL=yes
21324
21325$as_echo "#define ARCHIVE_CRYPTO_SHA256_OPENSSL 1" >>confdefs.h
21326
21327
21328else
21329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21330$as_echo "no" >&6; }
21331fi
21332rm -f core conftest.err conftest.$ac_objext \
21333    conftest$ac_exeext conftest.$ac_ext
21334    CPPFLAGS="$saved_CPPFLAGS"
21335    rm "check_crypto_md.h"
21336  fi
21337
21338
21339  if test "$found_SHA384" != yes; then
21340    saved_CPPFLAGS="$CPPFLAGS"
21341    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21342    touch "check_crypto_md.h"
21343    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_OPENSSL" >&5
21344$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_OPENSSL... " >&6; }
21345    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21346/* end confdefs.h.  */
21347
21348#define ARCHIVE_SHA384_COMPILE_TEST
21349#define ARCHIVE_CRYPTO_SHA384_OPENSSL
21350#define PLATFORM_CONFIG_H "check_crypto_md.h"
21351
21352$(cat "$srcdir/libarchive/archive_digest.c")
21353
21354int
21355main(int argc, char **argv)
21356{
21357  archive_sha384_ctx ctx;
21358  archive_sha384_init(&ctx);
21359  archive_sha384_update(&ctx, *argv, argc);
21360  archive_sha384_final(&ctx, NULL);
21361  return 0;
21362}
21363
21364_ACEOF
21365if ac_fn_c_try_link "$LINENO"; then :
21366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21367$as_echo "yes" >&6; }
21368      found_SHA384=yes
21369      found_OPENSSL=yes
21370
21371$as_echo "#define ARCHIVE_CRYPTO_SHA384_OPENSSL 1" >>confdefs.h
21372
21373
21374else
21375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21376$as_echo "no" >&6; }
21377fi
21378rm -f core conftest.err conftest.$ac_objext \
21379    conftest$ac_exeext conftest.$ac_ext
21380    CPPFLAGS="$saved_CPPFLAGS"
21381    rm "check_crypto_md.h"
21382  fi
21383
21384
21385  if test "$found_SHA512" != yes; then
21386    saved_CPPFLAGS="$CPPFLAGS"
21387    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21388    touch "check_crypto_md.h"
21389    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_OPENSSL" >&5
21390$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_OPENSSL... " >&6; }
21391    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21392/* end confdefs.h.  */
21393
21394#define ARCHIVE_SHA512_COMPILE_TEST
21395#define ARCHIVE_CRYPTO_SHA512_OPENSSL
21396#define PLATFORM_CONFIG_H "check_crypto_md.h"
21397
21398$(cat "$srcdir/libarchive/archive_digest.c")
21399
21400int
21401main(int argc, char **argv)
21402{
21403  archive_sha512_ctx ctx;
21404  archive_sha512_init(&ctx);
21405  archive_sha512_update(&ctx, *argv, argc);
21406  archive_sha512_final(&ctx, NULL);
21407  return 0;
21408}
21409
21410_ACEOF
21411if ac_fn_c_try_link "$LINENO"; then :
21412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21413$as_echo "yes" >&6; }
21414      found_SHA512=yes
21415      found_OPENSSL=yes
21416
21417$as_echo "#define ARCHIVE_CRYPTO_SHA512_OPENSSL 1" >>confdefs.h
21418
21419
21420else
21421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21422$as_echo "no" >&6; }
21423fi
21424rm -f core conftest.err conftest.$ac_objext \
21425    conftest$ac_exeext conftest.$ac_ext
21426    CPPFLAGS="$saved_CPPFLAGS"
21427    rm "check_crypto_md.h"
21428  fi
21429
21430    for ac_func in PKCS5_PBKDF2_HMAC_SHA1
21431do :
21432  ac_fn_c_check_func "$LINENO" "PKCS5_PBKDF2_HMAC_SHA1" "ac_cv_func_PKCS5_PBKDF2_HMAC_SHA1"
21433if test "x$ac_cv_func_PKCS5_PBKDF2_HMAC_SHA1" = xyes; then :
21434  cat >>confdefs.h <<_ACEOF
21435#define HAVE_PKCS5_PBKDF2_HMAC_SHA1 1
21436_ACEOF
21437
21438fi
21439done
21440
21441fi
21442
21443# Probe libmd AFTER OpenSSL/libcrypto.
21444# The two are incompatible and OpenSSL is more complete.
21445for ac_header in md5.h ripemd.h sha.h sha256.h sha512.h
21446do :
21447  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21448ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21449if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21450  cat >>confdefs.h <<_ACEOF
21451#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21452_ACEOF
21453
21454fi
21455
21456done
21457
21458saved_LIBS=$LIBS
21459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5Init in -lmd" >&5
21460$as_echo_n "checking for MD5Init in -lmd... " >&6; }
21461if ${ac_cv_lib_md_MD5Init+:} false; then :
21462  $as_echo_n "(cached) " >&6
21463else
21464  ac_check_lib_save_LIBS=$LIBS
21465LIBS="-lmd  $LIBS"
21466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467/* end confdefs.h.  */
21468
21469/* Override any GCC internal prototype to avoid an error.
21470   Use char because int might match the return type of a GCC
21471   builtin and then its argument prototype would still apply.  */
21472#ifdef __cplusplus
21473extern "C"
21474#endif
21475char MD5Init ();
21476int
21477main ()
21478{
21479return MD5Init ();
21480  ;
21481  return 0;
21482}
21483_ACEOF
21484if ac_fn_c_try_link "$LINENO"; then :
21485  ac_cv_lib_md_MD5Init=yes
21486else
21487  ac_cv_lib_md_MD5Init=no
21488fi
21489rm -f core conftest.err conftest.$ac_objext \
21490    conftest$ac_exeext conftest.$ac_ext
21491LIBS=$ac_check_lib_save_LIBS
21492fi
21493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_MD5Init" >&5
21494$as_echo "$ac_cv_lib_md_MD5Init" >&6; }
21495if test "x$ac_cv_lib_md_MD5Init" = xyes; then :
21496  cat >>confdefs.h <<_ACEOF
21497#define HAVE_LIBMD 1
21498_ACEOF
21499
21500  LIBS="-lmd $LIBS"
21501
21502fi
21503
21504
21505  if test "$found_MD5" != yes; then
21506    saved_CPPFLAGS="$CPPFLAGS"
21507    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21508    touch "check_crypto_md.h"
21509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBMD" >&5
21510$as_echo_n "checking support for ARCHIVE_CRYPTO_MD5_LIBMD... " >&6; }
21511    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21512/* end confdefs.h.  */
21513
21514#define ARCHIVE_MD5_COMPILE_TEST
21515#define ARCHIVE_CRYPTO_MD5_LIBMD
21516#define PLATFORM_CONFIG_H "check_crypto_md.h"
21517
21518$(cat "$srcdir/libarchive/archive_digest.c")
21519
21520int
21521main(int argc, char **argv)
21522{
21523  archive_md5_ctx ctx;
21524  archive_md5_init(&ctx);
21525  archive_md5_update(&ctx, *argv, argc);
21526  archive_md5_final(&ctx, NULL);
21527  return 0;
21528}
21529
21530_ACEOF
21531if ac_fn_c_try_link "$LINENO"; then :
21532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21533$as_echo "yes" >&6; }
21534      found_MD5=yes
21535      found_LIBMD=yes
21536
21537$as_echo "#define ARCHIVE_CRYPTO_MD5_LIBMD 1" >>confdefs.h
21538
21539
21540else
21541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21542$as_echo "no" >&6; }
21543fi
21544rm -f core conftest.err conftest.$ac_objext \
21545    conftest$ac_exeext conftest.$ac_ext
21546    CPPFLAGS="$saved_CPPFLAGS"
21547    rm "check_crypto_md.h"
21548  fi
21549
21550
21551  if test "$found_RMD160" != yes; then
21552    saved_CPPFLAGS="$CPPFLAGS"
21553    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21554    touch "check_crypto_md.h"
21555    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_LIBMD" >&5
21556$as_echo_n "checking support for ARCHIVE_CRYPTO_RMD160_LIBMD... " >&6; }
21557    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21558/* end confdefs.h.  */
21559
21560#define ARCHIVE_RMD160_COMPILE_TEST
21561#define ARCHIVE_CRYPTO_RMD160_LIBMD
21562#define PLATFORM_CONFIG_H "check_crypto_md.h"
21563
21564$(cat "$srcdir/libarchive/archive_digest.c")
21565
21566int
21567main(int argc, char **argv)
21568{
21569  archive_rmd160_ctx ctx;
21570  archive_rmd160_init(&ctx);
21571  archive_rmd160_update(&ctx, *argv, argc);
21572  archive_rmd160_final(&ctx, NULL);
21573  return 0;
21574}
21575
21576_ACEOF
21577if ac_fn_c_try_link "$LINENO"; then :
21578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21579$as_echo "yes" >&6; }
21580      found_RMD160=yes
21581      found_LIBMD=yes
21582
21583$as_echo "#define ARCHIVE_CRYPTO_RMD160_LIBMD 1" >>confdefs.h
21584
21585
21586else
21587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21588$as_echo "no" >&6; }
21589fi
21590rm -f core conftest.err conftest.$ac_objext \
21591    conftest$ac_exeext conftest.$ac_ext
21592    CPPFLAGS="$saved_CPPFLAGS"
21593    rm "check_crypto_md.h"
21594  fi
21595
21596
21597  if test "$found_SHA1" != yes; then
21598    saved_CPPFLAGS="$CPPFLAGS"
21599    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21600    touch "check_crypto_md.h"
21601    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBMD" >&5
21602$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA1_LIBMD... " >&6; }
21603    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21604/* end confdefs.h.  */
21605
21606#define ARCHIVE_SHA1_COMPILE_TEST
21607#define ARCHIVE_CRYPTO_SHA1_LIBMD
21608#define PLATFORM_CONFIG_H "check_crypto_md.h"
21609
21610$(cat "$srcdir/libarchive/archive_digest.c")
21611
21612int
21613main(int argc, char **argv)
21614{
21615  archive_sha1_ctx ctx;
21616  archive_sha1_init(&ctx);
21617  archive_sha1_update(&ctx, *argv, argc);
21618  archive_sha1_final(&ctx, NULL);
21619  return 0;
21620}
21621
21622_ACEOF
21623if ac_fn_c_try_link "$LINENO"; then :
21624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21625$as_echo "yes" >&6; }
21626      found_SHA1=yes
21627      found_LIBMD=yes
21628
21629$as_echo "#define ARCHIVE_CRYPTO_SHA1_LIBMD 1" >>confdefs.h
21630
21631
21632else
21633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21634$as_echo "no" >&6; }
21635fi
21636rm -f core conftest.err conftest.$ac_objext \
21637    conftest$ac_exeext conftest.$ac_ext
21638    CPPFLAGS="$saved_CPPFLAGS"
21639    rm "check_crypto_md.h"
21640  fi
21641
21642
21643  if test "$found_SHA256" != yes; then
21644    saved_CPPFLAGS="$CPPFLAGS"
21645    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21646    touch "check_crypto_md.h"
21647    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBMD" >&5
21648$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_LIBMD... " >&6; }
21649    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21650/* end confdefs.h.  */
21651
21652#define ARCHIVE_SHA256_COMPILE_TEST
21653#define ARCHIVE_CRYPTO_SHA256_LIBMD
21654#define PLATFORM_CONFIG_H "check_crypto_md.h"
21655
21656$(cat "$srcdir/libarchive/archive_digest.c")
21657
21658int
21659main(int argc, char **argv)
21660{
21661  archive_sha256_ctx ctx;
21662  archive_sha256_init(&ctx);
21663  archive_sha256_update(&ctx, *argv, argc);
21664  archive_sha256_final(&ctx, NULL);
21665  return 0;
21666}
21667
21668_ACEOF
21669if ac_fn_c_try_link "$LINENO"; then :
21670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21671$as_echo "yes" >&6; }
21672      found_SHA256=yes
21673      found_LIBMD=yes
21674
21675$as_echo "#define ARCHIVE_CRYPTO_SHA256_LIBMD 1" >>confdefs.h
21676
21677
21678else
21679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21680$as_echo "no" >&6; }
21681fi
21682rm -f core conftest.err conftest.$ac_objext \
21683    conftest$ac_exeext conftest.$ac_ext
21684    CPPFLAGS="$saved_CPPFLAGS"
21685    rm "check_crypto_md.h"
21686  fi
21687
21688
21689  if test "$found_SHA512" != yes; then
21690    saved_CPPFLAGS="$CPPFLAGS"
21691    CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21692    touch "check_crypto_md.h"
21693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBMD" >&5
21694$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_LIBMD... " >&6; }
21695    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21696/* end confdefs.h.  */
21697
21698#define ARCHIVE_SHA512_COMPILE_TEST
21699#define ARCHIVE_CRYPTO_SHA512_LIBMD
21700#define PLATFORM_CONFIG_H "check_crypto_md.h"
21701
21702$(cat "$srcdir/libarchive/archive_digest.c")
21703
21704int
21705main(int argc, char **argv)
21706{
21707  archive_sha512_ctx ctx;
21708  archive_sha512_init(&ctx);
21709  archive_sha512_update(&ctx, *argv, argc);
21710  archive_sha512_final(&ctx, NULL);
21711  return 0;
21712}
21713
21714_ACEOF
21715if ac_fn_c_try_link "$LINENO"; then :
21716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21717$as_echo "yes" >&6; }
21718      found_SHA512=yes
21719      found_LIBMD=yes
21720
21721$as_echo "#define ARCHIVE_CRYPTO_SHA512_LIBMD 1" >>confdefs.h
21722
21723
21724else
21725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21726$as_echo "no" >&6; }
21727fi
21728rm -f core conftest.err conftest.$ac_objext \
21729    conftest$ac_exeext conftest.$ac_ext
21730    CPPFLAGS="$saved_CPPFLAGS"
21731    rm "check_crypto_md.h"
21732  fi
21733
21734if test "x$found_LIBMD" != "xyes"; then
21735  LIBS=$saved_LIBS
21736fi
21737
21738case "$host_os" in
21739  *mingw* | *cygwin* | *msys*)
21740
21741  if test "$found_MD5" != yes; then
21742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_WIN" >&5
21743$as_echo_n "checking support for ARCHIVE_CRYPTO_MD5_WIN... " >&6; }
21744    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21745/* end confdefs.h.  */
21746
21747#define ARCHIVE_MD5_COMPILE_TEST
21748#include <windows.h>
21749#include <wincrypt.h>
21750
21751int
21752main(int argc, char **argv)
21753{
21754	(void)argc;
21755	(void)argv;
21756
21757	return (CALG_MD5);
21758}
21759
21760_ACEOF
21761if ac_fn_c_try_link "$LINENO"; then :
21762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21763$as_echo "yes" >&6; }
21764      found_MD5=yes
21765      found_WIN=yes
21766
21767$as_echo "#define ARCHIVE_CRYPTO_MD5_WIN 1" >>confdefs.h
21768
21769
21770else
21771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21772$as_echo "no" >&6; }
21773fi
21774rm -f core conftest.err conftest.$ac_objext \
21775    conftest$ac_exeext conftest.$ac_ext
21776  fi
21777
21778
21779  if test "$found_SHA1" != yes; then
21780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_WIN" >&5
21781$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA1_WIN... " >&6; }
21782    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21783/* end confdefs.h.  */
21784
21785#define ARCHIVE_SHA1_COMPILE_TEST
21786#include <windows.h>
21787#include <wincrypt.h>
21788
21789int
21790main(int argc, char **argv)
21791{
21792	(void)argc;
21793	(void)argv;
21794
21795	return (CALG_SHA1);
21796}
21797
21798_ACEOF
21799if ac_fn_c_try_link "$LINENO"; then :
21800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21801$as_echo "yes" >&6; }
21802      found_SHA1=yes
21803      found_WIN=yes
21804
21805$as_echo "#define ARCHIVE_CRYPTO_SHA1_WIN 1" >>confdefs.h
21806
21807
21808else
21809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21810$as_echo "no" >&6; }
21811fi
21812rm -f core conftest.err conftest.$ac_objext \
21813    conftest$ac_exeext conftest.$ac_ext
21814  fi
21815
21816
21817  if test "$found_SHA256" != yes; then
21818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_WIN" >&5
21819$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_WIN... " >&6; }
21820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21821/* end confdefs.h.  */
21822
21823#define ARCHIVE_SHA256_COMPILE_TEST
21824#include <windows.h>
21825#include <wincrypt.h>
21826
21827int
21828main(int argc, char **argv)
21829{
21830	(void)argc;
21831	(void)argv;
21832
21833	return (CALG_SHA_256);
21834}
21835
21836_ACEOF
21837if ac_fn_c_try_link "$LINENO"; then :
21838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21839$as_echo "yes" >&6; }
21840      found_SHA256=yes
21841      found_WIN=yes
21842
21843$as_echo "#define ARCHIVE_CRYPTO_SHA256_WIN 1" >>confdefs.h
21844
21845
21846else
21847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21848$as_echo "no" >&6; }
21849fi
21850rm -f core conftest.err conftest.$ac_objext \
21851    conftest$ac_exeext conftest.$ac_ext
21852  fi
21853
21854
21855  if test "$found_SHA384" != yes; then
21856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_WIN" >&5
21857$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_WIN... " >&6; }
21858    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21859/* end confdefs.h.  */
21860
21861#define ARCHIVE_SHA384_COMPILE_TEST
21862#include <windows.h>
21863#include <wincrypt.h>
21864
21865int
21866main(int argc, char **argv)
21867{
21868	(void)argc;
21869	(void)argv;
21870
21871	return (CALG_SHA_384);
21872}
21873
21874_ACEOF
21875if ac_fn_c_try_link "$LINENO"; then :
21876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21877$as_echo "yes" >&6; }
21878      found_SHA384=yes
21879      found_WIN=yes
21880
21881$as_echo "#define ARCHIVE_CRYPTO_SHA384_WIN 1" >>confdefs.h
21882
21883
21884else
21885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21886$as_echo "no" >&6; }
21887fi
21888rm -f core conftest.err conftest.$ac_objext \
21889    conftest$ac_exeext conftest.$ac_ext
21890  fi
21891
21892
21893  if test "$found_SHA512" != yes; then
21894    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_WIN" >&5
21895$as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_WIN... " >&6; }
21896    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21897/* end confdefs.h.  */
21898
21899#define ARCHIVE_SHA512_COMPILE_TEST
21900#include <windows.h>
21901#include <wincrypt.h>
21902
21903int
21904main(int argc, char **argv)
21905{
21906	(void)argc;
21907	(void)argv;
21908
21909	return (CALG_SHA_512);
21910}
21911
21912_ACEOF
21913if ac_fn_c_try_link "$LINENO"; then :
21914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21915$as_echo "yes" >&6; }
21916      found_SHA512=yes
21917      found_WIN=yes
21918
21919$as_echo "#define ARCHIVE_CRYPTO_SHA512_WIN 1" >>confdefs.h
21920
21921
21922else
21923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21924$as_echo "no" >&6; }
21925fi
21926rm -f core conftest.err conftest.$ac_objext \
21927    conftest$ac_exeext conftest.$ac_ext
21928  fi
21929
21930	;;
21931esac
21932
21933# Ensure test directories are present if building out-of-tree
21934ac_config_commands="$ac_config_commands mkdirs"
21935
21936
21937cat >confcache <<\_ACEOF
21938# This file is a shell script that caches the results of configure
21939# tests run on this system so they can be shared between configure
21940# scripts and configure runs, see configure's option --config-cache.
21941# It is not useful on other systems.  If it contains results you don't
21942# want to keep, you may remove or edit it.
21943#
21944# config.status only pays attention to the cache file if you give it
21945# the --recheck option to rerun configure.
21946#
21947# `ac_cv_env_foo' variables (set or unset) will be overridden when
21948# loading this file, other *unset* `ac_cv_foo' will be assigned the
21949# following values.
21950
21951_ACEOF
21952
21953# The following way of writing the cache mishandles newlines in values,
21954# but we know of no workaround that is simple, portable, and efficient.
21955# So, we kill variables containing newlines.
21956# Ultrix sh set writes to stderr and can't be redirected directly,
21957# and sets the high bit in the cache file unless we assign to the vars.
21958(
21959  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21960    eval ac_val=\$$ac_var
21961    case $ac_val in #(
21962    *${as_nl}*)
21963      case $ac_var in #(
21964      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21965$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21966      esac
21967      case $ac_var in #(
21968      _ | IFS | as_nl) ;; #(
21969      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21970      *) { eval $ac_var=; unset $ac_var;} ;;
21971      esac ;;
21972    esac
21973  done
21974
21975  (set) 2>&1 |
21976    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21977    *${as_nl}ac_space=\ *)
21978      # `set' does not quote correctly, so add quotes: double-quote
21979      # substitution turns \\\\ into \\, and sed turns \\ into \.
21980      sed -n \
21981	"s/'/'\\\\''/g;
21982	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21983      ;; #(
21984    *)
21985      # `set' quotes correctly as required by POSIX, so do not add quotes.
21986      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21987      ;;
21988    esac |
21989    sort
21990) |
21991  sed '
21992     /^ac_cv_env_/b end
21993     t clear
21994     :clear
21995     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21996     t end
21997     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21998     :end' >>confcache
21999if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22000  if test -w "$cache_file"; then
22001    if test "x$cache_file" != "x/dev/null"; then
22002      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22003$as_echo "$as_me: updating cache $cache_file" >&6;}
22004      if test ! -f "$cache_file" || test -h "$cache_file"; then
22005	cat confcache >"$cache_file"
22006      else
22007        case $cache_file in #(
22008        */* | ?:*)
22009	  mv -f confcache "$cache_file"$$ &&
22010	  mv -f "$cache_file"$$ "$cache_file" ;; #(
22011        *)
22012	  mv -f confcache "$cache_file" ;;
22013	esac
22014      fi
22015    fi
22016  else
22017    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22018$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22019  fi
22020fi
22021rm -f confcache
22022
22023test "x$prefix" = xNONE && prefix=$ac_default_prefix
22024# Let make expand exec_prefix.
22025test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22026
22027DEFS=-DHAVE_CONFIG_H
22028
22029ac_libobjs=
22030ac_ltlibobjs=
22031U=
22032for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22033  # 1. Remove the extension, and $U if already installed.
22034  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22035  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22036  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22037  #    will be set to the directory where LIBOBJS objects are built.
22038  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22039  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22040done
22041LIBOBJS=$ac_libobjs
22042
22043LTLIBOBJS=$ac_ltlibobjs
22044
22045
22046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22047$as_echo_n "checking that generated files are newer than configure... " >&6; }
22048   if test -n "$am_sleep_pid"; then
22049     # Hide warnings about reused PIDs.
22050     wait $am_sleep_pid 2>/dev/null
22051   fi
22052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22053$as_echo "done" >&6; }
22054 if test -n "$EXEEXT"; then
22055  am__EXEEXT_TRUE=
22056  am__EXEEXT_FALSE='#'
22057else
22058  am__EXEEXT_TRUE='#'
22059  am__EXEEXT_FALSE=
22060fi
22061
22062if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22063  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22064Usually this means the macro was only invoked conditionally." "$LINENO" 5
22065fi
22066if test -z "${INC_WINDOWS_FILES_TRUE}" && test -z "${INC_WINDOWS_FILES_FALSE}"; then
22067  as_fn_error $? "conditional \"INC_WINDOWS_FILES\" was never defined.
22068Usually this means the macro was only invoked conditionally." "$LINENO" 5
22069fi
22070if test -z "${INC_CYGWIN_FILES_TRUE}" && test -z "${INC_CYGWIN_FILES_FALSE}"; then
22071  as_fn_error $? "conditional \"INC_CYGWIN_FILES\" was never defined.
22072Usually this means the macro was only invoked conditionally." "$LINENO" 5
22073fi
22074if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22075  as_fn_error $? "conditional \"AMDEP\" was never defined.
22076Usually this means the macro was only invoked conditionally." "$LINENO" 5
22077fi
22078if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22079  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22080Usually this means the macro was only invoked conditionally." "$LINENO" 5
22081fi
22082if test -z "${BUILD_BSDTAR_TRUE}" && test -z "${BUILD_BSDTAR_FALSE}"; then
22083  as_fn_error $? "conditional \"BUILD_BSDTAR\" was never defined.
22084Usually this means the macro was only invoked conditionally." "$LINENO" 5
22085fi
22086if test -z "${STATIC_BSDTAR_TRUE}" && test -z "${STATIC_BSDTAR_FALSE}"; then
22087  as_fn_error $? "conditional \"STATIC_BSDTAR\" was never defined.
22088Usually this means the macro was only invoked conditionally." "$LINENO" 5
22089fi
22090if test -z "${BUILD_BSDCAT_TRUE}" && test -z "${BUILD_BSDCAT_FALSE}"; then
22091  as_fn_error $? "conditional \"BUILD_BSDCAT\" was never defined.
22092Usually this means the macro was only invoked conditionally." "$LINENO" 5
22093fi
22094if test -z "${STATIC_BSDCAT_TRUE}" && test -z "${STATIC_BSDCAT_FALSE}"; then
22095  as_fn_error $? "conditional \"STATIC_BSDCAT\" was never defined.
22096Usually this means the macro was only invoked conditionally." "$LINENO" 5
22097fi
22098if test -z "${BUILD_BSDCPIO_TRUE}" && test -z "${BUILD_BSDCPIO_FALSE}"; then
22099  as_fn_error $? "conditional \"BUILD_BSDCPIO\" was never defined.
22100Usually this means the macro was only invoked conditionally." "$LINENO" 5
22101fi
22102if test -z "${STATIC_BSDCPIO_TRUE}" && test -z "${STATIC_BSDCPIO_FALSE}"; then
22103  as_fn_error $? "conditional \"STATIC_BSDCPIO\" was never defined.
22104Usually this means the macro was only invoked conditionally." "$LINENO" 5
22105fi
22106if test -z "${INC_BLAKE2_TRUE}" && test -z "${INC_BLAKE2_FALSE}"; then
22107  as_fn_error $? "conditional \"INC_BLAKE2\" was never defined.
22108Usually this means the macro was only invoked conditionally." "$LINENO" 5
22109fi
22110if test -z "${INC_LINUX_ACL_TRUE}" && test -z "${INC_LINUX_ACL_FALSE}"; then
22111  as_fn_error $? "conditional \"INC_LINUX_ACL\" was never defined.
22112Usually this means the macro was only invoked conditionally." "$LINENO" 5
22113fi
22114if test -z "${INC_SUNOS_ACL_TRUE}" && test -z "${INC_SUNOS_ACL_FALSE}"; then
22115  as_fn_error $? "conditional \"INC_SUNOS_ACL\" was never defined.
22116Usually this means the macro was only invoked conditionally." "$LINENO" 5
22117fi
22118if test -z "${INC_DARWIN_ACL_TRUE}" && test -z "${INC_DARWIN_ACL_FALSE}"; then
22119  as_fn_error $? "conditional \"INC_DARWIN_ACL\" was never defined.
22120Usually this means the macro was only invoked conditionally." "$LINENO" 5
22121fi
22122if test -z "${INC_FREEBSD_ACL_TRUE}" && test -z "${INC_FREEBSD_ACL_FALSE}"; then
22123  as_fn_error $? "conditional \"INC_FREEBSD_ACL\" was never defined.
22124Usually this means the macro was only invoked conditionally." "$LINENO" 5
22125fi
22126
22127: "${CONFIG_STATUS=./config.status}"
22128ac_write_fail=0
22129ac_clean_files_save=$ac_clean_files
22130ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22131{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22132$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22133as_write_fail=0
22134cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22135#! $SHELL
22136# Generated by $as_me.
22137# Run this file to recreate the current configuration.
22138# Compiler output produced by configure, useful for debugging
22139# configure, is in config.log if it exists.
22140
22141debug=false
22142ac_cs_recheck=false
22143ac_cs_silent=false
22144
22145SHELL=\${CONFIG_SHELL-$SHELL}
22146export SHELL
22147_ASEOF
22148cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22149## -------------------- ##
22150## M4sh Initialization. ##
22151## -------------------- ##
22152
22153# Be more Bourne compatible
22154DUALCASE=1; export DUALCASE # for MKS sh
22155if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22156  emulate sh
22157  NULLCMD=:
22158  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22159  # is contrary to our usage.  Disable this feature.
22160  alias -g '${1+"$@"}'='"$@"'
22161  setopt NO_GLOB_SUBST
22162else
22163  case `(set -o) 2>/dev/null` in #(
22164  *posix*) :
22165    set -o posix ;; #(
22166  *) :
22167     ;;
22168esac
22169fi
22170
22171
22172as_nl='
22173'
22174export as_nl
22175# Printing a long string crashes Solaris 7 /usr/bin/printf.
22176as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22177as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22178as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22179# Prefer a ksh shell builtin over an external printf program on Solaris,
22180# but without wasting forks for bash or zsh.
22181if test -z "$BASH_VERSION$ZSH_VERSION" \
22182    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22183  as_echo='print -r --'
22184  as_echo_n='print -rn --'
22185elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22186  as_echo='printf %s\n'
22187  as_echo_n='printf %s'
22188else
22189  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22190    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22191    as_echo_n='/usr/ucb/echo -n'
22192  else
22193    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22194    as_echo_n_body='eval
22195      arg=$1;
22196      case $arg in #(
22197      *"$as_nl"*)
22198	expr "X$arg" : "X\\(.*\\)$as_nl";
22199	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22200      esac;
22201      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22202    '
22203    export as_echo_n_body
22204    as_echo_n='sh -c $as_echo_n_body as_echo'
22205  fi
22206  export as_echo_body
22207  as_echo='sh -c $as_echo_body as_echo'
22208fi
22209
22210# The user is always right.
22211if test "${PATH_SEPARATOR+set}" != set; then
22212  PATH_SEPARATOR=:
22213  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22214    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22215      PATH_SEPARATOR=';'
22216  }
22217fi
22218
22219
22220# IFS
22221# We need space, tab and new line, in precisely that order.  Quoting is
22222# there to prevent editors from complaining about space-tab.
22223# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22224# splitting by setting IFS to empty value.)
22225IFS=" ""	$as_nl"
22226
22227# Find who we are.  Look in the path if we contain no directory separator.
22228as_myself=
22229case $0 in #((
22230  *[\\/]* ) as_myself=$0 ;;
22231  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22232for as_dir in $PATH
22233do
22234  IFS=$as_save_IFS
22235  test -z "$as_dir" && as_dir=.
22236    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22237  done
22238IFS=$as_save_IFS
22239
22240     ;;
22241esac
22242# We did not find ourselves, most probably we were run as `sh COMMAND'
22243# in which case we are not to be found in the path.
22244if test "x$as_myself" = x; then
22245  as_myself=$0
22246fi
22247if test ! -f "$as_myself"; then
22248  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22249  exit 1
22250fi
22251
22252# Unset variables that we do not need and which cause bugs (e.g. in
22253# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22254# suppresses any "Segmentation fault" message there.  '((' could
22255# trigger a bug in pdksh 5.2.14.
22256for as_var in BASH_ENV ENV MAIL MAILPATH
22257do eval test x\${$as_var+set} = xset \
22258  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22259done
22260PS1='$ '
22261PS2='> '
22262PS4='+ '
22263
22264# NLS nuisances.
22265LC_ALL=C
22266export LC_ALL
22267LANGUAGE=C
22268export LANGUAGE
22269
22270# CDPATH.
22271(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22272
22273
22274# as_fn_error STATUS ERROR [LINENO LOG_FD]
22275# ----------------------------------------
22276# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22277# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22278# script with STATUS, using 1 if that was 0.
22279as_fn_error ()
22280{
22281  as_status=$1; test $as_status -eq 0 && as_status=1
22282  if test "$4"; then
22283    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22284    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22285  fi
22286  $as_echo "$as_me: error: $2" >&2
22287  as_fn_exit $as_status
22288} # as_fn_error
22289
22290
22291# as_fn_set_status STATUS
22292# -----------------------
22293# Set $? to STATUS, without forking.
22294as_fn_set_status ()
22295{
22296  return $1
22297} # as_fn_set_status
22298
22299# as_fn_exit STATUS
22300# -----------------
22301# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22302as_fn_exit ()
22303{
22304  set +e
22305  as_fn_set_status $1
22306  exit $1
22307} # as_fn_exit
22308
22309# as_fn_unset VAR
22310# ---------------
22311# Portably unset VAR.
22312as_fn_unset ()
22313{
22314  { eval $1=; unset $1;}
22315}
22316as_unset=as_fn_unset
22317# as_fn_append VAR VALUE
22318# ----------------------
22319# Append the text in VALUE to the end of the definition contained in VAR. Take
22320# advantage of any shell optimizations that allow amortized linear growth over
22321# repeated appends, instead of the typical quadratic growth present in naive
22322# implementations.
22323if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22324  eval 'as_fn_append ()
22325  {
22326    eval $1+=\$2
22327  }'
22328else
22329  as_fn_append ()
22330  {
22331    eval $1=\$$1\$2
22332  }
22333fi # as_fn_append
22334
22335# as_fn_arith ARG...
22336# ------------------
22337# Perform arithmetic evaluation on the ARGs, and store the result in the
22338# global $as_val. Take advantage of shells that can avoid forks. The arguments
22339# must be portable across $(()) and expr.
22340if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22341  eval 'as_fn_arith ()
22342  {
22343    as_val=$(( $* ))
22344  }'
22345else
22346  as_fn_arith ()
22347  {
22348    as_val=`expr "$@" || test $? -eq 1`
22349  }
22350fi # as_fn_arith
22351
22352
22353if expr a : '\(a\)' >/dev/null 2>&1 &&
22354   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22355  as_expr=expr
22356else
22357  as_expr=false
22358fi
22359
22360if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22361  as_basename=basename
22362else
22363  as_basename=false
22364fi
22365
22366if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22367  as_dirname=dirname
22368else
22369  as_dirname=false
22370fi
22371
22372as_me=`$as_basename -- "$0" ||
22373$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22374	 X"$0" : 'X\(//\)$' \| \
22375	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22376$as_echo X/"$0" |
22377    sed '/^.*\/\([^/][^/]*\)\/*$/{
22378	    s//\1/
22379	    q
22380	  }
22381	  /^X\/\(\/\/\)$/{
22382	    s//\1/
22383	    q
22384	  }
22385	  /^X\/\(\/\).*/{
22386	    s//\1/
22387	    q
22388	  }
22389	  s/.*/./; q'`
22390
22391# Avoid depending upon Character Ranges.
22392as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22393as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22394as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22395as_cr_digits='0123456789'
22396as_cr_alnum=$as_cr_Letters$as_cr_digits
22397
22398ECHO_C= ECHO_N= ECHO_T=
22399case `echo -n x` in #(((((
22400-n*)
22401  case `echo 'xy\c'` in
22402  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22403  xy)  ECHO_C='\c';;
22404  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22405       ECHO_T='	';;
22406  esac;;
22407*)
22408  ECHO_N='-n';;
22409esac
22410
22411rm -f conf$$ conf$$.exe conf$$.file
22412if test -d conf$$.dir; then
22413  rm -f conf$$.dir/conf$$.file
22414else
22415  rm -f conf$$.dir
22416  mkdir conf$$.dir 2>/dev/null
22417fi
22418if (echo >conf$$.file) 2>/dev/null; then
22419  if ln -s conf$$.file conf$$ 2>/dev/null; then
22420    as_ln_s='ln -s'
22421    # ... but there are two gotchas:
22422    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22423    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22424    # In both cases, we have to default to `cp -pR'.
22425    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22426      as_ln_s='cp -pR'
22427  elif ln conf$$.file conf$$ 2>/dev/null; then
22428    as_ln_s=ln
22429  else
22430    as_ln_s='cp -pR'
22431  fi
22432else
22433  as_ln_s='cp -pR'
22434fi
22435rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22436rmdir conf$$.dir 2>/dev/null
22437
22438
22439# as_fn_mkdir_p
22440# -------------
22441# Create "$as_dir" as a directory, including parents if necessary.
22442as_fn_mkdir_p ()
22443{
22444
22445  case $as_dir in #(
22446  -*) as_dir=./$as_dir;;
22447  esac
22448  test -d "$as_dir" || eval $as_mkdir_p || {
22449    as_dirs=
22450    while :; do
22451      case $as_dir in #(
22452      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22453      *) as_qdir=$as_dir;;
22454      esac
22455      as_dirs="'$as_qdir' $as_dirs"
22456      as_dir=`$as_dirname -- "$as_dir" ||
22457$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22458	 X"$as_dir" : 'X\(//\)[^/]' \| \
22459	 X"$as_dir" : 'X\(//\)$' \| \
22460	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22461$as_echo X"$as_dir" |
22462    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22463	    s//\1/
22464	    q
22465	  }
22466	  /^X\(\/\/\)[^/].*/{
22467	    s//\1/
22468	    q
22469	  }
22470	  /^X\(\/\/\)$/{
22471	    s//\1/
22472	    q
22473	  }
22474	  /^X\(\/\).*/{
22475	    s//\1/
22476	    q
22477	  }
22478	  s/.*/./; q'`
22479      test -d "$as_dir" && break
22480    done
22481    test -z "$as_dirs" || eval "mkdir $as_dirs"
22482  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22483
22484
22485} # as_fn_mkdir_p
22486if mkdir -p . 2>/dev/null; then
22487  as_mkdir_p='mkdir -p "$as_dir"'
22488else
22489  test -d ./-p && rmdir ./-p
22490  as_mkdir_p=false
22491fi
22492
22493
22494# as_fn_executable_p FILE
22495# -----------------------
22496# Test if FILE is an executable regular file.
22497as_fn_executable_p ()
22498{
22499  test -f "$1" && test -x "$1"
22500} # as_fn_executable_p
22501as_test_x='test -x'
22502as_executable_p=as_fn_executable_p
22503
22504# Sed expression to map a string onto a valid CPP name.
22505as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22506
22507# Sed expression to map a string onto a valid variable name.
22508as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22509
22510
22511exec 6>&1
22512## ----------------------------------- ##
22513## Main body of $CONFIG_STATUS script. ##
22514## ----------------------------------- ##
22515_ASEOF
22516test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22517
22518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22519# Save the log message, to keep $0 and so on meaningful, and to
22520# report actual input values of CONFIG_FILES etc. instead of their
22521# values after options handling.
22522ac_log="
22523This file was extended by libarchive $as_me 3.5.2, which was
22524generated by GNU Autoconf 2.69.  Invocation command line was
22525
22526  CONFIG_FILES    = $CONFIG_FILES
22527  CONFIG_HEADERS  = $CONFIG_HEADERS
22528  CONFIG_LINKS    = $CONFIG_LINKS
22529  CONFIG_COMMANDS = $CONFIG_COMMANDS
22530  $ $0 $@
22531
22532on `(hostname || uname -n) 2>/dev/null | sed 1q`
22533"
22534
22535_ACEOF
22536
22537case $ac_config_files in *"
22538"*) set x $ac_config_files; shift; ac_config_files=$*;;
22539esac
22540
22541case $ac_config_headers in *"
22542"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22543esac
22544
22545
22546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22547# Files that config.status was made for.
22548config_files="$ac_config_files"
22549config_headers="$ac_config_headers"
22550config_commands="$ac_config_commands"
22551
22552_ACEOF
22553
22554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22555ac_cs_usage="\
22556\`$as_me' instantiates files and other configuration actions
22557from templates according to the current configuration.  Unless the files
22558and actions are specified as TAGs, all are instantiated by default.
22559
22560Usage: $0 [OPTION]... [TAG]...
22561
22562  -h, --help       print this help, then exit
22563  -V, --version    print version number and configuration settings, then exit
22564      --config     print configuration, then exit
22565  -q, --quiet, --silent
22566                   do not print progress messages
22567  -d, --debug      don't remove temporary files
22568      --recheck    update $as_me by reconfiguring in the same conditions
22569      --file=FILE[:TEMPLATE]
22570                   instantiate the configuration file FILE
22571      --header=FILE[:TEMPLATE]
22572                   instantiate the configuration header FILE
22573
22574Configuration files:
22575$config_files
22576
22577Configuration headers:
22578$config_headers
22579
22580Configuration commands:
22581$config_commands
22582
22583Report bugs to <libarchive-discuss@googlegroups.com>."
22584
22585_ACEOF
22586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22587ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22588ac_cs_version="\\
22589libarchive config.status 3.5.2
22590configured by $0, generated by GNU Autoconf 2.69,
22591  with options \\"\$ac_cs_config\\"
22592
22593Copyright (C) 2012 Free Software Foundation, Inc.
22594This config.status script is free software; the Free Software Foundation
22595gives unlimited permission to copy, distribute and modify it."
22596
22597ac_pwd='$ac_pwd'
22598srcdir='$srcdir'
22599INSTALL='$INSTALL'
22600MKDIR_P='$MKDIR_P'
22601AWK='$AWK'
22602test -n "\$AWK" || AWK=awk
22603_ACEOF
22604
22605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22606# The default lists apply if the user does not specify any file.
22607ac_need_defaults=:
22608while test $# != 0
22609do
22610  case $1 in
22611  --*=?*)
22612    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22613    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22614    ac_shift=:
22615    ;;
22616  --*=)
22617    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22618    ac_optarg=
22619    ac_shift=:
22620    ;;
22621  *)
22622    ac_option=$1
22623    ac_optarg=$2
22624    ac_shift=shift
22625    ;;
22626  esac
22627
22628  case $ac_option in
22629  # Handling of the options.
22630  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22631    ac_cs_recheck=: ;;
22632  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22633    $as_echo "$ac_cs_version"; exit ;;
22634  --config | --confi | --conf | --con | --co | --c )
22635    $as_echo "$ac_cs_config"; exit ;;
22636  --debug | --debu | --deb | --de | --d | -d )
22637    debug=: ;;
22638  --file | --fil | --fi | --f )
22639    $ac_shift
22640    case $ac_optarg in
22641    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22642    '') as_fn_error $? "missing file argument" ;;
22643    esac
22644    as_fn_append CONFIG_FILES " '$ac_optarg'"
22645    ac_need_defaults=false;;
22646  --header | --heade | --head | --hea )
22647    $ac_shift
22648    case $ac_optarg in
22649    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22650    esac
22651    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22652    ac_need_defaults=false;;
22653  --he | --h)
22654    # Conflict between --help and --header
22655    as_fn_error $? "ambiguous option: \`$1'
22656Try \`$0 --help' for more information.";;
22657  --help | --hel | -h )
22658    $as_echo "$ac_cs_usage"; exit ;;
22659  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22660  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22661    ac_cs_silent=: ;;
22662
22663  # This is an error.
22664  -*) as_fn_error $? "unrecognized option: \`$1'
22665Try \`$0 --help' for more information." ;;
22666
22667  *) as_fn_append ac_config_targets " $1"
22668     ac_need_defaults=false ;;
22669
22670  esac
22671  shift
22672done
22673
22674ac_configure_extra_args=
22675
22676if $ac_cs_silent; then
22677  exec 6>/dev/null
22678  ac_configure_extra_args="$ac_configure_extra_args --silent"
22679fi
22680
22681_ACEOF
22682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22683if \$ac_cs_recheck; then
22684  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22685  shift
22686  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22687  CONFIG_SHELL='$SHELL'
22688  export CONFIG_SHELL
22689  exec "\$@"
22690fi
22691
22692_ACEOF
22693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22694exec 5>>config.log
22695{
22696  echo
22697  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22698## Running $as_me. ##
22699_ASBOX
22700  $as_echo "$ac_log"
22701} >&5
22702
22703_ACEOF
22704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22705#
22706# INIT-COMMANDS
22707#
22708AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22709
22710
22711# The HP-UX ksh and POSIX shell print the target directory to stdout
22712# if CDPATH is set.
22713(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22714
22715sed_quote_subst='$sed_quote_subst'
22716double_quote_subst='$double_quote_subst'
22717delay_variable_subst='$delay_variable_subst'
22718AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
22719DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22720OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22721macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22722macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22723enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22724enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22725pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22726enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22727shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22728SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22729ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22730PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22731host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22732host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22733host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22734build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22735build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22736build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22737SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22738Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22739GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22740EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22741FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22742LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22743NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22744LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22745max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22746ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22747exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22748lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22749lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22750lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22751lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22752lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22753reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22754reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22755deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22756file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22757file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22758want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22759sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22760AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22761AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22762archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22763STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22764RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22765old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22766old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22767old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22768lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22769CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22770CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22771compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22772GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22773lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22774lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22775lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22776lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22777lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
22778lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22779nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22780lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22781lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22782objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22783MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22784lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22785lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22786lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22787lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22788lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22789need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22790MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22791DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22792NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22793LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22794OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22795OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22796libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22797shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22798extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22799archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22800enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22801export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22802whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22803compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22804old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22805old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22806archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22807archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22808module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22809module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22810with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22811allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22812no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22813hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22814hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22815hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22816hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22817hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22818hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22819hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22820inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22821link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22822always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22823export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22824exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22825include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22826prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22827postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22828file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22829variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22830need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22831need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22832version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22833runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22834shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22835shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22836libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22837library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22838soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22839install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22840postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22841postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22842finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22843finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22844hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22845sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22846configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22847configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22848hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22849enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22850enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22851enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22852old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22853striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22854
22855LTCC='$LTCC'
22856LTCFLAGS='$LTCFLAGS'
22857compiler='$compiler_DEFAULT'
22858
22859# A function that is used when there is no print builtin or printf.
22860func_fallback_echo ()
22861{
22862  eval 'cat <<_LTECHO_EOF
22863\$1
22864_LTECHO_EOF'
22865}
22866
22867# Quote evaled strings.
22868for var in AS \
22869DLLTOOL \
22870OBJDUMP \
22871SHELL \
22872ECHO \
22873PATH_SEPARATOR \
22874SED \
22875GREP \
22876EGREP \
22877FGREP \
22878LD \
22879NM \
22880LN_S \
22881lt_SP2NL \
22882lt_NL2SP \
22883reload_flag \
22884deplibs_check_method \
22885file_magic_cmd \
22886file_magic_glob \
22887want_nocaseglob \
22888sharedlib_from_linklib_cmd \
22889AR \
22890AR_FLAGS \
22891archiver_list_spec \
22892STRIP \
22893RANLIB \
22894CC \
22895CFLAGS \
22896compiler \
22897lt_cv_sys_global_symbol_pipe \
22898lt_cv_sys_global_symbol_to_cdecl \
22899lt_cv_sys_global_symbol_to_import \
22900lt_cv_sys_global_symbol_to_c_name_address \
22901lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22902lt_cv_nm_interface \
22903nm_file_list_spec \
22904lt_cv_truncate_bin \
22905lt_prog_compiler_no_builtin_flag \
22906lt_prog_compiler_pic \
22907lt_prog_compiler_wl \
22908lt_prog_compiler_static \
22909lt_cv_prog_compiler_c_o \
22910need_locks \
22911MANIFEST_TOOL \
22912DSYMUTIL \
22913NMEDIT \
22914LIPO \
22915OTOOL \
22916OTOOL64 \
22917shrext_cmds \
22918export_dynamic_flag_spec \
22919whole_archive_flag_spec \
22920compiler_needs_object \
22921with_gnu_ld \
22922allow_undefined_flag \
22923no_undefined_flag \
22924hardcode_libdir_flag_spec \
22925hardcode_libdir_separator \
22926exclude_expsyms \
22927include_expsyms \
22928file_list_spec \
22929variables_saved_for_relink \
22930libname_spec \
22931library_names_spec \
22932soname_spec \
22933install_override_mode \
22934finish_eval \
22935old_striplib \
22936striplib; do
22937    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22938    *[\\\\\\\`\\"\\\$]*)
22939      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22940      ;;
22941    *)
22942      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22943      ;;
22944    esac
22945done
22946
22947# Double-quote double-evaled strings.
22948for var in reload_cmds \
22949old_postinstall_cmds \
22950old_postuninstall_cmds \
22951old_archive_cmds \
22952extract_expsyms_cmds \
22953old_archive_from_new_cmds \
22954old_archive_from_expsyms_cmds \
22955archive_cmds \
22956archive_expsym_cmds \
22957module_cmds \
22958module_expsym_cmds \
22959export_symbols_cmds \
22960prelink_cmds \
22961postlink_cmds \
22962postinstall_cmds \
22963postuninstall_cmds \
22964finish_cmds \
22965sys_lib_search_path_spec \
22966configure_time_dlsearch_path \
22967configure_time_lt_sys_library_path; do
22968    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22969    *[\\\\\\\`\\"\\\$]*)
22970      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22971      ;;
22972    *)
22973      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22974      ;;
22975    esac
22976done
22977
22978ac_aux_dir='$ac_aux_dir'
22979
22980# See if we are running on zsh, and set the options that allow our
22981# commands through without removal of \ escapes INIT.
22982if test -n "\${ZSH_VERSION+set}"; then
22983   setopt NO_GLOB_SUBST
22984fi
22985
22986
22987    PACKAGE='$PACKAGE'
22988    VERSION='$VERSION'
22989    RM='$RM'
22990    ofile='$ofile'
22991
22992
22993
22994
22995_ACEOF
22996
22997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22998
22999# Handling of arguments.
23000for ac_config_target in $ac_config_targets
23001do
23002  case $ac_config_target in
23003    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23004    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23005    "build/pkgconfig/libarchive.pc") CONFIG_FILES="$CONFIG_FILES build/pkgconfig/libarchive.pc" ;;
23006    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23007    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23008    "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23009
23010  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23011  esac
23012done
23013
23014
23015# If the user did not use the arguments to specify the items to instantiate,
23016# then the envvar interface is used.  Set only those that are not.
23017# We use the long form for the default assignment because of an extremely
23018# bizarre bug on SunOS 4.1.3.
23019if $ac_need_defaults; then
23020  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23021  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23022  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23023fi
23024
23025# Have a temporary directory for convenience.  Make it in the build tree
23026# simply because there is no reason against having it here, and in addition,
23027# creating and moving files from /tmp can sometimes cause problems.
23028# Hook for its removal unless debugging.
23029# Note that there is a small window in which the directory will not be cleaned:
23030# after its creation but before its name has been assigned to `$tmp'.
23031$debug ||
23032{
23033  tmp= ac_tmp=
23034  trap 'exit_status=$?
23035  : "${ac_tmp:=$tmp}"
23036  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23037' 0
23038  trap 'as_fn_exit 1' 1 2 13 15
23039}
23040# Create a (secure) tmp directory for tmp files.
23041
23042{
23043  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23044  test -d "$tmp"
23045}  ||
23046{
23047  tmp=./conf$$-$RANDOM
23048  (umask 077 && mkdir "$tmp")
23049} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23050ac_tmp=$tmp
23051
23052# Set up the scripts for CONFIG_FILES section.
23053# No need to generate them if there are no CONFIG_FILES.
23054# This happens for instance with `./config.status config.h'.
23055if test -n "$CONFIG_FILES"; then
23056
23057
23058ac_cr=`echo X | tr X '\015'`
23059# On cygwin, bash can eat \r inside `` if the user requested igncr.
23060# But we know of no other shell where ac_cr would be empty at this
23061# point, so we can use a bashism as a fallback.
23062if test "x$ac_cr" = x; then
23063  eval ac_cr=\$\'\\r\'
23064fi
23065ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23066if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23067  ac_cs_awk_cr='\\r'
23068else
23069  ac_cs_awk_cr=$ac_cr
23070fi
23071
23072echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23073_ACEOF
23074
23075
23076{
23077  echo "cat >conf$$subs.awk <<_ACEOF" &&
23078  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23079  echo "_ACEOF"
23080} >conf$$subs.sh ||
23081  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23082ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23083ac_delim='%!_!# '
23084for ac_last_try in false false false false false :; do
23085  . ./conf$$subs.sh ||
23086    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23087
23088  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23089  if test $ac_delim_n = $ac_delim_num; then
23090    break
23091  elif $ac_last_try; then
23092    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23093  else
23094    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23095  fi
23096done
23097rm -f conf$$subs.sh
23098
23099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23100cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23101_ACEOF
23102sed -n '
23103h
23104s/^/S["/; s/!.*/"]=/
23105p
23106g
23107s/^[^!]*!//
23108:repl
23109t repl
23110s/'"$ac_delim"'$//
23111t delim
23112:nl
23113h
23114s/\(.\{148\}\)..*/\1/
23115t more1
23116s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23117p
23118n
23119b repl
23120:more1
23121s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23122p
23123g
23124s/.\{148\}//
23125t nl
23126:delim
23127h
23128s/\(.\{148\}\)..*/\1/
23129t more2
23130s/["\\]/\\&/g; s/^/"/; s/$/"/
23131p
23132b
23133:more2
23134s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23135p
23136g
23137s/.\{148\}//
23138t delim
23139' <conf$$subs.awk | sed '
23140/^[^""]/{
23141  N
23142  s/\n//
23143}
23144' >>$CONFIG_STATUS || ac_write_fail=1
23145rm -f conf$$subs.awk
23146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23147_ACAWK
23148cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23149  for (key in S) S_is_set[key] = 1
23150  FS = ""
23151
23152}
23153{
23154  line = $ 0
23155  nfields = split(line, field, "@")
23156  substed = 0
23157  len = length(field[1])
23158  for (i = 2; i < nfields; i++) {
23159    key = field[i]
23160    keylen = length(key)
23161    if (S_is_set[key]) {
23162      value = S[key]
23163      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23164      len += length(value) + length(field[++i])
23165      substed = 1
23166    } else
23167      len += 1 + keylen
23168  }
23169
23170  print line
23171}
23172
23173_ACAWK
23174_ACEOF
23175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23176if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23177  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23178else
23179  cat
23180fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23181  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23182_ACEOF
23183
23184# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23185# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23186# trailing colons and then remove the whole line if VPATH becomes empty
23187# (actually we leave an empty line to preserve line numbers).
23188if test "x$srcdir" = x.; then
23189  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23190h
23191s///
23192s/^/:/
23193s/[	 ]*$/:/
23194s/:\$(srcdir):/:/g
23195s/:\${srcdir}:/:/g
23196s/:@srcdir@:/:/g
23197s/^:*//
23198s/:*$//
23199x
23200s/\(=[	 ]*\).*/\1/
23201G
23202s/\n//
23203s/^[^=]*=[	 ]*$//
23204}'
23205fi
23206
23207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23208fi # test -n "$CONFIG_FILES"
23209
23210# Set up the scripts for CONFIG_HEADERS section.
23211# No need to generate them if there are no CONFIG_HEADERS.
23212# This happens for instance with `./config.status Makefile'.
23213if test -n "$CONFIG_HEADERS"; then
23214cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23215BEGIN {
23216_ACEOF
23217
23218# Transform confdefs.h into an awk script `defines.awk', embedded as
23219# here-document in config.status, that substitutes the proper values into
23220# config.h.in to produce config.h.
23221
23222# Create a delimiter string that does not exist in confdefs.h, to ease
23223# handling of long lines.
23224ac_delim='%!_!# '
23225for ac_last_try in false false :; do
23226  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23227  if test -z "$ac_tt"; then
23228    break
23229  elif $ac_last_try; then
23230    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23231  else
23232    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23233  fi
23234done
23235
23236# For the awk script, D is an array of macro values keyed by name,
23237# likewise P contains macro parameters if any.  Preserve backslash
23238# newline sequences.
23239
23240ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23241sed -n '
23242s/.\{148\}/&'"$ac_delim"'/g
23243t rset
23244:rset
23245s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23246t def
23247d
23248:def
23249s/\\$//
23250t bsnl
23251s/["\\]/\\&/g
23252s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23253D["\1"]=" \3"/p
23254s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23255d
23256:bsnl
23257s/["\\]/\\&/g
23258s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23259D["\1"]=" \3\\\\\\n"\\/p
23260t cont
23261s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23262t cont
23263d
23264:cont
23265n
23266s/.\{148\}/&'"$ac_delim"'/g
23267t clear
23268:clear
23269s/\\$//
23270t bsnlc
23271s/["\\]/\\&/g; s/^/"/; s/$/"/p
23272d
23273:bsnlc
23274s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23275b cont
23276' <confdefs.h | sed '
23277s/'"$ac_delim"'/"\\\
23278"/g' >>$CONFIG_STATUS || ac_write_fail=1
23279
23280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23281  for (key in D) D_is_set[key] = 1
23282  FS = ""
23283}
23284/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23285  line = \$ 0
23286  split(line, arg, " ")
23287  if (arg[1] == "#") {
23288    defundef = arg[2]
23289    mac1 = arg[3]
23290  } else {
23291    defundef = substr(arg[1], 2)
23292    mac1 = arg[2]
23293  }
23294  split(mac1, mac2, "(") #)
23295  macro = mac2[1]
23296  prefix = substr(line, 1, index(line, defundef) - 1)
23297  if (D_is_set[macro]) {
23298    # Preserve the white space surrounding the "#".
23299    print prefix "define", macro P[macro] D[macro]
23300    next
23301  } else {
23302    # Replace #undef with comments.  This is necessary, for example,
23303    # in the case of _POSIX_SOURCE, which is predefined and required
23304    # on some systems where configure will not decide to define it.
23305    if (defundef == "undef") {
23306      print "/*", prefix defundef, macro, "*/"
23307      next
23308    }
23309  }
23310}
23311{ print }
23312_ACAWK
23313_ACEOF
23314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23315  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23316fi # test -n "$CONFIG_HEADERS"
23317
23318
23319eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23320shift
23321for ac_tag
23322do
23323  case $ac_tag in
23324  :[FHLC]) ac_mode=$ac_tag; continue;;
23325  esac
23326  case $ac_mode$ac_tag in
23327  :[FHL]*:*);;
23328  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23329  :[FH]-) ac_tag=-:-;;
23330  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23331  esac
23332  ac_save_IFS=$IFS
23333  IFS=:
23334  set x $ac_tag
23335  IFS=$ac_save_IFS
23336  shift
23337  ac_file=$1
23338  shift
23339
23340  case $ac_mode in
23341  :L) ac_source=$1;;
23342  :[FH])
23343    ac_file_inputs=
23344    for ac_f
23345    do
23346      case $ac_f in
23347      -) ac_f="$ac_tmp/stdin";;
23348      *) # Look for the file first in the build tree, then in the source tree
23349	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23350	 # because $ac_f cannot contain `:'.
23351	 test -f "$ac_f" ||
23352	   case $ac_f in
23353	   [\\/$]*) false;;
23354	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23355	   esac ||
23356	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23357      esac
23358      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23359      as_fn_append ac_file_inputs " '$ac_f'"
23360    done
23361
23362    # Let's still pretend it is `configure' which instantiates (i.e., don't
23363    # use $as_me), people would be surprised to read:
23364    #    /* config.h.  Generated by config.status.  */
23365    configure_input='Generated from '`
23366	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23367	`' by configure.'
23368    if test x"$ac_file" != x-; then
23369      configure_input="$ac_file.  $configure_input"
23370      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23371$as_echo "$as_me: creating $ac_file" >&6;}
23372    fi
23373    # Neutralize special characters interpreted by sed in replacement strings.
23374    case $configure_input in #(
23375    *\&* | *\|* | *\\* )
23376       ac_sed_conf_input=`$as_echo "$configure_input" |
23377       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23378    *) ac_sed_conf_input=$configure_input;;
23379    esac
23380
23381    case $ac_tag in
23382    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23383      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23384    esac
23385    ;;
23386  esac
23387
23388  ac_dir=`$as_dirname -- "$ac_file" ||
23389$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23390	 X"$ac_file" : 'X\(//\)[^/]' \| \
23391	 X"$ac_file" : 'X\(//\)$' \| \
23392	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23393$as_echo X"$ac_file" |
23394    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23395	    s//\1/
23396	    q
23397	  }
23398	  /^X\(\/\/\)[^/].*/{
23399	    s//\1/
23400	    q
23401	  }
23402	  /^X\(\/\/\)$/{
23403	    s//\1/
23404	    q
23405	  }
23406	  /^X\(\/\).*/{
23407	    s//\1/
23408	    q
23409	  }
23410	  s/.*/./; q'`
23411  as_dir="$ac_dir"; as_fn_mkdir_p
23412  ac_builddir=.
23413
23414case "$ac_dir" in
23415.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23416*)
23417  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23418  # A ".." for each directory in $ac_dir_suffix.
23419  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23420  case $ac_top_builddir_sub in
23421  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23422  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23423  esac ;;
23424esac
23425ac_abs_top_builddir=$ac_pwd
23426ac_abs_builddir=$ac_pwd$ac_dir_suffix
23427# for backward compatibility:
23428ac_top_builddir=$ac_top_build_prefix
23429
23430case $srcdir in
23431  .)  # We are building in place.
23432    ac_srcdir=.
23433    ac_top_srcdir=$ac_top_builddir_sub
23434    ac_abs_top_srcdir=$ac_pwd ;;
23435  [\\/]* | ?:[\\/]* )  # Absolute name.
23436    ac_srcdir=$srcdir$ac_dir_suffix;
23437    ac_top_srcdir=$srcdir
23438    ac_abs_top_srcdir=$srcdir ;;
23439  *) # Relative name.
23440    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23441    ac_top_srcdir=$ac_top_build_prefix$srcdir
23442    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23443esac
23444ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23445
23446
23447  case $ac_mode in
23448  :F)
23449  #
23450  # CONFIG_FILE
23451  #
23452
23453  case $INSTALL in
23454  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23455  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23456  esac
23457  ac_MKDIR_P=$MKDIR_P
23458  case $MKDIR_P in
23459  [\\/$]* | ?:[\\/]* ) ;;
23460  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23461  esac
23462_ACEOF
23463
23464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23465# If the template does not know about datarootdir, expand it.
23466# FIXME: This hack should be removed a few years after 2.60.
23467ac_datarootdir_hack=; ac_datarootdir_seen=
23468ac_sed_dataroot='
23469/datarootdir/ {
23470  p
23471  q
23472}
23473/@datadir@/p
23474/@docdir@/p
23475/@infodir@/p
23476/@localedir@/p
23477/@mandir@/p'
23478case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23479*datarootdir*) ac_datarootdir_seen=yes;;
23480*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23481  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23482$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23483_ACEOF
23484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23485  ac_datarootdir_hack='
23486  s&@datadir@&$datadir&g
23487  s&@docdir@&$docdir&g
23488  s&@infodir@&$infodir&g
23489  s&@localedir@&$localedir&g
23490  s&@mandir@&$mandir&g
23491  s&\\\${datarootdir}&$datarootdir&g' ;;
23492esac
23493_ACEOF
23494
23495# Neutralize VPATH when `$srcdir' = `.'.
23496# Shell code in configure.ac might set extrasub.
23497# FIXME: do we really want to maintain this feature?
23498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23499ac_sed_extra="$ac_vpsub
23500$extrasub
23501_ACEOF
23502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23503:t
23504/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23505s|@configure_input@|$ac_sed_conf_input|;t t
23506s&@top_builddir@&$ac_top_builddir_sub&;t t
23507s&@top_build_prefix@&$ac_top_build_prefix&;t t
23508s&@srcdir@&$ac_srcdir&;t t
23509s&@abs_srcdir@&$ac_abs_srcdir&;t t
23510s&@top_srcdir@&$ac_top_srcdir&;t t
23511s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23512s&@builddir@&$ac_builddir&;t t
23513s&@abs_builddir@&$ac_abs_builddir&;t t
23514s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23515s&@INSTALL@&$ac_INSTALL&;t t
23516s&@MKDIR_P@&$ac_MKDIR_P&;t t
23517$ac_datarootdir_hack
23518"
23519eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23520  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23521
23522test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23523  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23524  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23525      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23526  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23527which seems to be undefined.  Please make sure it is defined" >&5
23528$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23529which seems to be undefined.  Please make sure it is defined" >&2;}
23530
23531  rm -f "$ac_tmp/stdin"
23532  case $ac_file in
23533  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23534  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23535  esac \
23536  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23537 ;;
23538  :H)
23539  #
23540  # CONFIG_HEADER
23541  #
23542  if test x"$ac_file" != x-; then
23543    {
23544      $as_echo "/* $configure_input  */" \
23545      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23546    } >"$ac_tmp/config.h" \
23547      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23548    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23549      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23550$as_echo "$as_me: $ac_file is unchanged" >&6;}
23551    else
23552      rm -f "$ac_file"
23553      mv "$ac_tmp/config.h" "$ac_file" \
23554	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23555    fi
23556  else
23557    $as_echo "/* $configure_input  */" \
23558      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23559      || as_fn_error $? "could not create -" "$LINENO" 5
23560  fi
23561# Compute "$ac_file"'s index in $config_headers.
23562_am_arg="$ac_file"
23563_am_stamp_count=1
23564for _am_header in $config_headers :; do
23565  case $_am_header in
23566    $_am_arg | $_am_arg:* )
23567      break ;;
23568    * )
23569      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23570  esac
23571done
23572echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23573$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23574	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23575	 X"$_am_arg" : 'X\(//\)$' \| \
23576	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23577$as_echo X"$_am_arg" |
23578    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23579	    s//\1/
23580	    q
23581	  }
23582	  /^X\(\/\/\)[^/].*/{
23583	    s//\1/
23584	    q
23585	  }
23586	  /^X\(\/\/\)$/{
23587	    s//\1/
23588	    q
23589	  }
23590	  /^X\(\/\).*/{
23591	    s//\1/
23592	    q
23593	  }
23594	  s/.*/./; q'`/stamp-h$_am_stamp_count
23595 ;;
23596
23597  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23598$as_echo "$as_me: executing $ac_file commands" >&6;}
23599 ;;
23600  esac
23601
23602
23603  case $ac_file$ac_mode in
23604    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23605  # Older Autoconf quotes --file arguments for eval, but not when files
23606  # are listed without --file.  Let's play safe and only enable the eval
23607  # if we detect the quoting.
23608  # TODO: see whether this extra hack can be removed once we start
23609  # requiring Autoconf 2.70 or later.
23610  case $CONFIG_FILES in #(
23611  *\'*) :
23612    eval set x "$CONFIG_FILES" ;; #(
23613  *) :
23614    set x $CONFIG_FILES ;; #(
23615  *) :
23616     ;;
23617esac
23618  shift
23619  # Used to flag and report bootstrapping failures.
23620  am_rc=0
23621  for am_mf
23622  do
23623    # Strip MF so we end up with the name of the file.
23624    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
23625    # Check whether this is an Automake generated Makefile which includes
23626    # dependency-tracking related rules and includes.
23627    # Grep'ing the whole file directly is not great: AIX grep has a line
23628    # limit of 2048, but all sed's we know have understand at least 4000.
23629    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23630      || continue
23631    am_dirpart=`$as_dirname -- "$am_mf" ||
23632$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23633	 X"$am_mf" : 'X\(//\)[^/]' \| \
23634	 X"$am_mf" : 'X\(//\)$' \| \
23635	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23636$as_echo X"$am_mf" |
23637    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23638	    s//\1/
23639	    q
23640	  }
23641	  /^X\(\/\/\)[^/].*/{
23642	    s//\1/
23643	    q
23644	  }
23645	  /^X\(\/\/\)$/{
23646	    s//\1/
23647	    q
23648	  }
23649	  /^X\(\/\).*/{
23650	    s//\1/
23651	    q
23652	  }
23653	  s/.*/./; q'`
23654    am_filepart=`$as_basename -- "$am_mf" ||
23655$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23656	 X"$am_mf" : 'X\(//\)$' \| \
23657	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23658$as_echo X/"$am_mf" |
23659    sed '/^.*\/\([^/][^/]*\)\/*$/{
23660	    s//\1/
23661	    q
23662	  }
23663	  /^X\/\(\/\/\)$/{
23664	    s//\1/
23665	    q
23666	  }
23667	  /^X\/\(\/\).*/{
23668	    s//\1/
23669	    q
23670	  }
23671	  s/.*/./; q'`
23672    { echo "$as_me:$LINENO: cd "$am_dirpart" \
23673      && sed -e '/# am--include-marker/d' "$am_filepart" \
23674        | $MAKE -f - am--depfiles" >&5
23675   (cd "$am_dirpart" \
23676      && sed -e '/# am--include-marker/d' "$am_filepart" \
23677        | $MAKE -f - am--depfiles) >&5 2>&5
23678   ac_status=$?
23679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); } || am_rc=$?
23681  done
23682  if test $am_rc -ne 0; then
23683    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23685as_fn_error $? "Something went wrong bootstrapping makefile fragments
23686    for automatic dependency tracking.  Try re-running configure with the
23687    '--disable-dependency-tracking' option to at least be able to build
23688    the package (albeit without support for automatic dependency tracking).
23689See \`config.log' for more details" "$LINENO" 5; }
23690  fi
23691  { am_dirpart=; unset am_dirpart;}
23692  { am_filepart=; unset am_filepart;}
23693  { am_mf=; unset am_mf;}
23694  { am_rc=; unset am_rc;}
23695  rm -f conftest-deps.mk
23696}
23697 ;;
23698    "libtool":C)
23699
23700    # See if we are running on zsh, and set the options that allow our
23701    # commands through without removal of \ escapes.
23702    if test -n "${ZSH_VERSION+set}"; then
23703      setopt NO_GLOB_SUBST
23704    fi
23705
23706    cfgfile=${ofile}T
23707    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23708    $RM "$cfgfile"
23709
23710    cat <<_LT_EOF >> "$cfgfile"
23711#! $SHELL
23712# Generated automatically by $as_me ($PACKAGE) $VERSION
23713# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23714
23715# Provide generalized library-building support services.
23716# Written by Gordon Matzigkeit, 1996
23717
23718# Copyright (C) 2014 Free Software Foundation, Inc.
23719# This is free software; see the source for copying conditions.  There is NO
23720# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23721
23722# GNU Libtool is free software; you can redistribute it and/or modify
23723# it under the terms of the GNU General Public License as published by
23724# the Free Software Foundation; either version 2 of of the License, or
23725# (at your option) any later version.
23726#
23727# As a special exception to the GNU General Public License, if you
23728# distribute this file as part of a program or library that is built
23729# using GNU Libtool, you may include this file under the  same
23730# distribution terms that you use for the rest of that program.
23731#
23732# GNU Libtool is distributed in the hope that it will be useful, but
23733# WITHOUT ANY WARRANTY; without even the implied warranty of
23734# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23735# GNU General Public License for more details.
23736#
23737# You should have received a copy of the GNU General Public License
23738# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23739
23740
23741# The names of the tagged configurations supported by this script.
23742available_tags=''
23743
23744# Configured defaults for sys_lib_dlsearch_path munging.
23745: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23746
23747# ### BEGIN LIBTOOL CONFIG
23748
23749# Assembler program.
23750AS=$lt_AS
23751
23752# DLL creation program.
23753DLLTOOL=$lt_DLLTOOL
23754
23755# Object dumper program.
23756OBJDUMP=$lt_OBJDUMP
23757
23758# Which release of libtool.m4 was used?
23759macro_version=$macro_version
23760macro_revision=$macro_revision
23761
23762# Whether or not to build shared libraries.
23763build_libtool_libs=$enable_shared
23764
23765# Whether or not to build static libraries.
23766build_old_libs=$enable_static
23767
23768# What type of objects to build.
23769pic_mode=$pic_mode
23770
23771# Whether or not to optimize for fast installation.
23772fast_install=$enable_fast_install
23773
23774# Shared archive member basename,for filename based shared library versioning on AIX.
23775shared_archive_member_spec=$shared_archive_member_spec
23776
23777# Shell to use when invoking shell scripts.
23778SHELL=$lt_SHELL
23779
23780# An echo program that protects backslashes.
23781ECHO=$lt_ECHO
23782
23783# The PATH separator for the build system.
23784PATH_SEPARATOR=$lt_PATH_SEPARATOR
23785
23786# The host system.
23787host_alias=$host_alias
23788host=$host
23789host_os=$host_os
23790
23791# The build system.
23792build_alias=$build_alias
23793build=$build
23794build_os=$build_os
23795
23796# A sed program that does not truncate output.
23797SED=$lt_SED
23798
23799# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23800Xsed="\$SED -e 1s/^X//"
23801
23802# A grep program that handles long lines.
23803GREP=$lt_GREP
23804
23805# An ERE matcher.
23806EGREP=$lt_EGREP
23807
23808# A literal string matcher.
23809FGREP=$lt_FGREP
23810
23811# A BSD- or MS-compatible name lister.
23812NM=$lt_NM
23813
23814# Whether we need soft or hard links.
23815LN_S=$lt_LN_S
23816
23817# What is the maximum length of a command?
23818max_cmd_len=$max_cmd_len
23819
23820# Object file suffix (normally "o").
23821objext=$ac_objext
23822
23823# Executable file suffix (normally "").
23824exeext=$exeext
23825
23826# whether the shell understands "unset".
23827lt_unset=$lt_unset
23828
23829# turn spaces into newlines.
23830SP2NL=$lt_lt_SP2NL
23831
23832# turn newlines into spaces.
23833NL2SP=$lt_lt_NL2SP
23834
23835# convert \$build file names to \$host format.
23836to_host_file_cmd=$lt_cv_to_host_file_cmd
23837
23838# convert \$build files to toolchain format.
23839to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23840
23841# Method to check whether dependent libraries are shared objects.
23842deplibs_check_method=$lt_deplibs_check_method
23843
23844# Command to use when deplibs_check_method = "file_magic".
23845file_magic_cmd=$lt_file_magic_cmd
23846
23847# How to find potential files when deplibs_check_method = "file_magic".
23848file_magic_glob=$lt_file_magic_glob
23849
23850# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23851want_nocaseglob=$lt_want_nocaseglob
23852
23853# Command to associate shared and link libraries.
23854sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23855
23856# The archiver.
23857AR=$lt_AR
23858
23859# Flags to create an archive.
23860AR_FLAGS=$lt_AR_FLAGS
23861
23862# How to feed a file listing to the archiver.
23863archiver_list_spec=$lt_archiver_list_spec
23864
23865# A symbol stripping program.
23866STRIP=$lt_STRIP
23867
23868# Commands used to install an old-style archive.
23869RANLIB=$lt_RANLIB
23870old_postinstall_cmds=$lt_old_postinstall_cmds
23871old_postuninstall_cmds=$lt_old_postuninstall_cmds
23872
23873# Whether to use a lock for old archive extraction.
23874lock_old_archive_extraction=$lock_old_archive_extraction
23875
23876# A C compiler.
23877LTCC=$lt_CC
23878
23879# LTCC compiler flags.
23880LTCFLAGS=$lt_CFLAGS
23881
23882# Take the output of nm and produce a listing of raw symbols and C names.
23883global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23884
23885# Transform the output of nm in a proper C declaration.
23886global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23887
23888# Transform the output of nm into a list of symbols to manually relocate.
23889global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23890
23891# Transform the output of nm in a C name address pair.
23892global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23893
23894# Transform the output of nm in a C name address pair when lib prefix is needed.
23895global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23896
23897# The name lister interface.
23898nm_interface=$lt_lt_cv_nm_interface
23899
23900# Specify filename containing input files for \$NM.
23901nm_file_list_spec=$lt_nm_file_list_spec
23902
23903# The root where to search for dependent libraries,and where our libraries should be installed.
23904lt_sysroot=$lt_sysroot
23905
23906# Command to truncate a binary pipe.
23907lt_truncate_bin=$lt_lt_cv_truncate_bin
23908
23909# The name of the directory that contains temporary libtool files.
23910objdir=$objdir
23911
23912# Used to examine libraries when file_magic_cmd begins with "file".
23913MAGIC_CMD=$MAGIC_CMD
23914
23915# Must we lock files when doing compilation?
23916need_locks=$lt_need_locks
23917
23918# Manifest tool.
23919MANIFEST_TOOL=$lt_MANIFEST_TOOL
23920
23921# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23922DSYMUTIL=$lt_DSYMUTIL
23923
23924# Tool to change global to local symbols on Mac OS X.
23925NMEDIT=$lt_NMEDIT
23926
23927# Tool to manipulate fat objects and archives on Mac OS X.
23928LIPO=$lt_LIPO
23929
23930# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23931OTOOL=$lt_OTOOL
23932
23933# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23934OTOOL64=$lt_OTOOL64
23935
23936# Old archive suffix (normally "a").
23937libext=$libext
23938
23939# Shared library suffix (normally ".so").
23940shrext_cmds=$lt_shrext_cmds
23941
23942# The commands to extract the exported symbol list from a shared archive.
23943extract_expsyms_cmds=$lt_extract_expsyms_cmds
23944
23945# Variables whose values should be saved in libtool wrapper scripts and
23946# restored at link time.
23947variables_saved_for_relink=$lt_variables_saved_for_relink
23948
23949# Do we need the "lib" prefix for modules?
23950need_lib_prefix=$need_lib_prefix
23951
23952# Do we need a version for libraries?
23953need_version=$need_version
23954
23955# Library versioning type.
23956version_type=$version_type
23957
23958# Shared library runtime path variable.
23959runpath_var=$runpath_var
23960
23961# Shared library path variable.
23962shlibpath_var=$shlibpath_var
23963
23964# Is shlibpath searched before the hard-coded library search path?
23965shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23966
23967# Format of library name prefix.
23968libname_spec=$lt_libname_spec
23969
23970# List of archive names.  First name is the real one, the rest are links.
23971# The last name is the one that the linker finds with -lNAME
23972library_names_spec=$lt_library_names_spec
23973
23974# The coded name of the library, if different from the real name.
23975soname_spec=$lt_soname_spec
23976
23977# Permission mode override for installation of shared libraries.
23978install_override_mode=$lt_install_override_mode
23979
23980# Command to use after installation of a shared archive.
23981postinstall_cmds=$lt_postinstall_cmds
23982
23983# Command to use after uninstallation of a shared archive.
23984postuninstall_cmds=$lt_postuninstall_cmds
23985
23986# Commands used to finish a libtool library installation in a directory.
23987finish_cmds=$lt_finish_cmds
23988
23989# As "finish_cmds", except a single script fragment to be evaled but
23990# not shown.
23991finish_eval=$lt_finish_eval
23992
23993# Whether we should hardcode library paths into libraries.
23994hardcode_into_libs=$hardcode_into_libs
23995
23996# Compile-time system search path for libraries.
23997sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23998
23999# Detected run-time system search path for libraries.
24000sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24001
24002# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24003configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24004
24005# Whether dlopen is supported.
24006dlopen_support=$enable_dlopen
24007
24008# Whether dlopen of programs is supported.
24009dlopen_self=$enable_dlopen_self
24010
24011# Whether dlopen of statically linked programs is supported.
24012dlopen_self_static=$enable_dlopen_self_static
24013
24014# Commands to strip libraries.
24015old_striplib=$lt_old_striplib
24016striplib=$lt_striplib
24017
24018
24019# The linker used to build libraries.
24020LD=$lt_LD
24021
24022# How to create reloadable object files.
24023reload_flag=$lt_reload_flag
24024reload_cmds=$lt_reload_cmds
24025
24026# Commands used to build an old-style archive.
24027old_archive_cmds=$lt_old_archive_cmds
24028
24029# A language specific compiler.
24030CC=$lt_compiler
24031
24032# Is the compiler the GNU compiler?
24033with_gcc=$GCC
24034
24035# Compiler flag to turn off builtin functions.
24036no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24037
24038# Additional compiler flags for building library objects.
24039pic_flag=$lt_lt_prog_compiler_pic
24040
24041# How to pass a linker flag through the compiler.
24042wl=$lt_lt_prog_compiler_wl
24043
24044# Compiler flag to prevent dynamic linking.
24045link_static_flag=$lt_lt_prog_compiler_static
24046
24047# Does compiler simultaneously support -c and -o options?
24048compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24049
24050# Whether or not to add -lc for building shared libraries.
24051build_libtool_need_lc=$archive_cmds_need_lc
24052
24053# Whether or not to disallow shared libs when runtime libs are static.
24054allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24055
24056# Compiler flag to allow reflexive dlopens.
24057export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24058
24059# Compiler flag to generate shared objects directly from archives.
24060whole_archive_flag_spec=$lt_whole_archive_flag_spec
24061
24062# Whether the compiler copes with passing no objects directly.
24063compiler_needs_object=$lt_compiler_needs_object
24064
24065# Create an old-style archive from a shared archive.
24066old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24067
24068# Create a temporary old-style archive to link instead of a shared archive.
24069old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24070
24071# Commands used to build a shared archive.
24072archive_cmds=$lt_archive_cmds
24073archive_expsym_cmds=$lt_archive_expsym_cmds
24074
24075# Commands used to build a loadable module if different from building
24076# a shared archive.
24077module_cmds=$lt_module_cmds
24078module_expsym_cmds=$lt_module_expsym_cmds
24079
24080# Whether we are building with GNU ld or not.
24081with_gnu_ld=$lt_with_gnu_ld
24082
24083# Flag that allows shared libraries with undefined symbols to be built.
24084allow_undefined_flag=$lt_allow_undefined_flag
24085
24086# Flag that enforces no undefined symbols.
24087no_undefined_flag=$lt_no_undefined_flag
24088
24089# Flag to hardcode \$libdir into a binary during linking.
24090# This must work even if \$libdir does not exist
24091hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24092
24093# Whether we need a single "-rpath" flag with a separated argument.
24094hardcode_libdir_separator=$lt_hardcode_libdir_separator
24095
24096# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24097# DIR into the resulting binary.
24098hardcode_direct=$hardcode_direct
24099
24100# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24101# DIR into the resulting binary and the resulting library dependency is
24102# "absolute",i.e impossible to change by setting \$shlibpath_var if the
24103# library is relocated.
24104hardcode_direct_absolute=$hardcode_direct_absolute
24105
24106# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24107# into the resulting binary.
24108hardcode_minus_L=$hardcode_minus_L
24109
24110# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24111# into the resulting binary.
24112hardcode_shlibpath_var=$hardcode_shlibpath_var
24113
24114# Set to "yes" if building a shared library automatically hardcodes DIR
24115# into the library and all subsequent libraries and executables linked
24116# against it.
24117hardcode_automatic=$hardcode_automatic
24118
24119# Set to yes if linker adds runtime paths of dependent libraries
24120# to runtime path list.
24121inherit_rpath=$inherit_rpath
24122
24123# Whether libtool must link a program against all its dependency libraries.
24124link_all_deplibs=$link_all_deplibs
24125
24126# Set to "yes" if exported symbols are required.
24127always_export_symbols=$always_export_symbols
24128
24129# The commands to list exported symbols.
24130export_symbols_cmds=$lt_export_symbols_cmds
24131
24132# Symbols that should not be listed in the preloaded symbols.
24133exclude_expsyms=$lt_exclude_expsyms
24134
24135# Symbols that must always be exported.
24136include_expsyms=$lt_include_expsyms
24137
24138# Commands necessary for linking programs (against libraries) with templates.
24139prelink_cmds=$lt_prelink_cmds
24140
24141# Commands necessary for finishing linking programs.
24142postlink_cmds=$lt_postlink_cmds
24143
24144# Specify filename containing input files.
24145file_list_spec=$lt_file_list_spec
24146
24147# How to hardcode a shared library path into an executable.
24148hardcode_action=$hardcode_action
24149
24150# ### END LIBTOOL CONFIG
24151
24152_LT_EOF
24153
24154    cat <<'_LT_EOF' >> "$cfgfile"
24155
24156# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24157
24158# func_munge_path_list VARIABLE PATH
24159# -----------------------------------
24160# VARIABLE is name of variable containing _space_ separated list of
24161# directories to be munged by the contents of PATH, which is string
24162# having a format:
24163# "DIR[:DIR]:"
24164#       string "DIR[ DIR]" will be prepended to VARIABLE
24165# ":DIR[:DIR]"
24166#       string "DIR[ DIR]" will be appended to VARIABLE
24167# "DIRP[:DIRP]::[DIRA:]DIRA"
24168#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24169#       "DIRA[ DIRA]" will be appended to VARIABLE
24170# "DIR[:DIR]"
24171#       VARIABLE will be replaced by "DIR[ DIR]"
24172func_munge_path_list ()
24173{
24174    case x$2 in
24175    x)
24176        ;;
24177    *:)
24178        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24179        ;;
24180    x:*)
24181        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24182        ;;
24183    *::*)
24184        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24185        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24186        ;;
24187    *)
24188        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24189        ;;
24190    esac
24191}
24192
24193
24194# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24195func_cc_basename ()
24196{
24197    for cc_temp in $*""; do
24198      case $cc_temp in
24199        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24200        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24201        \-*) ;;
24202        *) break;;
24203      esac
24204    done
24205    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24206}
24207
24208
24209# ### END FUNCTIONS SHARED WITH CONFIGURE
24210
24211_LT_EOF
24212
24213  case $host_os in
24214  aix3*)
24215    cat <<\_LT_EOF >> "$cfgfile"
24216# AIX sometimes has problems with the GCC collect2 program.  For some
24217# reason, if we set the COLLECT_NAMES environment variable, the problems
24218# vanish in a puff of smoke.
24219if test set != "${COLLECT_NAMES+set}"; then
24220  COLLECT_NAMES=
24221  export COLLECT_NAMES
24222fi
24223_LT_EOF
24224    ;;
24225  esac
24226
24227
24228ltmain=$ac_aux_dir/ltmain.sh
24229
24230
24231  # We use sed instead of cat because bash on DJGPP gets confused if
24232  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24233  # text mode, it properly converts lines to CR/LF.  This bash problem
24234  # is reportedly fixed, but why not run on old versions too?
24235  sed '$q' "$ltmain" >> "$cfgfile" \
24236     || (rm -f "$cfgfile"; exit 1)
24237
24238   mv -f "$cfgfile" "$ofile" ||
24239    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24240  chmod +x "$ofile"
24241
24242 ;;
24243    "mkdirs":C) mkdir -p libarchive/test tar/test cat/test cpio/test ;;
24244
24245  esac
24246done # for ac_tag
24247
24248
24249as_fn_exit 0
24250_ACEOF
24251ac_clean_files=$ac_clean_files_save
24252
24253test $ac_write_fail = 0 ||
24254  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24255
24256
24257# configure is writing to config.log, and then calls config.status.
24258# config.status does its own redirection, appending to config.log.
24259# Unfortunately, on DOS this fails, as config.log is still kept open
24260# by configure, so config.status won't be able to write to it; its
24261# output is simply discarded.  So we exec the FD to /dev/null,
24262# effectively closing config.log, so it can be properly (re)opened and
24263# appended to by config.status.  When coming back to configure, we
24264# need to make the FD available again.
24265if test "$no_create" != yes; then
24266  ac_cs_success=:
24267  ac_config_status_args=
24268  test "$silent" = yes &&
24269    ac_config_status_args="$ac_config_status_args --quiet"
24270  exec 5>/dev/null
24271  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24272  exec 5>>config.log
24273  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24274  # would make configure fail if this is the last instruction.
24275  $ac_cs_success || as_fn_exit 1
24276fi
24277if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24278  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24279$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24280fi
24281
24282