1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for XZ Utils 5.2.4.
4#
5# Report bugs to <lasse.collin@tukaani.org>.
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: lasse.collin@tukaani.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: 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='XZ Utils'
592PACKAGE_TARNAME='xz'
593PACKAGE_VERSION='5.2.4'
594PACKAGE_STRING='XZ Utils 5.2.4'
595PACKAGE_BUGREPORT='lasse.collin@tukaani.org'
596PACKAGE_URL='https://tukaani.org/xz/'
597
598ac_unique_file="src/liblzma/common/common.h"
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
635gt_needs=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639xz
640AM_CFLAGS
641COND_GNULIB_FALSE
642COND_GNULIB_TRUE
643HAVE_VISIBILITY
644CFLAG_VISIBILITY
645CAPSICUM_LIB
646COND_INTERNAL_SHA256_FALSE
647COND_INTERNAL_SHA256_TRUE
648GETOPT_H
649LIBOBJS
650POSUB
651LTLIBINTL
652LIBINTL
653INTLLIBS
654LTLIBICONV
655LIBICONV
656INTL_MACOSX_LIBS
657XGETTEXT_EXTRA_OPTIONS
658MSGMERGE
659XGETTEXT_015
660XGETTEXT
661GMSGFMT_015
662MSGFMT_015
663GMSGFMT
664MSGFMT
665GETTEXT_MACRO_VERSION
666USE_NLS
667COND_SHARED_FALSE
668COND_SHARED_TRUE
669RC
670LT_SYS_LIBRARY_PATH
671OTOOL64
672OTOOL
673LIPO
674NMEDIT
675DSYMUTIL
676MANIFEST_TOOL
677RANLIB
678ac_ct_AR
679AR
680NM
681ac_ct_DUMPBIN
682DUMPBIN
683LD
684FGREP
685SED
686LIBTOOL
687OBJDUMP
688DLLTOOL
689AS
690COND_THREADS_FALSE
691COND_THREADS_TRUE
692PTHREAD_CFLAGS
693PTHREAD_LIBS
694PTHREAD_CC
695ax_pthread_config
696EGREP
697GREP
698CPP
699am__fastdepCCAS_FALSE
700am__fastdepCCAS_TRUE
701CCASDEPMODE
702CCASFLAGS
703CCAS
704am__fastdepCC_FALSE
705am__fastdepCC_TRUE
706CCDEPMODE
707am__nodep
708AMDEPBACKSLASH
709AMDEP_FALSE
710AMDEP_TRUE
711am__quote
712am__include
713DEPDIR
714OBJEXT
715EXEEXT
716ac_ct_CC
717CPPFLAGS
718LDFLAGS
719CFLAGS
720CC
721LN_S
722AM_BACKSLASH
723AM_DEFAULT_VERBOSITY
724AM_DEFAULT_V
725AM_V
726am__untar
727am__tar
728AMTAR
729am__leading_dot
730SET_MAKE
731AWK
732mkdir_p
733MKDIR_P
734INSTALL_STRIP_PROGRAM
735STRIP
736install_sh
737MAKEINFO
738AUTOHEADER
739AUTOMAKE
740AUTOCONF
741ACLOCAL
742VERSION
743PACKAGE
744CYGPATH_W
745am__isrc
746INSTALL_DATA
747INSTALL_SCRIPT
748INSTALL_PROGRAM
749PREFERABLY_POSIX_SHELL
750POSIX_SHELL
751COND_SYMVERS_FALSE
752COND_SYMVERS_TRUE
753COND_DOC_FALSE
754COND_DOC_TRUE
755COND_SCRIPTS_FALSE
756COND_SCRIPTS_TRUE
757COND_LZMALINKS_FALSE
758COND_LZMALINKS_TRUE
759COND_LZMAINFO_FALSE
760COND_LZMAINFO_TRUE
761COND_LZMADEC_FALSE
762COND_LZMADEC_TRUE
763COND_XZDEC_FALSE
764COND_XZDEC_TRUE
765COND_XZ_FALSE
766COND_XZ_TRUE
767COND_SMALL_FALSE
768COND_SMALL_TRUE
769COND_ASM_X86_64_FALSE
770COND_ASM_X86_64_TRUE
771COND_ASM_X86_FALSE
772COND_ASM_X86_TRUE
773COND_CHECK_SHA256_FALSE
774COND_CHECK_SHA256_TRUE
775COND_CHECK_CRC64_FALSE
776COND_CHECK_CRC64_TRUE
777COND_CHECK_CRC32_FALSE
778COND_CHECK_CRC32_TRUE
779COND_DECODER_LZ_FALSE
780COND_DECODER_LZ_TRUE
781COND_ENCODER_LZ_FALSE
782COND_ENCODER_LZ_TRUE
783COND_FILTER_LZ_FALSE
784COND_FILTER_LZ_TRUE
785COND_DECODER_SIMPLE_FALSE
786COND_DECODER_SIMPLE_TRUE
787COND_ENCODER_SIMPLE_FALSE
788COND_ENCODER_SIMPLE_TRUE
789COND_FILTER_SIMPLE_FALSE
790COND_FILTER_SIMPLE_TRUE
791COND_DECODER_SPARC_FALSE
792COND_DECODER_SPARC_TRUE
793COND_ENCODER_SPARC_FALSE
794COND_ENCODER_SPARC_TRUE
795COND_FILTER_SPARC_FALSE
796COND_FILTER_SPARC_TRUE
797COND_DECODER_ARMTHUMB_FALSE
798COND_DECODER_ARMTHUMB_TRUE
799COND_ENCODER_ARMTHUMB_FALSE
800COND_ENCODER_ARMTHUMB_TRUE
801COND_FILTER_ARMTHUMB_FALSE
802COND_FILTER_ARMTHUMB_TRUE
803COND_DECODER_ARM_FALSE
804COND_DECODER_ARM_TRUE
805COND_ENCODER_ARM_FALSE
806COND_ENCODER_ARM_TRUE
807COND_FILTER_ARM_FALSE
808COND_FILTER_ARM_TRUE
809COND_DECODER_IA64_FALSE
810COND_DECODER_IA64_TRUE
811COND_ENCODER_IA64_FALSE
812COND_ENCODER_IA64_TRUE
813COND_FILTER_IA64_FALSE
814COND_FILTER_IA64_TRUE
815COND_DECODER_POWERPC_FALSE
816COND_DECODER_POWERPC_TRUE
817COND_ENCODER_POWERPC_FALSE
818COND_ENCODER_POWERPC_TRUE
819COND_FILTER_POWERPC_FALSE
820COND_FILTER_POWERPC_TRUE
821COND_DECODER_X86_FALSE
822COND_DECODER_X86_TRUE
823COND_ENCODER_X86_FALSE
824COND_ENCODER_X86_TRUE
825COND_FILTER_X86_FALSE
826COND_FILTER_X86_TRUE
827COND_DECODER_DELTA_FALSE
828COND_DECODER_DELTA_TRUE
829COND_ENCODER_DELTA_FALSE
830COND_ENCODER_DELTA_TRUE
831COND_FILTER_DELTA_FALSE
832COND_FILTER_DELTA_TRUE
833COND_DECODER_LZMA2_FALSE
834COND_DECODER_LZMA2_TRUE
835COND_ENCODER_LZMA2_FALSE
836COND_ENCODER_LZMA2_TRUE
837COND_FILTER_LZMA2_FALSE
838COND_FILTER_LZMA2_TRUE
839COND_DECODER_LZMA1_FALSE
840COND_DECODER_LZMA1_TRUE
841COND_ENCODER_LZMA1_FALSE
842COND_ENCODER_LZMA1_TRUE
843COND_FILTER_LZMA1_FALSE
844COND_FILTER_LZMA1_TRUE
845COND_MAIN_DECODER_FALSE
846COND_MAIN_DECODER_TRUE
847COND_MAIN_ENCODER_FALSE
848COND_MAIN_ENCODER_TRUE
849LN_EXEEXT
850COND_W32_FALSE
851COND_W32_TRUE
852host_os
853host_vendor
854host_cpu
855host
856build_os
857build_vendor
858build_cpu
859build
860target_alias
861host_alias
862build_alias
863LIBS
864ECHO_T
865ECHO_N
866ECHO_C
867DEFS
868mandir
869localedir
870libdir
871psdir
872pdfdir
873dvidir
874htmldir
875infodir
876docdir
877oldincludedir
878includedir
879localstatedir
880sharedstatedir
881sysconfdir
882datadir
883datarootdir
884libexecdir
885sbindir
886bindir
887program_transform_name
888prefix
889exec_prefix
890PACKAGE_URL
891PACKAGE_BUGREPORT
892PACKAGE_STRING
893PACKAGE_VERSION
894PACKAGE_TARNAME
895PACKAGE_NAME
896PATH_SEPARATOR
897SHELL'
898ac_subst_files=''
899ac_user_opts='
900enable_option_checking
901enable_debug
902enable_encoders
903enable_decoders
904enable_match_finders
905enable_checks
906enable_external_sha256
907enable_assembler
908enable_small
909enable_threads
910enable_assume_ram
911enable_xz
912enable_xzdec
913enable_lzmadec
914enable_lzmainfo
915enable_lzma_links
916enable_scripts
917enable_doc
918enable_symbol_versions
919enable_sandbox
920enable_silent_rules
921enable_dependency_tracking
922enable_shared
923enable_static
924with_pic
925enable_fast_install
926with_aix_soname
927with_gnu_ld
928with_sysroot
929enable_libtool_lock
930enable_nls
931enable_rpath
932with_libiconv_prefix
933with_libintl_prefix
934enable_largefile
935enable_unaligned_access
936enable_werror
937'
938      ac_precious_vars='build_alias
939host_alias
940target_alias
941CC
942CFLAGS
943LDFLAGS
944LIBS
945CPPFLAGS
946CCAS
947CCASFLAGS
948CPP
949LT_SYS_LIBRARY_PATH'
950
951
952# Initialize some variables set by options.
953ac_init_help=
954ac_init_version=false
955ac_unrecognized_opts=
956ac_unrecognized_sep=
957# The variables have the same names as the options, with
958# dashes changed to underlines.
959cache_file=/dev/null
960exec_prefix=NONE
961no_create=
962no_recursion=
963prefix=NONE
964program_prefix=NONE
965program_suffix=NONE
966program_transform_name=s,x,x,
967silent=
968site=
969srcdir=
970verbose=
971x_includes=NONE
972x_libraries=NONE
973
974# Installation directory options.
975# These are left unexpanded so users can "make install exec_prefix=/foo"
976# and all the variables that are supposed to be based on exec_prefix
977# by default will actually change.
978# Use braces instead of parens because sh, perl, etc. also accept them.
979# (The list follows the same order as the GNU Coding Standards.)
980bindir='${exec_prefix}/bin'
981sbindir='${exec_prefix}/sbin'
982libexecdir='${exec_prefix}/libexec'
983datarootdir='${prefix}/share'
984datadir='${datarootdir}'
985sysconfdir='${prefix}/etc'
986sharedstatedir='${prefix}/com'
987localstatedir='${prefix}/var'
988includedir='${prefix}/include'
989oldincludedir='/usr/include'
990docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991infodir='${datarootdir}/info'
992htmldir='${docdir}'
993dvidir='${docdir}'
994pdfdir='${docdir}'
995psdir='${docdir}'
996libdir='${exec_prefix}/lib'
997localedir='${datarootdir}/locale'
998mandir='${datarootdir}/man'
999
1000ac_prev=
1001ac_dashdash=
1002for ac_option
1003do
1004  # If the previous option needs an argument, assign it.
1005  if test -n "$ac_prev"; then
1006    eval $ac_prev=\$ac_option
1007    ac_prev=
1008    continue
1009  fi
1010
1011  case $ac_option in
1012  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013  *=)   ac_optarg= ;;
1014  *)    ac_optarg=yes ;;
1015  esac
1016
1017  # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019  case $ac_dashdash$ac_option in
1020  --)
1021    ac_dashdash=yes ;;
1022
1023  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024    ac_prev=bindir ;;
1025  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026    bindir=$ac_optarg ;;
1027
1028  -build | --build | --buil | --bui | --bu)
1029    ac_prev=build_alias ;;
1030  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031    build_alias=$ac_optarg ;;
1032
1033  -cache-file | --cache-file | --cache-fil | --cache-fi \
1034  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035    ac_prev=cache_file ;;
1036  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038    cache_file=$ac_optarg ;;
1039
1040  --config-cache | -C)
1041    cache_file=config.cache ;;
1042
1043  -datadir | --datadir | --datadi | --datad)
1044    ac_prev=datadir ;;
1045  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046    datadir=$ac_optarg ;;
1047
1048  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049  | --dataroo | --dataro | --datar)
1050    ac_prev=datarootdir ;;
1051  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053    datarootdir=$ac_optarg ;;
1054
1055  -disable-* | --disable-*)
1056    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057    # Reject names that are not valid shell variable names.
1058    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059      as_fn_error $? "invalid feature name: $ac_useropt"
1060    ac_useropt_orig=$ac_useropt
1061    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062    case $ac_user_opts in
1063      *"
1064"enable_$ac_useropt"
1065"*) ;;
1066      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067	 ac_unrecognized_sep=', ';;
1068    esac
1069    eval enable_$ac_useropt=no ;;
1070
1071  -docdir | --docdir | --docdi | --doc | --do)
1072    ac_prev=docdir ;;
1073  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074    docdir=$ac_optarg ;;
1075
1076  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077    ac_prev=dvidir ;;
1078  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079    dvidir=$ac_optarg ;;
1080
1081  -enable-* | --enable-*)
1082    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083    # Reject names that are not valid shell variable names.
1084    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085      as_fn_error $? "invalid feature name: $ac_useropt"
1086    ac_useropt_orig=$ac_useropt
1087    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088    case $ac_user_opts in
1089      *"
1090"enable_$ac_useropt"
1091"*) ;;
1092      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093	 ac_unrecognized_sep=', ';;
1094    esac
1095    eval enable_$ac_useropt=\$ac_optarg ;;
1096
1097  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099  | --exec | --exe | --ex)
1100    ac_prev=exec_prefix ;;
1101  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103  | --exec=* | --exe=* | --ex=*)
1104    exec_prefix=$ac_optarg ;;
1105
1106  -gas | --gas | --ga | --g)
1107    # Obsolete; use --with-gas.
1108    with_gas=yes ;;
1109
1110  -help | --help | --hel | --he | -h)
1111    ac_init_help=long ;;
1112  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113    ac_init_help=recursive ;;
1114  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115    ac_init_help=short ;;
1116
1117  -host | --host | --hos | --ho)
1118    ac_prev=host_alias ;;
1119  -host=* | --host=* | --hos=* | --ho=*)
1120    host_alias=$ac_optarg ;;
1121
1122  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123    ac_prev=htmldir ;;
1124  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125  | --ht=*)
1126    htmldir=$ac_optarg ;;
1127
1128  -includedir | --includedir | --includedi | --included | --include \
1129  | --includ | --inclu | --incl | --inc)
1130    ac_prev=includedir ;;
1131  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132  | --includ=* | --inclu=* | --incl=* | --inc=*)
1133    includedir=$ac_optarg ;;
1134
1135  -infodir | --infodir | --infodi | --infod | --info | --inf)
1136    ac_prev=infodir ;;
1137  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138    infodir=$ac_optarg ;;
1139
1140  -libdir | --libdir | --libdi | --libd)
1141    ac_prev=libdir ;;
1142  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143    libdir=$ac_optarg ;;
1144
1145  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146  | --libexe | --libex | --libe)
1147    ac_prev=libexecdir ;;
1148  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149  | --libexe=* | --libex=* | --libe=*)
1150    libexecdir=$ac_optarg ;;
1151
1152  -localedir | --localedir | --localedi | --localed | --locale)
1153    ac_prev=localedir ;;
1154  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155    localedir=$ac_optarg ;;
1156
1157  -localstatedir | --localstatedir | --localstatedi | --localstated \
1158  | --localstate | --localstat | --localsta | --localst | --locals)
1159    ac_prev=localstatedir ;;
1160  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162    localstatedir=$ac_optarg ;;
1163
1164  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165    ac_prev=mandir ;;
1166  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167    mandir=$ac_optarg ;;
1168
1169  -nfp | --nfp | --nf)
1170    # Obsolete; use --without-fp.
1171    with_fp=no ;;
1172
1173  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174  | --no-cr | --no-c | -n)
1175    no_create=yes ;;
1176
1177  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179    no_recursion=yes ;;
1180
1181  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183  | --oldin | --oldi | --old | --ol | --o)
1184    ac_prev=oldincludedir ;;
1185  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188    oldincludedir=$ac_optarg ;;
1189
1190  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191    ac_prev=prefix ;;
1192  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193    prefix=$ac_optarg ;;
1194
1195  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196  | --program-pre | --program-pr | --program-p)
1197    ac_prev=program_prefix ;;
1198  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200    program_prefix=$ac_optarg ;;
1201
1202  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203  | --program-suf | --program-su | --program-s)
1204    ac_prev=program_suffix ;;
1205  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207    program_suffix=$ac_optarg ;;
1208
1209  -program-transform-name | --program-transform-name \
1210  | --program-transform-nam | --program-transform-na \
1211  | --program-transform-n | --program-transform- \
1212  | --program-transform | --program-transfor \
1213  | --program-transfo | --program-transf \
1214  | --program-trans | --program-tran \
1215  | --progr-tra | --program-tr | --program-t)
1216    ac_prev=program_transform_name ;;
1217  -program-transform-name=* | --program-transform-name=* \
1218  | --program-transform-nam=* | --program-transform-na=* \
1219  | --program-transform-n=* | --program-transform-=* \
1220  | --program-transform=* | --program-transfor=* \
1221  | --program-transfo=* | --program-transf=* \
1222  | --program-trans=* | --program-tran=* \
1223  | --progr-tra=* | --program-tr=* | --program-t=*)
1224    program_transform_name=$ac_optarg ;;
1225
1226  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227    ac_prev=pdfdir ;;
1228  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229    pdfdir=$ac_optarg ;;
1230
1231  -psdir | --psdir | --psdi | --psd | --ps)
1232    ac_prev=psdir ;;
1233  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234    psdir=$ac_optarg ;;
1235
1236  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237  | -silent | --silent | --silen | --sile | --sil)
1238    silent=yes ;;
1239
1240  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241    ac_prev=sbindir ;;
1242  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243  | --sbi=* | --sb=*)
1244    sbindir=$ac_optarg ;;
1245
1246  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248  | --sharedst | --shareds | --shared | --share | --shar \
1249  | --sha | --sh)
1250    ac_prev=sharedstatedir ;;
1251  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254  | --sha=* | --sh=*)
1255    sharedstatedir=$ac_optarg ;;
1256
1257  -site | --site | --sit)
1258    ac_prev=site ;;
1259  -site=* | --site=* | --sit=*)
1260    site=$ac_optarg ;;
1261
1262  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263    ac_prev=srcdir ;;
1264  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265    srcdir=$ac_optarg ;;
1266
1267  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268  | --syscon | --sysco | --sysc | --sys | --sy)
1269    ac_prev=sysconfdir ;;
1270  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272    sysconfdir=$ac_optarg ;;
1273
1274  -target | --target | --targe | --targ | --tar | --ta | --t)
1275    ac_prev=target_alias ;;
1276  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277    target_alias=$ac_optarg ;;
1278
1279  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280    verbose=yes ;;
1281
1282  -version | --version | --versio | --versi | --vers | -V)
1283    ac_init_version=: ;;
1284
1285  -with-* | --with-*)
1286    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287    # Reject names that are not valid shell variable names.
1288    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289      as_fn_error $? "invalid package name: $ac_useropt"
1290    ac_useropt_orig=$ac_useropt
1291    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292    case $ac_user_opts in
1293      *"
1294"with_$ac_useropt"
1295"*) ;;
1296      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297	 ac_unrecognized_sep=', ';;
1298    esac
1299    eval with_$ac_useropt=\$ac_optarg ;;
1300
1301  -without-* | --without-*)
1302    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303    # Reject names that are not valid shell variable names.
1304    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305      as_fn_error $? "invalid package name: $ac_useropt"
1306    ac_useropt_orig=$ac_useropt
1307    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308    case $ac_user_opts in
1309      *"
1310"with_$ac_useropt"
1311"*) ;;
1312      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313	 ac_unrecognized_sep=', ';;
1314    esac
1315    eval with_$ac_useropt=no ;;
1316
1317  --x)
1318    # Obsolete; use --with-x.
1319    with_x=yes ;;
1320
1321  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322  | --x-incl | --x-inc | --x-in | --x-i)
1323    ac_prev=x_includes ;;
1324  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326    x_includes=$ac_optarg ;;
1327
1328  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330    ac_prev=x_libraries ;;
1331  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333    x_libraries=$ac_optarg ;;
1334
1335  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1336Try \`$0 --help' for more information"
1337    ;;
1338
1339  *=*)
1340    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341    # Reject names that are not valid shell variable names.
1342    case $ac_envvar in #(
1343      '' | [0-9]* | *[!_$as_cr_alnum]* )
1344      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1345    esac
1346    eval $ac_envvar=\$ac_optarg
1347    export $ac_envvar ;;
1348
1349  *)
1350    # FIXME: should be removed in autoconf 3.0.
1351    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1355    ;;
1356
1357  esac
1358done
1359
1360if test -n "$ac_prev"; then
1361  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362  as_fn_error $? "missing argument to $ac_option"
1363fi
1364
1365if test -n "$ac_unrecognized_opts"; then
1366  case $enable_option_checking in
1367    no) ;;
1368    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1369    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370  esac
1371fi
1372
1373# Check all directory arguments for consistency.
1374for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375		datadir sysconfdir sharedstatedir localstatedir includedir \
1376		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377		libdir localedir mandir
1378do
1379  eval ac_val=\$$ac_var
1380  # Remove trailing slashes.
1381  case $ac_val in
1382    */ )
1383      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384      eval $ac_var=\$ac_val;;
1385  esac
1386  # Be sure to have absolute directory names.
1387  case $ac_val in
1388    [\\/$]* | ?:[\\/]* )  continue;;
1389    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390  esac
1391  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1392done
1393
1394# There might be people who depend on the old broken behavior: `$host'
1395# used to hold the argument of --host etc.
1396# FIXME: To remove some day.
1397build=$build_alias
1398host=$host_alias
1399target=$target_alias
1400
1401# FIXME: To remove some day.
1402if test "x$host_alias" != x; then
1403  if test "x$build_alias" = x; then
1404    cross_compiling=maybe
1405  elif test "x$build_alias" != "x$host_alias"; then
1406    cross_compiling=yes
1407  fi
1408fi
1409
1410ac_tool_prefix=
1411test -n "$host_alias" && ac_tool_prefix=$host_alias-
1412
1413test "$silent" = yes && exec 6>/dev/null
1414
1415
1416ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417ac_ls_di=`ls -di .` &&
1418ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1419  as_fn_error $? "working directory cannot be determined"
1420test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1421  as_fn_error $? "pwd does not report name of working directory"
1422
1423
1424# Find the source files, if location was not specified.
1425if test -z "$srcdir"; then
1426  ac_srcdir_defaulted=yes
1427  # Try the directory containing this script, then the parent directory.
1428  ac_confdir=`$as_dirname -- "$as_myself" ||
1429$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430	 X"$as_myself" : 'X\(//\)[^/]' \| \
1431	 X"$as_myself" : 'X\(//\)$' \| \
1432	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433$as_echo X"$as_myself" |
1434    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435	    s//\1/
1436	    q
1437	  }
1438	  /^X\(\/\/\)[^/].*/{
1439	    s//\1/
1440	    q
1441	  }
1442	  /^X\(\/\/\)$/{
1443	    s//\1/
1444	    q
1445	  }
1446	  /^X\(\/\).*/{
1447	    s//\1/
1448	    q
1449	  }
1450	  s/.*/./; q'`
1451  srcdir=$ac_confdir
1452  if test ! -r "$srcdir/$ac_unique_file"; then
1453    srcdir=..
1454  fi
1455else
1456  ac_srcdir_defaulted=no
1457fi
1458if test ! -r "$srcdir/$ac_unique_file"; then
1459  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1461fi
1462ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463ac_abs_confdir=`(
1464	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1465	pwd)`
1466# When building in place, set srcdir=.
1467if test "$ac_abs_confdir" = "$ac_pwd"; then
1468  srcdir=.
1469fi
1470# Remove unnecessary trailing slashes from srcdir.
1471# Double slashes in file names in object file debugging info
1472# mess up M-x gdb in Emacs.
1473case $srcdir in
1474*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475esac
1476for ac_var in $ac_precious_vars; do
1477  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478  eval ac_env_${ac_var}_value=\$${ac_var}
1479  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481done
1482
1483#
1484# Report the --help message.
1485#
1486if test "$ac_init_help" = "long"; then
1487  # Omit some internal or obsolete options to make the list less imposing.
1488  # This message is too long to be a string in the A/UX 3.1 sh.
1489  cat <<_ACEOF
1490\`configure' configures XZ Utils 5.2.4 to adapt to many kinds of systems.
1491
1492Usage: $0 [OPTION]... [VAR=VALUE]...
1493
1494To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495VAR=VALUE.  See below for descriptions of some of the useful variables.
1496
1497Defaults for the options are specified in brackets.
1498
1499Configuration:
1500  -h, --help              display this help and exit
1501      --help=short        display options specific to this package
1502      --help=recursive    display the short help of all the included packages
1503  -V, --version           display version information and exit
1504  -q, --quiet, --silent   do not print \`checking ...' messages
1505      --cache-file=FILE   cache test results in FILE [disabled]
1506  -C, --config-cache      alias for \`--cache-file=config.cache'
1507  -n, --no-create         do not create output files
1508      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1509
1510Installation directories:
1511  --prefix=PREFIX         install architecture-independent files in PREFIX
1512                          [$ac_default_prefix]
1513  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1514                          [PREFIX]
1515
1516By default, \`make install' will install all the files in
1517\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1518an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519for instance \`--prefix=\$HOME'.
1520
1521For better control, use the options below.
1522
1523Fine tuning of the installation directories:
1524  --bindir=DIR            user executables [EPREFIX/bin]
1525  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1526  --libexecdir=DIR        program executables [EPREFIX/libexec]
1527  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1528  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1529  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1530  --libdir=DIR            object code libraries [EPREFIX/lib]
1531  --includedir=DIR        C header files [PREFIX/include]
1532  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1533  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1534  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1535  --infodir=DIR           info documentation [DATAROOTDIR/info]
1536  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1537  --mandir=DIR            man documentation [DATAROOTDIR/man]
1538  --docdir=DIR            documentation root [DATAROOTDIR/doc/xz]
1539  --htmldir=DIR           html documentation [DOCDIR]
1540  --dvidir=DIR            dvi documentation [DOCDIR]
1541  --pdfdir=DIR            pdf documentation [DOCDIR]
1542  --psdir=DIR             ps documentation [DOCDIR]
1543_ACEOF
1544
1545  cat <<\_ACEOF
1546
1547Program names:
1548  --program-prefix=PREFIX            prepend PREFIX to installed program names
1549  --program-suffix=SUFFIX            append SUFFIX to installed program names
1550  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1551
1552System types:
1553  --build=BUILD     configure for building on BUILD [guessed]
1554  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1555_ACEOF
1556fi
1557
1558if test -n "$ac_init_help"; then
1559  case $ac_init_help in
1560     short | recursive ) echo "Configuration of XZ Utils 5.2.4:";;
1561   esac
1562  cat <<\_ACEOF
1563
1564Optional Features:
1565  --disable-option-checking  ignore unrecognized --enable/--with options
1566  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1567  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1568  --enable-debug          Enable debugging code.
1569  --enable-encoders=LIST  Comma-separated list of encoders to build.
1570                          Default=all. Available encoders: lzma1 lzma2 delta
1571                          x86 powerpc ia64 arm armthumb sparc
1572  --enable-decoders=LIST  Comma-separated list of decoders to build.
1573                          Default=all. Available decoders are the same as
1574                          available encoders.
1575  --enable-match-finders=LIST
1576                          Comma-separated list of match finders to build.
1577                          Default=all. At least one match finder is required
1578                          for encoding with the LZMA1 and LZMA2 filters.
1579                          Available match finders: hc3 hc4 bt2 bt3 bt4
1580  --enable-checks=LIST    Comma-separated list of integrity checks to build.
1581                          Default=all. Available integrity checks: crc32 crc64
1582                          sha256
1583  --enable-external-sha256
1584                          Use SHA-256 code from the operating system. See
1585                          INSTALL for possible subtle problems.
1586  --disable-assembler     Do not use assembler optimizations even if such
1587                          exist for the architecture.
1588  --enable-small          Make liblzma smaller and a little slower. This is
1589                          disabled by default to optimize for speed.
1590  --enable-threads=METHOD Supported METHODS are `yes', `no', `posix', `win95',
1591                          and `vista'. The default is `yes'. Using `no'
1592                          together with --enable-small makes liblzma thread
1593                          unsafe.
1594  --enable-assume-ram=SIZE
1595                          If and only if the real amount of RAM cannot be
1596                          determined, assume SIZE MiB. The default is 128 MiB.
1597                          This affects the default memory usage limit.
1598  --disable-xz            do not build the xz tool
1599  --disable-xzdec         do not build xzdec
1600  --disable-lzmadec       do not build lzmadec (it exists primarily for LZMA
1601                          Utils compatibility)
1602  --disable-lzmainfo      do not build lzmainfo (it exists primarily for LZMA
1603                          Utils compatibility)
1604  --disable-lzma-links    do not create symlinks for LZMA Utils compatibility
1605  --disable-scripts       do not install the scripts xzdiff, xzgrep, xzless,
1606                          xzmore, and their symlinks
1607  --disable-doc           do not install documentation files to docdir (man
1608                          pages will still be installed)
1609  --enable-symbol-versions
1610                          Use symbol versioning for liblzma. Enabled by
1611                          default on GNU/Linux, other GNU-based systems, and
1612                          FreeBSD.
1613  --enable-sandbox=METHOD This is an experimental feature. Sandboxing METHOD
1614                          can be `auto', `no', or `capsicum'. The default is
1615                          `no'.
1616  --enable-silent-rules   less verbose build output (undo: "make V=1")
1617  --disable-silent-rules  verbose build output (undo: "make V=0")
1618  --enable-dependency-tracking
1619                          do not reject slow dependency extractors
1620  --disable-dependency-tracking
1621                          speeds up one-time build
1622  --enable-shared[=PKGS]  build shared libraries [default=yes]
1623  --enable-static[=PKGS]  build static libraries [default=yes]
1624  --enable-fast-install[=PKGS]
1625                          optimize for fast installation [default=yes]
1626  --disable-libtool-lock  avoid locking (might break parallel builds)
1627  --disable-nls           do not use Native Language Support
1628  --disable-rpath         do not hardcode runtime library paths
1629  --disable-largefile     omit support for large files
1630  --enable-unaligned-access
1631                          Enable if the system supports *fast* unaligned
1632                          memory access with 16-bit and 32-bit integers. By
1633                          default, this is enabled only on x86, x86_64, and
1634                          big endian PowerPC.
1635  --enable-werror         Enable -Werror to abort compilation on all compiler
1636                          warnings.
1637
1638Optional Packages:
1639  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1640  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1641  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1642                          both]
1643  --with-aix-soname=aix|svr4|both
1644                          shared library versioning (aka "SONAME") variant to
1645                          provide on AIX, [default=aix].
1646  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1647  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1648                          compiler's sysroot if not specified).
1649  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1650  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1651  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1652  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1653  --without-libintl-prefix     don't search for libintl in includedir and libdir
1654
1655Some influential environment variables:
1656  CC          C compiler command
1657  CFLAGS      C compiler flags
1658  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1659              nonstandard directory <lib dir>
1660  LIBS        libraries to pass to the linker, e.g. -l<library>
1661  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1662              you have headers in a nonstandard directory <include dir>
1663  CCAS        assembler compiler command (defaults to CC)
1664  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1665  CPP         C preprocessor
1666  LT_SYS_LIBRARY_PATH
1667              User-defined run-time library search path.
1668
1669Use these variables to override the choices made by `configure' or to help
1670it to find libraries and programs with nonstandard names/locations.
1671
1672Report bugs to <lasse.collin@tukaani.org>.
1673XZ Utils home page: <https://tukaani.org/xz/>.
1674_ACEOF
1675ac_status=$?
1676fi
1677
1678if test "$ac_init_help" = "recursive"; then
1679  # If there are subdirs, report their specific --help.
1680  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1681    test -d "$ac_dir" ||
1682      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1683      continue
1684    ac_builddir=.
1685
1686case "$ac_dir" in
1687.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1688*)
1689  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1690  # A ".." for each directory in $ac_dir_suffix.
1691  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1692  case $ac_top_builddir_sub in
1693  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1694  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1695  esac ;;
1696esac
1697ac_abs_top_builddir=$ac_pwd
1698ac_abs_builddir=$ac_pwd$ac_dir_suffix
1699# for backward compatibility:
1700ac_top_builddir=$ac_top_build_prefix
1701
1702case $srcdir in
1703  .)  # We are building in place.
1704    ac_srcdir=.
1705    ac_top_srcdir=$ac_top_builddir_sub
1706    ac_abs_top_srcdir=$ac_pwd ;;
1707  [\\/]* | ?:[\\/]* )  # Absolute name.
1708    ac_srcdir=$srcdir$ac_dir_suffix;
1709    ac_top_srcdir=$srcdir
1710    ac_abs_top_srcdir=$srcdir ;;
1711  *) # Relative name.
1712    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1713    ac_top_srcdir=$ac_top_build_prefix$srcdir
1714    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1715esac
1716ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1717
1718    cd "$ac_dir" || { ac_status=$?; continue; }
1719    # Check for guested configure.
1720    if test -f "$ac_srcdir/configure.gnu"; then
1721      echo &&
1722      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1723    elif test -f "$ac_srcdir/configure"; then
1724      echo &&
1725      $SHELL "$ac_srcdir/configure" --help=recursive
1726    else
1727      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1728    fi || ac_status=$?
1729    cd "$ac_pwd" || { ac_status=$?; break; }
1730  done
1731fi
1732
1733test -n "$ac_init_help" && exit $ac_status
1734if $ac_init_version; then
1735  cat <<\_ACEOF
1736XZ Utils configure 5.2.4
1737generated by GNU Autoconf 2.69
1738
1739Copyright (C) 2012 Free Software Foundation, Inc.
1740This configure script is free software; the Free Software Foundation
1741gives unlimited permission to copy, distribute and modify it.
1742_ACEOF
1743  exit
1744fi
1745
1746## ------------------------ ##
1747## Autoconf initialization. ##
1748## ------------------------ ##
1749
1750# ac_fn_c_try_compile LINENO
1751# --------------------------
1752# Try to compile conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_c_try_compile ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  rm -f conftest.$ac_objext
1757  if { { ac_try="$ac_compile"
1758case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764  (eval "$ac_compile") 2>conftest.err
1765  ac_status=$?
1766  if test -s conftest.err; then
1767    grep -v '^ *+' conftest.err >conftest.er1
1768    cat conftest.er1 >&5
1769    mv -f conftest.er1 conftest.err
1770  fi
1771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772  test $ac_status = 0; } && {
1773	 test -z "$ac_c_werror_flag" ||
1774	 test ! -s conftest.err
1775       } && test -s conftest.$ac_objext; then :
1776  ac_retval=0
1777else
1778  $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
1780
1781	ac_retval=1
1782fi
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784  as_fn_set_status $ac_retval
1785
1786} # ac_fn_c_try_compile
1787
1788# ac_fn_c_try_cpp LINENO
1789# ----------------------
1790# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1791ac_fn_c_try_cpp ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  if { { ac_try="$ac_cpp conftest.$ac_ext"
1795case "(($ac_try" in
1796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797  *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1802  ac_status=$?
1803  if test -s conftest.err; then
1804    grep -v '^ *+' conftest.err >conftest.er1
1805    cat conftest.er1 >&5
1806    mv -f conftest.er1 conftest.err
1807  fi
1808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809  test $ac_status = 0; } > conftest.i && {
1810	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1811	 test ! -s conftest.err
1812       }; then :
1813  ac_retval=0
1814else
1815  $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818    ac_retval=1
1819fi
1820  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821  as_fn_set_status $ac_retval
1822
1823} # ac_fn_c_try_cpp
1824
1825# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1826# -------------------------------------------------------
1827# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1828# the include files in INCLUDES and setting the cache variable VAR
1829# accordingly.
1830ac_fn_c_check_header_mongrel ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  if eval \${$3+:} false; then :
1834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835$as_echo_n "checking for $2... " >&6; }
1836if eval \${$3+:} false; then :
1837  $as_echo_n "(cached) " >&6
1838fi
1839eval ac_res=\$$3
1840	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841$as_echo "$ac_res" >&6; }
1842else
1843  # Is the header compilable?
1844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1845$as_echo_n "checking $2 usability... " >&6; }
1846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h.  */
1848$4
1849#include <$2>
1850_ACEOF
1851if ac_fn_c_try_compile "$LINENO"; then :
1852  ac_header_compiler=yes
1853else
1854  ac_header_compiler=no
1855fi
1856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1858$as_echo "$ac_header_compiler" >&6; }
1859
1860# Is the header present?
1861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1862$as_echo_n "checking $2 presence... " >&6; }
1863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h.  */
1865#include <$2>
1866_ACEOF
1867if ac_fn_c_try_cpp "$LINENO"; then :
1868  ac_header_preproc=yes
1869else
1870  ac_header_preproc=no
1871fi
1872rm -f conftest.err conftest.i conftest.$ac_ext
1873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1874$as_echo "$ac_header_preproc" >&6; }
1875
1876# So?  What about this header?
1877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1878  yes:no: )
1879    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1880$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1881    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1883    ;;
1884  no:yes:* )
1885    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1886$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1887    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1888$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1889    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1890$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1891    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1892$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1893    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1894$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1895( $as_echo "## --------------------------------------- ##
1896## Report this to lasse.collin@tukaani.org ##
1897## --------------------------------------- ##"
1898     ) | sed "s/^/$as_me: WARNING:     /" >&2
1899    ;;
1900esac
1901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902$as_echo_n "checking for $2... " >&6; }
1903if eval \${$3+:} false; then :
1904  $as_echo_n "(cached) " >&6
1905else
1906  eval "$3=\$ac_header_compiler"
1907fi
1908eval ac_res=\$$3
1909	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910$as_echo "$ac_res" >&6; }
1911fi
1912  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914} # ac_fn_c_check_header_mongrel
1915
1916# ac_fn_c_try_run LINENO
1917# ----------------------
1918# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1919# that executables *can* be run.
1920ac_fn_c_try_run ()
1921{
1922  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923  if { { ac_try="$ac_link"
1924case "(($ac_try" in
1925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926  *) ac_try_echo=$ac_try;;
1927esac
1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929$as_echo "$ac_try_echo"; } >&5
1930  (eval "$ac_link") 2>&5
1931  ac_status=$?
1932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1934  { { case "(($ac_try" in
1935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936  *) ac_try_echo=$ac_try;;
1937esac
1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939$as_echo "$ac_try_echo"; } >&5
1940  (eval "$ac_try") 2>&5
1941  ac_status=$?
1942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943  test $ac_status = 0; }; }; then :
1944  ac_retval=0
1945else
1946  $as_echo "$as_me: program exited with status $ac_status" >&5
1947       $as_echo "$as_me: failed program was:" >&5
1948sed 's/^/| /' conftest.$ac_ext >&5
1949
1950       ac_retval=$ac_status
1951fi
1952  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1953  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954  as_fn_set_status $ac_retval
1955
1956} # ac_fn_c_try_run
1957
1958# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1959# -------------------------------------------------------
1960# Tests whether HEADER exists and can be compiled using the include files in
1961# INCLUDES, setting the cache variable VAR accordingly.
1962ac_fn_c_check_header_compile ()
1963{
1964  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966$as_echo_n "checking for $2... " >&6; }
1967if eval \${$3+:} false; then :
1968  $as_echo_n "(cached) " >&6
1969else
1970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h.  */
1972$4
1973#include <$2>
1974_ACEOF
1975if ac_fn_c_try_compile "$LINENO"; then :
1976  eval "$3=yes"
1977else
1978  eval "$3=no"
1979fi
1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981fi
1982eval ac_res=\$$3
1983	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984$as_echo "$ac_res" >&6; }
1985  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987} # ac_fn_c_check_header_compile
1988
1989# ac_fn_c_try_link LINENO
1990# -----------------------
1991# Try to link conftest.$ac_ext, and return whether this succeeded.
1992ac_fn_c_try_link ()
1993{
1994  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995  rm -f conftest.$ac_objext conftest$ac_exeext
1996  if { { ac_try="$ac_link"
1997case "(($ac_try" in
1998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999  *) ac_try_echo=$ac_try;;
2000esac
2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002$as_echo "$ac_try_echo"; } >&5
2003  (eval "$ac_link") 2>conftest.err
2004  ac_status=$?
2005  if test -s conftest.err; then
2006    grep -v '^ *+' conftest.err >conftest.er1
2007    cat conftest.er1 >&5
2008    mv -f conftest.er1 conftest.err
2009  fi
2010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011  test $ac_status = 0; } && {
2012	 test -z "$ac_c_werror_flag" ||
2013	 test ! -s conftest.err
2014       } && test -s conftest$ac_exeext && {
2015	 test "$cross_compiling" = yes ||
2016	 test -x conftest$ac_exeext
2017       }; then :
2018  ac_retval=0
2019else
2020  $as_echo "$as_me: failed program was:" >&5
2021sed 's/^/| /' conftest.$ac_ext >&5
2022
2023	ac_retval=1
2024fi
2025  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027  # interfere with the next link command; also delete a directory that is
2028  # left behind by Apple's compiler.  We do this before executing the actions.
2029  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031  as_fn_set_status $ac_retval
2032
2033} # ac_fn_c_try_link
2034
2035# ac_fn_c_check_func LINENO FUNC VAR
2036# ----------------------------------
2037# Tests whether FUNC exists, setting the cache variable VAR accordingly
2038ac_fn_c_check_func ()
2039{
2040  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042$as_echo_n "checking for $2... " >&6; }
2043if eval \${$3+:} false; then :
2044  $as_echo_n "(cached) " >&6
2045else
2046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047/* end confdefs.h.  */
2048/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2049   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2050#define $2 innocuous_$2
2051
2052/* System header to define __stub macros and hopefully few prototypes,
2053    which can conflict with char $2 (); below.
2054    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2055    <limits.h> exists even on freestanding compilers.  */
2056
2057#ifdef __STDC__
2058# include <limits.h>
2059#else
2060# include <assert.h>
2061#endif
2062
2063#undef $2
2064
2065/* Override any GCC internal prototype to avoid an error.
2066   Use char because int might match the return type of a GCC
2067   builtin and then its argument prototype would still apply.  */
2068#ifdef __cplusplus
2069extern "C"
2070#endif
2071char $2 ();
2072/* The GNU C library defines this for functions which it implements
2073    to always fail with ENOSYS.  Some functions are actually named
2074    something starting with __ and the normal name is an alias.  */
2075#if defined __stub_$2 || defined __stub___$2
2076choke me
2077#endif
2078
2079int
2080main ()
2081{
2082return $2 ();
2083  ;
2084  return 0;
2085}
2086_ACEOF
2087if ac_fn_c_try_link "$LINENO"; then :
2088  eval "$3=yes"
2089else
2090  eval "$3=no"
2091fi
2092rm -f core conftest.err conftest.$ac_objext \
2093    conftest$ac_exeext conftest.$ac_ext
2094fi
2095eval ac_res=\$$3
2096	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097$as_echo "$ac_res" >&6; }
2098  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099
2100} # ac_fn_c_check_func
2101
2102# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2103# ---------------------------------------------
2104# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2105# accordingly.
2106ac_fn_c_check_decl ()
2107{
2108  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109  as_decl_name=`echo $2|sed 's/ *(.*//'`
2110  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2112$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2113if eval \${$3+:} false; then :
2114  $as_echo_n "(cached) " >&6
2115else
2116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h.  */
2118$4
2119int
2120main ()
2121{
2122#ifndef $as_decl_name
2123#ifdef __cplusplus
2124  (void) $as_decl_use;
2125#else
2126  (void) $as_decl_name;
2127#endif
2128#endif
2129
2130  ;
2131  return 0;
2132}
2133_ACEOF
2134if ac_fn_c_try_compile "$LINENO"; then :
2135  eval "$3=yes"
2136else
2137  eval "$3=no"
2138fi
2139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140fi
2141eval ac_res=\$$3
2142	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143$as_echo "$ac_res" >&6; }
2144  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145
2146} # ac_fn_c_check_decl
2147
2148# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2149# -------------------------------------------
2150# Tests whether TYPE exists after having included INCLUDES, setting cache
2151# variable VAR accordingly.
2152ac_fn_c_check_type ()
2153{
2154  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156$as_echo_n "checking for $2... " >&6; }
2157if eval \${$3+:} false; then :
2158  $as_echo_n "(cached) " >&6
2159else
2160  eval "$3=no"
2161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162/* end confdefs.h.  */
2163$4
2164int
2165main ()
2166{
2167if (sizeof ($2))
2168	 return 0;
2169  ;
2170  return 0;
2171}
2172_ACEOF
2173if ac_fn_c_try_compile "$LINENO"; then :
2174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h.  */
2176$4
2177int
2178main ()
2179{
2180if (sizeof (($2)))
2181	    return 0;
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187
2188else
2189  eval "$3=yes"
2190fi
2191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192fi
2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194fi
2195eval ac_res=\$$3
2196	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197$as_echo "$ac_res" >&6; }
2198  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199
2200} # ac_fn_c_check_type
2201
2202# ac_fn_c_find_uintX_t LINENO BITS VAR
2203# ------------------------------------
2204# Finds an unsigned integer type with width BITS, setting cache variable VAR
2205# accordingly.
2206ac_fn_c_find_uintX_t ()
2207{
2208  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2210$as_echo_n "checking for uint$2_t... " >&6; }
2211if eval \${$3+:} false; then :
2212  $as_echo_n "(cached) " >&6
2213else
2214  eval "$3=no"
2215     # Order is important - never check a type that is potentially smaller
2216     # than half of the expected target width.
2217     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2218	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2219       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h.  */
2221$ac_includes_default
2222int
2223main ()
2224{
2225static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2226test_array [0] = 0;
2227return test_array [0];
2228
2229  ;
2230  return 0;
2231}
2232_ACEOF
2233if ac_fn_c_try_compile "$LINENO"; then :
2234  case $ac_type in #(
2235  uint$2_t) :
2236    eval "$3=yes" ;; #(
2237  *) :
2238    eval "$3=\$ac_type" ;;
2239esac
2240fi
2241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242       if eval test \"x\$"$3"\" = x"no"; then :
2243
2244else
2245  break
2246fi
2247     done
2248fi
2249eval ac_res=\$$3
2250	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251$as_echo "$ac_res" >&6; }
2252  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253
2254} # ac_fn_c_find_uintX_t
2255
2256# ac_fn_c_find_intX_t LINENO BITS VAR
2257# -----------------------------------
2258# Finds a signed integer type with width BITS, setting cache variable VAR
2259# accordingly.
2260ac_fn_c_find_intX_t ()
2261{
2262  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2264$as_echo_n "checking for int$2_t... " >&6; }
2265if eval \${$3+:} false; then :
2266  $as_echo_n "(cached) " >&6
2267else
2268  eval "$3=no"
2269     # Order is important - never check a type that is potentially smaller
2270     # than half of the expected target width.
2271     for ac_type in int$2_t 'int' 'long int' \
2272	 'long long int' 'short int' 'signed char'; do
2273       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274/* end confdefs.h.  */
2275$ac_includes_default
2276	     enum { N = $2 / 2 - 1 };
2277int
2278main ()
2279{
2280static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2281test_array [0] = 0;
2282return test_array [0];
2283
2284  ;
2285  return 0;
2286}
2287_ACEOF
2288if ac_fn_c_try_compile "$LINENO"; then :
2289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290/* end confdefs.h.  */
2291$ac_includes_default
2292	        enum { N = $2 / 2 - 1 };
2293int
2294main ()
2295{
2296static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2297		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2298test_array [0] = 0;
2299return test_array [0];
2300
2301  ;
2302  return 0;
2303}
2304_ACEOF
2305if ac_fn_c_try_compile "$LINENO"; then :
2306
2307else
2308  case $ac_type in #(
2309  int$2_t) :
2310    eval "$3=yes" ;; #(
2311  *) :
2312    eval "$3=\$ac_type" ;;
2313esac
2314fi
2315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316fi
2317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318       if eval test \"x\$"$3"\" = x"no"; then :
2319
2320else
2321  break
2322fi
2323     done
2324fi
2325eval ac_res=\$$3
2326	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327$as_echo "$ac_res" >&6; }
2328  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329
2330} # ac_fn_c_find_intX_t
2331
2332# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2333# --------------------------------------------
2334# Tries to find the compile-time value of EXPR in a program that includes
2335# INCLUDES, setting VAR accordingly. Returns whether the value could be
2336# computed
2337ac_fn_c_compute_int ()
2338{
2339  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340  if test "$cross_compiling" = yes; then
2341    # Depending upon the size, compute the lo and hi bounds.
2342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343/* end confdefs.h.  */
2344$4
2345int
2346main ()
2347{
2348static int test_array [1 - 2 * !(($2) >= 0)];
2349test_array [0] = 0;
2350return test_array [0];
2351
2352  ;
2353  return 0;
2354}
2355_ACEOF
2356if ac_fn_c_try_compile "$LINENO"; then :
2357  ac_lo=0 ac_mid=0
2358  while :; do
2359    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360/* end confdefs.h.  */
2361$4
2362int
2363main ()
2364{
2365static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2366test_array [0] = 0;
2367return test_array [0];
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373if ac_fn_c_try_compile "$LINENO"; then :
2374  ac_hi=$ac_mid; break
2375else
2376  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2377			if test $ac_lo -le $ac_mid; then
2378			  ac_lo= ac_hi=
2379			  break
2380			fi
2381			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2382fi
2383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384  done
2385else
2386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387/* end confdefs.h.  */
2388$4
2389int
2390main ()
2391{
2392static int test_array [1 - 2 * !(($2) < 0)];
2393test_array [0] = 0;
2394return test_array [0];
2395
2396  ;
2397  return 0;
2398}
2399_ACEOF
2400if ac_fn_c_try_compile "$LINENO"; then :
2401  ac_hi=-1 ac_mid=-1
2402  while :; do
2403    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404/* end confdefs.h.  */
2405$4
2406int
2407main ()
2408{
2409static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2410test_array [0] = 0;
2411return test_array [0];
2412
2413  ;
2414  return 0;
2415}
2416_ACEOF
2417if ac_fn_c_try_compile "$LINENO"; then :
2418  ac_lo=$ac_mid; break
2419else
2420  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2421			if test $ac_mid -le $ac_hi; then
2422			  ac_lo= ac_hi=
2423			  break
2424			fi
2425			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2426fi
2427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428  done
2429else
2430  ac_lo= ac_hi=
2431fi
2432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433fi
2434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435# Binary search between lo and hi bounds.
2436while test "x$ac_lo" != "x$ac_hi"; do
2437  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439/* end confdefs.h.  */
2440$4
2441int
2442main ()
2443{
2444static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2445test_array [0] = 0;
2446return test_array [0];
2447
2448  ;
2449  return 0;
2450}
2451_ACEOF
2452if ac_fn_c_try_compile "$LINENO"; then :
2453  ac_hi=$ac_mid
2454else
2455  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2456fi
2457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458done
2459case $ac_lo in #((
2460?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2461'') ac_retval=1 ;;
2462esac
2463  else
2464    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465/* end confdefs.h.  */
2466$4
2467static long int longval () { return $2; }
2468static unsigned long int ulongval () { return $2; }
2469#include <stdio.h>
2470#include <stdlib.h>
2471int
2472main ()
2473{
2474
2475  FILE *f = fopen ("conftest.val", "w");
2476  if (! f)
2477    return 1;
2478  if (($2) < 0)
2479    {
2480      long int i = longval ();
2481      if (i != ($2))
2482	return 1;
2483      fprintf (f, "%ld", i);
2484    }
2485  else
2486    {
2487      unsigned long int i = ulongval ();
2488      if (i != ($2))
2489	return 1;
2490      fprintf (f, "%lu", i);
2491    }
2492  /* Do not output a trailing newline, as this causes \r\n confusion
2493     on some platforms.  */
2494  return ferror (f) || fclose (f) != 0;
2495
2496  ;
2497  return 0;
2498}
2499_ACEOF
2500if ac_fn_c_try_run "$LINENO"; then :
2501  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2502else
2503  ac_retval=1
2504fi
2505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2506  conftest.$ac_objext conftest.beam conftest.$ac_ext
2507rm -f conftest.val
2508
2509  fi
2510  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2511  as_fn_set_status $ac_retval
2512
2513} # ac_fn_c_compute_int
2514
2515# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2516# ----------------------------------------------------
2517# Tries to find if the field MEMBER exists in type AGGR, after including
2518# INCLUDES, setting cache variable VAR accordingly.
2519ac_fn_c_check_member ()
2520{
2521  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2523$as_echo_n "checking for $2.$3... " >&6; }
2524if eval \${$4+:} false; then :
2525  $as_echo_n "(cached) " >&6
2526else
2527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528/* end confdefs.h.  */
2529$5
2530int
2531main ()
2532{
2533static $2 ac_aggr;
2534if (ac_aggr.$3)
2535return 0;
2536  ;
2537  return 0;
2538}
2539_ACEOF
2540if ac_fn_c_try_compile "$LINENO"; then :
2541  eval "$4=yes"
2542else
2543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544/* end confdefs.h.  */
2545$5
2546int
2547main ()
2548{
2549static $2 ac_aggr;
2550if (sizeof ac_aggr.$3)
2551return 0;
2552  ;
2553  return 0;
2554}
2555_ACEOF
2556if ac_fn_c_try_compile "$LINENO"; then :
2557  eval "$4=yes"
2558else
2559  eval "$4=no"
2560fi
2561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562fi
2563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564fi
2565eval ac_res=\$$4
2566	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567$as_echo "$ac_res" >&6; }
2568  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569
2570} # ac_fn_c_check_member
2571cat >config.log <<_ACEOF
2572This file contains any messages produced by compilers while
2573running configure, to aid debugging if configure makes a mistake.
2574
2575It was created by XZ Utils $as_me 5.2.4, which was
2576generated by GNU Autoconf 2.69.  Invocation command line was
2577
2578  $ $0 $@
2579
2580_ACEOF
2581exec 5>>config.log
2582{
2583cat <<_ASUNAME
2584## --------- ##
2585## Platform. ##
2586## --------- ##
2587
2588hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2589uname -m = `(uname -m) 2>/dev/null || echo unknown`
2590uname -r = `(uname -r) 2>/dev/null || echo unknown`
2591uname -s = `(uname -s) 2>/dev/null || echo unknown`
2592uname -v = `(uname -v) 2>/dev/null || echo unknown`
2593
2594/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2595/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2596
2597/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2598/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2599/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2600/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2601/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2602/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2603/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2604
2605_ASUNAME
2606
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610  IFS=$as_save_IFS
2611  test -z "$as_dir" && as_dir=.
2612    $as_echo "PATH: $as_dir"
2613  done
2614IFS=$as_save_IFS
2615
2616} >&5
2617
2618cat >&5 <<_ACEOF
2619
2620
2621## ----------- ##
2622## Core tests. ##
2623## ----------- ##
2624
2625_ACEOF
2626
2627
2628# Keep a trace of the command line.
2629# Strip out --no-create and --no-recursion so they do not pile up.
2630# Strip out --silent because we don't want to record it for future runs.
2631# Also quote any args containing shell meta-characters.
2632# Make two passes to allow for proper duplicate-argument suppression.
2633ac_configure_args=
2634ac_configure_args0=
2635ac_configure_args1=
2636ac_must_keep_next=false
2637for ac_pass in 1 2
2638do
2639  for ac_arg
2640  do
2641    case $ac_arg in
2642    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2643    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2644    | -silent | --silent | --silen | --sile | --sil)
2645      continue ;;
2646    *\'*)
2647      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2648    esac
2649    case $ac_pass in
2650    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2651    2)
2652      as_fn_append ac_configure_args1 " '$ac_arg'"
2653      if test $ac_must_keep_next = true; then
2654	ac_must_keep_next=false # Got value, back to normal.
2655      else
2656	case $ac_arg in
2657	  *=* | --config-cache | -C | -disable-* | --disable-* \
2658	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2659	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2660	  | -with-* | --with-* | -without-* | --without-* | --x)
2661	    case "$ac_configure_args0 " in
2662	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2663	    esac
2664	    ;;
2665	  -* ) ac_must_keep_next=true ;;
2666	esac
2667      fi
2668      as_fn_append ac_configure_args " '$ac_arg'"
2669      ;;
2670    esac
2671  done
2672done
2673{ ac_configure_args0=; unset ac_configure_args0;}
2674{ ac_configure_args1=; unset ac_configure_args1;}
2675
2676# When interrupted or exit'd, cleanup temporary files, and complete
2677# config.log.  We remove comments because anyway the quotes in there
2678# would cause problems or look ugly.
2679# WARNING: Use '\'' to represent an apostrophe within the trap.
2680# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2681trap 'exit_status=$?
2682  # Save into config.log some information that might help in debugging.
2683  {
2684    echo
2685
2686    $as_echo "## ---------------- ##
2687## Cache variables. ##
2688## ---------------- ##"
2689    echo
2690    # The following way of writing the cache mishandles newlines in values,
2691(
2692  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2693    eval ac_val=\$$ac_var
2694    case $ac_val in #(
2695    *${as_nl}*)
2696      case $ac_var in #(
2697      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2698$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2699      esac
2700      case $ac_var in #(
2701      _ | IFS | as_nl) ;; #(
2702      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2703      *) { eval $ac_var=; unset $ac_var;} ;;
2704      esac ;;
2705    esac
2706  done
2707  (set) 2>&1 |
2708    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2709    *${as_nl}ac_space=\ *)
2710      sed -n \
2711	"s/'\''/'\''\\\\'\'''\''/g;
2712	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2713      ;; #(
2714    *)
2715      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2716      ;;
2717    esac |
2718    sort
2719)
2720    echo
2721
2722    $as_echo "## ----------------- ##
2723## Output variables. ##
2724## ----------------- ##"
2725    echo
2726    for ac_var in $ac_subst_vars
2727    do
2728      eval ac_val=\$$ac_var
2729      case $ac_val in
2730      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2731      esac
2732      $as_echo "$ac_var='\''$ac_val'\''"
2733    done | sort
2734    echo
2735
2736    if test -n "$ac_subst_files"; then
2737      $as_echo "## ------------------- ##
2738## File substitutions. ##
2739## ------------------- ##"
2740      echo
2741      for ac_var in $ac_subst_files
2742      do
2743	eval ac_val=\$$ac_var
2744	case $ac_val in
2745	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2746	esac
2747	$as_echo "$ac_var='\''$ac_val'\''"
2748      done | sort
2749      echo
2750    fi
2751
2752    if test -s confdefs.h; then
2753      $as_echo "## ----------- ##
2754## confdefs.h. ##
2755## ----------- ##"
2756      echo
2757      cat confdefs.h
2758      echo
2759    fi
2760    test "$ac_signal" != 0 &&
2761      $as_echo "$as_me: caught signal $ac_signal"
2762    $as_echo "$as_me: exit $exit_status"
2763  } >&5
2764  rm -f core *.core core.conftest.* &&
2765    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2766    exit $exit_status
2767' 0
2768for ac_signal in 1 2 13 15; do
2769  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2770done
2771ac_signal=0
2772
2773# confdefs.h avoids OS command line length limits that DEFS can exceed.
2774rm -f -r conftest* confdefs.h
2775
2776$as_echo "/* confdefs.h */" > confdefs.h
2777
2778# Predefined preprocessor variables.
2779
2780cat >>confdefs.h <<_ACEOF
2781#define PACKAGE_NAME "$PACKAGE_NAME"
2782_ACEOF
2783
2784cat >>confdefs.h <<_ACEOF
2785#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2786_ACEOF
2787
2788cat >>confdefs.h <<_ACEOF
2789#define PACKAGE_VERSION "$PACKAGE_VERSION"
2790_ACEOF
2791
2792cat >>confdefs.h <<_ACEOF
2793#define PACKAGE_STRING "$PACKAGE_STRING"
2794_ACEOF
2795
2796cat >>confdefs.h <<_ACEOF
2797#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2798_ACEOF
2799
2800cat >>confdefs.h <<_ACEOF
2801#define PACKAGE_URL "$PACKAGE_URL"
2802_ACEOF
2803
2804
2805# Let the site file select an alternate cache file if it wants to.
2806# Prefer an explicitly selected file to automatically selected ones.
2807ac_site_file1=NONE
2808ac_site_file2=NONE
2809if test -n "$CONFIG_SITE"; then
2810  # We do not want a PATH search for config.site.
2811  case $CONFIG_SITE in #((
2812    -*)  ac_site_file1=./$CONFIG_SITE;;
2813    */*) ac_site_file1=$CONFIG_SITE;;
2814    *)   ac_site_file1=./$CONFIG_SITE;;
2815  esac
2816elif test "x$prefix" != xNONE; then
2817  ac_site_file1=$prefix/share/config.site
2818  ac_site_file2=$prefix/etc/config.site
2819else
2820  ac_site_file1=$ac_default_prefix/share/config.site
2821  ac_site_file2=$ac_default_prefix/etc/config.site
2822fi
2823for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2824do
2825  test "x$ac_site_file" = xNONE && continue
2826  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2827    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2828$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2829    sed 's/^/| /' "$ac_site_file" >&5
2830    . "$ac_site_file" \
2831      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833as_fn_error $? "failed to load site script $ac_site_file
2834See \`config.log' for more details" "$LINENO" 5; }
2835  fi
2836done
2837
2838if test -r "$cache_file"; then
2839  # Some versions of bash will fail to source /dev/null (special files
2840  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2841  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2842    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2843$as_echo "$as_me: loading cache $cache_file" >&6;}
2844    case $cache_file in
2845      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2846      *)                      . "./$cache_file";;
2847    esac
2848  fi
2849else
2850  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2851$as_echo "$as_me: creating cache $cache_file" >&6;}
2852  >$cache_file
2853fi
2854
2855gt_needs="$gt_needs "
2856# Check that the precious variables saved in the cache have kept the same
2857# value.
2858ac_cache_corrupted=false
2859for ac_var in $ac_precious_vars; do
2860  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2861  eval ac_new_set=\$ac_env_${ac_var}_set
2862  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2863  eval ac_new_val=\$ac_env_${ac_var}_value
2864  case $ac_old_set,$ac_new_set in
2865    set,)
2866      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2867$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2868      ac_cache_corrupted=: ;;
2869    ,set)
2870      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2871$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2872      ac_cache_corrupted=: ;;
2873    ,);;
2874    *)
2875      if test "x$ac_old_val" != "x$ac_new_val"; then
2876	# differences in whitespace do not lead to failure.
2877	ac_old_val_w=`echo x $ac_old_val`
2878	ac_new_val_w=`echo x $ac_new_val`
2879	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2880	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2881$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2882	  ac_cache_corrupted=:
2883	else
2884	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2885$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2886	  eval $ac_var=\$ac_old_val
2887	fi
2888	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2889$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2890	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2891$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2892      fi;;
2893  esac
2894  # Pass precious variables to config.status.
2895  if test "$ac_new_set" = set; then
2896    case $ac_new_val in
2897    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2898    *) ac_arg=$ac_var=$ac_new_val ;;
2899    esac
2900    case " $ac_configure_args " in
2901      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2902      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2903    esac
2904  fi
2905done
2906if $ac_cache_corrupted; then
2907  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2910$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2911  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2912fi
2913## -------------------- ##
2914## Main body of script. ##
2915## -------------------- ##
2916
2917ac_ext=c
2918ac_cpp='$CPP $CPPFLAGS'
2919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921ac_compiler_gnu=$ac_cv_c_compiler_gnu
2922
2923
2924
2925ac_aux_dir=
2926for ac_dir in build-aux "$srcdir"/build-aux; do
2927  if test -f "$ac_dir/install-sh"; then
2928    ac_aux_dir=$ac_dir
2929    ac_install_sh="$ac_aux_dir/install-sh -c"
2930    break
2931  elif test -f "$ac_dir/install.sh"; then
2932    ac_aux_dir=$ac_dir
2933    ac_install_sh="$ac_aux_dir/install.sh -c"
2934    break
2935  elif test -f "$ac_dir/shtool"; then
2936    ac_aux_dir=$ac_dir
2937    ac_install_sh="$ac_aux_dir/shtool install -c"
2938    break
2939  fi
2940done
2941if test -z "$ac_aux_dir"; then
2942  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2943fi
2944
2945# These three variables are undocumented and unsupported,
2946# and are intended to be withdrawn in a future Autoconf release.
2947# They can cause serious problems if a builder's source tree is in a directory
2948# whose full name contains unusual characters.
2949ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2950ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2951ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2952
2953
2954
2955ac_config_headers="$ac_config_headers config.h"
2956
2957
2958echo
2959echo "$PACKAGE_STRING"
2960
2961echo
2962echo "System type:"
2963# This is needed to know if assembler optimizations can be used.
2964# Make sure we can run config.sub.
2965$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2966  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2967
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2969$as_echo_n "checking build system type... " >&6; }
2970if ${ac_cv_build+:} false; then :
2971  $as_echo_n "(cached) " >&6
2972else
2973  ac_build_alias=$build_alias
2974test "x$ac_build_alias" = x &&
2975  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2976test "x$ac_build_alias" = x &&
2977  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2978ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2979  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2980
2981fi
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2983$as_echo "$ac_cv_build" >&6; }
2984case $ac_cv_build in
2985*-*-*) ;;
2986*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2987esac
2988build=$ac_cv_build
2989ac_save_IFS=$IFS; IFS='-'
2990set x $ac_cv_build
2991shift
2992build_cpu=$1
2993build_vendor=$2
2994shift; shift
2995# Remember, the first character of IFS is used to create $*,
2996# except with old shells:
2997build_os=$*
2998IFS=$ac_save_IFS
2999case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3000
3001
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3003$as_echo_n "checking host system type... " >&6; }
3004if ${ac_cv_host+:} false; then :
3005  $as_echo_n "(cached) " >&6
3006else
3007  if test "x$host_alias" = x; then
3008  ac_cv_host=$ac_cv_build
3009else
3010  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3011    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3012fi
3013
3014fi
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3016$as_echo "$ac_cv_host" >&6; }
3017case $ac_cv_host in
3018*-*-*) ;;
3019*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3020esac
3021host=$ac_cv_host
3022ac_save_IFS=$IFS; IFS='-'
3023set x $ac_cv_host
3024shift
3025host_cpu=$1
3026host_vendor=$2
3027shift; shift
3028# Remember, the first character of IFS is used to create $*,
3029# except with old shells:
3030host_os=$*
3031IFS=$ac_save_IFS
3032case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3033
3034
3035
3036# We do some special things on Windows (32-bit or 64-bit) builds.
3037case $host_os in
3038	mingw* | cygwin | msys) is_w32=yes ;;
3039	*)                      is_w32=no ;;
3040esac
3041 if test "$is_w32" = yes; then
3042  COND_W32_TRUE=
3043  COND_W32_FALSE='#'
3044else
3045  COND_W32_TRUE='#'
3046  COND_W32_FALSE=
3047fi
3048
3049
3050# We need to use $EXEEXT with $(LN_S) when creating symlinks to
3051# executables. Cygwin is an exception to this, since it is recommended
3052# that symlinks don't have the .exe suffix. To make this work, we
3053# define LN_EXEEXT.
3054#
3055# MSYS2 is treated the same way as Cygwin. It uses plain "msys" like
3056# the original MSYS when building MSYS/MSYS2-binaries. Hopefully this
3057# doesn't break things for the original MSYS developers. Note that this
3058# doesn't affect normal MSYS/MSYS2 users building non-MSYS/MSYS2 binaries
3059# since in that case the $host_os is usually mingw32.
3060case $host_os in
3061	cygwin | msys)  LN_EXEEXT= ;;
3062	*)              LN_EXEEXT='$(EXEEXT)' ;;
3063esac
3064
3065
3066echo
3067echo "Configure options:"
3068AM_CFLAGS=
3069
3070
3071#############
3072# Debugging #
3073#############
3074
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if debugging code should be compiled" >&5
3076$as_echo_n "checking if debugging code should be compiled... " >&6; }
3077# Check whether --enable-debug was given.
3078if test "${enable_debug+set}" = set; then :
3079  enableval=$enable_debug;
3080else
3081  enable_debug=no
3082fi
3083
3084if test "x$enable_debug" = xyes; then
3085	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086$as_echo "yes" >&6; }
3087else
3088
3089$as_echo "#define NDEBUG 1" >>confdefs.h
3090
3091	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092$as_echo "no" >&6; }
3093fi
3094
3095
3096###########
3097# Filters #
3098###########
3099
3100
3101
3102
3103enable_filter_lzma1=no
3104enable_encoder_lzma1=no
3105enable_decoder_lzma1=no
3106enable_filter_lzma2=no
3107enable_encoder_lzma2=no
3108enable_decoder_lzma2=no
3109enable_filter_delta=no
3110enable_encoder_delta=no
3111enable_decoder_delta=no
3112enable_filter_x86=no
3113enable_encoder_x86=no
3114enable_decoder_x86=no
3115enable_filter_powerpc=no
3116enable_encoder_powerpc=no
3117enable_decoder_powerpc=no
3118enable_filter_ia64=no
3119enable_encoder_ia64=no
3120enable_decoder_ia64=no
3121enable_filter_arm=no
3122enable_encoder_arm=no
3123enable_decoder_arm=no
3124enable_filter_armthumb=no
3125enable_encoder_armthumb=no
3126enable_decoder_armthumb=no
3127enable_filter_sparc=no
3128enable_encoder_sparc=no
3129enable_decoder_sparc=no
3130
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which encoders to build" >&5
3132$as_echo_n "checking which encoders to build... " >&6; }
3133# Check whether --enable-encoders was given.
3134if test "${enable_encoders+set}" = set; then :
3135  enableval=$enable_encoders;
3136else
3137  enable_encoders=lzma1,lzma2,delta,x86,powerpc,ia64,arm,armthumb,sparc
3138fi
3139
3140enable_encoders=`echo "$enable_encoders" | sed 's/,/ /g'`
3141if test "x$enable_encoders" = xno || test "x$enable_encoders" = x; then
3142	enable_encoders=no
3143	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
3144$as_echo "(none)" >&6; }
3145else
3146	for arg in $enable_encoders
3147	do
3148		case $arg in
3149			lzma1)
3150				enable_filter_lzma1=yes
3151				enable_encoder_lzma1=yes
3152
3153$as_echo "#define HAVE_ENCODER_LZMA1 1" >>confdefs.h
3154
3155				;;
3156			lzma2)
3157				enable_filter_lzma2=yes
3158				enable_encoder_lzma2=yes
3159
3160$as_echo "#define HAVE_ENCODER_LZMA2 1" >>confdefs.h
3161
3162				;;
3163			delta)
3164				enable_filter_delta=yes
3165				enable_encoder_delta=yes
3166
3167$as_echo "#define HAVE_ENCODER_DELTA 1" >>confdefs.h
3168
3169				;;
3170			x86)
3171				enable_filter_x86=yes
3172				enable_encoder_x86=yes
3173
3174$as_echo "#define HAVE_ENCODER_X86 1" >>confdefs.h
3175
3176				;;
3177			powerpc)
3178				enable_filter_powerpc=yes
3179				enable_encoder_powerpc=yes
3180
3181$as_echo "#define HAVE_ENCODER_POWERPC 1" >>confdefs.h
3182
3183				;;
3184			ia64)
3185				enable_filter_ia64=yes
3186				enable_encoder_ia64=yes
3187
3188$as_echo "#define HAVE_ENCODER_IA64 1" >>confdefs.h
3189
3190				;;
3191			arm)
3192				enable_filter_arm=yes
3193				enable_encoder_arm=yes
3194
3195$as_echo "#define HAVE_ENCODER_ARM 1" >>confdefs.h
3196
3197				;;
3198			armthumb)
3199				enable_filter_armthumb=yes
3200				enable_encoder_armthumb=yes
3201
3202$as_echo "#define HAVE_ENCODER_ARMTHUMB 1" >>confdefs.h
3203
3204				;;
3205			sparc)
3206				enable_filter_sparc=yes
3207				enable_encoder_sparc=yes
3208
3209$as_echo "#define HAVE_ENCODER_SPARC 1" >>confdefs.h
3210
3211				;;
3212			*)
3213				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3214$as_echo "" >&6; }
3215				as_fn_error $? "unknown filter: $arg" "$LINENO" 5
3216				;;
3217		esac
3218	done
3219
3220$as_echo "#define HAVE_ENCODERS 1" >>confdefs.h
3221
3222	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_encoders" >&5
3223$as_echo "$enable_encoders" >&6; }
3224fi
3225
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which decoders to build" >&5
3227$as_echo_n "checking which decoders to build... " >&6; }
3228# Check whether --enable-decoders was given.
3229if test "${enable_decoders+set}" = set; then :
3230  enableval=$enable_decoders;
3231else
3232  enable_decoders=lzma1,lzma2,delta,x86,powerpc,ia64,arm,armthumb,sparc
3233fi
3234
3235enable_decoders=`echo "$enable_decoders" | sed 's/,/ /g'`
3236if test "x$enable_decoders" = xno || test "x$enable_decoders" = x; then
3237	enable_decoders=no
3238	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
3239$as_echo "(none)" >&6; }
3240else
3241	for arg in $enable_decoders
3242	do
3243		case $arg in
3244			lzma1)
3245				enable_filter_lzma1=yes
3246				enable_decoder_lzma1=yes
3247
3248$as_echo "#define HAVE_DECODER_LZMA1 1" >>confdefs.h
3249
3250				;;
3251			lzma2)
3252				enable_filter_lzma2=yes
3253				enable_decoder_lzma2=yes
3254
3255$as_echo "#define HAVE_DECODER_LZMA2 1" >>confdefs.h
3256
3257				;;
3258			delta)
3259				enable_filter_delta=yes
3260				enable_decoder_delta=yes
3261
3262$as_echo "#define HAVE_DECODER_DELTA 1" >>confdefs.h
3263
3264				;;
3265			x86)
3266				enable_filter_x86=yes
3267				enable_decoder_x86=yes
3268
3269$as_echo "#define HAVE_DECODER_X86 1" >>confdefs.h
3270
3271				;;
3272			powerpc)
3273				enable_filter_powerpc=yes
3274				enable_decoder_powerpc=yes
3275
3276$as_echo "#define HAVE_DECODER_POWERPC 1" >>confdefs.h
3277
3278				;;
3279			ia64)
3280				enable_filter_ia64=yes
3281				enable_decoder_ia64=yes
3282
3283$as_echo "#define HAVE_DECODER_IA64 1" >>confdefs.h
3284
3285				;;
3286			arm)
3287				enable_filter_arm=yes
3288				enable_decoder_arm=yes
3289
3290$as_echo "#define HAVE_DECODER_ARM 1" >>confdefs.h
3291
3292				;;
3293			armthumb)
3294				enable_filter_armthumb=yes
3295				enable_decoder_armthumb=yes
3296
3297$as_echo "#define HAVE_DECODER_ARMTHUMB 1" >>confdefs.h
3298
3299				;;
3300			sparc)
3301				enable_filter_sparc=yes
3302				enable_decoder_sparc=yes
3303
3304$as_echo "#define HAVE_DECODER_SPARC 1" >>confdefs.h
3305
3306				;;
3307			*)
3308				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3309$as_echo "" >&6; }
3310				as_fn_error $? "unknown filter: $arg" "$LINENO" 5
3311				;;
3312		esac
3313	done
3314
3315$as_echo "#define HAVE_DECODERS 1" >>confdefs.h
3316
3317	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_decoders" >&5
3318$as_echo "$enable_decoders" >&6; }
3319fi
3320
3321if test "x$enable_encoder_lzma2$enable_encoder_lzma1" = xyesno \
3322		|| test "x$enable_decoder_lzma2$enable_decoder_lzma1" = xyesno; then
3323	as_fn_error $? "LZMA2 requires that LZMA1 is also enabled." "$LINENO" 5
3324fi
3325
3326 if test "x$enable_encoders" != xno; then
3327  COND_MAIN_ENCODER_TRUE=
3328  COND_MAIN_ENCODER_FALSE='#'
3329else
3330  COND_MAIN_ENCODER_TRUE='#'
3331  COND_MAIN_ENCODER_FALSE=
3332fi
3333
3334 if test "x$enable_decoders" != xno; then
3335  COND_MAIN_DECODER_TRUE=
3336  COND_MAIN_DECODER_FALSE='#'
3337else
3338  COND_MAIN_DECODER_TRUE='#'
3339  COND_MAIN_DECODER_FALSE=
3340fi
3341
3342
3343 if test "x$enable_filter_lzma1" = xyes; then
3344  COND_FILTER_LZMA1_TRUE=
3345  COND_FILTER_LZMA1_FALSE='#'
3346else
3347  COND_FILTER_LZMA1_TRUE='#'
3348  COND_FILTER_LZMA1_FALSE=
3349fi
3350
3351 if test "x$enable_encoder_lzma1" = xyes; then
3352  COND_ENCODER_LZMA1_TRUE=
3353  COND_ENCODER_LZMA1_FALSE='#'
3354else
3355  COND_ENCODER_LZMA1_TRUE='#'
3356  COND_ENCODER_LZMA1_FALSE=
3357fi
3358
3359 if test "x$enable_decoder_lzma1" = xyes; then
3360  COND_DECODER_LZMA1_TRUE=
3361  COND_DECODER_LZMA1_FALSE='#'
3362else
3363  COND_DECODER_LZMA1_TRUE='#'
3364  COND_DECODER_LZMA1_FALSE=
3365fi
3366
3367 if test "x$enable_filter_lzma2" = xyes; then
3368  COND_FILTER_LZMA2_TRUE=
3369  COND_FILTER_LZMA2_FALSE='#'
3370else
3371  COND_FILTER_LZMA2_TRUE='#'
3372  COND_FILTER_LZMA2_FALSE=
3373fi
3374
3375 if test "x$enable_encoder_lzma2" = xyes; then
3376  COND_ENCODER_LZMA2_TRUE=
3377  COND_ENCODER_LZMA2_FALSE='#'
3378else
3379  COND_ENCODER_LZMA2_TRUE='#'
3380  COND_ENCODER_LZMA2_FALSE=
3381fi
3382
3383 if test "x$enable_decoder_lzma2" = xyes; then
3384  COND_DECODER_LZMA2_TRUE=
3385  COND_DECODER_LZMA2_FALSE='#'
3386else
3387  COND_DECODER_LZMA2_TRUE='#'
3388  COND_DECODER_LZMA2_FALSE=
3389fi
3390
3391 if test "x$enable_filter_delta" = xyes; then
3392  COND_FILTER_DELTA_TRUE=
3393  COND_FILTER_DELTA_FALSE='#'
3394else
3395  COND_FILTER_DELTA_TRUE='#'
3396  COND_FILTER_DELTA_FALSE=
3397fi
3398
3399 if test "x$enable_encoder_delta" = xyes; then
3400  COND_ENCODER_DELTA_TRUE=
3401  COND_ENCODER_DELTA_FALSE='#'
3402else
3403  COND_ENCODER_DELTA_TRUE='#'
3404  COND_ENCODER_DELTA_FALSE=
3405fi
3406
3407 if test "x$enable_decoder_delta" = xyes; then
3408  COND_DECODER_DELTA_TRUE=
3409  COND_DECODER_DELTA_FALSE='#'
3410else
3411  COND_DECODER_DELTA_TRUE='#'
3412  COND_DECODER_DELTA_FALSE=
3413fi
3414
3415 if test "x$enable_filter_x86" = xyes; then
3416  COND_FILTER_X86_TRUE=
3417  COND_FILTER_X86_FALSE='#'
3418else
3419  COND_FILTER_X86_TRUE='#'
3420  COND_FILTER_X86_FALSE=
3421fi
3422
3423 if test "x$enable_encoder_x86" = xyes; then
3424  COND_ENCODER_X86_TRUE=
3425  COND_ENCODER_X86_FALSE='#'
3426else
3427  COND_ENCODER_X86_TRUE='#'
3428  COND_ENCODER_X86_FALSE=
3429fi
3430
3431 if test "x$enable_decoder_x86" = xyes; then
3432  COND_DECODER_X86_TRUE=
3433  COND_DECODER_X86_FALSE='#'
3434else
3435  COND_DECODER_X86_TRUE='#'
3436  COND_DECODER_X86_FALSE=
3437fi
3438
3439 if test "x$enable_filter_powerpc" = xyes; then
3440  COND_FILTER_POWERPC_TRUE=
3441  COND_FILTER_POWERPC_FALSE='#'
3442else
3443  COND_FILTER_POWERPC_TRUE='#'
3444  COND_FILTER_POWERPC_FALSE=
3445fi
3446
3447 if test "x$enable_encoder_powerpc" = xyes; then
3448  COND_ENCODER_POWERPC_TRUE=
3449  COND_ENCODER_POWERPC_FALSE='#'
3450else
3451  COND_ENCODER_POWERPC_TRUE='#'
3452  COND_ENCODER_POWERPC_FALSE=
3453fi
3454
3455 if test "x$enable_decoder_powerpc" = xyes; then
3456  COND_DECODER_POWERPC_TRUE=
3457  COND_DECODER_POWERPC_FALSE='#'
3458else
3459  COND_DECODER_POWERPC_TRUE='#'
3460  COND_DECODER_POWERPC_FALSE=
3461fi
3462
3463 if test "x$enable_filter_ia64" = xyes; then
3464  COND_FILTER_IA64_TRUE=
3465  COND_FILTER_IA64_FALSE='#'
3466else
3467  COND_FILTER_IA64_TRUE='#'
3468  COND_FILTER_IA64_FALSE=
3469fi
3470
3471 if test "x$enable_encoder_ia64" = xyes; then
3472  COND_ENCODER_IA64_TRUE=
3473  COND_ENCODER_IA64_FALSE='#'
3474else
3475  COND_ENCODER_IA64_TRUE='#'
3476  COND_ENCODER_IA64_FALSE=
3477fi
3478
3479 if test "x$enable_decoder_ia64" = xyes; then
3480  COND_DECODER_IA64_TRUE=
3481  COND_DECODER_IA64_FALSE='#'
3482else
3483  COND_DECODER_IA64_TRUE='#'
3484  COND_DECODER_IA64_FALSE=
3485fi
3486
3487 if test "x$enable_filter_arm" = xyes; then
3488  COND_FILTER_ARM_TRUE=
3489  COND_FILTER_ARM_FALSE='#'
3490else
3491  COND_FILTER_ARM_TRUE='#'
3492  COND_FILTER_ARM_FALSE=
3493fi
3494
3495 if test "x$enable_encoder_arm" = xyes; then
3496  COND_ENCODER_ARM_TRUE=
3497  COND_ENCODER_ARM_FALSE='#'
3498else
3499  COND_ENCODER_ARM_TRUE='#'
3500  COND_ENCODER_ARM_FALSE=
3501fi
3502
3503 if test "x$enable_decoder_arm" = xyes; then
3504  COND_DECODER_ARM_TRUE=
3505  COND_DECODER_ARM_FALSE='#'
3506else
3507  COND_DECODER_ARM_TRUE='#'
3508  COND_DECODER_ARM_FALSE=
3509fi
3510
3511 if test "x$enable_filter_armthumb" = xyes; then
3512  COND_FILTER_ARMTHUMB_TRUE=
3513  COND_FILTER_ARMTHUMB_FALSE='#'
3514else
3515  COND_FILTER_ARMTHUMB_TRUE='#'
3516  COND_FILTER_ARMTHUMB_FALSE=
3517fi
3518
3519 if test "x$enable_encoder_armthumb" = xyes; then
3520  COND_ENCODER_ARMTHUMB_TRUE=
3521  COND_ENCODER_ARMTHUMB_FALSE='#'
3522else
3523  COND_ENCODER_ARMTHUMB_TRUE='#'
3524  COND_ENCODER_ARMTHUMB_FALSE=
3525fi
3526
3527 if test "x$enable_decoder_armthumb" = xyes; then
3528  COND_DECODER_ARMTHUMB_TRUE=
3529  COND_DECODER_ARMTHUMB_FALSE='#'
3530else
3531  COND_DECODER_ARMTHUMB_TRUE='#'
3532  COND_DECODER_ARMTHUMB_FALSE=
3533fi
3534
3535 if test "x$enable_filter_sparc" = xyes; then
3536  COND_FILTER_SPARC_TRUE=
3537  COND_FILTER_SPARC_FALSE='#'
3538else
3539  COND_FILTER_SPARC_TRUE='#'
3540  COND_FILTER_SPARC_FALSE=
3541fi
3542
3543 if test "x$enable_encoder_sparc" = xyes; then
3544  COND_ENCODER_SPARC_TRUE=
3545  COND_ENCODER_SPARC_FALSE='#'
3546else
3547  COND_ENCODER_SPARC_TRUE='#'
3548  COND_ENCODER_SPARC_FALSE=
3549fi
3550
3551 if test "x$enable_decoder_sparc" = xyes; then
3552  COND_DECODER_SPARC_TRUE=
3553  COND_DECODER_SPARC_FALSE='#'
3554else
3555  COND_DECODER_SPARC_TRUE='#'
3556  COND_DECODER_SPARC_FALSE=
3557fi
3558
3559
3560# The so called "simple filters" share common code.
3561enable_filter_simple=no
3562enable_encoder_simple=no
3563enable_decoder_simple=no
3564test "x$enable_filter_x86" = xyes && enable_filter_simple=yes
3565test "x$enable_encoder_x86" = xyes && enable_encoder_simple=yes
3566test "x$enable_decoder_x86" = xyes && enable_decoder_simple=yes
3567test "x$enable_filter_powerpc" = xyes && enable_filter_simple=yes
3568test "x$enable_encoder_powerpc" = xyes && enable_encoder_simple=yes
3569test "x$enable_decoder_powerpc" = xyes && enable_decoder_simple=yes
3570test "x$enable_filter_ia64" = xyes && enable_filter_simple=yes
3571test "x$enable_encoder_ia64" = xyes && enable_encoder_simple=yes
3572test "x$enable_decoder_ia64" = xyes && enable_decoder_simple=yes
3573test "x$enable_filter_arm" = xyes && enable_filter_simple=yes
3574test "x$enable_encoder_arm" = xyes && enable_encoder_simple=yes
3575test "x$enable_decoder_arm" = xyes && enable_decoder_simple=yes
3576test "x$enable_filter_armthumb" = xyes && enable_filter_simple=yes
3577test "x$enable_encoder_armthumb" = xyes && enable_encoder_simple=yes
3578test "x$enable_decoder_armthumb" = xyes && enable_decoder_simple=yes
3579test "x$enable_filter_sparc" = xyes && enable_filter_simple=yes
3580test "x$enable_encoder_sparc" = xyes && enable_encoder_simple=yes
3581test "x$enable_decoder_sparc" = xyes && enable_decoder_simple=yes
3582 if test "x$enable_filter_simple" = xyes; then
3583  COND_FILTER_SIMPLE_TRUE=
3584  COND_FILTER_SIMPLE_FALSE='#'
3585else
3586  COND_FILTER_SIMPLE_TRUE='#'
3587  COND_FILTER_SIMPLE_FALSE=
3588fi
3589
3590 if test "x$enable_encoder_simple" = xyes; then
3591  COND_ENCODER_SIMPLE_TRUE=
3592  COND_ENCODER_SIMPLE_FALSE='#'
3593else
3594  COND_ENCODER_SIMPLE_TRUE='#'
3595  COND_ENCODER_SIMPLE_FALSE=
3596fi
3597
3598 if test "x$enable_decoder_simple" = xyes; then
3599  COND_DECODER_SIMPLE_TRUE=
3600  COND_DECODER_SIMPLE_FALSE='#'
3601else
3602  COND_DECODER_SIMPLE_TRUE='#'
3603  COND_DECODER_SIMPLE_FALSE=
3604fi
3605
3606
3607# LZ-based filters share common code.
3608enable_filter_lz=no
3609enable_encoder_lz=no
3610enable_decoder_lz=no
3611test "x$enable_filter_lzma1" = xyes && enable_filter_lz=yes
3612test "x$enable_encoder_lzma1" = xyes && enable_encoder_lz=yes
3613test "x$enable_decoder_lzma1" = xyes && enable_decoder_lz=yes
3614test "x$enable_filter_lzma2" = xyes && enable_filter_lz=yes
3615test "x$enable_encoder_lzma2" = xyes && enable_encoder_lz=yes
3616test "x$enable_decoder_lzma2" = xyes && enable_decoder_lz=yes
3617 if test "x$enable_filter_lz" = xyes; then
3618  COND_FILTER_LZ_TRUE=
3619  COND_FILTER_LZ_FALSE='#'
3620else
3621  COND_FILTER_LZ_TRUE='#'
3622  COND_FILTER_LZ_FALSE=
3623fi
3624
3625 if test "x$enable_encoder_lz" = xyes; then
3626  COND_ENCODER_LZ_TRUE=
3627  COND_ENCODER_LZ_FALSE='#'
3628else
3629  COND_ENCODER_LZ_TRUE='#'
3630  COND_ENCODER_LZ_FALSE=
3631fi
3632
3633 if test "x$enable_decoder_lz" = xyes; then
3634  COND_DECODER_LZ_TRUE=
3635  COND_DECODER_LZ_FALSE='#'
3636else
3637  COND_DECODER_LZ_TRUE='#'
3638  COND_DECODER_LZ_FALSE=
3639fi
3640
3641
3642
3643#################
3644# Match finders #
3645#################
3646
3647
3648
3649enable_match_finder_hc3=no
3650enable_match_finder_hc4=no
3651enable_match_finder_bt2=no
3652enable_match_finder_bt3=no
3653enable_match_finder_bt4=no
3654
3655
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which match finders to build" >&5
3657$as_echo_n "checking which match finders to build... " >&6; }
3658# Check whether --enable-match-finders was given.
3659if test "${enable_match_finders+set}" = set; then :
3660  enableval=$enable_match_finders;
3661else
3662  enable_match_finders=hc3,hc4,bt2,bt3,bt4
3663fi
3664
3665enable_match_finders=`echo "$enable_match_finders" | sed 's/,/ /g'`
3666if test "x$enable_encoder_lz" = xyes ; then
3667	for arg in $enable_match_finders
3668		do
3669		case $arg in
3670			hc3)
3671				enable_match_finder_hc3=yes
3672
3673$as_echo "#define HAVE_MF_HC3 1" >>confdefs.h
3674
3675				;;
3676			hc4)
3677				enable_match_finder_hc4=yes
3678
3679$as_echo "#define HAVE_MF_HC4 1" >>confdefs.h
3680
3681				;;
3682			bt2)
3683				enable_match_finder_bt2=yes
3684
3685$as_echo "#define HAVE_MF_BT2 1" >>confdefs.h
3686
3687				;;
3688			bt3)
3689				enable_match_finder_bt3=yes
3690
3691$as_echo "#define HAVE_MF_BT3 1" >>confdefs.h
3692
3693				;;
3694			bt4)
3695				enable_match_finder_bt4=yes
3696
3697$as_echo "#define HAVE_MF_BT4 1" >>confdefs.h
3698
3699				;;
3700			*)
3701				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3702$as_echo "" >&6; }
3703				as_fn_error $? "unknown match finder: $arg" "$LINENO" 5
3704				;;
3705		esac
3706	done
3707	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_match_finders" >&5
3708$as_echo "$enable_match_finders" >&6; }
3709else
3710	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: (none because not building any LZ-based encoder)" >&5
3711$as_echo "(none because not building any LZ-based encoder)" >&6; }
3712fi
3713
3714
3715####################
3716# Integrity checks #
3717####################
3718
3719
3720
3721enable_check_crc32=no
3722enable_check_crc64=no
3723enable_check_sha256=no
3724
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which integrity checks to build" >&5
3726$as_echo_n "checking which integrity checks to build... " >&6; }
3727# Check whether --enable-checks was given.
3728if test "${enable_checks+set}" = set; then :
3729  enableval=$enable_checks;
3730else
3731  enable_checks=crc32,crc64,sha256
3732fi
3733
3734enable_checks=`echo "$enable_checks" | sed 's/,/ /g'`
3735if test "x$enable_checks" = xno || test "x$enable_checks" = x; then
3736	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
3737$as_echo "(none)" >&6; }
3738else
3739	for arg in $enable_checks
3740	do
3741		case $arg in
3742			crc32)
3743				enable_check_crc32=yes
3744
3745$as_echo "#define HAVE_CHECK_CRC32 1" >>confdefs.h
3746
3747				;;
3748			crc64)
3749				enable_check_crc64=yes
3750
3751$as_echo "#define HAVE_CHECK_CRC64 1" >>confdefs.h
3752
3753				;;
3754			sha256)
3755				enable_check_sha256=yes
3756
3757$as_echo "#define HAVE_CHECK_SHA256 1" >>confdefs.h
3758
3759				;;
3760			*)
3761				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3762$as_echo "" >&6; }
3763				as_fn_error $? "unknown integrity check: $arg" "$LINENO" 5
3764				;;
3765		esac
3766	done
3767	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_checks" >&5
3768$as_echo "$enable_checks" >&6; }
3769fi
3770if test "x$enable_check_crc32" = xno ; then
3771	as_fn_error $? "For now, the CRC32 check must always be enabled." "$LINENO" 5
3772fi
3773
3774 if test "x$enable_check_crc32" = xyes; then
3775  COND_CHECK_CRC32_TRUE=
3776  COND_CHECK_CRC32_FALSE='#'
3777else
3778  COND_CHECK_CRC32_TRUE='#'
3779  COND_CHECK_CRC32_FALSE=
3780fi
3781
3782 if test "x$enable_check_crc64" = xyes; then
3783  COND_CHECK_CRC64_TRUE=
3784  COND_CHECK_CRC64_FALSE='#'
3785else
3786  COND_CHECK_CRC64_TRUE='#'
3787  COND_CHECK_CRC64_FALSE=
3788fi
3789
3790 if test "x$enable_check_sha256" = xyes; then
3791  COND_CHECK_SHA256_TRUE=
3792  COND_CHECK_SHA256_FALSE='#'
3793else
3794  COND_CHECK_SHA256_TRUE='#'
3795  COND_CHECK_SHA256_FALSE=
3796fi
3797
3798
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if external SHA-256 should be used" >&5
3800$as_echo_n "checking if external SHA-256 should be used... " >&6; }
3801# Check whether --enable-external-sha256 was given.
3802if test "${enable_external_sha256+set}" = set; then :
3803  enableval=$enable_external_sha256;
3804else
3805  enable_external_sha256=no
3806fi
3807
3808if test "x$enable_check_sha256" != "xyes"; then
3809	enable_external_sha256=no
3810fi
3811if test "x$enable_external_sha256" = xyes; then
3812	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3813$as_echo "yes" >&6; }
3814else
3815	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816$as_echo "no" >&6; }
3817fi
3818
3819
3820###########################
3821# Assembler optimizations #
3822###########################
3823
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler optimizations should be used" >&5
3825$as_echo_n "checking if assembler optimizations should be used... " >&6; }
3826# Check whether --enable-assembler was given.
3827if test "${enable_assembler+set}" = set; then :
3828  enableval=$enable_assembler;
3829else
3830  enable_assembler=yes
3831fi
3832
3833if test "x$enable_assembler" = xyes; then
3834	enable_assembler=no
3835	case $host_os in
3836		# Darwin should work too but only if not creating universal
3837		# binaries. Solaris x86 could work too but I cannot test.
3838		linux* | *bsd* | mingw* | cygwin | msys | *djgpp*)
3839			case $host_cpu in
3840				i?86)   enable_assembler=x86 ;;
3841				x86_64) enable_assembler=x86_64 ;;
3842			esac
3843			;;
3844	esac
3845fi
3846case $enable_assembler in
3847	x86 | x86_64 | no)
3848		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_assembler" >&5
3849$as_echo "$enable_assembler" >&6; }
3850		;;
3851	*)
3852		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3853$as_echo "" >&6; }
3854		as_fn_error $? "--enable-assembler accepts only \`yes', \`no', \`x86', or \`x86_64'." "$LINENO" 5
3855		;;
3856esac
3857 if test "x$enable_assembler" = xx86; then
3858  COND_ASM_X86_TRUE=
3859  COND_ASM_X86_FALSE='#'
3860else
3861  COND_ASM_X86_TRUE='#'
3862  COND_ASM_X86_FALSE=
3863fi
3864
3865 if test "x$enable_assembler" = xx86_64; then
3866  COND_ASM_X86_64_TRUE=
3867  COND_ASM_X86_64_FALSE='#'
3868else
3869  COND_ASM_X86_64_TRUE='#'
3870  COND_ASM_X86_64_FALSE=
3871fi
3872
3873
3874
3875#####################
3876# Size optimization #
3877#####################
3878
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if small size is preferred over speed" >&5
3880$as_echo_n "checking if small size is preferred over speed... " >&6; }
3881# Check whether --enable-small was given.
3882if test "${enable_small+set}" = set; then :
3883  enableval=$enable_small;
3884else
3885  enable_small=no
3886fi
3887
3888if test "x$enable_small" = xyes; then
3889
3890$as_echo "#define HAVE_SMALL 1" >>confdefs.h
3891
3892elif test "x$enable_small" != xno; then
3893	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3894$as_echo "" >&6; }
3895	as_fn_error $? "--enable-small accepts only \`yes' or \`no'" "$LINENO" 5
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_small" >&5
3898$as_echo "$enable_small" >&6; }
3899 if test "x$enable_small" = xyes; then
3900  COND_SMALL_TRUE=
3901  COND_SMALL_FALSE='#'
3902else
3903  COND_SMALL_TRUE='#'
3904  COND_SMALL_FALSE=
3905fi
3906
3907
3908
3909#############
3910# Threading #
3911#############
3912
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if threading support is wanted" >&5
3914$as_echo_n "checking if threading support is wanted... " >&6; }
3915# Check whether --enable-threads was given.
3916if test "${enable_threads+set}" = set; then :
3917  enableval=$enable_threads;
3918else
3919  enable_threads=yes
3920fi
3921
3922
3923if test "x$enable_threads" = xyes; then
3924	case $host_os in
3925		mingw*)
3926			case $host_cpu in
3927				i?86)   enable_threads=win95 ;;
3928				*)      enable_threads=vista ;;
3929			esac
3930			;;
3931		*)
3932			enable_threads=posix
3933			;;
3934	esac
3935fi
3936
3937case $enable_threads in
3938	posix | win95 | vista)
3939		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $enable_threads" >&5
3940$as_echo "yes, $enable_threads" >&6; }
3941		;;
3942	no)
3943		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944$as_echo "no" >&6; }
3945		;;
3946	*)
3947		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3948$as_echo "" >&6; }
3949		as_fn_error $? "--enable-threads only accepts \`yes', \`no', \`posix', \`win95', or \`vista'" "$LINENO" 5
3950		;;
3951esac
3952
3953# The Win95 threading lacks thread-safe one-time initialization function.
3954# It's better to disallow it instead of allowing threaded but thread-unsafe
3955# build.
3956if test "x$enable_small$enable_threads" = xyeswin95; then
3957	as_fn_error $? "--enable-threads=win95 and --enable-small cannot be
3958		used at the same time" "$LINENO" 5
3959fi
3960
3961# We use the actual result a little later.
3962
3963
3964#########################
3965# Assumed amount of RAM #
3966#########################
3967
3968# We use 128 MiB as default, because it will allow decompressing files
3969# created with "xz -9". It would be slightly safer to guess a lower value,
3970# but most systems, on which we don't have any way to determine the amount
3971# of RAM, will probably have at least 128 MiB of RAM.
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how much RAM to assume if the real amount is unknown" >&5
3973$as_echo_n "checking how much RAM to assume if the real amount is unknown... " >&6; }
3974# Check whether --enable-assume-ram was given.
3975if test "${enable_assume_ram+set}" = set; then :
3976  enableval=$enable_assume_ram;
3977else
3978  enable_assume_ram=128
3979fi
3980
3981assume_ram_check=`echo "$enable_assume_ram" | tr -d 0123456789`
3982if test -z "$enable_assume_ram" || test -n "$assume_ram_check"; then
3983	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3984$as_echo "" >&6; }
3985	as_fn_error $? "--enable-assume-ram accepts only an integer argument" "$LINENO" 5
3986fi
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_assume_ram MiB" >&5
3988$as_echo "$enable_assume_ram MiB" >&6; }
3989
3990cat >>confdefs.h <<_ACEOF
3991#define ASSUME_RAM $enable_assume_ram
3992_ACEOF
3993
3994
3995
3996#########################
3997# Components to install #
3998#########################
3999
4000# Check whether --enable-xz was given.
4001if test "${enable_xz+set}" = set; then :
4002  enableval=$enable_xz;
4003else
4004  enable_xz=yes
4005fi
4006
4007 if test x$enable_xz != xno; then
4008  COND_XZ_TRUE=
4009  COND_XZ_FALSE='#'
4010else
4011  COND_XZ_TRUE='#'
4012  COND_XZ_FALSE=
4013fi
4014
4015
4016# Check whether --enable-xzdec was given.
4017if test "${enable_xzdec+set}" = set; then :
4018  enableval=$enable_xzdec;
4019else
4020  enable_xzdec=yes
4021fi
4022
4023test "x$enable_decoders" = xno && enable_xzdec=no
4024 if test x$enable_xzdec != xno; then
4025  COND_XZDEC_TRUE=
4026  COND_XZDEC_FALSE='#'
4027else
4028  COND_XZDEC_TRUE='#'
4029  COND_XZDEC_FALSE=
4030fi
4031
4032
4033# Check whether --enable-lzmadec was given.
4034if test "${enable_lzmadec+set}" = set; then :
4035  enableval=$enable_lzmadec;
4036else
4037  enable_lzmadec=yes
4038fi
4039
4040test "x$enable_decoder_lzma1" = xno && enable_lzmadec=no
4041 if test x$enable_lzmadec != xno; then
4042  COND_LZMADEC_TRUE=
4043  COND_LZMADEC_FALSE='#'
4044else
4045  COND_LZMADEC_TRUE='#'
4046  COND_LZMADEC_FALSE=
4047fi
4048
4049
4050# Check whether --enable-lzmainfo was given.
4051if test "${enable_lzmainfo+set}" = set; then :
4052  enableval=$enable_lzmainfo;
4053else
4054  enable_lzmainfo=yes
4055fi
4056
4057test "x$enable_decoder_lzma1" = xno && enable_lzmainfo=no
4058 if test x$enable_lzmainfo != xno; then
4059  COND_LZMAINFO_TRUE=
4060  COND_LZMAINFO_FALSE='#'
4061else
4062  COND_LZMAINFO_TRUE='#'
4063  COND_LZMAINFO_FALSE=
4064fi
4065
4066
4067# Check whether --enable-lzma-links was given.
4068if test "${enable_lzma_links+set}" = set; then :
4069  enableval=$enable_lzma_links;
4070else
4071  enable_lzma_links=yes
4072fi
4073
4074 if test x$enable_lzma_links != xno; then
4075  COND_LZMALINKS_TRUE=
4076  COND_LZMALINKS_FALSE='#'
4077else
4078  COND_LZMALINKS_TRUE='#'
4079  COND_LZMALINKS_FALSE=
4080fi
4081
4082
4083# Check whether --enable-scripts was given.
4084if test "${enable_scripts+set}" = set; then :
4085  enableval=$enable_scripts;
4086else
4087  enable_scripts=yes
4088fi
4089
4090 if test x$enable_scripts != xno; then
4091  COND_SCRIPTS_TRUE=
4092  COND_SCRIPTS_FALSE='#'
4093else
4094  COND_SCRIPTS_TRUE='#'
4095  COND_SCRIPTS_FALSE=
4096fi
4097
4098
4099# Check whether --enable-doc was given.
4100if test "${enable_doc+set}" = set; then :
4101  enableval=$enable_doc;
4102else
4103  enable_doc=yes
4104fi
4105
4106 if test x$enable_doc != xno; then
4107  COND_DOC_TRUE=
4108  COND_DOC_FALSE='#'
4109else
4110  COND_DOC_TRUE='#'
4111  COND_DOC_FALSE=
4112fi
4113
4114
4115
4116#####################
4117# Symbol versioning #
4118#####################
4119
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if library symbol versioning should be used" >&5
4121$as_echo_n "checking if library symbol versioning should be used... " >&6; }
4122# Check whether --enable-symbol-versions was given.
4123if test "${enable_symbol_versions+set}" = set; then :
4124  enableval=$enable_symbol_versions;
4125else
4126  enable_symbol_versions=auto
4127fi
4128
4129if test "x$enable_symbol_versions" = xauto; then
4130	case $host_os in
4131		# NOTE: Even if one omits -gnu on GNU/Linux (e.g.
4132		# i486-slackware-linux), configure will (via config.sub)
4133		# append -gnu (e.g. i486-slackware-linux-gnu), and this
4134		# test will work correctly.
4135		gnu* | *-gnu* | freebsd*)
4136			enable_symbol_versions=yes
4137			;;
4138		*)
4139			enable_symbol_versions=no
4140			;;
4141	esac
4142fi
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_symbol_versions" >&5
4144$as_echo "$enable_symbol_versions" >&6; }
4145 if test "x$enable_symbol_versions" = xyes; then
4146  COND_SYMVERS_TRUE=
4147  COND_SYMVERS_FALSE='#'
4148else
4149  COND_SYMVERS_TRUE='#'
4150  COND_SYMVERS_FALSE=
4151fi
4152
4153
4154
4155##############
4156# Sandboxing #
4157##############
4158
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sandboxing should be used" >&5
4160$as_echo_n "checking if sandboxing should be used... " >&6; }
4161# Check whether --enable-sandbox was given.
4162if test "${enable_sandbox+set}" = set; then :
4163  enableval=$enable_sandbox;
4164else
4165  enable_sandbox=no
4166fi
4167
4168case $enable_sandbox in
4169	auto)
4170		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe (autodetect)" >&5
4171$as_echo "maybe (autodetect)" >&6; }
4172		;;
4173	no | capsicum)
4174		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sandbox" >&5
4175$as_echo "$enable_sandbox" >&6; }
4176		;;
4177	*)
4178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4179$as_echo "" >&6; }
4180		as_fn_error $? "--enable-sandbox only accepts \`auto', \`no', or \`capsicum'." "$LINENO" 5
4181		;;
4182esac
4183
4184
4185###############################################################################
4186# Checks for programs.
4187###############################################################################
4188
4189echo
4190
4191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a shell that conforms to POSIX" >&5
4192$as_echo_n "checking for a shell that conforms to POSIX... " >&6; }
4193if ${gl_cv_posix_shell+:} false; then :
4194  $as_echo_n "(cached) " >&6
4195else
4196  gl_test_posix_shell_script='
4197       func_return () {
4198	 (exit $1)
4199       }
4200       func_success () {
4201	 func_return 0
4202       }
4203       func_failure () {
4204	 func_return 1
4205       }
4206       func_ret_success () {
4207	 return 0
4208       }
4209       func_ret_failure () {
4210	 return 1
4211       }
4212       subshell_umask_sanity () {
4213	 (umask 22; (umask 0); test $(umask) -eq 22)
4214       }
4215       test "$(echo foo)" = foo &&
4216       func_success &&
4217       ! func_failure &&
4218       func_ret_success &&
4219       ! func_ret_failure &&
4220       (set x && func_ret_success y && test x = "$1") &&
4221       subshell_umask_sanity
4222     '
4223     for gl_cv_posix_shell in \
4224	 "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
4225       case $gl_cv_posix_shell in
4226         /*)
4227	   "$gl_cv_posix_shell" -c "$gl_test_posix_shell_script" 2>/dev/null \
4228	     && break;;
4229       esac
4230     done
4231fi
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_posix_shell" >&5
4233$as_echo "$gl_cv_posix_shell" >&6; }
4234
4235  if test "$gl_cv_posix_shell" != no; then
4236    POSIX_SHELL=$gl_cv_posix_shell
4237    PREFERABLY_POSIX_SHELL=$POSIX_SHELL
4238  else
4239    POSIX_SHELL=
4240    PREFERABLY_POSIX_SHELL=/bin/sh
4241  fi
4242
4243
4244
4245if test -z "$POSIX_SHELL" && test "x$enable_scripts" = xyes ; then
4246	as_fn_error $? "No POSIX conforming shell (sh) was found." "$LINENO" 5
4247fi
4248
4249echo
4250echo "Initializing Automake:"
4251
4252# We don't use "subdir-objects" yet because it breaks "make distclean" when
4253# dependencies are enabled (as of Automake 1.14.1) due to this bug:
4254# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17354
4255# The -Wno-unsupported is used to silence warnings about missing
4256# "subdir-objects".
4257am__api_version='1.15'
4258
4259# Find a good install program.  We prefer a C program (faster),
4260# so one script is as good as another.  But avoid the broken or
4261# incompatible versions:
4262# SysV /etc/install, /usr/sbin/install
4263# SunOS /usr/etc/install
4264# IRIX /sbin/install
4265# AIX /bin/install
4266# AmigaOS /C/install, which installs bootblocks on floppy discs
4267# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4268# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4269# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4270# OS/2's system install, which has a completely different semantic
4271# ./install, which can be erroneously created by make from ./install.sh.
4272# Reject install programs that cannot install multiple files.
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4274$as_echo_n "checking for a BSD-compatible install... " >&6; }
4275if test -z "$INSTALL"; then
4276if ${ac_cv_path_install+:} false; then :
4277  $as_echo_n "(cached) " >&6
4278else
4279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280for as_dir in $PATH
4281do
4282  IFS=$as_save_IFS
4283  test -z "$as_dir" && as_dir=.
4284    # Account for people who put trailing slashes in PATH elements.
4285case $as_dir/ in #((
4286  ./ | .// | /[cC]/* | \
4287  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4288  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4289  /usr/ucb/* ) ;;
4290  *)
4291    # OSF1 and SCO ODT 3.0 have their own names for install.
4292    # Don't use installbsd from OSF since it installs stuff as root
4293    # by default.
4294    for ac_prog in ginstall scoinst install; do
4295      for ac_exec_ext in '' $ac_executable_extensions; do
4296	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4297	  if test $ac_prog = install &&
4298	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4299	    # AIX install.  It has an incompatible calling convention.
4300	    :
4301	  elif test $ac_prog = install &&
4302	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4303	    # program-specific install script used by HP pwplus--don't use.
4304	    :
4305	  else
4306	    rm -rf conftest.one conftest.two conftest.dir
4307	    echo one > conftest.one
4308	    echo two > conftest.two
4309	    mkdir conftest.dir
4310	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4311	      test -s conftest.one && test -s conftest.two &&
4312	      test -s conftest.dir/conftest.one &&
4313	      test -s conftest.dir/conftest.two
4314	    then
4315	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4316	      break 3
4317	    fi
4318	  fi
4319	fi
4320      done
4321    done
4322    ;;
4323esac
4324
4325  done
4326IFS=$as_save_IFS
4327
4328rm -rf conftest.one conftest.two conftest.dir
4329
4330fi
4331  if test "${ac_cv_path_install+set}" = set; then
4332    INSTALL=$ac_cv_path_install
4333  else
4334    # As a last resort, use the slow shell script.  Don't cache a
4335    # value for INSTALL within a source directory, because that will
4336    # break other packages using the cache if that directory is
4337    # removed, or if the value is a relative name.
4338    INSTALL=$ac_install_sh
4339  fi
4340fi
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4342$as_echo "$INSTALL" >&6; }
4343
4344# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4345# It thinks the first close brace ends the variable substitution.
4346test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4347
4348test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4349
4350test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4351
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4353$as_echo_n "checking whether build environment is sane... " >&6; }
4354# Reject unsafe characters in $srcdir or the absolute working directory
4355# name.  Accept space and tab only in the latter.
4356am_lf='
4357'
4358case `pwd` in
4359  *[\\\"\#\$\&\'\`$am_lf]*)
4360    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4361esac
4362case $srcdir in
4363  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4364    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4365esac
4366
4367# Do 'set' in a subshell so we don't clobber the current shell's
4368# arguments.  Must try -L first in case configure is actually a
4369# symlink; some systems play weird games with the mod time of symlinks
4370# (eg FreeBSD returns the mod time of the symlink's containing
4371# directory).
4372if (
4373   am_has_slept=no
4374   for am_try in 1 2; do
4375     echo "timestamp, slept: $am_has_slept" > conftest.file
4376     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4377     if test "$*" = "X"; then
4378	# -L didn't work.
4379	set X `ls -t "$srcdir/configure" conftest.file`
4380     fi
4381     if test "$*" != "X $srcdir/configure conftest.file" \
4382	&& test "$*" != "X conftest.file $srcdir/configure"; then
4383
4384	# If neither matched, then we have a broken ls.  This can happen
4385	# if, for instance, CONFIG_SHELL is bash and it inherits a
4386	# broken ls alias from the environment.  This has actually
4387	# happened.  Such a system could not be considered "sane".
4388	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4389  alias in your environment" "$LINENO" 5
4390     fi
4391     if test "$2" = conftest.file || test $am_try -eq 2; then
4392       break
4393     fi
4394     # Just in case.
4395     sleep 1
4396     am_has_slept=yes
4397   done
4398   test "$2" = conftest.file
4399   )
4400then
4401   # Ok.
4402   :
4403else
4404   as_fn_error $? "newly created file is older than distributed files!
4405Check your system clock" "$LINENO" 5
4406fi
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4408$as_echo "yes" >&6; }
4409# If we didn't sleep, we still need to ensure time stamps of config.status and
4410# generated files are strictly newer.
4411am_sleep_pid=
4412if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4413  ( sleep 1 ) &
4414  am_sleep_pid=$!
4415fi
4416
4417rm -f conftest.file
4418
4419test "$program_prefix" != NONE &&
4420  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4421# Use a double $ so make ignores it.
4422test "$program_suffix" != NONE &&
4423  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4424# Double any \ or $.
4425# By default was `s,x,x', remove it if useless.
4426ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4427program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4428
4429# Expand $ac_aux_dir to an absolute path.
4430am_aux_dir=`cd "$ac_aux_dir" && pwd`
4431
4432if test x"${MISSING+set}" != xset; then
4433  case $am_aux_dir in
4434  *\ * | *\	*)
4435    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4436  *)
4437    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4438  esac
4439fi
4440# Use eval to expand $SHELL
4441if eval "$MISSING --is-lightweight"; then
4442  am_missing_run="$MISSING "
4443else
4444  am_missing_run=
4445  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4446$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4447fi
4448
4449if test x"${install_sh+set}" != xset; then
4450  case $am_aux_dir in
4451  *\ * | *\	*)
4452    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4453  *)
4454    install_sh="\${SHELL} $am_aux_dir/install-sh"
4455  esac
4456fi
4457
4458# Installed binaries are usually stripped using 'strip' when the user
4459# run "make install-strip".  However 'strip' might not be the right
4460# tool to use in cross-compilation environments, therefore Automake
4461# will honor the 'STRIP' environment variable to overrule this program.
4462if test "$cross_compiling" != no; then
4463  if test -n "$ac_tool_prefix"; then
4464  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4465set dummy ${ac_tool_prefix}strip; ac_word=$2
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467$as_echo_n "checking for $ac_word... " >&6; }
4468if ${ac_cv_prog_STRIP+:} false; then :
4469  $as_echo_n "(cached) " >&6
4470else
4471  if test -n "$STRIP"; then
4472  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4473else
4474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475for as_dir in $PATH
4476do
4477  IFS=$as_save_IFS
4478  test -z "$as_dir" && as_dir=.
4479    for ac_exec_ext in '' $ac_executable_extensions; do
4480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483    break 2
4484  fi
4485done
4486  done
4487IFS=$as_save_IFS
4488
4489fi
4490fi
4491STRIP=$ac_cv_prog_STRIP
4492if test -n "$STRIP"; then
4493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4494$as_echo "$STRIP" >&6; }
4495else
4496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497$as_echo "no" >&6; }
4498fi
4499
4500
4501fi
4502if test -z "$ac_cv_prog_STRIP"; then
4503  ac_ct_STRIP=$STRIP
4504  # Extract the first word of "strip", so it can be a program name with args.
4505set dummy strip; ac_word=$2
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507$as_echo_n "checking for $ac_word... " >&6; }
4508if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4509  $as_echo_n "(cached) " >&6
4510else
4511  if test -n "$ac_ct_STRIP"; then
4512  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4513else
4514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517  IFS=$as_save_IFS
4518  test -z "$as_dir" && as_dir=.
4519    for ac_exec_ext in '' $ac_executable_extensions; do
4520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521    ac_cv_prog_ac_ct_STRIP="strip"
4522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523    break 2
4524  fi
4525done
4526  done
4527IFS=$as_save_IFS
4528
4529fi
4530fi
4531ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4532if test -n "$ac_ct_STRIP"; then
4533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4534$as_echo "$ac_ct_STRIP" >&6; }
4535else
4536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537$as_echo "no" >&6; }
4538fi
4539
4540  if test "x$ac_ct_STRIP" = x; then
4541    STRIP=":"
4542  else
4543    case $cross_compiling:$ac_tool_warned in
4544yes:)
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547ac_tool_warned=yes ;;
4548esac
4549    STRIP=$ac_ct_STRIP
4550  fi
4551else
4552  STRIP="$ac_cv_prog_STRIP"
4553fi
4554
4555fi
4556INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4557
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4559$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4560if test -z "$MKDIR_P"; then
4561  if ${ac_cv_path_mkdir+:} false; then :
4562  $as_echo_n "(cached) " >&6
4563else
4564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4566do
4567  IFS=$as_save_IFS
4568  test -z "$as_dir" && as_dir=.
4569    for ac_prog in mkdir gmkdir; do
4570	 for ac_exec_ext in '' $ac_executable_extensions; do
4571	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4572	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4573	     'mkdir (GNU coreutils) '* | \
4574	     'mkdir (coreutils) '* | \
4575	     'mkdir (fileutils) '4.1*)
4576	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4577	       break 3;;
4578	   esac
4579	 done
4580       done
4581  done
4582IFS=$as_save_IFS
4583
4584fi
4585
4586  test -d ./--version && rmdir ./--version
4587  if test "${ac_cv_path_mkdir+set}" = set; then
4588    MKDIR_P="$ac_cv_path_mkdir -p"
4589  else
4590    # As a last resort, use the slow shell script.  Don't cache a
4591    # value for MKDIR_P within a source directory, because that will
4592    # break other packages using the cache if that directory is
4593    # removed, or if the value is a relative name.
4594    MKDIR_P="$ac_install_sh -d"
4595  fi
4596fi
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4598$as_echo "$MKDIR_P" >&6; }
4599
4600for ac_prog in gawk mawk nawk awk
4601do
4602  # Extract the first word of "$ac_prog", so it can be a program name with args.
4603set dummy $ac_prog; ac_word=$2
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605$as_echo_n "checking for $ac_word... " >&6; }
4606if ${ac_cv_prog_AWK+:} false; then :
4607  $as_echo_n "(cached) " >&6
4608else
4609  if test -n "$AWK"; then
4610  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4611else
4612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613for as_dir in $PATH
4614do
4615  IFS=$as_save_IFS
4616  test -z "$as_dir" && as_dir=.
4617    for ac_exec_ext in '' $ac_executable_extensions; do
4618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619    ac_cv_prog_AWK="$ac_prog"
4620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621    break 2
4622  fi
4623done
4624  done
4625IFS=$as_save_IFS
4626
4627fi
4628fi
4629AWK=$ac_cv_prog_AWK
4630if test -n "$AWK"; then
4631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4632$as_echo "$AWK" >&6; }
4633else
4634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635$as_echo "no" >&6; }
4636fi
4637
4638
4639  test -n "$AWK" && break
4640done
4641
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4643$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4644set x ${MAKE-make}
4645ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4646if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4647  $as_echo_n "(cached) " >&6
4648else
4649  cat >conftest.make <<\_ACEOF
4650SHELL = /bin/sh
4651all:
4652	@echo '@@@%%%=$(MAKE)=@@@%%%'
4653_ACEOF
4654# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4655case `${MAKE-make} -f conftest.make 2>/dev/null` in
4656  *@@@%%%=?*=@@@%%%*)
4657    eval ac_cv_prog_make_${ac_make}_set=yes;;
4658  *)
4659    eval ac_cv_prog_make_${ac_make}_set=no;;
4660esac
4661rm -f conftest.make
4662fi
4663if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4665$as_echo "yes" >&6; }
4666  SET_MAKE=
4667else
4668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669$as_echo "no" >&6; }
4670  SET_MAKE="MAKE=${MAKE-make}"
4671fi
4672
4673rm -rf .tst 2>/dev/null
4674mkdir .tst 2>/dev/null
4675if test -d .tst; then
4676  am__leading_dot=.
4677else
4678  am__leading_dot=_
4679fi
4680rmdir .tst 2>/dev/null
4681
4682# Check whether --enable-silent-rules was given.
4683if test "${enable_silent_rules+set}" = set; then :
4684  enableval=$enable_silent_rules;
4685fi
4686
4687case $enable_silent_rules in # (((
4688  yes) AM_DEFAULT_VERBOSITY=0;;
4689   no) AM_DEFAULT_VERBOSITY=1;;
4690    *) AM_DEFAULT_VERBOSITY=1;;
4691esac
4692am_make=${MAKE-make}
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4694$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4695if ${am_cv_make_support_nested_variables+:} false; then :
4696  $as_echo_n "(cached) " >&6
4697else
4698  if $as_echo 'TRUE=$(BAR$(V))
4699BAR0=false
4700BAR1=true
4701V=1
4702am__doit:
4703	@$(TRUE)
4704.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4705  am_cv_make_support_nested_variables=yes
4706else
4707  am_cv_make_support_nested_variables=no
4708fi
4709fi
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4711$as_echo "$am_cv_make_support_nested_variables" >&6; }
4712if test $am_cv_make_support_nested_variables = yes; then
4713    AM_V='$(V)'
4714  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4715else
4716  AM_V=$AM_DEFAULT_VERBOSITY
4717  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4718fi
4719AM_BACKSLASH='\'
4720
4721if test "`cd $srcdir && pwd`" != "`pwd`"; then
4722  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4723  # is not polluted with repeated "-I."
4724  am__isrc=' -I$(srcdir)'
4725  # test to see if srcdir already configured
4726  if test -f $srcdir/config.status; then
4727    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4728  fi
4729fi
4730
4731# test whether we have cygpath
4732if test -z "$CYGPATH_W"; then
4733  if (cygpath --version) >/dev/null 2>/dev/null; then
4734    CYGPATH_W='cygpath -w'
4735  else
4736    CYGPATH_W=echo
4737  fi
4738fi
4739
4740
4741# Define the identity of the package.
4742 PACKAGE='xz'
4743 VERSION='5.2.4'
4744
4745
4746cat >>confdefs.h <<_ACEOF
4747#define PACKAGE "$PACKAGE"
4748_ACEOF
4749
4750
4751cat >>confdefs.h <<_ACEOF
4752#define VERSION "$VERSION"
4753_ACEOF
4754
4755# Some tools Automake needs.
4756
4757ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4758
4759
4760AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4761
4762
4763AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4764
4765
4766AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4767
4768
4769MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4770
4771# For better backward compatibility.  To be removed once Automake 1.9.x
4772# dies out for good.  For more background, see:
4773# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4774# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4775mkdir_p='$(MKDIR_P)'
4776
4777# We need awk for the "check" target (and possibly the TAP driver).  The
4778# system "awk" is bad on some platforms.
4779# Always define AMTAR for backward compatibility.  Yes, it's still used
4780# in the wild :-(  We should find a proper way to deprecate it ...
4781AMTAR='$${TAR-tar}'
4782
4783
4784# We'll loop over all known methods to create a tar archive until one works.
4785_am_tools='gnutar  pax cpio none'
4786
4787am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4788
4789
4790
4791
4792
4793
4794# POSIX will say in a future version that running "rm -f" with no argument
4795# is OK; and we want to be able to make that assumption in our Makefile
4796# recipes.  So use an aggressive probe to check that the usage we want is
4797# actually supported "in the wild" to an acceptable degree.
4798# See automake bug#10828.
4799# To make any issue more visible, cause the running configure to be aborted
4800# by default if the 'rm' program in use doesn't match our expectations; the
4801# user can still override this though.
4802if rm -f && rm -fr && rm -rf; then : OK; else
4803  cat >&2 <<'END'
4804Oops!
4805
4806Your 'rm' program seems unable to run without file operands specified
4807on the command line, even when the '-f' option is present.  This is contrary
4808to the behaviour of most rm programs out there, and not conforming with
4809the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4810
4811Please tell bug-automake@gnu.org about your system, including the value
4812of your $PATH and any error possibly output before this message.  This
4813can help us improve future automake versions.
4814
4815END
4816  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4817    echo 'Configuration will proceed anyway, since you have set the' >&2
4818    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4819    echo >&2
4820  else
4821    cat >&2 <<'END'
4822Aborting the configuration process, to ensure you take notice of the issue.
4823
4824You can download and install GNU coreutils to get an 'rm' implementation
4825that behaves properly: <http://www.gnu.org/software/coreutils/>.
4826
4827If you want to complete the configuration process using your problematic
4828'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4829to "yes", and re-run configure.
4830
4831END
4832    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4833  fi
4834fi
4835
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4837$as_echo_n "checking whether ln -s works... " >&6; }
4838LN_S=$as_ln_s
4839if test "$LN_S" = "ln -s"; then
4840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4841$as_echo "yes" >&6; }
4842else
4843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4844$as_echo "no, using $LN_S" >&6; }
4845fi
4846
4847
4848DEPDIR="${am__leading_dot}deps"
4849
4850ac_config_commands="$ac_config_commands depfiles"
4851
4852
4853am_make=${MAKE-make}
4854cat > confinc << 'END'
4855am__doit:
4856	@echo this is the am__doit target
4857.PHONY: am__doit
4858END
4859# If we don't find an include directive, just comment out the code.
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4861$as_echo_n "checking for style of include used by $am_make... " >&6; }
4862am__include="#"
4863am__quote=
4864_am_result=none
4865# First try GNU make style include.
4866echo "include confinc" > confmf
4867# Ignore all kinds of additional output from 'make'.
4868case `$am_make -s -f confmf 2> /dev/null` in #(
4869*the\ am__doit\ target*)
4870  am__include=include
4871  am__quote=
4872  _am_result=GNU
4873  ;;
4874esac
4875# Now try BSD make style include.
4876if test "$am__include" = "#"; then
4877   echo '.include "confinc"' > confmf
4878   case `$am_make -s -f confmf 2> /dev/null` in #(
4879   *the\ am__doit\ target*)
4880     am__include=.include
4881     am__quote="\""
4882     _am_result=BSD
4883     ;;
4884   esac
4885fi
4886
4887
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4889$as_echo "$_am_result" >&6; }
4890rm -f confinc confmf
4891
4892# Check whether --enable-dependency-tracking was given.
4893if test "${enable_dependency_tracking+set}" = set; then :
4894  enableval=$enable_dependency_tracking;
4895fi
4896
4897if test "x$enable_dependency_tracking" != xno; then
4898  am_depcomp="$ac_aux_dir/depcomp"
4899  AMDEPBACKSLASH='\'
4900  am__nodep='_no'
4901fi
4902 if test "x$enable_dependency_tracking" != xno; then
4903  AMDEP_TRUE=
4904  AMDEP_FALSE='#'
4905else
4906  AMDEP_TRUE='#'
4907  AMDEP_FALSE=
4908fi
4909
4910
4911ac_ext=c
4912ac_cpp='$CPP $CPPFLAGS'
4913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916if test -n "$ac_tool_prefix"; then
4917  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4918set dummy ${ac_tool_prefix}gcc; ac_word=$2
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920$as_echo_n "checking for $ac_word... " >&6; }
4921if ${ac_cv_prog_CC+:} false; then :
4922  $as_echo_n "(cached) " >&6
4923else
4924  if test -n "$CC"; then
4925  ac_cv_prog_CC="$CC" # Let the user override the test.
4926else
4927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928for as_dir in $PATH
4929do
4930  IFS=$as_save_IFS
4931  test -z "$as_dir" && as_dir=.
4932    for ac_exec_ext in '' $ac_executable_extensions; do
4933  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936    break 2
4937  fi
4938done
4939  done
4940IFS=$as_save_IFS
4941
4942fi
4943fi
4944CC=$ac_cv_prog_CC
4945if test -n "$CC"; then
4946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4947$as_echo "$CC" >&6; }
4948else
4949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950$as_echo "no" >&6; }
4951fi
4952
4953
4954fi
4955if test -z "$ac_cv_prog_CC"; then
4956  ac_ct_CC=$CC
4957  # Extract the first word of "gcc", so it can be a program name with args.
4958set dummy gcc; ac_word=$2
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960$as_echo_n "checking for $ac_word... " >&6; }
4961if ${ac_cv_prog_ac_ct_CC+:} false; then :
4962  $as_echo_n "(cached) " >&6
4963else
4964  if test -n "$ac_ct_CC"; then
4965  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4966else
4967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968for as_dir in $PATH
4969do
4970  IFS=$as_save_IFS
4971  test -z "$as_dir" && as_dir=.
4972    for ac_exec_ext in '' $ac_executable_extensions; do
4973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974    ac_cv_prog_ac_ct_CC="gcc"
4975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976    break 2
4977  fi
4978done
4979  done
4980IFS=$as_save_IFS
4981
4982fi
4983fi
4984ac_ct_CC=$ac_cv_prog_ac_ct_CC
4985if test -n "$ac_ct_CC"; then
4986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4987$as_echo "$ac_ct_CC" >&6; }
4988else
4989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990$as_echo "no" >&6; }
4991fi
4992
4993  if test "x$ac_ct_CC" = x; then
4994    CC=""
4995  else
4996    case $cross_compiling:$ac_tool_warned in
4997yes:)
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5000ac_tool_warned=yes ;;
5001esac
5002    CC=$ac_ct_CC
5003  fi
5004else
5005  CC="$ac_cv_prog_CC"
5006fi
5007
5008if test -z "$CC"; then
5009          if test -n "$ac_tool_prefix"; then
5010    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5011set dummy ${ac_tool_prefix}cc; ac_word=$2
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013$as_echo_n "checking for $ac_word... " >&6; }
5014if ${ac_cv_prog_CC+:} false; then :
5015  $as_echo_n "(cached) " >&6
5016else
5017  if test -n "$CC"; then
5018  ac_cv_prog_CC="$CC" # Let the user override the test.
5019else
5020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH
5022do
5023  IFS=$as_save_IFS
5024  test -z "$as_dir" && as_dir=.
5025    for ac_exec_ext in '' $ac_executable_extensions; do
5026  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027    ac_cv_prog_CC="${ac_tool_prefix}cc"
5028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029    break 2
5030  fi
5031done
5032  done
5033IFS=$as_save_IFS
5034
5035fi
5036fi
5037CC=$ac_cv_prog_CC
5038if test -n "$CC"; then
5039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5040$as_echo "$CC" >&6; }
5041else
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043$as_echo "no" >&6; }
5044fi
5045
5046
5047  fi
5048fi
5049if test -z "$CC"; then
5050  # Extract the first word of "cc", so it can be a program name with args.
5051set dummy cc; ac_word=$2
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053$as_echo_n "checking for $ac_word... " >&6; }
5054if ${ac_cv_prog_CC+:} false; then :
5055  $as_echo_n "(cached) " >&6
5056else
5057  if test -n "$CC"; then
5058  ac_cv_prog_CC="$CC" # Let the user override the test.
5059else
5060  ac_prog_rejected=no
5061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062for as_dir in $PATH
5063do
5064  IFS=$as_save_IFS
5065  test -z "$as_dir" && as_dir=.
5066    for ac_exec_ext in '' $ac_executable_extensions; do
5067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5069       ac_prog_rejected=yes
5070       continue
5071     fi
5072    ac_cv_prog_CC="cc"
5073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074    break 2
5075  fi
5076done
5077  done
5078IFS=$as_save_IFS
5079
5080if test $ac_prog_rejected = yes; then
5081  # We found a bogon in the path, so make sure we never use it.
5082  set dummy $ac_cv_prog_CC
5083  shift
5084  if test $# != 0; then
5085    # We chose a different compiler from the bogus one.
5086    # However, it has the same basename, so the bogon will be chosen
5087    # first if we set CC to just the basename; use the full file name.
5088    shift
5089    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5090  fi
5091fi
5092fi
5093fi
5094CC=$ac_cv_prog_CC
5095if test -n "$CC"; then
5096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5097$as_echo "$CC" >&6; }
5098else
5099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100$as_echo "no" >&6; }
5101fi
5102
5103
5104fi
5105if test -z "$CC"; then
5106  if test -n "$ac_tool_prefix"; then
5107  for ac_prog in cl.exe
5108  do
5109    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5110set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112$as_echo_n "checking for $ac_word... " >&6; }
5113if ${ac_cv_prog_CC+:} false; then :
5114  $as_echo_n "(cached) " >&6
5115else
5116  if test -n "$CC"; then
5117  ac_cv_prog_CC="$CC" # Let the user override the test.
5118else
5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122  IFS=$as_save_IFS
5123  test -z "$as_dir" && as_dir=.
5124    for ac_exec_ext in '' $ac_executable_extensions; do
5125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128    break 2
5129  fi
5130done
5131  done
5132IFS=$as_save_IFS
5133
5134fi
5135fi
5136CC=$ac_cv_prog_CC
5137if test -n "$CC"; then
5138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5139$as_echo "$CC" >&6; }
5140else
5141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142$as_echo "no" >&6; }
5143fi
5144
5145
5146    test -n "$CC" && break
5147  done
5148fi
5149if test -z "$CC"; then
5150  ac_ct_CC=$CC
5151  for ac_prog in cl.exe
5152do
5153  # Extract the first word of "$ac_prog", so it can be a program name with args.
5154set dummy $ac_prog; ac_word=$2
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156$as_echo_n "checking for $ac_word... " >&6; }
5157if ${ac_cv_prog_ac_ct_CC+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160  if test -n "$ac_ct_CC"; then
5161  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5162else
5163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166  IFS=$as_save_IFS
5167  test -z "$as_dir" && as_dir=.
5168    for ac_exec_ext in '' $ac_executable_extensions; do
5169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170    ac_cv_prog_ac_ct_CC="$ac_prog"
5171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172    break 2
5173  fi
5174done
5175  done
5176IFS=$as_save_IFS
5177
5178fi
5179fi
5180ac_ct_CC=$ac_cv_prog_ac_ct_CC
5181if test -n "$ac_ct_CC"; then
5182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5183$as_echo "$ac_ct_CC" >&6; }
5184else
5185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186$as_echo "no" >&6; }
5187fi
5188
5189
5190  test -n "$ac_ct_CC" && break
5191done
5192
5193  if test "x$ac_ct_CC" = x; then
5194    CC=""
5195  else
5196    case $cross_compiling:$ac_tool_warned in
5197yes:)
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5200ac_tool_warned=yes ;;
5201esac
5202    CC=$ac_ct_CC
5203  fi
5204fi
5205
5206fi
5207
5208
5209test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5211as_fn_error $? "no acceptable C compiler found in \$PATH
5212See \`config.log' for more details" "$LINENO" 5; }
5213
5214# Provide some information about the compiler.
5215$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5216set X $ac_compile
5217ac_compiler=$2
5218for ac_option in --version -v -V -qversion; do
5219  { { ac_try="$ac_compiler $ac_option >&5"
5220case "(($ac_try" in
5221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222  *) ac_try_echo=$ac_try;;
5223esac
5224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5225$as_echo "$ac_try_echo"; } >&5
5226  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5227  ac_status=$?
5228  if test -s conftest.err; then
5229    sed '10a\
5230... rest of stderr output deleted ...
5231         10q' conftest.err >conftest.er1
5232    cat conftest.er1 >&5
5233  fi
5234  rm -f conftest.er1 conftest.err
5235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5236  test $ac_status = 0; }
5237done
5238
5239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240/* end confdefs.h.  */
5241
5242int
5243main ()
5244{
5245
5246  ;
5247  return 0;
5248}
5249_ACEOF
5250ac_clean_files_save=$ac_clean_files
5251ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5252# Try to create an executable without -o first, disregard a.out.
5253# It will help us diagnose broken compilers, and finding out an intuition
5254# of exeext.
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5256$as_echo_n "checking whether the C compiler works... " >&6; }
5257ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5258
5259# The possible output files:
5260ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5261
5262ac_rmfiles=
5263for ac_file in $ac_files
5264do
5265  case $ac_file in
5266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5267    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5268  esac
5269done
5270rm -f $ac_rmfiles
5271
5272if { { ac_try="$ac_link_default"
5273case "(($ac_try" in
5274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275  *) ac_try_echo=$ac_try;;
5276esac
5277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5278$as_echo "$ac_try_echo"; } >&5
5279  (eval "$ac_link_default") 2>&5
5280  ac_status=$?
5281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5282  test $ac_status = 0; }; then :
5283  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5284# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5285# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5286# so that the user can short-circuit this test for compilers unknown to
5287# Autoconf.
5288for ac_file in $ac_files ''
5289do
5290  test -f "$ac_file" || continue
5291  case $ac_file in
5292    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5293	;;
5294    [ab].out )
5295	# We found the default executable, but exeext='' is most
5296	# certainly right.
5297	break;;
5298    *.* )
5299	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5300	then :; else
5301	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5302	fi
5303	# We set ac_cv_exeext here because the later test for it is not
5304	# safe: cross compilers may not add the suffix if given an `-o'
5305	# argument, so we may need to know it at that point already.
5306	# Even if this section looks crufty: it has the advantage of
5307	# actually working.
5308	break;;
5309    * )
5310	break;;
5311  esac
5312done
5313test "$ac_cv_exeext" = no && ac_cv_exeext=
5314
5315else
5316  ac_file=''
5317fi
5318if test -z "$ac_file"; then :
5319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320$as_echo "no" >&6; }
5321$as_echo "$as_me: failed program was:" >&5
5322sed 's/^/| /' conftest.$ac_ext >&5
5323
5324{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5326as_fn_error 77 "C compiler cannot create executables
5327See \`config.log' for more details" "$LINENO" 5; }
5328else
5329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330$as_echo "yes" >&6; }
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5333$as_echo_n "checking for C compiler default output file name... " >&6; }
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5335$as_echo "$ac_file" >&6; }
5336ac_exeext=$ac_cv_exeext
5337
5338rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5339ac_clean_files=$ac_clean_files_save
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5341$as_echo_n "checking for suffix of executables... " >&6; }
5342if { { ac_try="$ac_link"
5343case "(($ac_try" in
5344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345  *) ac_try_echo=$ac_try;;
5346esac
5347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5348$as_echo "$ac_try_echo"; } >&5
5349  (eval "$ac_link") 2>&5
5350  ac_status=$?
5351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5352  test $ac_status = 0; }; then :
5353  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5354# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5355# work properly (i.e., refer to `conftest.exe'), while it won't with
5356# `rm'.
5357for ac_file in conftest.exe conftest conftest.*; do
5358  test -f "$ac_file" || continue
5359  case $ac_file in
5360    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5361    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5362	  break;;
5363    * ) break;;
5364  esac
5365done
5366else
5367  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5369as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5370See \`config.log' for more details" "$LINENO" 5; }
5371fi
5372rm -f conftest conftest$ac_cv_exeext
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5374$as_echo "$ac_cv_exeext" >&6; }
5375
5376rm -f conftest.$ac_ext
5377EXEEXT=$ac_cv_exeext
5378ac_exeext=$EXEEXT
5379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h.  */
5381#include <stdio.h>
5382int
5383main ()
5384{
5385FILE *f = fopen ("conftest.out", "w");
5386 return ferror (f) || fclose (f) != 0;
5387
5388  ;
5389  return 0;
5390}
5391_ACEOF
5392ac_clean_files="$ac_clean_files conftest.out"
5393# Check that the compiler produces executables we can run.  If not, either
5394# the compiler is broken, or we cross compile.
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5396$as_echo_n "checking whether we are cross compiling... " >&6; }
5397if test "$cross_compiling" != yes; then
5398  { { ac_try="$ac_link"
5399case "(($ac_try" in
5400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401  *) ac_try_echo=$ac_try;;
5402esac
5403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5404$as_echo "$ac_try_echo"; } >&5
5405  (eval "$ac_link") 2>&5
5406  ac_status=$?
5407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5408  test $ac_status = 0; }
5409  if { ac_try='./conftest$ac_cv_exeext'
5410  { { case "(($ac_try" in
5411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412  *) ac_try_echo=$ac_try;;
5413esac
5414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5415$as_echo "$ac_try_echo"; } >&5
5416  (eval "$ac_try") 2>&5
5417  ac_status=$?
5418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5419  test $ac_status = 0; }; }; then
5420    cross_compiling=no
5421  else
5422    if test "$cross_compiling" = maybe; then
5423	cross_compiling=yes
5424    else
5425	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5427as_fn_error $? "cannot run C compiled programs.
5428If you meant to cross compile, use \`--host'.
5429See \`config.log' for more details" "$LINENO" 5; }
5430    fi
5431  fi
5432fi
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5434$as_echo "$cross_compiling" >&6; }
5435
5436rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5437ac_clean_files=$ac_clean_files_save
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5439$as_echo_n "checking for suffix of object files... " >&6; }
5440if ${ac_cv_objext+:} false; then :
5441  $as_echo_n "(cached) " >&6
5442else
5443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h.  */
5445
5446int
5447main ()
5448{
5449
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454rm -f conftest.o conftest.obj
5455if { { ac_try="$ac_compile"
5456case "(($ac_try" in
5457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458  *) ac_try_echo=$ac_try;;
5459esac
5460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5461$as_echo "$ac_try_echo"; } >&5
5462  (eval "$ac_compile") 2>&5
5463  ac_status=$?
5464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5465  test $ac_status = 0; }; then :
5466  for ac_file in conftest.o conftest.obj conftest.*; do
5467  test -f "$ac_file" || continue;
5468  case $ac_file in
5469    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5470    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5471       break;;
5472  esac
5473done
5474else
5475  $as_echo "$as_me: failed program was:" >&5
5476sed 's/^/| /' conftest.$ac_ext >&5
5477
5478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5480as_fn_error $? "cannot compute suffix of object files: cannot compile
5481See \`config.log' for more details" "$LINENO" 5; }
5482fi
5483rm -f conftest.$ac_cv_objext conftest.$ac_ext
5484fi
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5486$as_echo "$ac_cv_objext" >&6; }
5487OBJEXT=$ac_cv_objext
5488ac_objext=$OBJEXT
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5490$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5491if ${ac_cv_c_compiler_gnu+:} false; then :
5492  $as_echo_n "(cached) " >&6
5493else
5494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496
5497int
5498main ()
5499{
5500#ifndef __GNUC__
5501       choke me
5502#endif
5503
5504  ;
5505  return 0;
5506}
5507_ACEOF
5508if ac_fn_c_try_compile "$LINENO"; then :
5509  ac_compiler_gnu=yes
5510else
5511  ac_compiler_gnu=no
5512fi
5513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514ac_cv_c_compiler_gnu=$ac_compiler_gnu
5515
5516fi
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5518$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5519if test $ac_compiler_gnu = yes; then
5520  GCC=yes
5521else
5522  GCC=
5523fi
5524ac_test_CFLAGS=${CFLAGS+set}
5525ac_save_CFLAGS=$CFLAGS
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5527$as_echo_n "checking whether $CC accepts -g... " >&6; }
5528if ${ac_cv_prog_cc_g+:} false; then :
5529  $as_echo_n "(cached) " >&6
5530else
5531  ac_save_c_werror_flag=$ac_c_werror_flag
5532   ac_c_werror_flag=yes
5533   ac_cv_prog_cc_g=no
5534   CFLAGS="-g"
5535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536/* end confdefs.h.  */
5537
5538int
5539main ()
5540{
5541
5542  ;
5543  return 0;
5544}
5545_ACEOF
5546if ac_fn_c_try_compile "$LINENO"; then :
5547  ac_cv_prog_cc_g=yes
5548else
5549  CFLAGS=""
5550      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551/* end confdefs.h.  */
5552
5553int
5554main ()
5555{
5556
5557  ;
5558  return 0;
5559}
5560_ACEOF
5561if ac_fn_c_try_compile "$LINENO"; then :
5562
5563else
5564  ac_c_werror_flag=$ac_save_c_werror_flag
5565	 CFLAGS="-g"
5566	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567/* end confdefs.h.  */
5568
5569int
5570main ()
5571{
5572
5573  ;
5574  return 0;
5575}
5576_ACEOF
5577if ac_fn_c_try_compile "$LINENO"; then :
5578  ac_cv_prog_cc_g=yes
5579fi
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581fi
5582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583fi
5584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585   ac_c_werror_flag=$ac_save_c_werror_flag
5586fi
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5588$as_echo "$ac_cv_prog_cc_g" >&6; }
5589if test "$ac_test_CFLAGS" = set; then
5590  CFLAGS=$ac_save_CFLAGS
5591elif test $ac_cv_prog_cc_g = yes; then
5592  if test "$GCC" = yes; then
5593    CFLAGS="-g -O2"
5594  else
5595    CFLAGS="-g"
5596  fi
5597else
5598  if test "$GCC" = yes; then
5599    CFLAGS="-O2"
5600  else
5601    CFLAGS=
5602  fi
5603fi
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5605$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5606if ${ac_cv_prog_cc_c89+:} false; then :
5607  $as_echo_n "(cached) " >&6
5608else
5609  ac_cv_prog_cc_c89=no
5610ac_save_CC=$CC
5611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612/* end confdefs.h.  */
5613#include <stdarg.h>
5614#include <stdio.h>
5615struct stat;
5616/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5617struct buf { int x; };
5618FILE * (*rcsopen) (struct buf *, struct stat *, int);
5619static char *e (p, i)
5620     char **p;
5621     int i;
5622{
5623  return p[i];
5624}
5625static char *f (char * (*g) (char **, int), char **p, ...)
5626{
5627  char *s;
5628  va_list v;
5629  va_start (v,p);
5630  s = g (p, va_arg (v,int));
5631  va_end (v);
5632  return s;
5633}
5634
5635/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5636   function prototypes and stuff, but not '\xHH' hex character constants.
5637   These don't provoke an error unfortunately, instead are silently treated
5638   as 'x'.  The following induces an error, until -std is added to get
5639   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5640   array size at least.  It's necessary to write '\x00'==0 to get something
5641   that's true only with -std.  */
5642int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5643
5644/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5645   inside strings and character constants.  */
5646#define FOO(x) 'x'
5647int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5648
5649int test (int i, double x);
5650struct s1 {int (*f) (int a);};
5651struct s2 {int (*f) (double a);};
5652int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5653int argc;
5654char **argv;
5655int
5656main ()
5657{
5658return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5659  ;
5660  return 0;
5661}
5662_ACEOF
5663for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5664	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5665do
5666  CC="$ac_save_CC $ac_arg"
5667  if ac_fn_c_try_compile "$LINENO"; then :
5668  ac_cv_prog_cc_c89=$ac_arg
5669fi
5670rm -f core conftest.err conftest.$ac_objext
5671  test "x$ac_cv_prog_cc_c89" != "xno" && break
5672done
5673rm -f conftest.$ac_ext
5674CC=$ac_save_CC
5675
5676fi
5677# AC_CACHE_VAL
5678case "x$ac_cv_prog_cc_c89" in
5679  x)
5680    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5681$as_echo "none needed" >&6; } ;;
5682  xno)
5683    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5684$as_echo "unsupported" >&6; } ;;
5685  *)
5686    CC="$CC $ac_cv_prog_cc_c89"
5687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5688$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5689esac
5690if test "x$ac_cv_prog_cc_c89" != xno; then :
5691
5692fi
5693
5694ac_ext=c
5695ac_cpp='$CPP $CPPFLAGS'
5696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699
5700ac_ext=c
5701ac_cpp='$CPP $CPPFLAGS'
5702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704ac_compiler_gnu=$ac_cv_c_compiler_gnu
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5706$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5707if ${am_cv_prog_cc_c_o+:} false; then :
5708  $as_echo_n "(cached) " >&6
5709else
5710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h.  */
5712
5713int
5714main ()
5715{
5716
5717  ;
5718  return 0;
5719}
5720_ACEOF
5721  # Make sure it works both with $CC and with simple cc.
5722  # Following AC_PROG_CC_C_O, we do the test twice because some
5723  # compilers refuse to overwrite an existing .o file with -o,
5724  # though they will create one.
5725  am_cv_prog_cc_c_o=yes
5726  for am_i in 1 2; do
5727    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5728   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } \
5732         && test -f conftest2.$ac_objext; then
5733      : OK
5734    else
5735      am_cv_prog_cc_c_o=no
5736      break
5737    fi
5738  done
5739  rm -f core conftest*
5740  unset am_i
5741fi
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5743$as_echo "$am_cv_prog_cc_c_o" >&6; }
5744if test "$am_cv_prog_cc_c_o" != yes; then
5745   # Losing compiler, so override with the script.
5746   # FIXME: It is wrong to rewrite CC.
5747   # But if we don't then we get into trouble of one sort or another.
5748   # A longer-term fix would be to have automake use am__CC in this case,
5749   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5750   CC="$am_aux_dir/compile $CC"
5751fi
5752ac_ext=c
5753ac_cpp='$CPP $CPPFLAGS'
5754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756ac_compiler_gnu=$ac_cv_c_compiler_gnu
5757
5758
5759depcc="$CC"   am_compiler_list=
5760
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5762$as_echo_n "checking dependency style of $depcc... " >&6; }
5763if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5767  # We make a subdir and do the tests there.  Otherwise we can end up
5768  # making bogus files that we don't know about and never remove.  For
5769  # instance it was reported that on HP-UX the gcc test will end up
5770  # making a dummy file named 'D' -- because '-MD' means "put the output
5771  # in D".
5772  rm -rf conftest.dir
5773  mkdir conftest.dir
5774  # Copy depcomp to subdir because otherwise we won't find it if we're
5775  # using a relative directory.
5776  cp "$am_depcomp" conftest.dir
5777  cd conftest.dir
5778  # We will build objects and dependencies in a subdirectory because
5779  # it helps to detect inapplicable dependency modes.  For instance
5780  # both Tru64's cc and ICC support -MD to output dependencies as a
5781  # side effect of compilation, but ICC will put the dependencies in
5782  # the current directory while Tru64 will put them in the object
5783  # directory.
5784  mkdir sub
5785
5786  am_cv_CC_dependencies_compiler_type=none
5787  if test "$am_compiler_list" = ""; then
5788     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5789  fi
5790  am__universal=false
5791  case " $depcc " in #(
5792     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5793     esac
5794
5795  for depmode in $am_compiler_list; do
5796    # Setup a source with many dependencies, because some compilers
5797    # like to wrap large dependency lists on column 80 (with \), and
5798    # we should not choose a depcomp mode which is confused by this.
5799    #
5800    # We need to recreate these files for each test, as the compiler may
5801    # overwrite some of them when testing with obscure command lines.
5802    # This happens at least with the AIX C compiler.
5803    : > sub/conftest.c
5804    for i in 1 2 3 4 5 6; do
5805      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5806      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5807      # Solaris 10 /bin/sh.
5808      echo '/* dummy */' > sub/conftst$i.h
5809    done
5810    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5811
5812    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5813    # mode.  It turns out that the SunPro C++ compiler does not properly
5814    # handle '-M -o', and we need to detect this.  Also, some Intel
5815    # versions had trouble with output in subdirs.
5816    am__obj=sub/conftest.${OBJEXT-o}
5817    am__minus_obj="-o $am__obj"
5818    case $depmode in
5819    gcc)
5820      # This depmode causes a compiler race in universal mode.
5821      test "$am__universal" = false || continue
5822      ;;
5823    nosideeffect)
5824      # After this tag, mechanisms are not by side-effect, so they'll
5825      # only be used when explicitly requested.
5826      if test "x$enable_dependency_tracking" = xyes; then
5827	continue
5828      else
5829	break
5830      fi
5831      ;;
5832    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5833      # This compiler won't grok '-c -o', but also, the minuso test has
5834      # not run yet.  These depmodes are late enough in the game, and
5835      # so weak that their functioning should not be impacted.
5836      am__obj=conftest.${OBJEXT-o}
5837      am__minus_obj=
5838      ;;
5839    none) break ;;
5840    esac
5841    if depmode=$depmode \
5842       source=sub/conftest.c object=$am__obj \
5843       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5844       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5845         >/dev/null 2>conftest.err &&
5846       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5847       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5848       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5849       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5850      # icc doesn't choke on unknown options, it will just issue warnings
5851      # or remarks (even with -Werror).  So we grep stderr for any message
5852      # that says an option was ignored or not supported.
5853      # When given -MP, icc 7.0 and 7.1 complain thusly:
5854      #   icc: Command line warning: ignoring option '-M'; no argument required
5855      # The diagnosis changed in icc 8.0:
5856      #   icc: Command line remark: option '-MP' not supported
5857      if (grep 'ignoring option' conftest.err ||
5858          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5859        am_cv_CC_dependencies_compiler_type=$depmode
5860        break
5861      fi
5862    fi
5863  done
5864
5865  cd ..
5866  rm -rf conftest.dir
5867else
5868  am_cv_CC_dependencies_compiler_type=none
5869fi
5870
5871fi
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5873$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5874CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5875
5876 if
5877  test "x$enable_dependency_tracking" != xno \
5878  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5879  am__fastdepCC_TRUE=
5880  am__fastdepCC_FALSE='#'
5881else
5882  am__fastdepCC_TRUE='#'
5883  am__fastdepCC_FALSE=
5884fi
5885
5886
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5888$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5889if ${ac_cv_prog_cc_c99+:} false; then :
5890  $as_echo_n "(cached) " >&6
5891else
5892  ac_cv_prog_cc_c99=no
5893ac_save_CC=$CC
5894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895/* end confdefs.h.  */
5896#include <stdarg.h>
5897#include <stdbool.h>
5898#include <stdlib.h>
5899#include <wchar.h>
5900#include <stdio.h>
5901
5902// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5903#define debug(...) fprintf (stderr, __VA_ARGS__)
5904#define showlist(...) puts (#__VA_ARGS__)
5905#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5906static void
5907test_varargs_macros (void)
5908{
5909  int x = 1234;
5910  int y = 5678;
5911  debug ("Flag");
5912  debug ("X = %d\n", x);
5913  showlist (The first, second, and third items.);
5914  report (x>y, "x is %d but y is %d", x, y);
5915}
5916
5917// Check long long types.
5918#define BIG64 18446744073709551615ull
5919#define BIG32 4294967295ul
5920#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5921#if !BIG_OK
5922  your preprocessor is broken;
5923#endif
5924#if BIG_OK
5925#else
5926  your preprocessor is broken;
5927#endif
5928static long long int bignum = -9223372036854775807LL;
5929static unsigned long long int ubignum = BIG64;
5930
5931struct incomplete_array
5932{
5933  int datasize;
5934  double data[];
5935};
5936
5937struct named_init {
5938  int number;
5939  const wchar_t *name;
5940  double average;
5941};
5942
5943typedef const char *ccp;
5944
5945static inline int
5946test_restrict (ccp restrict text)
5947{
5948  // See if C++-style comments work.
5949  // Iterate through items via the restricted pointer.
5950  // Also check for declarations in for loops.
5951  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5952    continue;
5953  return 0;
5954}
5955
5956// Check varargs and va_copy.
5957static void
5958test_varargs (const char *format, ...)
5959{
5960  va_list args;
5961  va_start (args, format);
5962  va_list args_copy;
5963  va_copy (args_copy, args);
5964
5965  const char *str;
5966  int number;
5967  float fnumber;
5968
5969  while (*format)
5970    {
5971      switch (*format++)
5972	{
5973	case 's': // string
5974	  str = va_arg (args_copy, const char *);
5975	  break;
5976	case 'd': // int
5977	  number = va_arg (args_copy, int);
5978	  break;
5979	case 'f': // float
5980	  fnumber = va_arg (args_copy, double);
5981	  break;
5982	default:
5983	  break;
5984	}
5985    }
5986  va_end (args_copy);
5987  va_end (args);
5988}
5989
5990int
5991main ()
5992{
5993
5994  // Check bool.
5995  _Bool success = false;
5996
5997  // Check restrict.
5998  if (test_restrict ("String literal") == 0)
5999    success = true;
6000  char *restrict newvar = "Another string";
6001
6002  // Check varargs.
6003  test_varargs ("s, d' f .", "string", 65, 34.234);
6004  test_varargs_macros ();
6005
6006  // Check flexible array members.
6007  struct incomplete_array *ia =
6008    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6009  ia->datasize = 10;
6010  for (int i = 0; i < ia->datasize; ++i)
6011    ia->data[i] = i * 1.234;
6012
6013  // Check named initializers.
6014  struct named_init ni = {
6015    .number = 34,
6016    .name = L"Test wide string",
6017    .average = 543.34343,
6018  };
6019
6020  ni.number = 58;
6021
6022  int dynamic_array[ni.number];
6023  dynamic_array[ni.number - 1] = 543;
6024
6025  // work around unused variable warnings
6026  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6027	  || dynamic_array[ni.number - 1] != 543);
6028
6029  ;
6030  return 0;
6031}
6032_ACEOF
6033for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6034do
6035  CC="$ac_save_CC $ac_arg"
6036  if ac_fn_c_try_compile "$LINENO"; then :
6037  ac_cv_prog_cc_c99=$ac_arg
6038fi
6039rm -f core conftest.err conftest.$ac_objext
6040  test "x$ac_cv_prog_cc_c99" != "xno" && break
6041done
6042rm -f conftest.$ac_ext
6043CC=$ac_save_CC
6044
6045fi
6046# AC_CACHE_VAL
6047case "x$ac_cv_prog_cc_c99" in
6048  x)
6049    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6050$as_echo "none needed" >&6; } ;;
6051  xno)
6052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6053$as_echo "unsupported" >&6; } ;;
6054  *)
6055    CC="$CC $ac_cv_prog_cc_c99"
6056    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6057$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6058esac
6059if test "x$ac_cv_prog_cc_c99" != xno; then :
6060
6061fi
6062
6063
6064if test x$ac_cv_prog_cc_c99 = xno ; then
6065	as_fn_error $? "No C99 compiler was found." "$LINENO" 5
6066fi
6067
6068
6069# By default we simply use the C compiler to build assembly code.
6070
6071test "${CCAS+set}" = set || CCAS=$CC
6072test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6073
6074
6075
6076depcc="$CCAS"   am_compiler_list=
6077
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6079$as_echo_n "checking dependency style of $depcc... " >&6; }
6080if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6081  $as_echo_n "(cached) " >&6
6082else
6083  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6084  # We make a subdir and do the tests there.  Otherwise we can end up
6085  # making bogus files that we don't know about and never remove.  For
6086  # instance it was reported that on HP-UX the gcc test will end up
6087  # making a dummy file named 'D' -- because '-MD' means "put the output
6088  # in D".
6089  rm -rf conftest.dir
6090  mkdir conftest.dir
6091  # Copy depcomp to subdir because otherwise we won't find it if we're
6092  # using a relative directory.
6093  cp "$am_depcomp" conftest.dir
6094  cd conftest.dir
6095  # We will build objects and dependencies in a subdirectory because
6096  # it helps to detect inapplicable dependency modes.  For instance
6097  # both Tru64's cc and ICC support -MD to output dependencies as a
6098  # side effect of compilation, but ICC will put the dependencies in
6099  # the current directory while Tru64 will put them in the object
6100  # directory.
6101  mkdir sub
6102
6103  am_cv_CCAS_dependencies_compiler_type=none
6104  if test "$am_compiler_list" = ""; then
6105     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6106  fi
6107  am__universal=false
6108
6109
6110  for depmode in $am_compiler_list; do
6111    # Setup a source with many dependencies, because some compilers
6112    # like to wrap large dependency lists on column 80 (with \), and
6113    # we should not choose a depcomp mode which is confused by this.
6114    #
6115    # We need to recreate these files for each test, as the compiler may
6116    # overwrite some of them when testing with obscure command lines.
6117    # This happens at least with the AIX C compiler.
6118    : > sub/conftest.c
6119    for i in 1 2 3 4 5 6; do
6120      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6121      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6122      # Solaris 10 /bin/sh.
6123      echo '/* dummy */' > sub/conftst$i.h
6124    done
6125    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6126
6127    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6128    # mode.  It turns out that the SunPro C++ compiler does not properly
6129    # handle '-M -o', and we need to detect this.  Also, some Intel
6130    # versions had trouble with output in subdirs.
6131    am__obj=sub/conftest.${OBJEXT-o}
6132    am__minus_obj="-o $am__obj"
6133    case $depmode in
6134    gcc)
6135      # This depmode causes a compiler race in universal mode.
6136      test "$am__universal" = false || continue
6137      ;;
6138    nosideeffect)
6139      # After this tag, mechanisms are not by side-effect, so they'll
6140      # only be used when explicitly requested.
6141      if test "x$enable_dependency_tracking" = xyes; then
6142	continue
6143      else
6144	break
6145      fi
6146      ;;
6147    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6148      # This compiler won't grok '-c -o', but also, the minuso test has
6149      # not run yet.  These depmodes are late enough in the game, and
6150      # so weak that their functioning should not be impacted.
6151      am__obj=conftest.${OBJEXT-o}
6152      am__minus_obj=
6153      ;;
6154    none) break ;;
6155    esac
6156    if depmode=$depmode \
6157       source=sub/conftest.c object=$am__obj \
6158       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6159       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6160         >/dev/null 2>conftest.err &&
6161       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6162       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6163       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6164       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6165      # icc doesn't choke on unknown options, it will just issue warnings
6166      # or remarks (even with -Werror).  So we grep stderr for any message
6167      # that says an option was ignored or not supported.
6168      # When given -MP, icc 7.0 and 7.1 complain thusly:
6169      #   icc: Command line warning: ignoring option '-M'; no argument required
6170      # The diagnosis changed in icc 8.0:
6171      #   icc: Command line remark: option '-MP' not supported
6172      if (grep 'ignoring option' conftest.err ||
6173          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6174        am_cv_CCAS_dependencies_compiler_type=$depmode
6175        break
6176      fi
6177    fi
6178  done
6179
6180  cd ..
6181  rm -rf conftest.dir
6182else
6183  am_cv_CCAS_dependencies_compiler_type=none
6184fi
6185
6186fi
6187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6188$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6189CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6190
6191 if
6192  test "x$enable_dependency_tracking" != xno \
6193  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6194  am__fastdepCCAS_TRUE=
6195  am__fastdepCCAS_FALSE='#'
6196else
6197  am__fastdepCCAS_TRUE='#'
6198  am__fastdepCCAS_FALSE=
6199fi
6200
6201
6202
6203ac_ext=c
6204ac_cpp='$CPP $CPPFLAGS'
6205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6209$as_echo_n "checking how to run the C preprocessor... " >&6; }
6210# On Suns, sometimes $CPP names a directory.
6211if test -n "$CPP" && test -d "$CPP"; then
6212  CPP=
6213fi
6214if test -z "$CPP"; then
6215  if ${ac_cv_prog_CPP+:} false; then :
6216  $as_echo_n "(cached) " >&6
6217else
6218      # Double quotes because CPP needs to be expanded
6219    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6220    do
6221      ac_preproc_ok=false
6222for ac_c_preproc_warn_flag in '' yes
6223do
6224  # Use a header file that comes with gcc, so configuring glibc
6225  # with a fresh cross-compiler works.
6226  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6227  # <limits.h> exists even on freestanding compilers.
6228  # On the NeXT, cc -E runs the code through the compiler's parser,
6229  # not just through cpp. "Syntax error" is here to catch this case.
6230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231/* end confdefs.h.  */
6232#ifdef __STDC__
6233# include <limits.h>
6234#else
6235# include <assert.h>
6236#endif
6237		     Syntax error
6238_ACEOF
6239if ac_fn_c_try_cpp "$LINENO"; then :
6240
6241else
6242  # Broken: fails on valid input.
6243continue
6244fi
6245rm -f conftest.err conftest.i conftest.$ac_ext
6246
6247  # OK, works on sane cases.  Now check whether nonexistent headers
6248  # can be detected and how.
6249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250/* end confdefs.h.  */
6251#include <ac_nonexistent.h>
6252_ACEOF
6253if ac_fn_c_try_cpp "$LINENO"; then :
6254  # Broken: success on invalid input.
6255continue
6256else
6257  # Passes both tests.
6258ac_preproc_ok=:
6259break
6260fi
6261rm -f conftest.err conftest.i conftest.$ac_ext
6262
6263done
6264# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6265rm -f conftest.i conftest.err conftest.$ac_ext
6266if $ac_preproc_ok; then :
6267  break
6268fi
6269
6270    done
6271    ac_cv_prog_CPP=$CPP
6272
6273fi
6274  CPP=$ac_cv_prog_CPP
6275else
6276  ac_cv_prog_CPP=$CPP
6277fi
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6279$as_echo "$CPP" >&6; }
6280ac_preproc_ok=false
6281for ac_c_preproc_warn_flag in '' yes
6282do
6283  # Use a header file that comes with gcc, so configuring glibc
6284  # with a fresh cross-compiler works.
6285  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6286  # <limits.h> exists even on freestanding compilers.
6287  # On the NeXT, cc -E runs the code through the compiler's parser,
6288  # not just through cpp. "Syntax error" is here to catch this case.
6289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290/* end confdefs.h.  */
6291#ifdef __STDC__
6292# include <limits.h>
6293#else
6294# include <assert.h>
6295#endif
6296		     Syntax error
6297_ACEOF
6298if ac_fn_c_try_cpp "$LINENO"; then :
6299
6300else
6301  # Broken: fails on valid input.
6302continue
6303fi
6304rm -f conftest.err conftest.i conftest.$ac_ext
6305
6306  # OK, works on sane cases.  Now check whether nonexistent headers
6307  # can be detected and how.
6308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309/* end confdefs.h.  */
6310#include <ac_nonexistent.h>
6311_ACEOF
6312if ac_fn_c_try_cpp "$LINENO"; then :
6313  # Broken: success on invalid input.
6314continue
6315else
6316  # Passes both tests.
6317ac_preproc_ok=:
6318break
6319fi
6320rm -f conftest.err conftest.i conftest.$ac_ext
6321
6322done
6323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6324rm -f conftest.i conftest.err conftest.$ac_ext
6325if $ac_preproc_ok; then :
6326
6327else
6328  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6330as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6331See \`config.log' for more details" "$LINENO" 5; }
6332fi
6333
6334ac_ext=c
6335ac_cpp='$CPP $CPPFLAGS'
6336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6338ac_compiler_gnu=$ac_cv_c_compiler_gnu
6339
6340
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6342$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6343if ${ac_cv_path_GREP+:} false; then :
6344  $as_echo_n "(cached) " >&6
6345else
6346  if test -z "$GREP"; then
6347  ac_path_GREP_found=false
6348  # Loop through the user's path and test for each of PROGNAME-LIST
6349  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6351do
6352  IFS=$as_save_IFS
6353  test -z "$as_dir" && as_dir=.
6354    for ac_prog in grep ggrep; do
6355    for ac_exec_ext in '' $ac_executable_extensions; do
6356      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6357      as_fn_executable_p "$ac_path_GREP" || continue
6358# Check for GNU ac_path_GREP and select it if it is found.
6359  # Check for GNU $ac_path_GREP
6360case `"$ac_path_GREP" --version 2>&1` in
6361*GNU*)
6362  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6363*)
6364  ac_count=0
6365  $as_echo_n 0123456789 >"conftest.in"
6366  while :
6367  do
6368    cat "conftest.in" "conftest.in" >"conftest.tmp"
6369    mv "conftest.tmp" "conftest.in"
6370    cp "conftest.in" "conftest.nl"
6371    $as_echo 'GREP' >> "conftest.nl"
6372    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6373    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6374    as_fn_arith $ac_count + 1 && ac_count=$as_val
6375    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6376      # Best one so far, save it but keep looking for a better one
6377      ac_cv_path_GREP="$ac_path_GREP"
6378      ac_path_GREP_max=$ac_count
6379    fi
6380    # 10*(2^10) chars as input seems more than enough
6381    test $ac_count -gt 10 && break
6382  done
6383  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6384esac
6385
6386      $ac_path_GREP_found && break 3
6387    done
6388  done
6389  done
6390IFS=$as_save_IFS
6391  if test -z "$ac_cv_path_GREP"; then
6392    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6393  fi
6394else
6395  ac_cv_path_GREP=$GREP
6396fi
6397
6398fi
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6400$as_echo "$ac_cv_path_GREP" >&6; }
6401 GREP="$ac_cv_path_GREP"
6402
6403
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6405$as_echo_n "checking for egrep... " >&6; }
6406if ${ac_cv_path_EGREP+:} false; then :
6407  $as_echo_n "(cached) " >&6
6408else
6409  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6410   then ac_cv_path_EGREP="$GREP -E"
6411   else
6412     if test -z "$EGREP"; then
6413  ac_path_EGREP_found=false
6414  # Loop through the user's path and test for each of PROGNAME-LIST
6415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6417do
6418  IFS=$as_save_IFS
6419  test -z "$as_dir" && as_dir=.
6420    for ac_prog in egrep; do
6421    for ac_exec_ext in '' $ac_executable_extensions; do
6422      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6423      as_fn_executable_p "$ac_path_EGREP" || continue
6424# Check for GNU ac_path_EGREP and select it if it is found.
6425  # Check for GNU $ac_path_EGREP
6426case `"$ac_path_EGREP" --version 2>&1` in
6427*GNU*)
6428  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6429*)
6430  ac_count=0
6431  $as_echo_n 0123456789 >"conftest.in"
6432  while :
6433  do
6434    cat "conftest.in" "conftest.in" >"conftest.tmp"
6435    mv "conftest.tmp" "conftest.in"
6436    cp "conftest.in" "conftest.nl"
6437    $as_echo 'EGREP' >> "conftest.nl"
6438    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6439    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6440    as_fn_arith $ac_count + 1 && ac_count=$as_val
6441    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6442      # Best one so far, save it but keep looking for a better one
6443      ac_cv_path_EGREP="$ac_path_EGREP"
6444      ac_path_EGREP_max=$ac_count
6445    fi
6446    # 10*(2^10) chars as input seems more than enough
6447    test $ac_count -gt 10 && break
6448  done
6449  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6450esac
6451
6452      $ac_path_EGREP_found && break 3
6453    done
6454  done
6455  done
6456IFS=$as_save_IFS
6457  if test -z "$ac_cv_path_EGREP"; then
6458    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6459  fi
6460else
6461  ac_cv_path_EGREP=$EGREP
6462fi
6463
6464   fi
6465fi
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6467$as_echo "$ac_cv_path_EGREP" >&6; }
6468 EGREP="$ac_cv_path_EGREP"
6469
6470
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6472$as_echo_n "checking for ANSI C header files... " >&6; }
6473if ${ac_cv_header_stdc+:} false; then :
6474  $as_echo_n "(cached) " >&6
6475else
6476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h.  */
6478#include <stdlib.h>
6479#include <stdarg.h>
6480#include <string.h>
6481#include <float.h>
6482
6483int
6484main ()
6485{
6486
6487  ;
6488  return 0;
6489}
6490_ACEOF
6491if ac_fn_c_try_compile "$LINENO"; then :
6492  ac_cv_header_stdc=yes
6493else
6494  ac_cv_header_stdc=no
6495fi
6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497
6498if test $ac_cv_header_stdc = yes; then
6499  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h.  */
6502#include <string.h>
6503
6504_ACEOF
6505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6506  $EGREP "memchr" >/dev/null 2>&1; then :
6507
6508else
6509  ac_cv_header_stdc=no
6510fi
6511rm -f conftest*
6512
6513fi
6514
6515if test $ac_cv_header_stdc = yes; then
6516  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518/* end confdefs.h.  */
6519#include <stdlib.h>
6520
6521_ACEOF
6522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6523  $EGREP "free" >/dev/null 2>&1; then :
6524
6525else
6526  ac_cv_header_stdc=no
6527fi
6528rm -f conftest*
6529
6530fi
6531
6532if test $ac_cv_header_stdc = yes; then
6533  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6534  if test "$cross_compiling" = yes; then :
6535  :
6536else
6537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h.  */
6539#include <ctype.h>
6540#include <stdlib.h>
6541#if ((' ' & 0x0FF) == 0x020)
6542# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6543# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6544#else
6545# define ISLOWER(c) \
6546		   (('a' <= (c) && (c) <= 'i') \
6547		     || ('j' <= (c) && (c) <= 'r') \
6548		     || ('s' <= (c) && (c) <= 'z'))
6549# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6550#endif
6551
6552#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6553int
6554main ()
6555{
6556  int i;
6557  for (i = 0; i < 256; i++)
6558    if (XOR (islower (i), ISLOWER (i))
6559	|| toupper (i) != TOUPPER (i))
6560      return 2;
6561  return 0;
6562}
6563_ACEOF
6564if ac_fn_c_try_run "$LINENO"; then :
6565
6566else
6567  ac_cv_header_stdc=no
6568fi
6569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6570  conftest.$ac_objext conftest.beam conftest.$ac_ext
6571fi
6572
6573fi
6574fi
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6576$as_echo "$ac_cv_header_stdc" >&6; }
6577if test $ac_cv_header_stdc = yes; then
6578
6579$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6580
6581fi
6582
6583# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6584for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6585		  inttypes.h stdint.h unistd.h
6586do :
6587  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6588ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6589"
6590if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6591  cat >>confdefs.h <<_ACEOF
6592#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6593_ACEOF
6594
6595fi
6596
6597done
6598
6599
6600
6601  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6602if test "x$ac_cv_header_minix_config_h" = xyes; then :
6603  MINIX=yes
6604else
6605  MINIX=
6606fi
6607
6608
6609  if test "$MINIX" = yes; then
6610
6611$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6612
6613
6614$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6615
6616
6617$as_echo "#define _MINIX 1" >>confdefs.h
6618
6619  fi
6620
6621
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6623$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6624if ${ac_cv_safe_to_define___extensions__+:} false; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629
6630#         define __EXTENSIONS__ 1
6631          $ac_includes_default
6632int
6633main ()
6634{
6635
6636  ;
6637  return 0;
6638}
6639_ACEOF
6640if ac_fn_c_try_compile "$LINENO"; then :
6641  ac_cv_safe_to_define___extensions__=yes
6642else
6643  ac_cv_safe_to_define___extensions__=no
6644fi
6645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646fi
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6648$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6649  test $ac_cv_safe_to_define___extensions__ = yes &&
6650    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6651
6652  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6653
6654  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6655
6656  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6657
6658  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6659
6660
6661
6662case $enable_threads in
6663	posix)
6664		echo
6665		echo "POSIX threading support:"
6666
6667
6668ac_ext=c
6669ac_cpp='$CPP $CPPFLAGS'
6670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6672ac_compiler_gnu=$ac_cv_c_compiler_gnu
6673
6674ax_pthread_ok=no
6675
6676# We used to check for pthread.h first, but this fails if pthread.h
6677# requires special compiler flags (e.g. on True64 or Sequent).
6678# It gets checked for in the link test anyway.
6679
6680# First of all, check if the user has set any of the PTHREAD_LIBS,
6681# etcetera environment variables, and if threads linking works using
6682# them:
6683if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
6684        save_CFLAGS="$CFLAGS"
6685        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6686        save_LIBS="$LIBS"
6687        LIBS="$PTHREAD_LIBS $LIBS"
6688        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
6689$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
6690        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692
6693/* Override any GCC internal prototype to avoid an error.
6694   Use char because int might match the return type of a GCC
6695   builtin and then its argument prototype would still apply.  */
6696#ifdef __cplusplus
6697extern "C"
6698#endif
6699char pthread_join ();
6700int
6701main ()
6702{
6703return pthread_join ();
6704  ;
6705  return 0;
6706}
6707_ACEOF
6708if ac_fn_c_try_link "$LINENO"; then :
6709  ax_pthread_ok=yes
6710fi
6711rm -f core conftest.err conftest.$ac_objext \
6712    conftest$ac_exeext conftest.$ac_ext
6713        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6714$as_echo "$ax_pthread_ok" >&6; }
6715        if test x"$ax_pthread_ok" = xno; then
6716                PTHREAD_LIBS=""
6717                PTHREAD_CFLAGS=""
6718        fi
6719        LIBS="$save_LIBS"
6720        CFLAGS="$save_CFLAGS"
6721fi
6722
6723# We must check for the threads library under a number of different
6724# names; the ordering is very important because some systems
6725# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6726# libraries is broken (non-POSIX).
6727
6728# Create a list of thread flags to try.  Items starting with a "-" are
6729# C compiler flags, and other items are library names, except for "none"
6730# which indicates that we try without any flags at all, and "pthread-config"
6731# which is a program returning the flags for the Pth emulation library.
6732
6733ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6734
6735# The ordering *is* (sometimes) important.  Some notes on the
6736# individual items follow:
6737
6738# pthreads: AIX (must check this before -lpthread)
6739# none: in case threads are in libc; should be tried before -Kthread and
6740#       other compiler flags to prevent continual compiler warnings
6741# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6742# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6743# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6744# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
6745# -pthreads: Solaris/gcc
6746# -mthreads: Mingw32/gcc, Lynx/gcc
6747# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6748#      doesn't hurt to check since this sometimes defines pthreads too;
6749#      also defines -D_REENTRANT)
6750#      ... -mt is also the pthreads flag for HP/aCC
6751# pthread: Linux, etcetera
6752# --thread-safe: KAI C++
6753# pthread-config: use pthread-config program (for GNU Pth library)
6754
6755case ${host_os} in
6756        solaris*)
6757
6758        # On Solaris (at least, for some versions), libc contains stubbed
6759        # (non-functional) versions of the pthreads routines, so link-based
6760        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
6761        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
6762        # a function called by this macro, so we could check for that, but
6763        # who knows whether they'll stub that too in a future libc.)  So,
6764        # we'll just look for -pthreads and -lpthread first:
6765
6766        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
6767        ;;
6768
6769        darwin*)
6770        ax_pthread_flags="-pthread $ax_pthread_flags"
6771        ;;
6772esac
6773
6774# Clang doesn't consider unrecognized options an error unless we specify
6775# -Werror. We throw in some extra Clang-specific options to ensure that
6776# this doesn't happen for GCC, which also accepts -Werror.
6777
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
6779$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
6780save_CFLAGS="$CFLAGS"
6781ax_pthread_extra_flags="-Werror"
6782CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
6783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784/* end confdefs.h.  */
6785int foo(void);
6786int
6787main ()
6788{
6789foo()
6790  ;
6791  return 0;
6792}
6793_ACEOF
6794if ac_fn_c_try_compile "$LINENO"; then :
6795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6796$as_echo "yes" >&6; }
6797else
6798  ax_pthread_extra_flags=
6799                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800$as_echo "no" >&6; }
6801fi
6802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803CFLAGS="$save_CFLAGS"
6804
6805if test x"$ax_pthread_ok" = xno; then
6806for flag in $ax_pthread_flags; do
6807
6808        case $flag in
6809                none)
6810                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6811$as_echo_n "checking whether pthreads work without any flags... " >&6; }
6812                ;;
6813
6814                -*)
6815                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
6816$as_echo_n "checking whether pthreads work with $flag... " >&6; }
6817                PTHREAD_CFLAGS="$flag"
6818                ;;
6819
6820                pthread-config)
6821                # Extract the first word of "pthread-config", so it can be a program name with args.
6822set dummy pthread-config; ac_word=$2
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824$as_echo_n "checking for $ac_word... " >&6; }
6825if ${ac_cv_prog_ax_pthread_config+:} false; then :
6826  $as_echo_n "(cached) " >&6
6827else
6828  if test -n "$ax_pthread_config"; then
6829  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6830else
6831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832for as_dir in $PATH
6833do
6834  IFS=$as_save_IFS
6835  test -z "$as_dir" && as_dir=.
6836    for ac_exec_ext in '' $ac_executable_extensions; do
6837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838    ac_cv_prog_ax_pthread_config="yes"
6839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840    break 2
6841  fi
6842done
6843  done
6844IFS=$as_save_IFS
6845
6846  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6847fi
6848fi
6849ax_pthread_config=$ac_cv_prog_ax_pthread_config
6850if test -n "$ax_pthread_config"; then
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6852$as_echo "$ax_pthread_config" >&6; }
6853else
6854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856fi
6857
6858
6859                if test x"$ax_pthread_config" = xno; then continue; fi
6860                PTHREAD_CFLAGS="`pthread-config --cflags`"
6861                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6862                ;;
6863
6864                *)
6865                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
6866$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
6867                PTHREAD_LIBS="-l$flag"
6868                ;;
6869        esac
6870
6871        save_LIBS="$LIBS"
6872        save_CFLAGS="$CFLAGS"
6873        LIBS="$PTHREAD_LIBS $LIBS"
6874        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
6875
6876        # Check for various functions.  We must include pthread.h,
6877        # since some functions may be macros.  (On the Sequent, we
6878        # need a special flag -Kthread to make this header compile.)
6879        # We check for pthread_join because it is in -lpthread on IRIX
6880        # while pthread_create is in libc.  We check for pthread_attr_init
6881        # due to DEC craziness with -lpthreads.  We check for
6882        # pthread_cleanup_push because it is one of the few pthread
6883        # functions on Solaris that doesn't have a non-functional libc stub.
6884        # We try pthread_create on general principles.
6885        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886/* end confdefs.h.  */
6887#include <pthread.h>
6888                        static void routine(void *a) { a = 0; }
6889                        static void *start_routine(void *a) { return a; }
6890int
6891main ()
6892{
6893pthread_t th; pthread_attr_t attr;
6894                        pthread_create(&th, 0, start_routine, 0);
6895                        pthread_join(th, 0);
6896                        pthread_attr_init(&attr);
6897                        pthread_cleanup_push(routine, 0);
6898                        pthread_cleanup_pop(0) /* ; */
6899  ;
6900  return 0;
6901}
6902_ACEOF
6903if ac_fn_c_try_link "$LINENO"; then :
6904  ax_pthread_ok=yes
6905fi
6906rm -f core conftest.err conftest.$ac_objext \
6907    conftest$ac_exeext conftest.$ac_ext
6908
6909        LIBS="$save_LIBS"
6910        CFLAGS="$save_CFLAGS"
6911
6912        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6913$as_echo "$ax_pthread_ok" >&6; }
6914        if test "x$ax_pthread_ok" = xyes; then
6915                break;
6916        fi
6917
6918        PTHREAD_LIBS=""
6919        PTHREAD_CFLAGS=""
6920done
6921fi
6922
6923# Various other checks:
6924if test "x$ax_pthread_ok" = xyes; then
6925        save_LIBS="$LIBS"
6926        LIBS="$PTHREAD_LIBS $LIBS"
6927        save_CFLAGS="$CFLAGS"
6928        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6929
6930        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6931        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6932$as_echo_n "checking for joinable pthread attribute... " >&6; }
6933        attr_name=unknown
6934        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6935            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h.  */
6937#include <pthread.h>
6938int
6939main ()
6940{
6941int attr = $attr; return attr /* ; */
6942  ;
6943  return 0;
6944}
6945_ACEOF
6946if ac_fn_c_try_link "$LINENO"; then :
6947  attr_name=$attr; break
6948fi
6949rm -f core conftest.err conftest.$ac_objext \
6950    conftest$ac_exeext conftest.$ac_ext
6951        done
6952        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
6953$as_echo "$attr_name" >&6; }
6954        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
6955
6956cat >>confdefs.h <<_ACEOF
6957#define PTHREAD_CREATE_JOINABLE $attr_name
6958_ACEOF
6959
6960        fi
6961
6962        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
6963$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
6964        flag=no
6965        case ${host_os} in
6966            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
6967            osf* | hpux*) flag="-D_REENTRANT";;
6968            solaris*)
6969            if test "$GCC" = "yes"; then
6970                flag="-D_REENTRANT"
6971            else
6972                # TODO: What about Clang on Solaris?
6973                flag="-mt -D_REENTRANT"
6974            fi
6975            ;;
6976        esac
6977        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
6978$as_echo "$flag" >&6; }
6979        if test "x$flag" != xno; then
6980            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
6981        fi
6982
6983        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6984$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6985if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
6986  $as_echo_n "(cached) " >&6
6987else
6988
6989                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990/* end confdefs.h.  */
6991#include <pthread.h>
6992int
6993main ()
6994{
6995int i = PTHREAD_PRIO_INHERIT;
6996  ;
6997  return 0;
6998}
6999_ACEOF
7000if ac_fn_c_try_link "$LINENO"; then :
7001  ax_cv_PTHREAD_PRIO_INHERIT=yes
7002else
7003  ax_cv_PTHREAD_PRIO_INHERIT=no
7004fi
7005rm -f core conftest.err conftest.$ac_objext \
7006    conftest$ac_exeext conftest.$ac_ext
7007
7008fi
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7010$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7011        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
7012
7013$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7014
7015fi
7016
7017        LIBS="$save_LIBS"
7018        CFLAGS="$save_CFLAGS"
7019
7020        # More AIX lossage: compile with *_r variant
7021        if test "x$GCC" != xyes; then
7022            case $host_os in
7023                aix*)
7024                case "x/$CC" in #(
7025  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7026    #handle absolute path differently from PATH based program lookup
7027                   case "x$CC" in #(
7028  x/*) :
7029    if as_fn_executable_p ${CC}_r; then :
7030  PTHREAD_CC="${CC}_r"
7031fi ;; #(
7032  *) :
7033    for ac_prog in ${CC}_r
7034do
7035  # Extract the first word of "$ac_prog", so it can be a program name with args.
7036set dummy $ac_prog; ac_word=$2
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038$as_echo_n "checking for $ac_word... " >&6; }
7039if ${ac_cv_prog_PTHREAD_CC+:} false; then :
7040  $as_echo_n "(cached) " >&6
7041else
7042  if test -n "$PTHREAD_CC"; then
7043  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7044else
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048  IFS=$as_save_IFS
7049  test -z "$as_dir" && as_dir=.
7050    for ac_exec_ext in '' $ac_executable_extensions; do
7051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052    ac_cv_prog_PTHREAD_CC="$ac_prog"
7053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054    break 2
7055  fi
7056done
7057  done
7058IFS=$as_save_IFS
7059
7060fi
7061fi
7062PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7063if test -n "$PTHREAD_CC"; then
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7065$as_echo "$PTHREAD_CC" >&6; }
7066else
7067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068$as_echo "no" >&6; }
7069fi
7070
7071
7072  test -n "$PTHREAD_CC" && break
7073done
7074test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7075 ;;
7076esac ;; #(
7077  *) :
7078     ;;
7079esac
7080                ;;
7081            esac
7082        fi
7083fi
7084
7085test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7086
7087
7088
7089
7090
7091# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7092if test x"$ax_pthread_ok" = xyes; then
7093        :
7094        :
7095else
7096        ax_pthread_ok=no
7097
7098fi
7099ac_ext=c
7100ac_cpp='$CPP $CPPFLAGS'
7101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103ac_compiler_gnu=$ac_cv_c_compiler_gnu
7104
7105 		LIBS="$LIBS $PTHREAD_LIBS"
7106		AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
7107
7108
7109
7110$as_echo "#define MYTHREAD_POSIX 1" >>confdefs.h
7111
7112
7113		# These are nice to have but not mandatory.
7114		#
7115		# FIXME: xz uses clock_gettime if it is available and can do
7116		# it even when threading is disabled. Moving this outside
7117		# of pthread detection may be undesirable because then
7118		# liblzma may get linked against librt even when librt isn't
7119		# needed by liblzma.
7120		OLD_CFLAGS=$CFLAGS
7121		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7122		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7123$as_echo_n "checking for library containing clock_gettime... " >&6; }
7124if ${ac_cv_search_clock_gettime+:} false; then :
7125  $as_echo_n "(cached) " >&6
7126else
7127  ac_func_search_save_LIBS=$LIBS
7128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129/* end confdefs.h.  */
7130
7131/* Override any GCC internal prototype to avoid an error.
7132   Use char because int might match the return type of a GCC
7133   builtin and then its argument prototype would still apply.  */
7134#ifdef __cplusplus
7135extern "C"
7136#endif
7137char clock_gettime ();
7138int
7139main ()
7140{
7141return clock_gettime ();
7142  ;
7143  return 0;
7144}
7145_ACEOF
7146for ac_lib in '' rt; do
7147  if test -z "$ac_lib"; then
7148    ac_res="none required"
7149  else
7150    ac_res=-l$ac_lib
7151    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7152  fi
7153  if ac_fn_c_try_link "$LINENO"; then :
7154  ac_cv_search_clock_gettime=$ac_res
7155fi
7156rm -f core conftest.err conftest.$ac_objext \
7157    conftest$ac_exeext
7158  if ${ac_cv_search_clock_gettime+:} false; then :
7159  break
7160fi
7161done
7162if ${ac_cv_search_clock_gettime+:} false; then :
7163
7164else
7165  ac_cv_search_clock_gettime=no
7166fi
7167rm conftest.$ac_ext
7168LIBS=$ac_func_search_save_LIBS
7169fi
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7171$as_echo "$ac_cv_search_clock_gettime" >&6; }
7172ac_res=$ac_cv_search_clock_gettime
7173if test "$ac_res" != no; then :
7174  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7175
7176fi
7177
7178		for ac_func in clock_gettime pthread_condattr_setclock
7179do :
7180  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7181ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7182if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7183  cat >>confdefs.h <<_ACEOF
7184#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7185_ACEOF
7186
7187fi
7188done
7189
7190		ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h>
7191"
7192if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then :
7193  ac_have_decl=1
7194else
7195  ac_have_decl=0
7196fi
7197
7198cat >>confdefs.h <<_ACEOF
7199#define HAVE_DECL_CLOCK_MONOTONIC $ac_have_decl
7200_ACEOF
7201
7202		CFLAGS=$OLD_CFLAGS
7203		;;
7204	win95)
7205
7206$as_echo "#define MYTHREAD_WIN95 1" >>confdefs.h
7207
7208		;;
7209	vista)
7210
7211$as_echo "#define MYTHREAD_VISTA 1" >>confdefs.h
7212
7213		;;
7214esac
7215 if test "x$enable_threads" != xno; then
7216  COND_THREADS_TRUE=
7217  COND_THREADS_FALSE='#'
7218else
7219  COND_THREADS_TRUE='#'
7220  COND_THREADS_FALSE=
7221fi
7222
7223
7224echo
7225echo "Initializing Libtool:"
7226
7227case `pwd` in
7228  *\ * | *\	*)
7229    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7230$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7231esac
7232
7233
7234
7235macro_version='2.4.6.40-6ca5-dirty'
7236macro_revision='2.4.6.40'
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250ltmain=$ac_aux_dir/ltmain.sh
7251
7252# Backslashify metacharacters that are still active within
7253# double-quoted strings.
7254sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7255
7256# Same as above, but do not quote variable references.
7257double_quote_subst='s/\(["`\\]\)/\\\1/g'
7258
7259# Sed substitution to delay expansion of an escaped shell variable in a
7260# double_quote_subst'ed string.
7261delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7262
7263# Sed substitution to delay expansion of an escaped single quote.
7264delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7265
7266# Sed substitution to avoid accidental globbing in evaled expressions
7267no_glob_subst='s/\*/\\\*/g'
7268
7269ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7270ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7271ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7272
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7274$as_echo_n "checking how to print strings... " >&6; }
7275# Test print first, because it will be a builtin if present.
7276if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7277   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7278  ECHO='print -r --'
7279elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7280  ECHO='printf %s\n'
7281else
7282  # Use this function as a fallback that always works.
7283  func_fallback_echo ()
7284  {
7285    eval 'cat <<_LTECHO_EOF
7286$1
7287_LTECHO_EOF'
7288  }
7289  ECHO='func_fallback_echo'
7290fi
7291
7292# func_echo_all arg...
7293# Invoke $ECHO with all args, space-separated.
7294func_echo_all ()
7295{
7296    $ECHO ""
7297}
7298
7299case $ECHO in
7300  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7301$as_echo "printf" >&6; } ;;
7302  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7303$as_echo "print -r" >&6; } ;;
7304  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7305$as_echo "cat" >&6; } ;;
7306esac
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7322$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7323if ${ac_cv_path_SED+:} false; then :
7324  $as_echo_n "(cached) " >&6
7325else
7326            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7327     for ac_i in 1 2 3 4 5 6 7; do
7328       ac_script="$ac_script$as_nl$ac_script"
7329     done
7330     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7331     { ac_script=; unset ac_script;}
7332     if test -z "$SED"; then
7333  ac_path_SED_found=false
7334  # Loop through the user's path and test for each of PROGNAME-LIST
7335  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336for as_dir in $PATH
7337do
7338  IFS=$as_save_IFS
7339  test -z "$as_dir" && as_dir=.
7340    for ac_prog in sed gsed; do
7341    for ac_exec_ext in '' $ac_executable_extensions; do
7342      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7343      as_fn_executable_p "$ac_path_SED" || continue
7344# Check for GNU ac_path_SED and select it if it is found.
7345  # Check for GNU $ac_path_SED
7346case `"$ac_path_SED" --version 2>&1` in
7347*GNU*)
7348  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7349*)
7350  ac_count=0
7351  $as_echo_n 0123456789 >"conftest.in"
7352  while :
7353  do
7354    cat "conftest.in" "conftest.in" >"conftest.tmp"
7355    mv "conftest.tmp" "conftest.in"
7356    cp "conftest.in" "conftest.nl"
7357    $as_echo '' >> "conftest.nl"
7358    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7359    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7360    as_fn_arith $ac_count + 1 && ac_count=$as_val
7361    if test $ac_count -gt ${ac_path_SED_max-0}; then
7362      # Best one so far, save it but keep looking for a better one
7363      ac_cv_path_SED="$ac_path_SED"
7364      ac_path_SED_max=$ac_count
7365    fi
7366    # 10*(2^10) chars as input seems more than enough
7367    test $ac_count -gt 10 && break
7368  done
7369  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7370esac
7371
7372      $ac_path_SED_found && break 3
7373    done
7374  done
7375  done
7376IFS=$as_save_IFS
7377  if test -z "$ac_cv_path_SED"; then
7378    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7379  fi
7380else
7381  ac_cv_path_SED=$SED
7382fi
7383
7384fi
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7386$as_echo "$ac_cv_path_SED" >&6; }
7387 SED="$ac_cv_path_SED"
7388  rm -f conftest.sed
7389
7390test -z "$SED" && SED=sed
7391Xsed="$SED -e 1s/^X//"
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7404$as_echo_n "checking for fgrep... " >&6; }
7405if ${ac_cv_path_FGREP+:} false; then :
7406  $as_echo_n "(cached) " >&6
7407else
7408  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7409   then ac_cv_path_FGREP="$GREP -F"
7410   else
7411     if test -z "$FGREP"; then
7412  ac_path_FGREP_found=false
7413  # Loop through the user's path and test for each of PROGNAME-LIST
7414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7416do
7417  IFS=$as_save_IFS
7418  test -z "$as_dir" && as_dir=.
7419    for ac_prog in fgrep; do
7420    for ac_exec_ext in '' $ac_executable_extensions; do
7421      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7422      as_fn_executable_p "$ac_path_FGREP" || continue
7423# Check for GNU ac_path_FGREP and select it if it is found.
7424  # Check for GNU $ac_path_FGREP
7425case `"$ac_path_FGREP" --version 2>&1` in
7426*GNU*)
7427  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7428*)
7429  ac_count=0
7430  $as_echo_n 0123456789 >"conftest.in"
7431  while :
7432  do
7433    cat "conftest.in" "conftest.in" >"conftest.tmp"
7434    mv "conftest.tmp" "conftest.in"
7435    cp "conftest.in" "conftest.nl"
7436    $as_echo 'FGREP' >> "conftest.nl"
7437    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7438    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7439    as_fn_arith $ac_count + 1 && ac_count=$as_val
7440    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7441      # Best one so far, save it but keep looking for a better one
7442      ac_cv_path_FGREP="$ac_path_FGREP"
7443      ac_path_FGREP_max=$ac_count
7444    fi
7445    # 10*(2^10) chars as input seems more than enough
7446    test $ac_count -gt 10 && break
7447  done
7448  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7449esac
7450
7451      $ac_path_FGREP_found && break 3
7452    done
7453  done
7454  done
7455IFS=$as_save_IFS
7456  if test -z "$ac_cv_path_FGREP"; then
7457    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7458  fi
7459else
7460  ac_cv_path_FGREP=$FGREP
7461fi
7462
7463   fi
7464fi
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7466$as_echo "$ac_cv_path_FGREP" >&6; }
7467 FGREP="$ac_cv_path_FGREP"
7468
7469
7470test -z "$GREP" && GREP=grep
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490# Check whether --with-gnu-ld was given.
7491if test "${with_gnu_ld+set}" = set; then :
7492  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7493else
7494  with_gnu_ld=no
7495fi
7496
7497ac_prog=ld
7498if test yes = "$GCC"; then
7499  # Check if gcc -print-prog-name=ld gives a path.
7500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7501$as_echo_n "checking for ld used by $CC... " >&6; }
7502  case $host in
7503  *-*-mingw*)
7504    # gcc leaves a trailing carriage return, which upsets mingw
7505    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7506  *)
7507    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7508  esac
7509  case $ac_prog in
7510    # Accept absolute paths.
7511    [\\/]* | ?:[\\/]*)
7512      re_direlt='/[^/][^/]*/\.\./'
7513      # Canonicalize the pathname of ld
7514      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7515      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7516	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7517      done
7518      test -z "$LD" && LD=$ac_prog
7519      ;;
7520  "")
7521    # If it fails, then pretend we aren't using GCC.
7522    ac_prog=ld
7523    ;;
7524  *)
7525    # If it is relative, then search for the first ld in PATH.
7526    with_gnu_ld=unknown
7527    ;;
7528  esac
7529elif test yes = "$with_gnu_ld"; then
7530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7531$as_echo_n "checking for GNU ld... " >&6; }
7532else
7533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7534$as_echo_n "checking for non-GNU ld... " >&6; }
7535fi
7536if ${lt_cv_path_LD+:} false; then :
7537  $as_echo_n "(cached) " >&6
7538else
7539  if test -z "$LD"; then
7540  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7541  for ac_dir in $PATH; do
7542    IFS=$lt_save_ifs
7543    test -z "$ac_dir" && ac_dir=.
7544    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7545      lt_cv_path_LD=$ac_dir/$ac_prog
7546      # Check to see if the program is GNU ld.  I'd rather use --version,
7547      # but apparently some variants of GNU ld only accept -v.
7548      # Break only if it was the GNU/non-GNU ld that we prefer.
7549      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7550      *GNU* | *'with BFD'*)
7551	test no != "$with_gnu_ld" && break
7552	;;
7553      *)
7554	test yes != "$with_gnu_ld" && break
7555	;;
7556      esac
7557    fi
7558  done
7559  IFS=$lt_save_ifs
7560else
7561  lt_cv_path_LD=$LD # Let the user override the test with a path.
7562fi
7563fi
7564
7565LD=$lt_cv_path_LD
7566if test -n "$LD"; then
7567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7568$as_echo "$LD" >&6; }
7569else
7570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571$as_echo "no" >&6; }
7572fi
7573test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7575$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7576if ${lt_cv_prog_gnu_ld+:} false; then :
7577  $as_echo_n "(cached) " >&6
7578else
7579  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7580case `$LD -v 2>&1 </dev/null` in
7581*GNU* | *'with BFD'*)
7582  lt_cv_prog_gnu_ld=yes
7583  ;;
7584*)
7585  lt_cv_prog_gnu_ld=no
7586  ;;
7587esac
7588fi
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7590$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7591with_gnu_ld=$lt_cv_prog_gnu_ld
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7602$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7603if ${lt_cv_path_NM+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  if test -n "$NM"; then
7607  # Let the user override the test.
7608  lt_cv_path_NM=$NM
7609else
7610  lt_nm_to_check=${ac_tool_prefix}nm
7611  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7612    lt_nm_to_check="$lt_nm_to_check nm"
7613  fi
7614  for lt_tmp_nm in $lt_nm_to_check; do
7615    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7616    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7617      IFS=$lt_save_ifs
7618      test -z "$ac_dir" && ac_dir=.
7619      tmp_nm=$ac_dir/$lt_tmp_nm
7620      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7621	# Check to see if the nm accepts a BSD-compat flag.
7622	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7623	#   nm: unknown option "B" ignored
7624	# Tru64's nm complains that /dev/null is an invalid object file
7625	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7626	case $build_os in
7627	mingw*) lt_bad_file=conftest.nm/nofile ;;
7628	*) lt_bad_file=/dev/null ;;
7629	esac
7630	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7631	*$lt_bad_file* | *'Invalid file or object type'*)
7632	  lt_cv_path_NM="$tmp_nm -B"
7633	  break 2
7634	  ;;
7635	*)
7636	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7637	  */dev/null*)
7638	    lt_cv_path_NM="$tmp_nm -p"
7639	    break 2
7640	    ;;
7641	  *)
7642	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7643	    continue # so that we can try to find one that supports BSD flags
7644	    ;;
7645	  esac
7646	  ;;
7647	esac
7648      fi
7649    done
7650    IFS=$lt_save_ifs
7651  done
7652  : ${lt_cv_path_NM=no}
7653fi
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7656$as_echo "$lt_cv_path_NM" >&6; }
7657if test no != "$lt_cv_path_NM"; then
7658  NM=$lt_cv_path_NM
7659else
7660  # Didn't find any BSD compatible name lister, look for dumpbin.
7661  if test -n "$DUMPBIN"; then :
7662    # Let the user override the test.
7663  else
7664    if test -n "$ac_tool_prefix"; then
7665  for ac_prog in dumpbin "link -dump"
7666  do
7667    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7668set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670$as_echo_n "checking for $ac_word... " >&6; }
7671if ${ac_cv_prog_DUMPBIN+:} false; then :
7672  $as_echo_n "(cached) " >&6
7673else
7674  if test -n "$DUMPBIN"; then
7675  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7676else
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680  IFS=$as_save_IFS
7681  test -z "$as_dir" && as_dir=.
7682    for ac_exec_ext in '' $ac_executable_extensions; do
7683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686    break 2
7687  fi
7688done
7689  done
7690IFS=$as_save_IFS
7691
7692fi
7693fi
7694DUMPBIN=$ac_cv_prog_DUMPBIN
7695if test -n "$DUMPBIN"; then
7696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7697$as_echo "$DUMPBIN" >&6; }
7698else
7699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700$as_echo "no" >&6; }
7701fi
7702
7703
7704    test -n "$DUMPBIN" && break
7705  done
7706fi
7707if test -z "$DUMPBIN"; then
7708  ac_ct_DUMPBIN=$DUMPBIN
7709  for ac_prog in dumpbin "link -dump"
7710do
7711  # Extract the first word of "$ac_prog", so it can be a program name with args.
7712set dummy $ac_prog; ac_word=$2
7713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714$as_echo_n "checking for $ac_word... " >&6; }
7715if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7716  $as_echo_n "(cached) " >&6
7717else
7718  if test -n "$ac_ct_DUMPBIN"; then
7719  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7720else
7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
7723do
7724  IFS=$as_save_IFS
7725  test -z "$as_dir" && as_dir=.
7726    for ac_exec_ext in '' $ac_executable_extensions; do
7727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730    break 2
7731  fi
7732done
7733  done
7734IFS=$as_save_IFS
7735
7736fi
7737fi
7738ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7739if test -n "$ac_ct_DUMPBIN"; then
7740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7741$as_echo "$ac_ct_DUMPBIN" >&6; }
7742else
7743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744$as_echo "no" >&6; }
7745fi
7746
7747
7748  test -n "$ac_ct_DUMPBIN" && break
7749done
7750
7751  if test "x$ac_ct_DUMPBIN" = x; then
7752    DUMPBIN=":"
7753  else
7754    case $cross_compiling:$ac_tool_warned in
7755yes:)
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7758ac_tool_warned=yes ;;
7759esac
7760    DUMPBIN=$ac_ct_DUMPBIN
7761  fi
7762fi
7763
7764    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7765    *COFF*)
7766      DUMPBIN="$DUMPBIN -symbols -headers"
7767      ;;
7768    *)
7769      DUMPBIN=:
7770      ;;
7771    esac
7772  fi
7773
7774  if test : != "$DUMPBIN"; then
7775    NM=$DUMPBIN
7776  fi
7777fi
7778test -z "$NM" && NM=nm
7779
7780
7781
7782
7783
7784
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7786$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7787if ${lt_cv_nm_interface+:} false; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  lt_cv_nm_interface="BSD nm"
7791  echo "int some_variable = 0;" > conftest.$ac_ext
7792  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7793  (eval "$ac_compile" 2>conftest.err)
7794  cat conftest.err >&5
7795  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7796  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7797  cat conftest.err >&5
7798  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7799  cat conftest.out >&5
7800  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7801    lt_cv_nm_interface="MS dumpbin"
7802  fi
7803  rm -f conftest*
7804fi
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7806$as_echo "$lt_cv_nm_interface" >&6; }
7807
7808# find the maximum length of command line arguments
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7810$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7811if ${lt_cv_sys_max_cmd_len+:} false; then :
7812  $as_echo_n "(cached) " >&6
7813else
7814    i=0
7815  teststring=ABCD
7816
7817  case $build_os in
7818  msdosdjgpp*)
7819    # On DJGPP, this test can blow up pretty badly due to problems in libc
7820    # (any single argument exceeding 2000 bytes causes a buffer overrun
7821    # during glob expansion).  Even if it were fixed, the result of this
7822    # check would be larger than it should be.
7823    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7824    ;;
7825
7826  gnu*)
7827    # Under GNU Hurd, this test is not required because there is
7828    # no limit to the length of command line arguments.
7829    # Libtool will interpret -1 as no limit whatsoever
7830    lt_cv_sys_max_cmd_len=-1;
7831    ;;
7832
7833  cygwin* | mingw* | cegcc*)
7834    # On Win9x/ME, this test blows up -- it succeeds, but takes
7835    # about 5 minutes as the teststring grows exponentially.
7836    # Worse, since 9x/ME are not pre-emptively multitasking,
7837    # you end up with a "frozen" computer, even though with patience
7838    # the test eventually succeeds (with a max line length of 256k).
7839    # Instead, let's just punt: use the minimum linelength reported by
7840    # all of the supported platforms: 8192 (on NT/2K/XP).
7841    lt_cv_sys_max_cmd_len=8192;
7842    ;;
7843
7844  mint*)
7845    # On MiNT this can take a long time and run out of memory.
7846    lt_cv_sys_max_cmd_len=8192;
7847    ;;
7848
7849  amigaos*)
7850    # On AmigaOS with pdksh, this test takes hours, literally.
7851    # So we just punt and use a minimum line length of 8192.
7852    lt_cv_sys_max_cmd_len=8192;
7853    ;;
7854
7855  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7856    # This has been around since 386BSD, at least.  Likely further.
7857    if test -x /sbin/sysctl; then
7858      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7859    elif test -x /usr/sbin/sysctl; then
7860      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7861    else
7862      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7863    fi
7864    # And add a safety zone
7865    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7866    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7867    ;;
7868
7869  interix*)
7870    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7871    lt_cv_sys_max_cmd_len=196608
7872    ;;
7873
7874  os2*)
7875    # The test takes a long time on OS/2.
7876    lt_cv_sys_max_cmd_len=8192
7877    ;;
7878
7879  osf*)
7880    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7881    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7882    # nice to cause kernel panics so lets avoid the loop below.
7883    # First set a reasonable default.
7884    lt_cv_sys_max_cmd_len=16384
7885    #
7886    if test -x /sbin/sysconfig; then
7887      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7888        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7889      esac
7890    fi
7891    ;;
7892  sco3.2v5*)
7893    lt_cv_sys_max_cmd_len=102400
7894    ;;
7895  sysv5* | sco5v6* | sysv4.2uw2*)
7896    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7897    if test -n "$kargmax"; then
7898      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7899    else
7900      lt_cv_sys_max_cmd_len=32768
7901    fi
7902    ;;
7903  *)
7904    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7905    if test -n "$lt_cv_sys_max_cmd_len" && \
7906       test undefined != "$lt_cv_sys_max_cmd_len"; then
7907      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7908      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7909    else
7910      # Make teststring a little bigger before we do anything with it.
7911      # a 1K string should be a reasonable start.
7912      for i in 1 2 3 4 5 6 7 8; do
7913        teststring=$teststring$teststring
7914      done
7915      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7916      # If test is not a shell built-in, we'll probably end up computing a
7917      # maximum length that is only half of the actual maximum length, but
7918      # we can't tell.
7919      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7920	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7921	      test 17 != "$i" # 1/2 MB should be enough
7922      do
7923        i=`expr $i + 1`
7924        teststring=$teststring$teststring
7925      done
7926      # Only check the string length outside the loop.
7927      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7928      teststring=
7929      # Add a significant safety factor because C++ compilers can tack on
7930      # massive amounts of additional arguments before passing them to the
7931      # linker.  It appears as though 1/2 is a usable value.
7932      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7933    fi
7934    ;;
7935  esac
7936
7937fi
7938
7939if test -n "$lt_cv_sys_max_cmd_len"; then
7940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7941$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7942else
7943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7944$as_echo "none" >&6; }
7945fi
7946max_cmd_len=$lt_cv_sys_max_cmd_len
7947
7948
7949
7950
7951
7952
7953: ${CP="cp -f"}
7954: ${MV="mv -f"}
7955: ${RM="rm -f"}
7956
7957if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7958  lt_unset=unset
7959else
7960  lt_unset=false
7961fi
7962
7963
7964
7965
7966
7967# test EBCDIC or ASCII
7968case `echo X|tr X '\101'` in
7969 A) # ASCII based system
7970    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7971  lt_SP2NL='tr \040 \012'
7972  lt_NL2SP='tr \015\012 \040\040'
7973  ;;
7974 *) # EBCDIC based system
7975  lt_SP2NL='tr \100 \n'
7976  lt_NL2SP='tr \r\n \100\100'
7977  ;;
7978esac
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7989$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7990if ${lt_cv_to_host_file_cmd+:} false; then :
7991  $as_echo_n "(cached) " >&6
7992else
7993  case $host in
7994  *-*-mingw* )
7995    case $build in
7996      *-*-mingw* ) # actually msys
7997        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7998        ;;
7999      *-*-cygwin* )
8000        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8001        ;;
8002      * ) # otherwise, assume *nix
8003        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8004        ;;
8005    esac
8006    ;;
8007  *-*-cygwin* )
8008    case $build in
8009      *-*-mingw* ) # actually msys
8010        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8011        ;;
8012      *-*-cygwin* )
8013        lt_cv_to_host_file_cmd=func_convert_file_noop
8014        ;;
8015      * ) # otherwise, assume *nix
8016        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8017        ;;
8018    esac
8019    ;;
8020  * ) # unhandled hosts (and "normal" native builds)
8021    lt_cv_to_host_file_cmd=func_convert_file_noop
8022    ;;
8023esac
8024
8025fi
8026
8027to_host_file_cmd=$lt_cv_to_host_file_cmd
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8029$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8030
8031
8032
8033
8034
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8036$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8037if ${lt_cv_to_tool_file_cmd+:} false; then :
8038  $as_echo_n "(cached) " >&6
8039else
8040  #assume ordinary cross tools, or native build.
8041lt_cv_to_tool_file_cmd=func_convert_file_noop
8042case $host in
8043  *-*-mingw* )
8044    case $build in
8045      *-*-mingw* ) # actually msys
8046        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8047        ;;
8048    esac
8049    ;;
8050esac
8051
8052fi
8053
8054to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8056$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8057
8058
8059
8060
8061
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8063$as_echo_n "checking for $LD option to reload object files... " >&6; }
8064if ${lt_cv_ld_reload_flag+:} false; then :
8065  $as_echo_n "(cached) " >&6
8066else
8067  lt_cv_ld_reload_flag='-r'
8068fi
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8070$as_echo "$lt_cv_ld_reload_flag" >&6; }
8071reload_flag=$lt_cv_ld_reload_flag
8072case $reload_flag in
8073"" | " "*) ;;
8074*) reload_flag=" $reload_flag" ;;
8075esac
8076reload_cmds='$LD$reload_flag -o $output$reload_objs'
8077case $host_os in
8078  cygwin* | mingw* | pw32* | cegcc*)
8079    if test yes != "$GCC"; then
8080      reload_cmds=false
8081    fi
8082    ;;
8083  darwin*)
8084    if test yes = "$GCC"; then
8085      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8086    else
8087      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8088    fi
8089    ;;
8090esac
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100if test -n "$ac_tool_prefix"; then
8101  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8102set dummy ${ac_tool_prefix}objdump; ac_word=$2
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104$as_echo_n "checking for $ac_word... " >&6; }
8105if ${ac_cv_prog_OBJDUMP+:} false; then :
8106  $as_echo_n "(cached) " >&6
8107else
8108  if test -n "$OBJDUMP"; then
8109  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8110else
8111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112for as_dir in $PATH
8113do
8114  IFS=$as_save_IFS
8115  test -z "$as_dir" && as_dir=.
8116    for ac_exec_ext in '' $ac_executable_extensions; do
8117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120    break 2
8121  fi
8122done
8123  done
8124IFS=$as_save_IFS
8125
8126fi
8127fi
8128OBJDUMP=$ac_cv_prog_OBJDUMP
8129if test -n "$OBJDUMP"; then
8130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8131$as_echo "$OBJDUMP" >&6; }
8132else
8133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134$as_echo "no" >&6; }
8135fi
8136
8137
8138fi
8139if test -z "$ac_cv_prog_OBJDUMP"; then
8140  ac_ct_OBJDUMP=$OBJDUMP
8141  # Extract the first word of "objdump", so it can be a program name with args.
8142set dummy objdump; ac_word=$2
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144$as_echo_n "checking for $ac_word... " >&6; }
8145if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8146  $as_echo_n "(cached) " >&6
8147else
8148  if test -n "$ac_ct_OBJDUMP"; then
8149  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8150else
8151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152for as_dir in $PATH
8153do
8154  IFS=$as_save_IFS
8155  test -z "$as_dir" && as_dir=.
8156    for ac_exec_ext in '' $ac_executable_extensions; do
8157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8158    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160    break 2
8161  fi
8162done
8163  done
8164IFS=$as_save_IFS
8165
8166fi
8167fi
8168ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8169if test -n "$ac_ct_OBJDUMP"; then
8170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8171$as_echo "$ac_ct_OBJDUMP" >&6; }
8172else
8173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174$as_echo "no" >&6; }
8175fi
8176
8177  if test "x$ac_ct_OBJDUMP" = x; then
8178    OBJDUMP="false"
8179  else
8180    case $cross_compiling:$ac_tool_warned in
8181yes:)
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8184ac_tool_warned=yes ;;
8185esac
8186    OBJDUMP=$ac_ct_OBJDUMP
8187  fi
8188else
8189  OBJDUMP="$ac_cv_prog_OBJDUMP"
8190fi
8191
8192test -z "$OBJDUMP" && OBJDUMP=objdump
8193
8194
8195
8196
8197
8198
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8200$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8201if ${lt_cv_deplibs_check_method+:} false; then :
8202  $as_echo_n "(cached) " >&6
8203else
8204  lt_cv_file_magic_cmd='$MAGIC_CMD'
8205lt_cv_file_magic_test_file=
8206lt_cv_deplibs_check_method='unknown'
8207# Need to set the preceding variable on all platforms that support
8208# interlibrary dependencies.
8209# 'none' -- dependencies not supported.
8210# 'unknown' -- same as none, but documents that we really don't know.
8211# 'pass_all' -- all dependencies passed with no checks.
8212# 'test_compile' -- check by making test program.
8213# 'file_magic [[regex]]' -- check by looking for files in library path
8214# that responds to the $file_magic_cmd with a given extended regex.
8215# If you have 'file' or equivalent on your system and you're not sure
8216# whether 'pass_all' will *always* work, you probably want this one.
8217
8218case $host_os in
8219aix[4-9]*)
8220  lt_cv_deplibs_check_method=pass_all
8221  ;;
8222
8223beos*)
8224  lt_cv_deplibs_check_method=pass_all
8225  ;;
8226
8227bsdi[45]*)
8228  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8229  lt_cv_file_magic_cmd='/usr/bin/file -L'
8230  lt_cv_file_magic_test_file=/shlib/libc.so
8231  ;;
8232
8233cygwin*)
8234  # func_win32_libid is a shell function defined in ltmain.sh
8235  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8236  lt_cv_file_magic_cmd='func_win32_libid'
8237  ;;
8238
8239mingw* | pw32*)
8240  # Base MSYS/MinGW do not provide the 'file' command needed by
8241  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8242  # unless we find 'file', for example because we are cross-compiling.
8243  if ( file / ) >/dev/null 2>&1; then
8244    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8245    lt_cv_file_magic_cmd='func_win32_libid'
8246  else
8247    # Keep this pattern in sync with the one in func_win32_libid.
8248    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8249    lt_cv_file_magic_cmd='$OBJDUMP -f'
8250  fi
8251  ;;
8252
8253cegcc*)
8254  # use the weaker test based on 'objdump'. See mingw*.
8255  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8256  lt_cv_file_magic_cmd='$OBJDUMP -f'
8257  ;;
8258
8259darwin* | rhapsody*)
8260  lt_cv_deplibs_check_method=pass_all
8261  ;;
8262
8263freebsd* | dragonfly*)
8264  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8265    case $host_cpu in
8266    i*86 )
8267      # Not sure whether the presence of OpenBSD here was a mistake.
8268      # Let's accept both of them until this is cleared up.
8269      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8270      lt_cv_file_magic_cmd=/usr/bin/file
8271      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8272      ;;
8273    esac
8274  else
8275    lt_cv_deplibs_check_method=pass_all
8276  fi
8277  ;;
8278
8279haiku*)
8280  lt_cv_deplibs_check_method=pass_all
8281  ;;
8282
8283hpux10.20* | hpux11*)
8284  lt_cv_file_magic_cmd=/usr/bin/file
8285  case $host_cpu in
8286  ia64*)
8287    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8288    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8289    ;;
8290  hppa*64*)
8291    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]'
8292    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8293    ;;
8294  *)
8295    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8296    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8297    ;;
8298  esac
8299  ;;
8300
8301interix[3-9]*)
8302  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8303  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8304  ;;
8305
8306irix5* | irix6* | nonstopux*)
8307  case $LD in
8308  *-32|*"-32 ") libmagic=32-bit;;
8309  *-n32|*"-n32 ") libmagic=N32;;
8310  *-64|*"-64 ") libmagic=64-bit;;
8311  *) libmagic=never-match;;
8312  esac
8313  lt_cv_deplibs_check_method=pass_all
8314  ;;
8315
8316# This must be glibc/ELF.
8317linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8318  lt_cv_deplibs_check_method=pass_all
8319  ;;
8320
8321netbsd*)
8322  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8323    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8324  else
8325    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8326  fi
8327  ;;
8328
8329newos6*)
8330  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8331  lt_cv_file_magic_cmd=/usr/bin/file
8332  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8333  ;;
8334
8335*nto* | *qnx*)
8336  lt_cv_deplibs_check_method=pass_all
8337  ;;
8338
8339openbsd* | bitrig*)
8340  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8341    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8342  else
8343    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8344  fi
8345  ;;
8346
8347osf3* | osf4* | osf5*)
8348  lt_cv_deplibs_check_method=pass_all
8349  ;;
8350
8351rdos*)
8352  lt_cv_deplibs_check_method=pass_all
8353  ;;
8354
8355solaris*)
8356  lt_cv_deplibs_check_method=pass_all
8357  ;;
8358
8359sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8360  lt_cv_deplibs_check_method=pass_all
8361  ;;
8362
8363sysv4 | sysv4.3*)
8364  case $host_vendor in
8365  motorola)
8366    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]'
8367    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8368    ;;
8369  ncr)
8370    lt_cv_deplibs_check_method=pass_all
8371    ;;
8372  sequent)
8373    lt_cv_file_magic_cmd='/bin/file'
8374    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8375    ;;
8376  sni)
8377    lt_cv_file_magic_cmd='/bin/file'
8378    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8379    lt_cv_file_magic_test_file=/lib/libc.so
8380    ;;
8381  siemens)
8382    lt_cv_deplibs_check_method=pass_all
8383    ;;
8384  pc)
8385    lt_cv_deplibs_check_method=pass_all
8386    ;;
8387  esac
8388  ;;
8389
8390tpf*)
8391  lt_cv_deplibs_check_method=pass_all
8392  ;;
8393os2*)
8394  lt_cv_deplibs_check_method=pass_all
8395  ;;
8396esac
8397
8398fi
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8400$as_echo "$lt_cv_deplibs_check_method" >&6; }
8401
8402file_magic_glob=
8403want_nocaseglob=no
8404if test "$build" = "$host"; then
8405  case $host_os in
8406  mingw* | pw32*)
8407    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8408      want_nocaseglob=yes
8409    else
8410      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8411    fi
8412    ;;
8413  esac
8414fi
8415
8416file_magic_cmd=$lt_cv_file_magic_cmd
8417deplibs_check_method=$lt_cv_deplibs_check_method
8418test -z "$deplibs_check_method" && deplibs_check_method=unknown
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441if test -n "$ac_tool_prefix"; then
8442  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8443set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445$as_echo_n "checking for $ac_word... " >&6; }
8446if ${ac_cv_prog_DLLTOOL+:} false; then :
8447  $as_echo_n "(cached) " >&6
8448else
8449  if test -n "$DLLTOOL"; then
8450  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8451else
8452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453for as_dir in $PATH
8454do
8455  IFS=$as_save_IFS
8456  test -z "$as_dir" && as_dir=.
8457    for ac_exec_ext in '' $ac_executable_extensions; do
8458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8459    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8461    break 2
8462  fi
8463done
8464  done
8465IFS=$as_save_IFS
8466
8467fi
8468fi
8469DLLTOOL=$ac_cv_prog_DLLTOOL
8470if test -n "$DLLTOOL"; then
8471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8472$as_echo "$DLLTOOL" >&6; }
8473else
8474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475$as_echo "no" >&6; }
8476fi
8477
8478
8479fi
8480if test -z "$ac_cv_prog_DLLTOOL"; then
8481  ac_ct_DLLTOOL=$DLLTOOL
8482  # Extract the first word of "dlltool", so it can be a program name with args.
8483set dummy dlltool; ac_word=$2
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485$as_echo_n "checking for $ac_word... " >&6; }
8486if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8487  $as_echo_n "(cached) " >&6
8488else
8489  if test -n "$ac_ct_DLLTOOL"; then
8490  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8491else
8492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493for as_dir in $PATH
8494do
8495  IFS=$as_save_IFS
8496  test -z "$as_dir" && as_dir=.
8497    for ac_exec_ext in '' $ac_executable_extensions; do
8498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8499    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8501    break 2
8502  fi
8503done
8504  done
8505IFS=$as_save_IFS
8506
8507fi
8508fi
8509ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8510if test -n "$ac_ct_DLLTOOL"; then
8511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8512$as_echo "$ac_ct_DLLTOOL" >&6; }
8513else
8514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515$as_echo "no" >&6; }
8516fi
8517
8518  if test "x$ac_ct_DLLTOOL" = x; then
8519    DLLTOOL="false"
8520  else
8521    case $cross_compiling:$ac_tool_warned in
8522yes:)
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8525ac_tool_warned=yes ;;
8526esac
8527    DLLTOOL=$ac_ct_DLLTOOL
8528  fi
8529else
8530  DLLTOOL="$ac_cv_prog_DLLTOOL"
8531fi
8532
8533test -z "$DLLTOOL" && DLLTOOL=dlltool
8534
8535
8536
8537
8538
8539
8540
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8542$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8543if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8544  $as_echo_n "(cached) " >&6
8545else
8546  lt_cv_sharedlib_from_linklib_cmd='unknown'
8547
8548case $host_os in
8549cygwin* | mingw* | pw32* | cegcc*)
8550  # two different shell functions defined in ltmain.sh;
8551  # decide which one to use based on capabilities of $DLLTOOL
8552  case `$DLLTOOL --help 2>&1` in
8553  *--identify-strict*)
8554    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8555    ;;
8556  *)
8557    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8558    ;;
8559  esac
8560  ;;
8561*)
8562  # fallback: assume linklib IS sharedlib
8563  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8564  ;;
8565esac
8566
8567fi
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8569$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8570sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8571test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8572
8573
8574
8575
8576
8577
8578
8579if test -n "$ac_tool_prefix"; then
8580  for ac_prog in ar
8581  do
8582    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8583set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585$as_echo_n "checking for $ac_word... " >&6; }
8586if ${ac_cv_prog_AR+:} false; then :
8587  $as_echo_n "(cached) " >&6
8588else
8589  if test -n "$AR"; then
8590  ac_cv_prog_AR="$AR" # Let the user override the test.
8591else
8592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593for as_dir in $PATH
8594do
8595  IFS=$as_save_IFS
8596  test -z "$as_dir" && as_dir=.
8597    for ac_exec_ext in '' $ac_executable_extensions; do
8598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8599    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8601    break 2
8602  fi
8603done
8604  done
8605IFS=$as_save_IFS
8606
8607fi
8608fi
8609AR=$ac_cv_prog_AR
8610if test -n "$AR"; then
8611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8612$as_echo "$AR" >&6; }
8613else
8614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615$as_echo "no" >&6; }
8616fi
8617
8618
8619    test -n "$AR" && break
8620  done
8621fi
8622if test -z "$AR"; then
8623  ac_ct_AR=$AR
8624  for ac_prog in ar
8625do
8626  # Extract the first word of "$ac_prog", so it can be a program name with args.
8627set dummy $ac_prog; ac_word=$2
8628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629$as_echo_n "checking for $ac_word... " >&6; }
8630if ${ac_cv_prog_ac_ct_AR+:} false; then :
8631  $as_echo_n "(cached) " >&6
8632else
8633  if test -n "$ac_ct_AR"; then
8634  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8635else
8636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637for as_dir in $PATH
8638do
8639  IFS=$as_save_IFS
8640  test -z "$as_dir" && as_dir=.
8641    for ac_exec_ext in '' $ac_executable_extensions; do
8642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8643    ac_cv_prog_ac_ct_AR="$ac_prog"
8644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645    break 2
8646  fi
8647done
8648  done
8649IFS=$as_save_IFS
8650
8651fi
8652fi
8653ac_ct_AR=$ac_cv_prog_ac_ct_AR
8654if test -n "$ac_ct_AR"; then
8655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8656$as_echo "$ac_ct_AR" >&6; }
8657else
8658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659$as_echo "no" >&6; }
8660fi
8661
8662
8663  test -n "$ac_ct_AR" && break
8664done
8665
8666  if test "x$ac_ct_AR" = x; then
8667    AR="false"
8668  else
8669    case $cross_compiling:$ac_tool_warned in
8670yes:)
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673ac_tool_warned=yes ;;
8674esac
8675    AR=$ac_ct_AR
8676  fi
8677fi
8678
8679: ${AR=ar}
8680
8681
8682
8683
8684
8685
8686# Use ARFLAGS variable as AR's operation code to sync the variable naming with
8687# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8688# higher priority because thats what people were doing historically (setting
8689# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
8690# variable obsoleted/removed.
8691
8692test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8693lt_ar_flags=$AR_FLAGS
8694
8695
8696
8697
8698
8699
8700# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
8701# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8702
8703
8704
8705
8706
8707
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8709$as_echo_n "checking for archiver @FILE support... " >&6; }
8710if ${lt_cv_ar_at_file+:} false; then :
8711  $as_echo_n "(cached) " >&6
8712else
8713  lt_cv_ar_at_file=no
8714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715/* end confdefs.h.  */
8716
8717int
8718main ()
8719{
8720
8721  ;
8722  return 0;
8723}
8724_ACEOF
8725if ac_fn_c_try_compile "$LINENO"; then :
8726  echo conftest.$ac_objext > conftest.lst
8727      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8728      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8729  (eval $lt_ar_try) 2>&5
8730  ac_status=$?
8731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8732  test $ac_status = 0; }
8733      if test 0 -eq "$ac_status"; then
8734	# Ensure the archiver fails upon bogus file names.
8735	rm -f conftest.$ac_objext libconftest.a
8736	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8737  (eval $lt_ar_try) 2>&5
8738  ac_status=$?
8739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8740  test $ac_status = 0; }
8741	if test 0 -ne "$ac_status"; then
8742          lt_cv_ar_at_file=@
8743        fi
8744      fi
8745      rm -f conftest.* libconftest.a
8746
8747fi
8748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749
8750fi
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8752$as_echo "$lt_cv_ar_at_file" >&6; }
8753
8754if test no = "$lt_cv_ar_at_file"; then
8755  archiver_list_spec=
8756else
8757  archiver_list_spec=$lt_cv_ar_at_file
8758fi
8759
8760
8761
8762
8763
8764
8765
8766if test -n "$ac_tool_prefix"; then
8767  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8768set dummy ${ac_tool_prefix}strip; ac_word=$2
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770$as_echo_n "checking for $ac_word... " >&6; }
8771if ${ac_cv_prog_STRIP+:} false; then :
8772  $as_echo_n "(cached) " >&6
8773else
8774  if test -n "$STRIP"; then
8775  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8776else
8777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778for as_dir in $PATH
8779do
8780  IFS=$as_save_IFS
8781  test -z "$as_dir" && as_dir=.
8782    for ac_exec_ext in '' $ac_executable_extensions; do
8783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8784    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8786    break 2
8787  fi
8788done
8789  done
8790IFS=$as_save_IFS
8791
8792fi
8793fi
8794STRIP=$ac_cv_prog_STRIP
8795if test -n "$STRIP"; then
8796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8797$as_echo "$STRIP" >&6; }
8798else
8799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800$as_echo "no" >&6; }
8801fi
8802
8803
8804fi
8805if test -z "$ac_cv_prog_STRIP"; then
8806  ac_ct_STRIP=$STRIP
8807  # Extract the first word of "strip", so it can be a program name with args.
8808set dummy strip; ac_word=$2
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810$as_echo_n "checking for $ac_word... " >&6; }
8811if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8812  $as_echo_n "(cached) " >&6
8813else
8814  if test -n "$ac_ct_STRIP"; then
8815  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8816else
8817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818for as_dir in $PATH
8819do
8820  IFS=$as_save_IFS
8821  test -z "$as_dir" && as_dir=.
8822    for ac_exec_ext in '' $ac_executable_extensions; do
8823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8824    ac_cv_prog_ac_ct_STRIP="strip"
8825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8826    break 2
8827  fi
8828done
8829  done
8830IFS=$as_save_IFS
8831
8832fi
8833fi
8834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8835if test -n "$ac_ct_STRIP"; then
8836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8837$as_echo "$ac_ct_STRIP" >&6; }
8838else
8839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
8841fi
8842
8843  if test "x$ac_ct_STRIP" = x; then
8844    STRIP=":"
8845  else
8846    case $cross_compiling:$ac_tool_warned in
8847yes:)
8848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8850ac_tool_warned=yes ;;
8851esac
8852    STRIP=$ac_ct_STRIP
8853  fi
8854else
8855  STRIP="$ac_cv_prog_STRIP"
8856fi
8857
8858test -z "$STRIP" && STRIP=:
8859
8860
8861
8862
8863
8864
8865if test -n "$ac_tool_prefix"; then
8866  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8867set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869$as_echo_n "checking for $ac_word... " >&6; }
8870if ${ac_cv_prog_RANLIB+:} false; then :
8871  $as_echo_n "(cached) " >&6
8872else
8873  if test -n "$RANLIB"; then
8874  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8875else
8876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877for as_dir in $PATH
8878do
8879  IFS=$as_save_IFS
8880  test -z "$as_dir" && as_dir=.
8881    for ac_exec_ext in '' $ac_executable_extensions; do
8882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8883    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885    break 2
8886  fi
8887done
8888  done
8889IFS=$as_save_IFS
8890
8891fi
8892fi
8893RANLIB=$ac_cv_prog_RANLIB
8894if test -n "$RANLIB"; then
8895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8896$as_echo "$RANLIB" >&6; }
8897else
8898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899$as_echo "no" >&6; }
8900fi
8901
8902
8903fi
8904if test -z "$ac_cv_prog_RANLIB"; then
8905  ac_ct_RANLIB=$RANLIB
8906  # Extract the first word of "ranlib", so it can be a program name with args.
8907set dummy ranlib; ac_word=$2
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909$as_echo_n "checking for $ac_word... " >&6; }
8910if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8911  $as_echo_n "(cached) " >&6
8912else
8913  if test -n "$ac_ct_RANLIB"; then
8914  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8915else
8916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917for as_dir in $PATH
8918do
8919  IFS=$as_save_IFS
8920  test -z "$as_dir" && as_dir=.
8921    for ac_exec_ext in '' $ac_executable_extensions; do
8922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923    ac_cv_prog_ac_ct_RANLIB="ranlib"
8924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925    break 2
8926  fi
8927done
8928  done
8929IFS=$as_save_IFS
8930
8931fi
8932fi
8933ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8934if test -n "$ac_ct_RANLIB"; then
8935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8936$as_echo "$ac_ct_RANLIB" >&6; }
8937else
8938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939$as_echo "no" >&6; }
8940fi
8941
8942  if test "x$ac_ct_RANLIB" = x; then
8943    RANLIB=":"
8944  else
8945    case $cross_compiling:$ac_tool_warned in
8946yes:)
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8949ac_tool_warned=yes ;;
8950esac
8951    RANLIB=$ac_ct_RANLIB
8952  fi
8953else
8954  RANLIB="$ac_cv_prog_RANLIB"
8955fi
8956
8957test -z "$RANLIB" && RANLIB=:
8958
8959
8960
8961
8962
8963
8964# Determine commands to create old-style static archives.
8965old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8966old_postinstall_cmds='chmod 644 $oldlib'
8967old_postuninstall_cmds=
8968
8969if test -n "$RANLIB"; then
8970  case $host_os in
8971  bitrig* | openbsd*)
8972    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8973    ;;
8974  *)
8975    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8976    ;;
8977  esac
8978  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8979fi
8980
8981case $host_os in
8982  darwin*)
8983    lock_old_archive_extraction=yes ;;
8984  *)
8985    lock_old_archive_extraction=no ;;
8986esac
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026# If no C compiler was specified, use CC.
9027LTCC=${LTCC-"$CC"}
9028
9029# If no C compiler flags were specified, use CFLAGS.
9030LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9031
9032# Allow CC to be a program name with arguments.
9033compiler=$CC
9034
9035
9036# Check for command to grab the raw symbol name followed by C symbol from nm.
9037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9038$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9039if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9040  $as_echo_n "(cached) " >&6
9041else
9042
9043# These are sane defaults that work on at least a few old systems.
9044# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9045
9046# Character class describing NM global symbol codes.
9047symcode='[BCDEGRST]'
9048
9049# Regexp to match symbols that can be accessed directly from C.
9050sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9051
9052# Define system-specific variables.
9053case $host_os in
9054aix*)
9055  symcode='[BCDT]'
9056  ;;
9057cygwin* | mingw* | pw32* | cegcc*)
9058  symcode='[ABCDGISTW]'
9059  ;;
9060hpux*)
9061  if test ia64 = "$host_cpu"; then
9062    symcode='[ABCDEGRST]'
9063  fi
9064  ;;
9065irix* | nonstopux*)
9066  symcode='[BCDEGRST]'
9067  ;;
9068osf*)
9069  symcode='[BCDEGQRST]'
9070  ;;
9071solaris*)
9072  symcode='[BDRT]'
9073  ;;
9074sco3.2v5*)
9075  symcode='[DT]'
9076  ;;
9077sysv4.2uw2*)
9078  symcode='[DT]'
9079  ;;
9080sysv5* | sco5v6* | unixware* | OpenUNIX*)
9081  symcode='[ABDT]'
9082  ;;
9083sysv4)
9084  symcode='[DFNSTU]'
9085  ;;
9086esac
9087
9088# If we're using GNU nm, then use its standard symbol codes.
9089case `$NM -V 2>&1` in
9090*GNU* | *'with BFD'*)
9091  symcode='[ABCDGIRSTW]' ;;
9092esac
9093
9094if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9095  # Gets list of data symbols to import.
9096  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9097  # Adjust the below global symbol transforms to fixup imported variables.
9098  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9099  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9100  lt_c_name_lib_hook="\
9101  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9102  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9103else
9104  # Disable hooks by default.
9105  lt_cv_sys_global_symbol_to_import=
9106  lt_cdecl_hook=
9107  lt_c_name_hook=
9108  lt_c_name_lib_hook=
9109fi
9110
9111# Transform an extracted symbol line into a proper C declaration.
9112# Some systems (esp. on ia64) link data and code symbols differently,
9113# so use this general approach.
9114lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9115$lt_cdecl_hook\
9116" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9117" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9118
9119# Transform an extracted symbol line into symbol name and symbol address
9120lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9121$lt_c_name_hook\
9122" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9123" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9124
9125# Transform an extracted symbol line into symbol name with lib prefix and
9126# symbol address.
9127lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9128$lt_c_name_lib_hook\
9129" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9130" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9131" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9132
9133# Handle CRLF in mingw tool chain
9134opt_cr=
9135case $build_os in
9136mingw*)
9137  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9138  ;;
9139esac
9140
9141# Try without a prefix underscore, then with it.
9142for ac_symprfx in "" "_"; do
9143
9144  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9145  symxfrm="\\1 $ac_symprfx\\2 \\2"
9146
9147  # Write the raw and C identifiers.
9148  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9149    # Fake it for dumpbin and say T for any non-static function,
9150    # D for any global variable and I for any imported variable.
9151    # Also find C++ and __fastcall symbols from MSVC++,
9152    # which start with @ or ?.
9153    lt_cv_sys_global_symbol_pipe="$AWK '"\
9154"     {last_section=section; section=\$ 3};"\
9155"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9156"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9157"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9158"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9159"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9160"     \$ 0!~/External *\|/{next};"\
9161"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9162"     {if(hide[section]) next};"\
9163"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9164"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9165"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9166"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9167"     ' prfx=^$ac_symprfx"
9168  else
9169    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9170  fi
9171  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9172
9173  # Check to see that the pipe works correctly.
9174  pipe_works=no
9175
9176  rm -f conftest*
9177  cat > conftest.$ac_ext <<_LT_EOF
9178#ifdef __cplusplus
9179extern "C" {
9180#endif
9181char nm_test_var;
9182void nm_test_func(void);
9183void nm_test_func(void){}
9184#ifdef __cplusplus
9185}
9186#endif
9187int main(){nm_test_var='a';nm_test_func();return(0);}
9188_LT_EOF
9189
9190  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9191  (eval $ac_compile) 2>&5
9192  ac_status=$?
9193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9194  test $ac_status = 0; }; then
9195    # Now try to grab the symbols.
9196    nlist=conftest.nm
9197    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9198  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9199  ac_status=$?
9200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9201  test $ac_status = 0; } && test -s "$nlist"; then
9202      # Try sorting and uniquifying the output.
9203      if sort "$nlist" | uniq > "$nlist"T; then
9204	mv -f "$nlist"T "$nlist"
9205      else
9206	rm -f "$nlist"T
9207      fi
9208
9209      # Make sure that we snagged all the symbols we need.
9210      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9211	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9212	  cat <<_LT_EOF > conftest.$ac_ext
9213/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9214#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9215/* DATA imports from DLLs on WIN32 can't be const, because runtime
9216   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9217# define LT_DLSYM_CONST
9218#elif defined __osf__
9219/* This system does not cope well with relocations in const data.  */
9220# define LT_DLSYM_CONST
9221#else
9222# define LT_DLSYM_CONST const
9223#endif
9224
9225#ifdef __cplusplus
9226extern "C" {
9227#endif
9228
9229_LT_EOF
9230	  # Now generate the symbol file.
9231	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9232
9233	  cat <<_LT_EOF >> conftest.$ac_ext
9234
9235/* The mapping between symbol names and symbols.  */
9236LT_DLSYM_CONST struct {
9237  const char *name;
9238  void       *address;
9239}
9240lt__PROGRAM__LTX_preloaded_symbols[] =
9241{
9242  { "@PROGRAM@", (void *) 0 },
9243_LT_EOF
9244	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9245	  cat <<\_LT_EOF >> conftest.$ac_ext
9246  {0, (void *) 0}
9247};
9248
9249/* This works around a problem in FreeBSD linker */
9250#ifdef FREEBSD_WORKAROUND
9251static const void *lt_preloaded_setup() {
9252  return lt__PROGRAM__LTX_preloaded_symbols;
9253}
9254#endif
9255
9256#ifdef __cplusplus
9257}
9258#endif
9259_LT_EOF
9260	  # Now try linking the two files.
9261	  mv conftest.$ac_objext conftstm.$ac_objext
9262	  lt_globsym_save_LIBS=$LIBS
9263	  lt_globsym_save_CFLAGS=$CFLAGS
9264	  LIBS=conftstm.$ac_objext
9265	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9266	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9267  (eval $ac_link) 2>&5
9268  ac_status=$?
9269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9270  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9271	    pipe_works=yes
9272	  fi
9273	  LIBS=$lt_globsym_save_LIBS
9274	  CFLAGS=$lt_globsym_save_CFLAGS
9275	else
9276	  echo "cannot find nm_test_func in $nlist" >&5
9277	fi
9278      else
9279	echo "cannot find nm_test_var in $nlist" >&5
9280      fi
9281    else
9282      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9283    fi
9284  else
9285    echo "$progname: failed program was:" >&5
9286    cat conftest.$ac_ext >&5
9287  fi
9288  rm -rf conftest* conftst*
9289
9290  # Do not use the global_symbol_pipe unless it works.
9291  if test yes = "$pipe_works"; then
9292    break
9293  else
9294    lt_cv_sys_global_symbol_pipe=
9295  fi
9296done
9297
9298fi
9299
9300if test -z "$lt_cv_sys_global_symbol_pipe"; then
9301  lt_cv_sys_global_symbol_to_cdecl=
9302fi
9303if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9305$as_echo "failed" >&6; }
9306else
9307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9308$as_echo "ok" >&6; }
9309fi
9310
9311# Response file support.
9312if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9313  nm_file_list_spec='@'
9314elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9315  nm_file_list_spec='@'
9316fi
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9355$as_echo_n "checking for sysroot... " >&6; }
9356
9357# Check whether --with-sysroot was given.
9358if test "${with_sysroot+set}" = set; then :
9359  withval=$with_sysroot;
9360else
9361  with_sysroot=no
9362fi
9363
9364
9365lt_sysroot=
9366case $with_sysroot in #(
9367 yes)
9368   if test yes = "$GCC"; then
9369     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9370   fi
9371   ;; #(
9372 /*)
9373   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9374   ;; #(
9375 no|'')
9376   ;; #(
9377 *)
9378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9379$as_echo "$with_sysroot" >&6; }
9380   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9381   ;;
9382esac
9383
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9385$as_echo "${lt_sysroot:-no}" >&6; }
9386
9387
9388
9389
9390
9391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9392$as_echo_n "checking for a working dd... " >&6; }
9393if ${ac_cv_path_lt_DD+:} false; then :
9394  $as_echo_n "(cached) " >&6
9395else
9396  printf 0123456789abcdef0123456789abcdef >conftest.i
9397cat conftest.i conftest.i >conftest2.i
9398: ${lt_DD:=$DD}
9399if test -z "$lt_DD"; then
9400  ac_path_lt_DD_found=false
9401  # Loop through the user's path and test for each of PROGNAME-LIST
9402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403for as_dir in $PATH
9404do
9405  IFS=$as_save_IFS
9406  test -z "$as_dir" && as_dir=.
9407    for ac_prog in dd; do
9408    for ac_exec_ext in '' $ac_executable_extensions; do
9409      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9410      as_fn_executable_p "$ac_path_lt_DD" || continue
9411if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9412  cmp -s conftest.i conftest.out \
9413  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9414fi
9415      $ac_path_lt_DD_found && break 3
9416    done
9417  done
9418  done
9419IFS=$as_save_IFS
9420  if test -z "$ac_cv_path_lt_DD"; then
9421    :
9422  fi
9423else
9424  ac_cv_path_lt_DD=$lt_DD
9425fi
9426
9427rm -f conftest.i conftest2.i conftest.out
9428fi
9429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9430$as_echo "$ac_cv_path_lt_DD" >&6; }
9431
9432
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9434$as_echo_n "checking how to truncate binary pipes... " >&6; }
9435if ${lt_cv_truncate_bin+:} false; then :
9436  $as_echo_n "(cached) " >&6
9437else
9438  printf 0123456789abcdef0123456789abcdef >conftest.i
9439cat conftest.i conftest.i >conftest2.i
9440lt_cv_truncate_bin=
9441if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9442  cmp -s conftest.i conftest.out \
9443  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9444fi
9445rm -f conftest.i conftest2.i conftest.out
9446test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9447fi
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9449$as_echo "$lt_cv_truncate_bin" >&6; }
9450
9451
9452
9453
9454
9455
9456
9457# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9458func_cc_basename ()
9459{
9460    for cc_temp in $*""; do
9461      case $cc_temp in
9462        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9463        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9464        \-*) ;;
9465        *) break;;
9466      esac
9467    done
9468    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9469}
9470
9471# Check whether --enable-libtool-lock was given.
9472if test "${enable_libtool_lock+set}" = set; then :
9473  enableval=$enable_libtool_lock;
9474fi
9475
9476test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9477
9478# Some flags need to be propagated to the compiler or linker for good
9479# libtool support.
9480case $host in
9481ia64-*-hpux*)
9482  # Find out what ABI is being produced by ac_compile, and set mode
9483  # options accordingly.
9484  echo 'int i;' > conftest.$ac_ext
9485  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9486  (eval $ac_compile) 2>&5
9487  ac_status=$?
9488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9489  test $ac_status = 0; }; then
9490    case `/usr/bin/file conftest.$ac_objext` in
9491      *ELF-32*)
9492	HPUX_IA64_MODE=32
9493	;;
9494      *ELF-64*)
9495	HPUX_IA64_MODE=64
9496	;;
9497    esac
9498  fi
9499  rm -rf conftest*
9500  ;;
9501*-*-irix6*)
9502  # Find out what ABI is being produced by ac_compile, and set linker
9503  # options accordingly.
9504  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9505  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9506  (eval $ac_compile) 2>&5
9507  ac_status=$?
9508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9509  test $ac_status = 0; }; then
9510    if test yes = "$lt_cv_prog_gnu_ld"; then
9511      case `/usr/bin/file conftest.$ac_objext` in
9512	*32-bit*)
9513	  LD="${LD-ld} -melf32bsmip"
9514	  ;;
9515	*N32*)
9516	  LD="${LD-ld} -melf32bmipn32"
9517	  ;;
9518	*64-bit*)
9519	  LD="${LD-ld} -melf64bmip"
9520	;;
9521      esac
9522    else
9523      case `/usr/bin/file conftest.$ac_objext` in
9524	*32-bit*)
9525	  LD="${LD-ld} -32"
9526	  ;;
9527	*N32*)
9528	  LD="${LD-ld} -n32"
9529	  ;;
9530	*64-bit*)
9531	  LD="${LD-ld} -64"
9532	  ;;
9533      esac
9534    fi
9535  fi
9536  rm -rf conftest*
9537  ;;
9538
9539mips64*-*linux*)
9540  # Find out what ABI is being produced by ac_compile, and set linker
9541  # options accordingly.
9542  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9543  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9544  (eval $ac_compile) 2>&5
9545  ac_status=$?
9546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9547  test $ac_status = 0; }; then
9548    emul=elf
9549    case `/usr/bin/file conftest.$ac_objext` in
9550      *32-bit*)
9551	emul="${emul}32"
9552	;;
9553      *64-bit*)
9554	emul="${emul}64"
9555	;;
9556    esac
9557    case `/usr/bin/file conftest.$ac_objext` in
9558      *MSB*)
9559	emul="${emul}btsmip"
9560	;;
9561      *LSB*)
9562	emul="${emul}ltsmip"
9563	;;
9564    esac
9565    case `/usr/bin/file conftest.$ac_objext` in
9566      *N32*)
9567	emul="${emul}n32"
9568	;;
9569    esac
9570    LD="${LD-ld} -m $emul"
9571  fi
9572  rm -rf conftest*
9573  ;;
9574
9575x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9576s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9577  # Find out what ABI is being produced by ac_compile, and set linker
9578  # options accordingly.  Note that the listed cases only cover the
9579  # situations where additional linker options are needed (such as when
9580  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9581  # vice versa); the common cases where no linker options are needed do
9582  # not appear in the list.
9583  echo 'int i;' > conftest.$ac_ext
9584  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9585  (eval $ac_compile) 2>&5
9586  ac_status=$?
9587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9588  test $ac_status = 0; }; then
9589    case `/usr/bin/file conftest.o` in
9590      *32-bit*)
9591	case $host in
9592	  x86_64-*kfreebsd*-gnu)
9593	    LD="${LD-ld} -m elf_i386_fbsd"
9594	    ;;
9595	  x86_64-*linux*)
9596	    case `/usr/bin/file conftest.o` in
9597	      *x86-64*)
9598		LD="${LD-ld} -m elf32_x86_64"
9599		;;
9600	      *)
9601		LD="${LD-ld} -m elf_i386"
9602		;;
9603	    esac
9604	    ;;
9605	  powerpc64le-*linux*)
9606	    LD="${LD-ld} -m elf32lppclinux"
9607	    ;;
9608	  powerpc64-*linux*)
9609	    LD="${LD-ld} -m elf32ppclinux"
9610	    ;;
9611	  s390x-*linux*)
9612	    LD="${LD-ld} -m elf_s390"
9613	    ;;
9614	  sparc64-*linux*)
9615	    LD="${LD-ld} -m elf32_sparc"
9616	    ;;
9617	esac
9618	;;
9619      *64-bit*)
9620	case $host in
9621	  x86_64-*kfreebsd*-gnu)
9622	    LD="${LD-ld} -m elf_x86_64_fbsd"
9623	    ;;
9624	  x86_64-*linux*)
9625	    LD="${LD-ld} -m elf_x86_64"
9626	    ;;
9627	  powerpcle-*linux*)
9628	    LD="${LD-ld} -m elf64lppc"
9629	    ;;
9630	  powerpc-*linux*)
9631	    LD="${LD-ld} -m elf64ppc"
9632	    ;;
9633	  s390*-*linux*|s390*-*tpf*)
9634	    LD="${LD-ld} -m elf64_s390"
9635	    ;;
9636	  sparc*-*linux*)
9637	    LD="${LD-ld} -m elf64_sparc"
9638	    ;;
9639	esac
9640	;;
9641    esac
9642  fi
9643  rm -rf conftest*
9644  ;;
9645
9646*-*-sco3.2v5*)
9647  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9648  SAVE_CFLAGS=$CFLAGS
9649  CFLAGS="$CFLAGS -belf"
9650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9651$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9652if ${lt_cv_cc_needs_belf+:} false; then :
9653  $as_echo_n "(cached) " >&6
9654else
9655  ac_ext=c
9656ac_cpp='$CPP $CPPFLAGS'
9657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9659ac_compiler_gnu=$ac_cv_c_compiler_gnu
9660
9661     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662/* end confdefs.h.  */
9663
9664int
9665main ()
9666{
9667
9668  ;
9669  return 0;
9670}
9671_ACEOF
9672if ac_fn_c_try_link "$LINENO"; then :
9673  lt_cv_cc_needs_belf=yes
9674else
9675  lt_cv_cc_needs_belf=no
9676fi
9677rm -f core conftest.err conftest.$ac_objext \
9678    conftest$ac_exeext conftest.$ac_ext
9679     ac_ext=c
9680ac_cpp='$CPP $CPPFLAGS'
9681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9683ac_compiler_gnu=$ac_cv_c_compiler_gnu
9684
9685fi
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9687$as_echo "$lt_cv_cc_needs_belf" >&6; }
9688  if test yes != "$lt_cv_cc_needs_belf"; then
9689    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9690    CFLAGS=$SAVE_CFLAGS
9691  fi
9692  ;;
9693*-*solaris*)
9694  # Find out what ABI is being produced by ac_compile, and set linker
9695  # options accordingly.
9696  echo 'int i;' > conftest.$ac_ext
9697  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9698  (eval $ac_compile) 2>&5
9699  ac_status=$?
9700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9701  test $ac_status = 0; }; then
9702    case `/usr/bin/file conftest.o` in
9703    *64-bit*)
9704      case $lt_cv_prog_gnu_ld in
9705      yes*)
9706        case $host in
9707        i?86-*-solaris*|x86_64-*-solaris*)
9708          LD="${LD-ld} -m elf_x86_64"
9709          ;;
9710        sparc*-*-solaris*)
9711          LD="${LD-ld} -m elf64_sparc"
9712          ;;
9713        esac
9714        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9715        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9716          LD=${LD-ld}_sol2
9717        fi
9718        ;;
9719      *)
9720	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9721	  LD="${LD-ld} -64"
9722	fi
9723	;;
9724      esac
9725      ;;
9726    esac
9727  fi
9728  rm -rf conftest*
9729  ;;
9730esac
9731
9732need_locks=$enable_libtool_lock
9733
9734if test -n "$ac_tool_prefix"; then
9735  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9736set dummy ${ac_tool_prefix}mt; ac_word=$2
9737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9738$as_echo_n "checking for $ac_word... " >&6; }
9739if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9740  $as_echo_n "(cached) " >&6
9741else
9742  if test -n "$MANIFEST_TOOL"; then
9743  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9744else
9745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746for as_dir in $PATH
9747do
9748  IFS=$as_save_IFS
9749  test -z "$as_dir" && as_dir=.
9750    for ac_exec_ext in '' $ac_executable_extensions; do
9751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9754    break 2
9755  fi
9756done
9757  done
9758IFS=$as_save_IFS
9759
9760fi
9761fi
9762MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9763if test -n "$MANIFEST_TOOL"; then
9764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9765$as_echo "$MANIFEST_TOOL" >&6; }
9766else
9767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768$as_echo "no" >&6; }
9769fi
9770
9771
9772fi
9773if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9774  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9775  # Extract the first word of "mt", so it can be a program name with args.
9776set dummy mt; ac_word=$2
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778$as_echo_n "checking for $ac_word... " >&6; }
9779if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9780  $as_echo_n "(cached) " >&6
9781else
9782  if test -n "$ac_ct_MANIFEST_TOOL"; then
9783  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9784else
9785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786for as_dir in $PATH
9787do
9788  IFS=$as_save_IFS
9789  test -z "$as_dir" && as_dir=.
9790    for ac_exec_ext in '' $ac_executable_extensions; do
9791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9792    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794    break 2
9795  fi
9796done
9797  done
9798IFS=$as_save_IFS
9799
9800fi
9801fi
9802ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9803if test -n "$ac_ct_MANIFEST_TOOL"; then
9804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9805$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9806else
9807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808$as_echo "no" >&6; }
9809fi
9810
9811  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9812    MANIFEST_TOOL=":"
9813  else
9814    case $cross_compiling:$ac_tool_warned in
9815yes:)
9816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9818ac_tool_warned=yes ;;
9819esac
9820    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9821  fi
9822else
9823  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9824fi
9825
9826test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9828$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9829if ${lt_cv_path_mainfest_tool+:} false; then :
9830  $as_echo_n "(cached) " >&6
9831else
9832  lt_cv_path_mainfest_tool=no
9833  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9834  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9835  cat conftest.err >&5
9836  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9837    lt_cv_path_mainfest_tool=yes
9838  fi
9839  rm -f conftest*
9840fi
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9842$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9843if test yes != "$lt_cv_path_mainfest_tool"; then
9844  MANIFEST_TOOL=:
9845fi
9846
9847
9848
9849
9850
9851
9852  case $host_os in
9853    rhapsody* | darwin*)
9854    if test -n "$ac_tool_prefix"; then
9855  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9856set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858$as_echo_n "checking for $ac_word... " >&6; }
9859if ${ac_cv_prog_DSYMUTIL+:} false; then :
9860  $as_echo_n "(cached) " >&6
9861else
9862  if test -n "$DSYMUTIL"; then
9863  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9864else
9865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866for as_dir in $PATH
9867do
9868  IFS=$as_save_IFS
9869  test -z "$as_dir" && as_dir=.
9870    for ac_exec_ext in '' $ac_executable_extensions; do
9871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9872    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9874    break 2
9875  fi
9876done
9877  done
9878IFS=$as_save_IFS
9879
9880fi
9881fi
9882DSYMUTIL=$ac_cv_prog_DSYMUTIL
9883if test -n "$DSYMUTIL"; then
9884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9885$as_echo "$DSYMUTIL" >&6; }
9886else
9887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888$as_echo "no" >&6; }
9889fi
9890
9891
9892fi
9893if test -z "$ac_cv_prog_DSYMUTIL"; then
9894  ac_ct_DSYMUTIL=$DSYMUTIL
9895  # Extract the first word of "dsymutil", so it can be a program name with args.
9896set dummy dsymutil; ac_word=$2
9897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9898$as_echo_n "checking for $ac_word... " >&6; }
9899if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9900  $as_echo_n "(cached) " >&6
9901else
9902  if test -n "$ac_ct_DSYMUTIL"; then
9903  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9904else
9905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906for as_dir in $PATH
9907do
9908  IFS=$as_save_IFS
9909  test -z "$as_dir" && as_dir=.
9910    for ac_exec_ext in '' $ac_executable_extensions; do
9911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9912    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9914    break 2
9915  fi
9916done
9917  done
9918IFS=$as_save_IFS
9919
9920fi
9921fi
9922ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9923if test -n "$ac_ct_DSYMUTIL"; then
9924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9925$as_echo "$ac_ct_DSYMUTIL" >&6; }
9926else
9927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928$as_echo "no" >&6; }
9929fi
9930
9931  if test "x$ac_ct_DSYMUTIL" = x; then
9932    DSYMUTIL=":"
9933  else
9934    case $cross_compiling:$ac_tool_warned in
9935yes:)
9936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9938ac_tool_warned=yes ;;
9939esac
9940    DSYMUTIL=$ac_ct_DSYMUTIL
9941  fi
9942else
9943  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9944fi
9945
9946    if test -n "$ac_tool_prefix"; then
9947  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9948set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950$as_echo_n "checking for $ac_word... " >&6; }
9951if ${ac_cv_prog_NMEDIT+:} false; then :
9952  $as_echo_n "(cached) " >&6
9953else
9954  if test -n "$NMEDIT"; then
9955  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9956else
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960  IFS=$as_save_IFS
9961  test -z "$as_dir" && as_dir=.
9962    for ac_exec_ext in '' $ac_executable_extensions; do
9963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9964    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966    break 2
9967  fi
9968done
9969  done
9970IFS=$as_save_IFS
9971
9972fi
9973fi
9974NMEDIT=$ac_cv_prog_NMEDIT
9975if test -n "$NMEDIT"; then
9976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9977$as_echo "$NMEDIT" >&6; }
9978else
9979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980$as_echo "no" >&6; }
9981fi
9982
9983
9984fi
9985if test -z "$ac_cv_prog_NMEDIT"; then
9986  ac_ct_NMEDIT=$NMEDIT
9987  # Extract the first word of "nmedit", so it can be a program name with args.
9988set dummy nmedit; ac_word=$2
9989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9990$as_echo_n "checking for $ac_word... " >&6; }
9991if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9992  $as_echo_n "(cached) " >&6
9993else
9994  if test -n "$ac_ct_NMEDIT"; then
9995  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9996else
9997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998for as_dir in $PATH
9999do
10000  IFS=$as_save_IFS
10001  test -z "$as_dir" && as_dir=.
10002    for ac_exec_ext in '' $ac_executable_extensions; do
10003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10004    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10006    break 2
10007  fi
10008done
10009  done
10010IFS=$as_save_IFS
10011
10012fi
10013fi
10014ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10015if test -n "$ac_ct_NMEDIT"; then
10016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10017$as_echo "$ac_ct_NMEDIT" >&6; }
10018else
10019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10020$as_echo "no" >&6; }
10021fi
10022
10023  if test "x$ac_ct_NMEDIT" = x; then
10024    NMEDIT=":"
10025  else
10026    case $cross_compiling:$ac_tool_warned in
10027yes:)
10028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10030ac_tool_warned=yes ;;
10031esac
10032    NMEDIT=$ac_ct_NMEDIT
10033  fi
10034else
10035  NMEDIT="$ac_cv_prog_NMEDIT"
10036fi
10037
10038    if test -n "$ac_tool_prefix"; then
10039  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10040set dummy ${ac_tool_prefix}lipo; ac_word=$2
10041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10042$as_echo_n "checking for $ac_word... " >&6; }
10043if ${ac_cv_prog_LIPO+:} false; then :
10044  $as_echo_n "(cached) " >&6
10045else
10046  if test -n "$LIPO"; then
10047  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10048else
10049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050for as_dir in $PATH
10051do
10052  IFS=$as_save_IFS
10053  test -z "$as_dir" && as_dir=.
10054    for ac_exec_ext in '' $ac_executable_extensions; do
10055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10056    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10058    break 2
10059  fi
10060done
10061  done
10062IFS=$as_save_IFS
10063
10064fi
10065fi
10066LIPO=$ac_cv_prog_LIPO
10067if test -n "$LIPO"; then
10068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10069$as_echo "$LIPO" >&6; }
10070else
10071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072$as_echo "no" >&6; }
10073fi
10074
10075
10076fi
10077if test -z "$ac_cv_prog_LIPO"; then
10078  ac_ct_LIPO=$LIPO
10079  # Extract the first word of "lipo", so it can be a program name with args.
10080set dummy lipo; ac_word=$2
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082$as_echo_n "checking for $ac_word... " >&6; }
10083if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10084  $as_echo_n "(cached) " >&6
10085else
10086  if test -n "$ac_ct_LIPO"; then
10087  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10088else
10089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090for as_dir in $PATH
10091do
10092  IFS=$as_save_IFS
10093  test -z "$as_dir" && as_dir=.
10094    for ac_exec_ext in '' $ac_executable_extensions; do
10095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096    ac_cv_prog_ac_ct_LIPO="lipo"
10097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098    break 2
10099  fi
10100done
10101  done
10102IFS=$as_save_IFS
10103
10104fi
10105fi
10106ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10107if test -n "$ac_ct_LIPO"; then
10108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10109$as_echo "$ac_ct_LIPO" >&6; }
10110else
10111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112$as_echo "no" >&6; }
10113fi
10114
10115  if test "x$ac_ct_LIPO" = x; then
10116    LIPO=":"
10117  else
10118    case $cross_compiling:$ac_tool_warned in
10119yes:)
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10122ac_tool_warned=yes ;;
10123esac
10124    LIPO=$ac_ct_LIPO
10125  fi
10126else
10127  LIPO="$ac_cv_prog_LIPO"
10128fi
10129
10130    if test -n "$ac_tool_prefix"; then
10131  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10132set dummy ${ac_tool_prefix}otool; ac_word=$2
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134$as_echo_n "checking for $ac_word... " >&6; }
10135if ${ac_cv_prog_OTOOL+:} false; then :
10136  $as_echo_n "(cached) " >&6
10137else
10138  if test -n "$OTOOL"; then
10139  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10140else
10141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142for as_dir in $PATH
10143do
10144  IFS=$as_save_IFS
10145  test -z "$as_dir" && as_dir=.
10146    for ac_exec_ext in '' $ac_executable_extensions; do
10147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10148    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150    break 2
10151  fi
10152done
10153  done
10154IFS=$as_save_IFS
10155
10156fi
10157fi
10158OTOOL=$ac_cv_prog_OTOOL
10159if test -n "$OTOOL"; then
10160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10161$as_echo "$OTOOL" >&6; }
10162else
10163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164$as_echo "no" >&6; }
10165fi
10166
10167
10168fi
10169if test -z "$ac_cv_prog_OTOOL"; then
10170  ac_ct_OTOOL=$OTOOL
10171  # Extract the first word of "otool", so it can be a program name with args.
10172set dummy otool; ac_word=$2
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174$as_echo_n "checking for $ac_word... " >&6; }
10175if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10176  $as_echo_n "(cached) " >&6
10177else
10178  if test -n "$ac_ct_OTOOL"; then
10179  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10180else
10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182for as_dir in $PATH
10183do
10184  IFS=$as_save_IFS
10185  test -z "$as_dir" && as_dir=.
10186    for ac_exec_ext in '' $ac_executable_extensions; do
10187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10188    ac_cv_prog_ac_ct_OTOOL="otool"
10189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190    break 2
10191  fi
10192done
10193  done
10194IFS=$as_save_IFS
10195
10196fi
10197fi
10198ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10199if test -n "$ac_ct_OTOOL"; then
10200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10201$as_echo "$ac_ct_OTOOL" >&6; }
10202else
10203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204$as_echo "no" >&6; }
10205fi
10206
10207  if test "x$ac_ct_OTOOL" = x; then
10208    OTOOL=":"
10209  else
10210    case $cross_compiling:$ac_tool_warned in
10211yes:)
10212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10214ac_tool_warned=yes ;;
10215esac
10216    OTOOL=$ac_ct_OTOOL
10217  fi
10218else
10219  OTOOL="$ac_cv_prog_OTOOL"
10220fi
10221
10222    if test -n "$ac_tool_prefix"; then
10223  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10224set dummy ${ac_tool_prefix}otool64; ac_word=$2
10225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226$as_echo_n "checking for $ac_word... " >&6; }
10227if ${ac_cv_prog_OTOOL64+:} false; then :
10228  $as_echo_n "(cached) " >&6
10229else
10230  if test -n "$OTOOL64"; then
10231  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10232else
10233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234for as_dir in $PATH
10235do
10236  IFS=$as_save_IFS
10237  test -z "$as_dir" && as_dir=.
10238    for ac_exec_ext in '' $ac_executable_extensions; do
10239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10240    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10242    break 2
10243  fi
10244done
10245  done
10246IFS=$as_save_IFS
10247
10248fi
10249fi
10250OTOOL64=$ac_cv_prog_OTOOL64
10251if test -n "$OTOOL64"; then
10252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10253$as_echo "$OTOOL64" >&6; }
10254else
10255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256$as_echo "no" >&6; }
10257fi
10258
10259
10260fi
10261if test -z "$ac_cv_prog_OTOOL64"; then
10262  ac_ct_OTOOL64=$OTOOL64
10263  # Extract the first word of "otool64", so it can be a program name with args.
10264set dummy otool64; ac_word=$2
10265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266$as_echo_n "checking for $ac_word... " >&6; }
10267if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10268  $as_echo_n "(cached) " >&6
10269else
10270  if test -n "$ac_ct_OTOOL64"; then
10271  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10272else
10273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274for as_dir in $PATH
10275do
10276  IFS=$as_save_IFS
10277  test -z "$as_dir" && as_dir=.
10278    for ac_exec_ext in '' $ac_executable_extensions; do
10279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10280    ac_cv_prog_ac_ct_OTOOL64="otool64"
10281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282    break 2
10283  fi
10284done
10285  done
10286IFS=$as_save_IFS
10287
10288fi
10289fi
10290ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10291if test -n "$ac_ct_OTOOL64"; then
10292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10293$as_echo "$ac_ct_OTOOL64" >&6; }
10294else
10295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296$as_echo "no" >&6; }
10297fi
10298
10299  if test "x$ac_ct_OTOOL64" = x; then
10300    OTOOL64=":"
10301  else
10302    case $cross_compiling:$ac_tool_warned in
10303yes:)
10304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10306ac_tool_warned=yes ;;
10307esac
10308    OTOOL64=$ac_ct_OTOOL64
10309  fi
10310else
10311  OTOOL64="$ac_cv_prog_OTOOL64"
10312fi
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10341$as_echo_n "checking for -single_module linker flag... " >&6; }
10342if ${lt_cv_apple_cc_single_mod+:} false; then :
10343  $as_echo_n "(cached) " >&6
10344else
10345  lt_cv_apple_cc_single_mod=no
10346      if test -z "$LT_MULTI_MODULE"; then
10347	# By default we will add the -single_module flag. You can override
10348	# by either setting the environment variable LT_MULTI_MODULE
10349	# non-empty at configure time, or by adding -multi_module to the
10350	# link flags.
10351	rm -rf libconftest.dylib*
10352	echo "int foo(void){return 1;}" > conftest.c
10353	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10354-dynamiclib -Wl,-single_module conftest.c" >&5
10355	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10356	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10357        _lt_result=$?
10358	# If there is a non-empty error log, and "single_module"
10359	# appears in it, assume the flag caused a linker warning
10360        if test -s conftest.err && $GREP single_module conftest.err; then
10361	  cat conftest.err >&5
10362	# Otherwise, if the output was created with a 0 exit code from
10363	# the compiler, it worked.
10364	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10365	  lt_cv_apple_cc_single_mod=yes
10366	else
10367	  cat conftest.err >&5
10368	fi
10369	rm -rf libconftest.dylib*
10370	rm -f conftest.*
10371      fi
10372fi
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10374$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10375
10376    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10377$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10378if ${lt_cv_ld_exported_symbols_list+:} false; then :
10379  $as_echo_n "(cached) " >&6
10380else
10381  lt_cv_ld_exported_symbols_list=no
10382      save_LDFLAGS=$LDFLAGS
10383      echo "_main" > conftest.sym
10384      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10385      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386/* end confdefs.h.  */
10387
10388int
10389main ()
10390{
10391
10392  ;
10393  return 0;
10394}
10395_ACEOF
10396if ac_fn_c_try_link "$LINENO"; then :
10397  lt_cv_ld_exported_symbols_list=yes
10398else
10399  lt_cv_ld_exported_symbols_list=no
10400fi
10401rm -f core conftest.err conftest.$ac_objext \
10402    conftest$ac_exeext conftest.$ac_ext
10403	LDFLAGS=$save_LDFLAGS
10404
10405fi
10406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10407$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10408
10409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10410$as_echo_n "checking for -force_load linker flag... " >&6; }
10411if ${lt_cv_ld_force_load+:} false; then :
10412  $as_echo_n "(cached) " >&6
10413else
10414  lt_cv_ld_force_load=no
10415      cat > conftest.c << _LT_EOF
10416int forced_loaded() { return 2;}
10417_LT_EOF
10418      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10419      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10420      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10421      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10422      echo "$RANLIB libconftest.a" >&5
10423      $RANLIB libconftest.a 2>&5
10424      cat > conftest.c << _LT_EOF
10425int main() { return 0;}
10426_LT_EOF
10427      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10428      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10429      _lt_result=$?
10430      if test -s conftest.err && $GREP force_load conftest.err; then
10431	cat conftest.err >&5
10432      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10433	lt_cv_ld_force_load=yes
10434      else
10435	cat conftest.err >&5
10436      fi
10437        rm -f conftest.err libconftest.a conftest conftest.c
10438        rm -rf conftest.dSYM
10439
10440fi
10441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10442$as_echo "$lt_cv_ld_force_load" >&6; }
10443    case $host_os in
10444    rhapsody* | darwin1.[012])
10445      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10446    darwin1.*)
10447      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10448    darwin*) # darwin 5.x on
10449      # if running on 10.5 or later, the deployment target defaults
10450      # to the OS version, if on x86, and 10.4, the deployment
10451      # target defaults to 10.4. Don't you love it?
10452      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10453	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10454	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10455	10.[012][,.]*)
10456	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10457	10.*)
10458	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10459      esac
10460    ;;
10461  esac
10462    if test yes = "$lt_cv_apple_cc_single_mod"; then
10463      _lt_dar_single_mod='$single_module'
10464    fi
10465    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10466      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10467    else
10468      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10469    fi
10470    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10471      _lt_dsymutil='~$DSYMUTIL $lib || :'
10472    else
10473      _lt_dsymutil=
10474    fi
10475    ;;
10476  esac
10477
10478# func_munge_path_list VARIABLE PATH
10479# -----------------------------------
10480# VARIABLE is name of variable containing _space_ separated list of
10481# directories to be munged by the contents of PATH, which is string
10482# having a format:
10483# "DIR[:DIR]:"
10484#       string "DIR[ DIR]" will be prepended to VARIABLE
10485# ":DIR[:DIR]"
10486#       string "DIR[ DIR]" will be appended to VARIABLE
10487# "DIRP[:DIRP]::[DIRA:]DIRA"
10488#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10489#       "DIRA[ DIRA]" will be appended to VARIABLE
10490# "DIR[:DIR]"
10491#       VARIABLE will be replaced by "DIR[ DIR]"
10492func_munge_path_list ()
10493{
10494    case x$2 in
10495    x)
10496        ;;
10497    *:)
10498        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10499        ;;
10500    x:*)
10501        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10502        ;;
10503    *::*)
10504        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10505        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10506        ;;
10507    *)
10508        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10509        ;;
10510    esac
10511}
10512
10513for ac_header in dlfcn.h
10514do :
10515  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10516"
10517if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10518  cat >>confdefs.h <<_ACEOF
10519#define HAVE_DLFCN_H 1
10520_ACEOF
10521
10522fi
10523
10524done
10525
10526
10527
10528
10529
10530# Set options
10531enable_win32_dll=yes
10532
10533case $host in
10534*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10535  if test -n "$ac_tool_prefix"; then
10536  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10537set dummy ${ac_tool_prefix}as; ac_word=$2
10538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539$as_echo_n "checking for $ac_word... " >&6; }
10540if ${ac_cv_prog_AS+:} false; then :
10541  $as_echo_n "(cached) " >&6
10542else
10543  if test -n "$AS"; then
10544  ac_cv_prog_AS="$AS" # Let the user override the test.
10545else
10546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547for as_dir in $PATH
10548do
10549  IFS=$as_save_IFS
10550  test -z "$as_dir" && as_dir=.
10551    for ac_exec_ext in '' $ac_executable_extensions; do
10552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10553    ac_cv_prog_AS="${ac_tool_prefix}as"
10554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10555    break 2
10556  fi
10557done
10558  done
10559IFS=$as_save_IFS
10560
10561fi
10562fi
10563AS=$ac_cv_prog_AS
10564if test -n "$AS"; then
10565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10566$as_echo "$AS" >&6; }
10567else
10568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569$as_echo "no" >&6; }
10570fi
10571
10572
10573fi
10574if test -z "$ac_cv_prog_AS"; then
10575  ac_ct_AS=$AS
10576  # Extract the first word of "as", so it can be a program name with args.
10577set dummy as; ac_word=$2
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579$as_echo_n "checking for $ac_word... " >&6; }
10580if ${ac_cv_prog_ac_ct_AS+:} false; then :
10581  $as_echo_n "(cached) " >&6
10582else
10583  if test -n "$ac_ct_AS"; then
10584  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10585else
10586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587for as_dir in $PATH
10588do
10589  IFS=$as_save_IFS
10590  test -z "$as_dir" && as_dir=.
10591    for ac_exec_ext in '' $ac_executable_extensions; do
10592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10593    ac_cv_prog_ac_ct_AS="as"
10594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595    break 2
10596  fi
10597done
10598  done
10599IFS=$as_save_IFS
10600
10601fi
10602fi
10603ac_ct_AS=$ac_cv_prog_ac_ct_AS
10604if test -n "$ac_ct_AS"; then
10605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10606$as_echo "$ac_ct_AS" >&6; }
10607else
10608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609$as_echo "no" >&6; }
10610fi
10611
10612  if test "x$ac_ct_AS" = x; then
10613    AS="false"
10614  else
10615    case $cross_compiling:$ac_tool_warned in
10616yes:)
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10619ac_tool_warned=yes ;;
10620esac
10621    AS=$ac_ct_AS
10622  fi
10623else
10624  AS="$ac_cv_prog_AS"
10625fi
10626
10627  if test -n "$ac_tool_prefix"; then
10628  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10629set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631$as_echo_n "checking for $ac_word... " >&6; }
10632if ${ac_cv_prog_DLLTOOL+:} false; then :
10633  $as_echo_n "(cached) " >&6
10634else
10635  if test -n "$DLLTOOL"; then
10636  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10637else
10638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639for as_dir in $PATH
10640do
10641  IFS=$as_save_IFS
10642  test -z "$as_dir" && as_dir=.
10643    for ac_exec_ext in '' $ac_executable_extensions; do
10644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10645    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10647    break 2
10648  fi
10649done
10650  done
10651IFS=$as_save_IFS
10652
10653fi
10654fi
10655DLLTOOL=$ac_cv_prog_DLLTOOL
10656if test -n "$DLLTOOL"; then
10657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10658$as_echo "$DLLTOOL" >&6; }
10659else
10660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661$as_echo "no" >&6; }
10662fi
10663
10664
10665fi
10666if test -z "$ac_cv_prog_DLLTOOL"; then
10667  ac_ct_DLLTOOL=$DLLTOOL
10668  # Extract the first word of "dlltool", so it can be a program name with args.
10669set dummy dlltool; ac_word=$2
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10671$as_echo_n "checking for $ac_word... " >&6; }
10672if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10673  $as_echo_n "(cached) " >&6
10674else
10675  if test -n "$ac_ct_DLLTOOL"; then
10676  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10677else
10678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679for as_dir in $PATH
10680do
10681  IFS=$as_save_IFS
10682  test -z "$as_dir" && as_dir=.
10683    for ac_exec_ext in '' $ac_executable_extensions; do
10684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10685    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10687    break 2
10688  fi
10689done
10690  done
10691IFS=$as_save_IFS
10692
10693fi
10694fi
10695ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10696if test -n "$ac_ct_DLLTOOL"; then
10697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10698$as_echo "$ac_ct_DLLTOOL" >&6; }
10699else
10700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701$as_echo "no" >&6; }
10702fi
10703
10704  if test "x$ac_ct_DLLTOOL" = x; then
10705    DLLTOOL="false"
10706  else
10707    case $cross_compiling:$ac_tool_warned in
10708yes:)
10709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10711ac_tool_warned=yes ;;
10712esac
10713    DLLTOOL=$ac_ct_DLLTOOL
10714  fi
10715else
10716  DLLTOOL="$ac_cv_prog_DLLTOOL"
10717fi
10718
10719  if test -n "$ac_tool_prefix"; then
10720  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10721set dummy ${ac_tool_prefix}objdump; ac_word=$2
10722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723$as_echo_n "checking for $ac_word... " >&6; }
10724if ${ac_cv_prog_OBJDUMP+:} false; then :
10725  $as_echo_n "(cached) " >&6
10726else
10727  if test -n "$OBJDUMP"; then
10728  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10729else
10730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10731for as_dir in $PATH
10732do
10733  IFS=$as_save_IFS
10734  test -z "$as_dir" && as_dir=.
10735    for ac_exec_ext in '' $ac_executable_extensions; do
10736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10737    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10739    break 2
10740  fi
10741done
10742  done
10743IFS=$as_save_IFS
10744
10745fi
10746fi
10747OBJDUMP=$ac_cv_prog_OBJDUMP
10748if test -n "$OBJDUMP"; then
10749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10750$as_echo "$OBJDUMP" >&6; }
10751else
10752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753$as_echo "no" >&6; }
10754fi
10755
10756
10757fi
10758if test -z "$ac_cv_prog_OBJDUMP"; then
10759  ac_ct_OBJDUMP=$OBJDUMP
10760  # Extract the first word of "objdump", so it can be a program name with args.
10761set dummy objdump; ac_word=$2
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763$as_echo_n "checking for $ac_word... " >&6; }
10764if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10765  $as_echo_n "(cached) " >&6
10766else
10767  if test -n "$ac_ct_OBJDUMP"; then
10768  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10769else
10770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771for as_dir in $PATH
10772do
10773  IFS=$as_save_IFS
10774  test -z "$as_dir" && as_dir=.
10775    for ac_exec_ext in '' $ac_executable_extensions; do
10776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10777    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10779    break 2
10780  fi
10781done
10782  done
10783IFS=$as_save_IFS
10784
10785fi
10786fi
10787ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10788if test -n "$ac_ct_OBJDUMP"; then
10789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10790$as_echo "$ac_ct_OBJDUMP" >&6; }
10791else
10792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793$as_echo "no" >&6; }
10794fi
10795
10796  if test "x$ac_ct_OBJDUMP" = x; then
10797    OBJDUMP="false"
10798  else
10799    case $cross_compiling:$ac_tool_warned in
10800yes:)
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10803ac_tool_warned=yes ;;
10804esac
10805    OBJDUMP=$ac_ct_OBJDUMP
10806  fi
10807else
10808  OBJDUMP="$ac_cv_prog_OBJDUMP"
10809fi
10810
10811  ;;
10812esac
10813
10814test -z "$AS" && AS=as
10815
10816
10817
10818
10819
10820test -z "$DLLTOOL" && DLLTOOL=dlltool
10821
10822
10823
10824
10825
10826test -z "$OBJDUMP" && OBJDUMP=objdump
10827
10828
10829
10830
10831
10832
10833
10834        enable_dlopen=no
10835
10836
10837
10838            # Check whether --enable-shared was given.
10839if test "${enable_shared+set}" = set; then :
10840  enableval=$enable_shared; p=${PACKAGE-default}
10841    case $enableval in
10842    yes) enable_shared=yes ;;
10843    no) enable_shared=no ;;
10844    *)
10845      enable_shared=no
10846      # Look at the argument we got.  We use all the common list separators.
10847      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10848      for pkg in $enableval; do
10849	IFS=$lt_save_ifs
10850	if test "X$pkg" = "X$p"; then
10851	  enable_shared=yes
10852	fi
10853      done
10854      IFS=$lt_save_ifs
10855      ;;
10856    esac
10857else
10858  enable_shared=yes
10859fi
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869  # Check whether --enable-static was given.
10870if test "${enable_static+set}" = set; then :
10871  enableval=$enable_static; p=${PACKAGE-default}
10872    case $enableval in
10873    yes) enable_static=yes ;;
10874    no) enable_static=no ;;
10875    *)
10876     enable_static=no
10877      # Look at the argument we got.  We use all the common list separators.
10878      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10879      for pkg in $enableval; do
10880	IFS=$lt_save_ifs
10881	if test "X$pkg" = "X$p"; then
10882	  enable_static=yes
10883	fi
10884      done
10885      IFS=$lt_save_ifs
10886      ;;
10887    esac
10888else
10889  enable_static=yes
10890fi
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901# Check whether --with-pic was given.
10902if test "${with_pic+set}" = set; then :
10903  withval=$with_pic; lt_p=${PACKAGE-default}
10904    case $withval in
10905    yes|no) pic_mode=$withval ;;
10906    *)
10907      pic_mode=default
10908      # Look at the argument we got.  We use all the common list separators.
10909      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10910      for lt_pkg in $withval; do
10911	IFS=$lt_save_ifs
10912	if test "X$lt_pkg" = "X$lt_p"; then
10913	  pic_mode=yes
10914	fi
10915      done
10916      IFS=$lt_save_ifs
10917      ;;
10918    esac
10919else
10920  pic_mode=default
10921fi
10922
10923
10924
10925
10926
10927
10928
10929
10930  # Check whether --enable-fast-install was given.
10931if test "${enable_fast_install+set}" = set; then :
10932  enableval=$enable_fast_install; p=${PACKAGE-default}
10933    case $enableval in
10934    yes) enable_fast_install=yes ;;
10935    no) enable_fast_install=no ;;
10936    *)
10937      enable_fast_install=no
10938      # Look at the argument we got.  We use all the common list separators.
10939      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10940      for pkg in $enableval; do
10941	IFS=$lt_save_ifs
10942	if test "X$pkg" = "X$p"; then
10943	  enable_fast_install=yes
10944	fi
10945      done
10946      IFS=$lt_save_ifs
10947      ;;
10948    esac
10949else
10950  enable_fast_install=yes
10951fi
10952
10953
10954
10955
10956
10957
10958
10959
10960  shared_archive_member_spec=
10961case $host,$enable_shared in
10962power*-*-aix[5-9]*,yes)
10963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10964$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10965
10966# Check whether --with-aix-soname was given.
10967if test "${with_aix_soname+set}" = set; then :
10968  withval=$with_aix_soname; case $withval in
10969    aix|svr4|both)
10970      ;;
10971    *)
10972      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10973      ;;
10974    esac
10975    lt_cv_with_aix_soname=$with_aix_soname
10976else
10977  if ${lt_cv_with_aix_soname+:} false; then :
10978  $as_echo_n "(cached) " >&6
10979else
10980  lt_cv_with_aix_soname=aix
10981fi
10982
10983    with_aix_soname=$lt_cv_with_aix_soname
10984fi
10985
10986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10987$as_echo "$with_aix_soname" >&6; }
10988  if test aix != "$with_aix_soname"; then
10989    # For the AIX way of multilib, we name the shared archive member
10990    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10991    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10992    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10993    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10994    if test 64 = "${OBJECT_MODE-32}"; then
10995      shared_archive_member_spec=shr_64
10996    else
10997      shared_archive_member_spec=shr
10998    fi
10999  fi
11000  ;;
11001*)
11002  with_aix_soname=aix
11003  ;;
11004esac
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015# This can be used to rebuild libtool when needed
11016LIBTOOL_DEPS=$ltmain
11017
11018# Always use our own libtool.
11019LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050test -z "$LN_S" && LN_S="ln -s"
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065if test -n "${ZSH_VERSION+set}"; then
11066   setopt NO_GLOB_SUBST
11067fi
11068
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11070$as_echo_n "checking for objdir... " >&6; }
11071if ${lt_cv_objdir+:} false; then :
11072  $as_echo_n "(cached) " >&6
11073else
11074  rm -f .libs 2>/dev/null
11075mkdir .libs 2>/dev/null
11076if test -d .libs; then
11077  lt_cv_objdir=.libs
11078else
11079  # MS-DOS does not allow filenames that begin with a dot.
11080  lt_cv_objdir=_libs
11081fi
11082rmdir .libs 2>/dev/null
11083fi
11084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11085$as_echo "$lt_cv_objdir" >&6; }
11086objdir=$lt_cv_objdir
11087
11088
11089
11090
11091
11092cat >>confdefs.h <<_ACEOF
11093#define LT_OBJDIR "$lt_cv_objdir/"
11094_ACEOF
11095
11096
11097
11098
11099case $host_os in
11100aix3*)
11101  # AIX sometimes has problems with the GCC collect2 program.  For some
11102  # reason, if we set the COLLECT_NAMES environment variable, the problems
11103  # vanish in a puff of smoke.
11104  if test set != "${COLLECT_NAMES+set}"; then
11105    COLLECT_NAMES=
11106    export COLLECT_NAMES
11107  fi
11108  ;;
11109esac
11110
11111# Global variables:
11112ofile=libtool
11113can_build_shared=yes
11114
11115# All known linkers require a '.a' archive for static linking (except MSVC,
11116# which needs '.lib').
11117libext=a
11118
11119with_gnu_ld=$lt_cv_prog_gnu_ld
11120
11121old_CC=$CC
11122old_CFLAGS=$CFLAGS
11123
11124# Set sane defaults for various variables
11125test -z "$CC" && CC=cc
11126test -z "$LTCC" && LTCC=$CC
11127test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11128test -z "$LD" && LD=ld
11129test -z "$ac_objext" && ac_objext=o
11130
11131func_cc_basename $compiler
11132cc_basename=$func_cc_basename_result
11133
11134
11135# Only perform the check for file, if the check method requires it
11136test -z "$MAGIC_CMD" && MAGIC_CMD=file
11137case $deplibs_check_method in
11138file_magic*)
11139  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11141$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11142if ${lt_cv_path_MAGIC_CMD+:} false; then :
11143  $as_echo_n "(cached) " >&6
11144else
11145  case $MAGIC_CMD in
11146[\\/*] |  ?:[\\/]*)
11147  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11148  ;;
11149*)
11150  lt_save_MAGIC_CMD=$MAGIC_CMD
11151  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11152  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11153  for ac_dir in $ac_dummy; do
11154    IFS=$lt_save_ifs
11155    test -z "$ac_dir" && ac_dir=.
11156    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11157      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11158      if test -n "$file_magic_test_file"; then
11159	case $deplibs_check_method in
11160	"file_magic "*)
11161	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11162	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11163	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11164	    $EGREP "$file_magic_regex" > /dev/null; then
11165	    :
11166	  else
11167	    cat <<_LT_EOF 1>&2
11168
11169*** Warning: the command libtool uses to detect shared libraries,
11170*** $file_magic_cmd, produces output that libtool cannot recognize.
11171*** The result is that libtool may fail to recognize shared libraries
11172*** as such.  This will affect the creation of libtool libraries that
11173*** depend on shared libraries, but programs linked with such libtool
11174*** libraries will work regardless of this problem.  Nevertheless, you
11175*** may want to report the problem to your system manager and/or to
11176*** bug-libtool@gnu.org
11177
11178_LT_EOF
11179	  fi ;;
11180	esac
11181      fi
11182      break
11183    fi
11184  done
11185  IFS=$lt_save_ifs
11186  MAGIC_CMD=$lt_save_MAGIC_CMD
11187  ;;
11188esac
11189fi
11190
11191MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11192if test -n "$MAGIC_CMD"; then
11193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11194$as_echo "$MAGIC_CMD" >&6; }
11195else
11196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197$as_echo "no" >&6; }
11198fi
11199
11200
11201
11202
11203
11204if test -z "$lt_cv_path_MAGIC_CMD"; then
11205  if test -n "$ac_tool_prefix"; then
11206    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11207$as_echo_n "checking for file... " >&6; }
11208if ${lt_cv_path_MAGIC_CMD+:} false; then :
11209  $as_echo_n "(cached) " >&6
11210else
11211  case $MAGIC_CMD in
11212[\\/*] |  ?:[\\/]*)
11213  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11214  ;;
11215*)
11216  lt_save_MAGIC_CMD=$MAGIC_CMD
11217  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11218  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11219  for ac_dir in $ac_dummy; do
11220    IFS=$lt_save_ifs
11221    test -z "$ac_dir" && ac_dir=.
11222    if test -f "$ac_dir/file"; then
11223      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11224      if test -n "$file_magic_test_file"; then
11225	case $deplibs_check_method in
11226	"file_magic "*)
11227	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11228	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11229	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11230	    $EGREP "$file_magic_regex" > /dev/null; then
11231	    :
11232	  else
11233	    cat <<_LT_EOF 1>&2
11234
11235*** Warning: the command libtool uses to detect shared libraries,
11236*** $file_magic_cmd, produces output that libtool cannot recognize.
11237*** The result is that libtool may fail to recognize shared libraries
11238*** as such.  This will affect the creation of libtool libraries that
11239*** depend on shared libraries, but programs linked with such libtool
11240*** libraries will work regardless of this problem.  Nevertheless, you
11241*** may want to report the problem to your system manager and/or to
11242*** bug-libtool@gnu.org
11243
11244_LT_EOF
11245	  fi ;;
11246	esac
11247      fi
11248      break
11249    fi
11250  done
11251  IFS=$lt_save_ifs
11252  MAGIC_CMD=$lt_save_MAGIC_CMD
11253  ;;
11254esac
11255fi
11256
11257MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11258if test -n "$MAGIC_CMD"; then
11259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11260$as_echo "$MAGIC_CMD" >&6; }
11261else
11262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263$as_echo "no" >&6; }
11264fi
11265
11266
11267  else
11268    MAGIC_CMD=:
11269  fi
11270fi
11271
11272  fi
11273  ;;
11274esac
11275
11276# Use C for the default configuration in the libtool script
11277
11278lt_save_CC=$CC
11279ac_ext=c
11280ac_cpp='$CPP $CPPFLAGS'
11281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11283ac_compiler_gnu=$ac_cv_c_compiler_gnu
11284
11285
11286# Source file extension for C test sources.
11287ac_ext=c
11288
11289# Object file extension for compiled C test sources.
11290objext=o
11291objext=$objext
11292
11293# Code to be used in simple compile tests
11294lt_simple_compile_test_code="int some_variable = 0;"
11295
11296# Code to be used in simple link tests
11297lt_simple_link_test_code='int main(){return(0);}'
11298
11299
11300
11301
11302
11303
11304
11305# If no C compiler was specified, use CC.
11306LTCC=${LTCC-"$CC"}
11307
11308# If no C compiler flags were specified, use CFLAGS.
11309LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11310
11311# Allow CC to be a program name with arguments.
11312compiler=$CC
11313
11314# Save the default compiler, since it gets overwritten when the other
11315# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11316compiler_DEFAULT=$CC
11317
11318# save warnings/boilerplate of simple test code
11319ac_outfile=conftest.$ac_objext
11320echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11321eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11322_lt_compiler_boilerplate=`cat conftest.err`
11323$RM conftest*
11324
11325ac_outfile=conftest.$ac_objext
11326echo "$lt_simple_link_test_code" >conftest.$ac_ext
11327eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11328_lt_linker_boilerplate=`cat conftest.err`
11329$RM -r conftest*
11330
11331
11332## CAVEAT EMPTOR:
11333## There is no encapsulation within the following macros, do not change
11334## the running order or otherwise move them around unless you know exactly
11335## what you are doing...
11336if test -n "$compiler"; then
11337
11338lt_prog_compiler_no_builtin_flag=
11339
11340if test yes = "$GCC"; then
11341  case $cc_basename in
11342  nvcc*)
11343    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11344  *)
11345    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11346  esac
11347
11348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11349$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11350if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11351  $as_echo_n "(cached) " >&6
11352else
11353  lt_cv_prog_compiler_rtti_exceptions=no
11354   ac_outfile=conftest.$ac_objext
11355   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11356   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11357   # Insert the option either (1) after the last *FLAGS variable, or
11358   # (2) before a word containing "conftest.", or (3) at the end.
11359   # Note that $ac_compile itself does not contain backslashes and begins
11360   # with a dollar sign (not a hyphen), so the echo should work correctly.
11361   # The option is referenced via a variable to avoid confusing sed.
11362   lt_compile=`echo "$ac_compile" | $SED \
11363   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11364   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11365   -e 's:$: $lt_compiler_flag:'`
11366   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11367   (eval "$lt_compile" 2>conftest.err)
11368   ac_status=$?
11369   cat conftest.err >&5
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   if (exit $ac_status) && test -s "$ac_outfile"; then
11372     # The compiler can only warn and ignore the option if not recognized
11373     # So say no if there are warnings other than the usual output.
11374     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11375     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11376     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11377       lt_cv_prog_compiler_rtti_exceptions=yes
11378     fi
11379   fi
11380   $RM conftest*
11381
11382fi
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11384$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11385
11386if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11387    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11388else
11389    :
11390fi
11391
11392fi
11393
11394
11395
11396
11397
11398
11399  lt_prog_compiler_wl=
11400lt_prog_compiler_pic=
11401lt_prog_compiler_static=
11402
11403
11404  if test yes = "$GCC"; then
11405    lt_prog_compiler_wl='-Wl,'
11406    lt_prog_compiler_static='-static'
11407
11408    case $host_os in
11409      aix*)
11410      # All AIX code is PIC.
11411      if test ia64 = "$host_cpu"; then
11412	# AIX 5 now supports IA64 processor
11413	lt_prog_compiler_static='-Bstatic'
11414      fi
11415      lt_prog_compiler_pic='-fPIC'
11416      ;;
11417
11418    amigaos*)
11419      case $host_cpu in
11420      powerpc)
11421            # see comment about AmigaOS4 .so support
11422            lt_prog_compiler_pic='-fPIC'
11423        ;;
11424      m68k)
11425            # FIXME: we need at least 68020 code to build shared libraries, but
11426            # adding the '-m68020' flag to GCC prevents building anything better,
11427            # like '-m68040'.
11428            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11429        ;;
11430      esac
11431      ;;
11432
11433    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11434      # PIC is the default for these OSes.
11435      ;;
11436
11437    mingw* | cygwin* | pw32* | os2* | cegcc*)
11438      # This hack is so that the source file can tell whether it is being
11439      # built for inclusion in a dll (and should export symbols for example).
11440      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11441      # (--disable-auto-import) libraries
11442      lt_prog_compiler_pic='-DDLL_EXPORT'
11443      case $host_os in
11444      os2*)
11445	lt_prog_compiler_static='$wl-static'
11446	;;
11447      esac
11448      ;;
11449
11450    darwin* | rhapsody*)
11451      # PIC is the default on this platform
11452      # Common symbols not allowed in MH_DYLIB files
11453      lt_prog_compiler_pic='-fno-common'
11454      ;;
11455
11456    haiku*)
11457      # PIC is the default for Haiku.
11458      # The "-static" flag exists, but is broken.
11459      lt_prog_compiler_static=
11460      ;;
11461
11462    hpux*)
11463      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11464      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11465      # sets the default TLS model and affects inlining.
11466      case $host_cpu in
11467      hppa*64*)
11468	# +Z the default
11469	;;
11470      *)
11471	lt_prog_compiler_pic='-fPIC'
11472	;;
11473      esac
11474      ;;
11475
11476    interix[3-9]*)
11477      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11478      # Instead, we relocate shared libraries at runtime.
11479      ;;
11480
11481    msdosdjgpp*)
11482      # Just because we use GCC doesn't mean we suddenly get shared libraries
11483      # on systems that don't support them.
11484      lt_prog_compiler_can_build_shared=no
11485      enable_shared=no
11486      ;;
11487
11488    *nto* | *qnx*)
11489      # QNX uses GNU C++, but need to define -shared option too, otherwise
11490      # it will coredump.
11491      lt_prog_compiler_pic='-fPIC -shared'
11492      ;;
11493
11494    sysv4*MP*)
11495      if test -d /usr/nec; then
11496	lt_prog_compiler_pic=-Kconform_pic
11497      fi
11498      ;;
11499
11500    *)
11501      lt_prog_compiler_pic='-fPIC'
11502      ;;
11503    esac
11504
11505    case $cc_basename in
11506    nvcc*) # Cuda Compiler Driver 2.2
11507      lt_prog_compiler_wl='-Xlinker '
11508      if test -n "$lt_prog_compiler_pic"; then
11509        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11510      fi
11511      ;;
11512    esac
11513  else
11514    # PORTME Check for flag to pass linker flags through the system compiler.
11515    case $host_os in
11516    aix*)
11517      lt_prog_compiler_wl='-Wl,'
11518      if test ia64 = "$host_cpu"; then
11519	# AIX 5 now supports IA64 processor
11520	lt_prog_compiler_static='-Bstatic'
11521      else
11522	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11523      fi
11524      ;;
11525
11526    darwin* | rhapsody*)
11527      # PIC is the default on this platform
11528      # Common symbols not allowed in MH_DYLIB files
11529      lt_prog_compiler_pic='-fno-common'
11530      case $cc_basename in
11531      nagfor*)
11532        # NAG Fortran compiler
11533        lt_prog_compiler_wl='-Wl,-Wl,,'
11534        lt_prog_compiler_pic='-PIC'
11535        lt_prog_compiler_static='-Bstatic'
11536        ;;
11537      esac
11538      ;;
11539
11540    mingw* | cygwin* | pw32* | os2* | cegcc*)
11541      # This hack is so that the source file can tell whether it is being
11542      # built for inclusion in a dll (and should export symbols for example).
11543      lt_prog_compiler_pic='-DDLL_EXPORT'
11544      case $host_os in
11545      os2*)
11546	lt_prog_compiler_static='$wl-static'
11547	;;
11548      esac
11549      ;;
11550
11551    hpux9* | hpux10* | hpux11*)
11552      lt_prog_compiler_wl='-Wl,'
11553      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11554      # not for PA HP-UX.
11555      case $host_cpu in
11556      hppa*64*|ia64*)
11557	# +Z the default
11558	;;
11559      *)
11560	lt_prog_compiler_pic='+Z'
11561	;;
11562      esac
11563      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11564      lt_prog_compiler_static='$wl-a ${wl}archive'
11565      ;;
11566
11567    irix5* | irix6* | nonstopux*)
11568      lt_prog_compiler_wl='-Wl,'
11569      # PIC (with -KPIC) is the default.
11570      lt_prog_compiler_static='-non_shared'
11571      ;;
11572
11573    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11574      case $cc_basename in
11575      # old Intel for x86_64, which still supported -KPIC.
11576      ecc*)
11577	lt_prog_compiler_wl='-Wl,'
11578	lt_prog_compiler_pic='-KPIC'
11579	lt_prog_compiler_static='-static'
11580        ;;
11581      # icc used to be incompatible with GCC.
11582      # ICC 10 doesn't accept -KPIC any more.
11583      icc* | ifort*)
11584	lt_prog_compiler_wl='-Wl,'
11585	lt_prog_compiler_pic='-fPIC'
11586	lt_prog_compiler_static='-static'
11587        ;;
11588      # Lahey Fortran 8.1.
11589      lf95*)
11590	lt_prog_compiler_wl='-Wl,'
11591	lt_prog_compiler_pic='--shared'
11592	lt_prog_compiler_static='--static'
11593	;;
11594      nagfor*)
11595	# NAG Fortran compiler
11596	lt_prog_compiler_wl='-Wl,-Wl,,'
11597	lt_prog_compiler_pic='-PIC'
11598	lt_prog_compiler_static='-Bstatic'
11599	;;
11600      tcc*)
11601	# Fabrice Bellard et al's Tiny C Compiler
11602	lt_prog_compiler_wl='-Wl,'
11603	lt_prog_compiler_pic='-fPIC'
11604	lt_prog_compiler_static='-static'
11605	;;
11606      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11607        # Portland Group compilers (*not* the Pentium gcc compiler,
11608	# which looks to be a dead project)
11609	lt_prog_compiler_wl='-Wl,'
11610	lt_prog_compiler_pic='-fpic'
11611	lt_prog_compiler_static='-Bstatic'
11612        ;;
11613      ccc*)
11614        lt_prog_compiler_wl='-Wl,'
11615        # All Alpha code is PIC.
11616        lt_prog_compiler_static='-non_shared'
11617        ;;
11618      xl* | bgxl* | bgf* | mpixl*)
11619	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11620	lt_prog_compiler_wl='-Wl,'
11621	lt_prog_compiler_pic='-qpic'
11622	lt_prog_compiler_static='-qstaticlink'
11623	;;
11624      *)
11625	case `$CC -V 2>&1 | sed 5q` in
11626	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11627	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11628	  lt_prog_compiler_pic='-KPIC'
11629	  lt_prog_compiler_static='-Bstatic'
11630	  lt_prog_compiler_wl=''
11631	  ;;
11632	*Sun\ F* | *Sun*Fortran*)
11633	  lt_prog_compiler_pic='-KPIC'
11634	  lt_prog_compiler_static='-Bstatic'
11635	  lt_prog_compiler_wl='-Qoption ld '
11636	  ;;
11637	*Sun\ C*)
11638	  # Sun C 5.9
11639	  lt_prog_compiler_pic='-KPIC'
11640	  lt_prog_compiler_static='-Bstatic'
11641	  lt_prog_compiler_wl='-Wl,'
11642	  ;;
11643        *Intel*\ [CF]*Compiler*)
11644	  lt_prog_compiler_wl='-Wl,'
11645	  lt_prog_compiler_pic='-fPIC'
11646	  lt_prog_compiler_static='-static'
11647	  ;;
11648	*Portland\ Group*)
11649	  lt_prog_compiler_wl='-Wl,'
11650	  lt_prog_compiler_pic='-fpic'
11651	  lt_prog_compiler_static='-Bstatic'
11652	  ;;
11653	esac
11654	;;
11655      esac
11656      ;;
11657
11658    newsos6)
11659      lt_prog_compiler_pic='-KPIC'
11660      lt_prog_compiler_static='-Bstatic'
11661      ;;
11662
11663    *nto* | *qnx*)
11664      # QNX uses GNU C++, but need to define -shared option too, otherwise
11665      # it will coredump.
11666      lt_prog_compiler_pic='-fPIC -shared'
11667      ;;
11668
11669    osf3* | osf4* | osf5*)
11670      lt_prog_compiler_wl='-Wl,'
11671      # All OSF/1 code is PIC.
11672      lt_prog_compiler_static='-non_shared'
11673      ;;
11674
11675    rdos*)
11676      lt_prog_compiler_static='-non_shared'
11677      ;;
11678
11679    solaris*)
11680      lt_prog_compiler_pic='-KPIC'
11681      lt_prog_compiler_static='-Bstatic'
11682      case $cc_basename in
11683      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11684	lt_prog_compiler_wl='-Qoption ld ';;
11685      *)
11686	lt_prog_compiler_wl='-Wl,';;
11687      esac
11688      ;;
11689
11690    sunos4*)
11691      lt_prog_compiler_wl='-Qoption ld '
11692      lt_prog_compiler_pic='-PIC'
11693      lt_prog_compiler_static='-Bstatic'
11694      ;;
11695
11696    sysv4 | sysv4.2uw2* | sysv4.3*)
11697      lt_prog_compiler_wl='-Wl,'
11698      lt_prog_compiler_pic='-KPIC'
11699      lt_prog_compiler_static='-Bstatic'
11700      ;;
11701
11702    sysv4*MP*)
11703      if test -d /usr/nec; then
11704	lt_prog_compiler_pic='-Kconform_pic'
11705	lt_prog_compiler_static='-Bstatic'
11706      fi
11707      ;;
11708
11709    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11710      lt_prog_compiler_wl='-Wl,'
11711      lt_prog_compiler_pic='-KPIC'
11712      lt_prog_compiler_static='-Bstatic'
11713      ;;
11714
11715    unicos*)
11716      lt_prog_compiler_wl='-Wl,'
11717      lt_prog_compiler_can_build_shared=no
11718      ;;
11719
11720    uts4*)
11721      lt_prog_compiler_pic='-pic'
11722      lt_prog_compiler_static='-Bstatic'
11723      ;;
11724
11725    *)
11726      lt_prog_compiler_can_build_shared=no
11727      ;;
11728    esac
11729  fi
11730
11731case $host_os in
11732  # For platforms that do not support PIC, -DPIC is meaningless:
11733  *djgpp*)
11734    lt_prog_compiler_pic=
11735    ;;
11736  *)
11737    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11738    ;;
11739esac
11740
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11742$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11743if ${lt_cv_prog_compiler_pic+:} false; then :
11744  $as_echo_n "(cached) " >&6
11745else
11746  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11747fi
11748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11749$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11750lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11751
11752#
11753# Check to make sure the PIC flag actually works.
11754#
11755if test -n "$lt_prog_compiler_pic"; then
11756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11757$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11758if ${lt_cv_prog_compiler_pic_works+:} false; then :
11759  $as_echo_n "(cached) " >&6
11760else
11761  lt_cv_prog_compiler_pic_works=no
11762   ac_outfile=conftest.$ac_objext
11763   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11764   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11765   # Insert the option either (1) after the last *FLAGS variable, or
11766   # (2) before a word containing "conftest.", or (3) at the end.
11767   # Note that $ac_compile itself does not contain backslashes and begins
11768   # with a dollar sign (not a hyphen), so the echo should work correctly.
11769   # The option is referenced via a variable to avoid confusing sed.
11770   lt_compile=`echo "$ac_compile" | $SED \
11771   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11772   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11773   -e 's:$: $lt_compiler_flag:'`
11774   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11775   (eval "$lt_compile" 2>conftest.err)
11776   ac_status=$?
11777   cat conftest.err >&5
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   if (exit $ac_status) && test -s "$ac_outfile"; then
11780     # The compiler can only warn and ignore the option if not recognized
11781     # So say no if there are warnings other than the usual output.
11782     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11783     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11784     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11785       lt_cv_prog_compiler_pic_works=yes
11786     fi
11787   fi
11788   $RM conftest*
11789
11790fi
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11792$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11793
11794if test yes = "$lt_cv_prog_compiler_pic_works"; then
11795    case $lt_prog_compiler_pic in
11796     "" | " "*) ;;
11797     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11798     esac
11799else
11800    lt_prog_compiler_pic=
11801     lt_prog_compiler_can_build_shared=no
11802fi
11803
11804fi
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816#
11817# Check to make sure the static flag actually works.
11818#
11819wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11821$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11822if ${lt_cv_prog_compiler_static_works+:} false; then :
11823  $as_echo_n "(cached) " >&6
11824else
11825  lt_cv_prog_compiler_static_works=no
11826   save_LDFLAGS=$LDFLAGS
11827   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11828   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11829   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11830     # The linker can only warn and ignore the option if not recognized
11831     # So say no if there are warnings
11832     if test -s conftest.err; then
11833       # Append any errors to the config.log.
11834       cat conftest.err 1>&5
11835       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11836       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11837       if diff conftest.exp conftest.er2 >/dev/null; then
11838         lt_cv_prog_compiler_static_works=yes
11839       fi
11840     else
11841       lt_cv_prog_compiler_static_works=yes
11842     fi
11843   fi
11844   $RM -r conftest*
11845   LDFLAGS=$save_LDFLAGS
11846
11847fi
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11849$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11850
11851if test yes = "$lt_cv_prog_compiler_static_works"; then
11852    :
11853else
11854    lt_prog_compiler_static=
11855fi
11856
11857
11858
11859
11860
11861
11862
11863  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11864$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11865if ${lt_cv_prog_compiler_c_o+:} false; then :
11866  $as_echo_n "(cached) " >&6
11867else
11868  lt_cv_prog_compiler_c_o=no
11869   $RM -r conftest 2>/dev/null
11870   mkdir conftest
11871   cd conftest
11872   mkdir out
11873   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11874
11875   lt_compiler_flag="-o out/conftest2.$ac_objext"
11876   # Insert the option either (1) after the last *FLAGS variable, or
11877   # (2) before a word containing "conftest.", or (3) at the end.
11878   # Note that $ac_compile itself does not contain backslashes and begins
11879   # with a dollar sign (not a hyphen), so the echo should work correctly.
11880   lt_compile=`echo "$ac_compile" | $SED \
11881   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11882   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11883   -e 's:$: $lt_compiler_flag:'`
11884   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11885   (eval "$lt_compile" 2>out/conftest.err)
11886   ac_status=$?
11887   cat out/conftest.err >&5
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11890   then
11891     # The compiler can only warn and ignore the option if not recognized
11892     # So say no if there are warnings
11893     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11894     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11895     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11896       lt_cv_prog_compiler_c_o=yes
11897     fi
11898   fi
11899   chmod u+w . 2>&5
11900   $RM conftest*
11901   # SGI C++ compiler will create directory out/ii_files/ for
11902   # template instantiation
11903   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11904   $RM out/* && rmdir out
11905   cd ..
11906   $RM -r conftest
11907   $RM conftest*
11908
11909fi
11910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11911$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11912
11913
11914
11915
11916
11917
11918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11919$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11920if ${lt_cv_prog_compiler_c_o+:} false; then :
11921  $as_echo_n "(cached) " >&6
11922else
11923  lt_cv_prog_compiler_c_o=no
11924   $RM -r conftest 2>/dev/null
11925   mkdir conftest
11926   cd conftest
11927   mkdir out
11928   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11929
11930   lt_compiler_flag="-o out/conftest2.$ac_objext"
11931   # Insert the option either (1) after the last *FLAGS variable, or
11932   # (2) before a word containing "conftest.", or (3) at the end.
11933   # Note that $ac_compile itself does not contain backslashes and begins
11934   # with a dollar sign (not a hyphen), so the echo should work correctly.
11935   lt_compile=`echo "$ac_compile" | $SED \
11936   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11937   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11938   -e 's:$: $lt_compiler_flag:'`
11939   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11940   (eval "$lt_compile" 2>out/conftest.err)
11941   ac_status=$?
11942   cat out/conftest.err >&5
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11945   then
11946     # The compiler can only warn and ignore the option if not recognized
11947     # So say no if there are warnings
11948     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11949     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11950     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11951       lt_cv_prog_compiler_c_o=yes
11952     fi
11953   fi
11954   chmod u+w . 2>&5
11955   $RM conftest*
11956   # SGI C++ compiler will create directory out/ii_files/ for
11957   # template instantiation
11958   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11959   $RM out/* && rmdir out
11960   cd ..
11961   $RM -r conftest
11962   $RM conftest*
11963
11964fi
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11966$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11967
11968
11969
11970
11971hard_links=nottested
11972if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11973  # do not overwrite the value of need_locks provided by the user
11974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11975$as_echo_n "checking if we can lock with hard links... " >&6; }
11976  hard_links=yes
11977  $RM conftest*
11978  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11979  touch conftest.a
11980  ln conftest.a conftest.b 2>&5 || hard_links=no
11981  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11983$as_echo "$hard_links" >&6; }
11984  if test no = "$hard_links"; then
11985    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11986$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11987    need_locks=warn
11988  fi
11989else
11990  need_locks=no
11991fi
11992
11993
11994
11995
11996
11997
11998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11999$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12000
12001  runpath_var=
12002  allow_undefined_flag=
12003  always_export_symbols=no
12004  archive_cmds=
12005  archive_expsym_cmds=
12006  compiler_needs_object=no
12007  enable_shared_with_static_runtimes=no
12008  export_dynamic_flag_spec=
12009  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12010  hardcode_automatic=no
12011  hardcode_direct=no
12012  hardcode_direct_absolute=no
12013  hardcode_libdir_flag_spec=
12014  hardcode_libdir_separator=
12015  hardcode_minus_L=no
12016  hardcode_shlibpath_var=unsupported
12017  inherit_rpath=no
12018  link_all_deplibs=unknown
12019  module_cmds=
12020  module_expsym_cmds=
12021  old_archive_from_new_cmds=
12022  old_archive_from_expsyms_cmds=
12023  thread_safe_flag_spec=
12024  whole_archive_flag_spec=
12025  # include_expsyms should be a list of space-separated symbols to be *always*
12026  # included in the symbol list
12027  include_expsyms=
12028  # exclude_expsyms can be an extended regexp of symbols to exclude
12029  # it will be wrapped by ' (' and ')$', so one must not match beginning or
12030  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12031  # as well as any symbol that contains 'd'.
12032  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12033  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12034  # platforms (ab)use it in PIC code, but their linkers get confused if
12035  # the symbol is explicitly referenced.  Since portable code cannot
12036  # rely on this symbol name, it's probably fine to never include it in
12037  # preloaded symbol tables.
12038  # Exclude shared library initialization/finalization symbols.
12039  extract_expsyms_cmds=
12040
12041  case $host_os in
12042  cygwin* | mingw* | pw32* | cegcc*)
12043    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12044    # When not using gcc, we currently assume that we are using
12045    # Microsoft Visual C++.
12046    if test yes != "$GCC"; then
12047      with_gnu_ld=no
12048    fi
12049    ;;
12050  interix*)
12051    # we just hope/assume this is gcc and not c89 (= MSVC++)
12052    with_gnu_ld=yes
12053    ;;
12054  openbsd* | bitrig*)
12055    with_gnu_ld=no
12056    ;;
12057  esac
12058
12059  ld_shlibs=yes
12060
12061  # On some targets, GNU ld is compatible enough with the native linker
12062  # that we're better off using the native interface for both.
12063  lt_use_gnu_ld_interface=no
12064  if test yes = "$with_gnu_ld"; then
12065    case $host_os in
12066      aix*)
12067	# The AIX port of GNU ld has always aspired to compatibility
12068	# with the native linker.  However, as the warning in the GNU ld
12069	# block says, versions before 2.19.5* couldn't really create working
12070	# shared libraries, regardless of the interface used.
12071	case `$LD -v 2>&1` in
12072	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12073	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12074	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12075	  *)
12076	    lt_use_gnu_ld_interface=yes
12077	    ;;
12078	esac
12079	;;
12080      *)
12081	lt_use_gnu_ld_interface=yes
12082	;;
12083    esac
12084  fi
12085
12086  if test yes = "$lt_use_gnu_ld_interface"; then
12087    # If archive_cmds runs LD, not CC, wlarc should be empty
12088    wlarc='$wl'
12089
12090    # Set some defaults for GNU ld with shared library support. These
12091    # are reset later if shared libraries are not supported. Putting them
12092    # here allows them to be overridden if necessary.
12093    runpath_var=LD_RUN_PATH
12094    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12095    export_dynamic_flag_spec='$wl--export-dynamic'
12096    # ancient GNU ld didn't support --whole-archive et. al.
12097    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12098      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12099    else
12100      whole_archive_flag_spec=
12101    fi
12102    supports_anon_versioning=no
12103    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12104      *GNU\ gold*) supports_anon_versioning=yes ;;
12105      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12106      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12107      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12108      *\ 2.11.*) ;; # other 2.11 versions
12109      *) supports_anon_versioning=yes ;;
12110    esac
12111
12112    # See if GNU ld supports shared libraries.
12113    case $host_os in
12114    aix[3-9]*)
12115      # On AIX/PPC, the GNU linker is very broken
12116      if test ia64 != "$host_cpu"; then
12117	ld_shlibs=no
12118	cat <<_LT_EOF 1>&2
12119
12120*** Warning: the GNU linker, at least up to release 2.19, is reported
12121*** to be unable to reliably create shared libraries on AIX.
12122*** Therefore, libtool is disabling shared libraries support.  If you
12123*** really care for shared libraries, you may want to install binutils
12124*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12125*** You will then need to restart the configuration process.
12126
12127_LT_EOF
12128      fi
12129      ;;
12130
12131    amigaos*)
12132      case $host_cpu in
12133      powerpc)
12134            # see comment about AmigaOS4 .so support
12135            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12136            archive_expsym_cmds=''
12137        ;;
12138      m68k)
12139            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)'
12140            hardcode_libdir_flag_spec='-L$libdir'
12141            hardcode_minus_L=yes
12142        ;;
12143      esac
12144      ;;
12145
12146    beos*)
12147      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12148	allow_undefined_flag=unsupported
12149	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12150	# support --undefined.  This deserves some investigation.  FIXME
12151	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12152      else
12153	ld_shlibs=no
12154      fi
12155      ;;
12156
12157    cygwin* | mingw* | pw32* | cegcc*)
12158      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12159      # as there is no search path for DLLs.
12160      hardcode_libdir_flag_spec='-L$libdir'
12161      export_dynamic_flag_spec='$wl--export-all-symbols'
12162      allow_undefined_flag=unsupported
12163      always_export_symbols=no
12164      enable_shared_with_static_runtimes=yes
12165      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'
12166      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12167
12168      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12169        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12170	# If the export-symbols file already is a .def file, use it as
12171	# is; otherwise, prepend EXPORTS...
12172	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12173          cp $export_symbols $output_objdir/$soname.def;
12174        else
12175          echo EXPORTS > $output_objdir/$soname.def;
12176          cat $export_symbols >> $output_objdir/$soname.def;
12177        fi~
12178        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12179      else
12180	ld_shlibs=no
12181      fi
12182      ;;
12183
12184    haiku*)
12185      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12186      link_all_deplibs=yes
12187      ;;
12188
12189    os2*)
12190      hardcode_libdir_flag_spec='-L$libdir'
12191      hardcode_minus_L=yes
12192      allow_undefined_flag=unsupported
12193      shrext_cmds=.dll
12194      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12195	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12196	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12197	$ECHO EXPORTS >> $output_objdir/$libname.def~
12198	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12199	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12200	emximp -o $lib $output_objdir/$libname.def'
12201      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12202	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12203	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12204	$ECHO EXPORTS >> $output_objdir/$libname.def~
12205	prefix_cmds="$SED"~
12206	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12207	  prefix_cmds="$prefix_cmds -e 1d";
12208	fi~
12209	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12210	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12211	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12212	emximp -o $lib $output_objdir/$libname.def'
12213      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12214      enable_shared_with_static_runtimes=yes
12215      file_list_spec='@'
12216      ;;
12217
12218    interix[3-9]*)
12219      hardcode_direct=no
12220      hardcode_shlibpath_var=no
12221      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12222      export_dynamic_flag_spec='$wl-E'
12223      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12224      # Instead, shared libraries are loaded at an image base (0x10000000 by
12225      # default) and relocated if they conflict, which is a slow very memory
12226      # consuming and fragmenting process.  To avoid this, we pick a random,
12227      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12228      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12229      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12230      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'
12231      ;;
12232
12233    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12234      tmp_diet=no
12235      if test linux-dietlibc = "$host_os"; then
12236	case $cc_basename in
12237	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12238	esac
12239      fi
12240      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12241	 && test no = "$tmp_diet"
12242      then
12243	tmp_addflag=' $pic_flag'
12244	tmp_sharedflag='-shared'
12245	case $cc_basename,$host_cpu in
12246        pgcc*)				# Portland Group C compiler
12247	  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'
12248	  tmp_addflag=' $pic_flag'
12249	  ;;
12250	pgf77* | pgf90* | pgf95* | pgfortran*)
12251					# Portland Group f77 and f90 compilers
12252	  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'
12253	  tmp_addflag=' $pic_flag -Mnomain' ;;
12254	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12255	  tmp_addflag=' -i_dynamic' ;;
12256	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12257	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12258	ifc* | ifort*)			# Intel Fortran compiler
12259	  tmp_addflag=' -nofor_main' ;;
12260	lf95*)				# Lahey Fortran 8.1
12261	  whole_archive_flag_spec=
12262	  tmp_sharedflag='--shared' ;;
12263        nagfor*)                        # NAGFOR 5.3
12264          tmp_sharedflag='-Wl,-shared' ;;
12265	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12266	  tmp_sharedflag='-qmkshrobj'
12267	  tmp_addflag= ;;
12268	nvcc*)	# Cuda Compiler Driver 2.2
12269	  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'
12270	  compiler_needs_object=yes
12271	  ;;
12272	esac
12273	case `$CC -V 2>&1 | sed 5q` in
12274	*Sun\ C*)			# Sun C 5.9
12275	  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'
12276	  compiler_needs_object=yes
12277	  tmp_sharedflag='-G' ;;
12278	*Sun\ F*)			# Sun Fortran 8.3
12279	  tmp_sharedflag='-G' ;;
12280	esac
12281	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12282
12283        if test yes = "$supports_anon_versioning"; then
12284          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12285            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12286            echo "local: *; };" >> $output_objdir/$libname.ver~
12287            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12288        fi
12289
12290	case $cc_basename in
12291	tcc*)
12292	  export_dynamic_flag_spec='-rdynamic'
12293	  ;;
12294	xlf* | bgf* | bgxlf* | mpixlf*)
12295	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12296	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12297	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12298	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12299	  if test yes = "$supports_anon_versioning"; then
12300	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12301              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12302              echo "local: *; };" >> $output_objdir/$libname.ver~
12303              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12304	  fi
12305	  ;;
12306	esac
12307      else
12308        ld_shlibs=no
12309      fi
12310      ;;
12311
12312    netbsd*)
12313      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12314	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12315	wlarc=
12316      else
12317	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12318	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12319      fi
12320      ;;
12321
12322    solaris*)
12323      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12324	ld_shlibs=no
12325	cat <<_LT_EOF 1>&2
12326
12327*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12328*** create shared libraries on Solaris systems.  Therefore, libtool
12329*** is disabling shared libraries support.  We urge you to upgrade GNU
12330*** binutils to release 2.9.1 or newer.  Another option is to modify
12331*** your PATH or compiler configuration so that the native linker is
12332*** used, and then restart.
12333
12334_LT_EOF
12335      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12336	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12337	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12338      else
12339	ld_shlibs=no
12340      fi
12341      ;;
12342
12343    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12344      case `$LD -v 2>&1` in
12345        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12346	ld_shlibs=no
12347	cat <<_LT_EOF 1>&2
12348
12349*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12350*** reliably create shared libraries on SCO systems.  Therefore, libtool
12351*** is disabling shared libraries support.  We urge you to upgrade GNU
12352*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12353*** your PATH or compiler configuration so that the native linker is
12354*** used, and then restart.
12355
12356_LT_EOF
12357	;;
12358	*)
12359	  # For security reasons, it is highly recommended that you always
12360	  # use absolute paths for naming shared libraries, and exclude the
12361	  # DT_RUNPATH tag from executables and libraries.  But doing so
12362	  # requires that you compile everything twice, which is a pain.
12363	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12364	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12365	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12366	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12367	  else
12368	    ld_shlibs=no
12369	  fi
12370	;;
12371      esac
12372      ;;
12373
12374    sunos4*)
12375      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12376      wlarc=
12377      hardcode_direct=yes
12378      hardcode_shlibpath_var=no
12379      ;;
12380
12381    *)
12382      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12383	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12384	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12385      else
12386	ld_shlibs=no
12387      fi
12388      ;;
12389    esac
12390
12391    if test no = "$ld_shlibs"; then
12392      runpath_var=
12393      hardcode_libdir_flag_spec=
12394      export_dynamic_flag_spec=
12395      whole_archive_flag_spec=
12396    fi
12397  else
12398    # PORTME fill in a description of your system's linker (not GNU ld)
12399    case $host_os in
12400    aix3*)
12401      allow_undefined_flag=unsupported
12402      always_export_symbols=yes
12403      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'
12404      # Note: this linker hardcodes the directories in LIBPATH if there
12405      # are no directories specified by -L.
12406      hardcode_minus_L=yes
12407      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12408	# Neither direct hardcoding nor static linking is supported with a
12409	# broken collect2.
12410	hardcode_direct=unsupported
12411      fi
12412      ;;
12413
12414    aix[4-9]*)
12415      if test ia64 = "$host_cpu"; then
12416	# On IA64, the linker does run time linking by default, so we don't
12417	# have to do anything special.
12418	aix_use_runtimelinking=no
12419	exp_sym_flag='-Bexport'
12420	no_entry_flag=
12421      else
12422	# If we're using GNU nm, then we don't want the "-C" option.
12423	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12424	# Without the "-l" option, or with the "-B" option, AIX nm treats
12425	# weak defined symbols like other global defined symbols, whereas
12426	# GNU nm marks them as "W".
12427	# While the 'weak' keyword is ignored in the Export File, we need
12428	# it in the Import File for the 'aix-soname' feature, so we have
12429	# to replace the "-B" option with "-P" for AIX nm.
12430	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12431	  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'
12432	else
12433	  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 == "L") || (\$ 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'
12434	fi
12435	aix_use_runtimelinking=no
12436
12437	# Test if we are trying to use run time linking or normal
12438	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12439	# have runtime linking enabled, and use it for executables.
12440	# For shared libraries, we enable/disable runtime linking
12441	# depending on the kind of the shared library created -
12442	# when "with_aix_soname,aix_use_runtimelinking" is:
12443	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12444	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12445	#            lib.a           static archive
12446	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12447	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12448	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12449	#            lib.a(lib.so.V) shared, rtl:no
12450	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12451	#            lib.a           static archive
12452	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12453	  for ld_flag in $LDFLAGS; do
12454	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12455	    aix_use_runtimelinking=yes
12456	    break
12457	  fi
12458	  done
12459	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12460	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12461	    # so we don't have lib.a shared libs to link our executables.
12462	    # We have to force runtime linking in this case.
12463	    aix_use_runtimelinking=yes
12464	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12465	  fi
12466	  ;;
12467	esac
12468
12469	exp_sym_flag='-bexport'
12470	no_entry_flag='-bnoentry'
12471      fi
12472
12473      # When large executables or shared objects are built, AIX ld can
12474      # have problems creating the table of contents.  If linking a library
12475      # or program results in "error TOC overflow" add -mminimal-toc to
12476      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12477      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12478
12479      archive_cmds=''
12480      hardcode_direct=yes
12481      hardcode_direct_absolute=yes
12482      hardcode_libdir_separator=':'
12483      link_all_deplibs=yes
12484      file_list_spec='$wl-f,'
12485      case $with_aix_soname,$aix_use_runtimelinking in
12486      aix,*) ;; # traditional, no import file
12487      svr4,* | *,yes) # use import file
12488	# The Import File defines what to hardcode.
12489	hardcode_direct=no
12490	hardcode_direct_absolute=no
12491	;;
12492      esac
12493
12494      if test yes = "$GCC"; then
12495	case $host_os in aix4.[012]|aix4.[012].*)
12496	# We only want to do this on AIX 4.2 and lower, the check
12497	# below for broken collect2 doesn't work under 4.3+
12498	  collect2name=`$CC -print-prog-name=collect2`
12499	  if test -f "$collect2name" &&
12500	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12501	  then
12502	  # We have reworked collect2
12503	  :
12504	  else
12505	  # We have old collect2
12506	  hardcode_direct=unsupported
12507	  # It fails to find uninstalled libraries when the uninstalled
12508	  # path is not listed in the libpath.  Setting hardcode_minus_L
12509	  # to unsupported forces relinking
12510	  hardcode_minus_L=yes
12511	  hardcode_libdir_flag_spec='-L$libdir'
12512	  hardcode_libdir_separator=
12513	  fi
12514	  ;;
12515	esac
12516	shared_flag='-shared'
12517	if test yes = "$aix_use_runtimelinking"; then
12518	  shared_flag="$shared_flag "'$wl-G'
12519	fi
12520	# Need to ensure runtime linking is disabled for the traditional
12521	# shared library, or the linker may eventually find shared libraries
12522	# /with/ Import File - we do not want to mix them.
12523	shared_flag_aix='-shared'
12524	shared_flag_svr4='-shared $wl-G'
12525      else
12526	# not using gcc
12527	if test ia64 = "$host_cpu"; then
12528	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12529	# chokes on -Wl,-G. The following line is correct:
12530	  shared_flag='-G'
12531	else
12532	  if test yes = "$aix_use_runtimelinking"; then
12533	    shared_flag='$wl-G'
12534	  else
12535	    shared_flag='$wl-bM:SRE'
12536	  fi
12537	  shared_flag_aix='$wl-bM:SRE'
12538	  shared_flag_svr4='$wl-G'
12539	fi
12540      fi
12541
12542      export_dynamic_flag_spec='$wl-bexpall'
12543      # It seems that -bexpall does not export symbols beginning with
12544      # underscore (_), so it is better to generate a list of symbols to export.
12545      always_export_symbols=yes
12546      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12547	# Warning - without using the other runtime loading flags (-brtl),
12548	# -berok will link without error, but may produce a broken library.
12549	allow_undefined_flag='-berok'
12550        # Determine the default libpath from the value encoded in an
12551        # empty executable.
12552        if test set = "${lt_cv_aix_libpath+set}"; then
12553  aix_libpath=$lt_cv_aix_libpath
12554else
12555  if ${lt_cv_aix_libpath_+:} false; then :
12556  $as_echo_n "(cached) " >&6
12557else
12558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559/* end confdefs.h.  */
12560
12561int
12562main ()
12563{
12564
12565  ;
12566  return 0;
12567}
12568_ACEOF
12569if ac_fn_c_try_link "$LINENO"; then :
12570
12571  lt_aix_libpath_sed='
12572      /Import File Strings/,/^$/ {
12573	  /^0/ {
12574	      s/^0  *\([^ ]*\) *$/\1/
12575	      p
12576	  }
12577      }'
12578  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12579  # Check for a 64-bit object if we didn't find anything.
12580  if test -z "$lt_cv_aix_libpath_"; then
12581    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12582  fi
12583fi
12584rm -f core conftest.err conftest.$ac_objext \
12585    conftest$ac_exeext conftest.$ac_ext
12586  if test -z "$lt_cv_aix_libpath_"; then
12587    lt_cv_aix_libpath_=/usr/lib:/lib
12588  fi
12589
12590fi
12591
12592  aix_libpath=$lt_cv_aix_libpath_
12593fi
12594
12595        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12596        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
12597      else
12598	if test ia64 = "$host_cpu"; then
12599	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12600	  allow_undefined_flag="-z nodefs"
12601	  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"
12602	else
12603	 # Determine the default libpath from the value encoded in an
12604	 # empty executable.
12605	 if test set = "${lt_cv_aix_libpath+set}"; then
12606  aix_libpath=$lt_cv_aix_libpath
12607else
12608  if ${lt_cv_aix_libpath_+:} false; then :
12609  $as_echo_n "(cached) " >&6
12610else
12611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612/* end confdefs.h.  */
12613
12614int
12615main ()
12616{
12617
12618  ;
12619  return 0;
12620}
12621_ACEOF
12622if ac_fn_c_try_link "$LINENO"; then :
12623
12624  lt_aix_libpath_sed='
12625      /Import File Strings/,/^$/ {
12626	  /^0/ {
12627	      s/^0  *\([^ ]*\) *$/\1/
12628	      p
12629	  }
12630      }'
12631  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12632  # Check for a 64-bit object if we didn't find anything.
12633  if test -z "$lt_cv_aix_libpath_"; then
12634    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12635  fi
12636fi
12637rm -f core conftest.err conftest.$ac_objext \
12638    conftest$ac_exeext conftest.$ac_ext
12639  if test -z "$lt_cv_aix_libpath_"; then
12640    lt_cv_aix_libpath_=/usr/lib:/lib
12641  fi
12642
12643fi
12644
12645  aix_libpath=$lt_cv_aix_libpath_
12646fi
12647
12648	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12649	  # Warning - without using the other run time loading flags,
12650	  # -berok will link without error, but may produce a broken library.
12651	  no_undefined_flag=' $wl-bernotok'
12652	  allow_undefined_flag=' $wl-berok'
12653	  if test yes = "$with_gnu_ld"; then
12654	    # We only use this code for GNU lds that support --whole-archive.
12655	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12656	  else
12657	    # Exported symbols can be pulled into shared objects from archives
12658	    whole_archive_flag_spec='$convenience'
12659	  fi
12660	  archive_cmds_need_lc=yes
12661	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12662	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12663	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12664	  if test svr4 != "$with_aix_soname"; then
12665	    # This is similar to how AIX traditionally builds its shared libraries.
12666	    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'
12667	  fi
12668	  if test aix != "$with_aix_soname"; then
12669	    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'
12670	  else
12671	    # used by -dlpreopen to get the symbols
12672	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12673	  fi
12674	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12675	fi
12676      fi
12677      ;;
12678
12679    amigaos*)
12680      case $host_cpu in
12681      powerpc)
12682            # see comment about AmigaOS4 .so support
12683            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12684            archive_expsym_cmds=''
12685        ;;
12686      m68k)
12687            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)'
12688            hardcode_libdir_flag_spec='-L$libdir'
12689            hardcode_minus_L=yes
12690        ;;
12691      esac
12692      ;;
12693
12694    bsdi[45]*)
12695      export_dynamic_flag_spec=-rdynamic
12696      ;;
12697
12698    cygwin* | mingw* | pw32* | cegcc*)
12699      # When not using gcc, we currently assume that we are using
12700      # Microsoft Visual C++.
12701      # hardcode_libdir_flag_spec is actually meaningless, as there is
12702      # no search path for DLLs.
12703      case $cc_basename in
12704      cl*)
12705	# Native MSVC
12706	hardcode_libdir_flag_spec=' '
12707	allow_undefined_flag=unsupported
12708	always_export_symbols=yes
12709	file_list_spec='@'
12710	# Tell ltmain to make .lib files, not .a files.
12711	libext=lib
12712	# Tell ltmain to make .dll files, not .so files.
12713	shrext_cmds=.dll
12714	# FIXME: Setting linknames here is a bad hack.
12715	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12716	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12717            cp "$export_symbols" "$output_objdir/$soname.def";
12718            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12719          else
12720            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12721          fi~
12722          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12723          linknames='
12724	# The linker will not automatically build a static lib if we build a DLL.
12725	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12726	enable_shared_with_static_runtimes=yes
12727	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12728	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12729	# Don't use ranlib
12730	old_postinstall_cmds='chmod 644 $oldlib'
12731	postlink_cmds='lt_outputfile="@OUTPUT@"~
12732          lt_tool_outputfile="@TOOL_OUTPUT@"~
12733          case $lt_outputfile in
12734            *.exe|*.EXE) ;;
12735            *)
12736              lt_outputfile=$lt_outputfile.exe
12737              lt_tool_outputfile=$lt_tool_outputfile.exe
12738              ;;
12739          esac~
12740          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12741            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12742            $RM "$lt_outputfile.manifest";
12743          fi'
12744	;;
12745      *)
12746	# Assume MSVC wrapper
12747	hardcode_libdir_flag_spec=' '
12748	allow_undefined_flag=unsupported
12749	# Tell ltmain to make .lib files, not .a files.
12750	libext=lib
12751	# Tell ltmain to make .dll files, not .so files.
12752	shrext_cmds=.dll
12753	# FIXME: Setting linknames here is a bad hack.
12754	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12755	# The linker will automatically build a .lib file if we build a DLL.
12756	old_archive_from_new_cmds='true'
12757	# FIXME: Should let the user specify the lib program.
12758	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12759	enable_shared_with_static_runtimes=yes
12760	;;
12761      esac
12762      ;;
12763
12764    darwin* | rhapsody*)
12765
12766
12767  archive_cmds_need_lc=no
12768  hardcode_direct=no
12769  hardcode_automatic=yes
12770  hardcode_shlibpath_var=unsupported
12771  if test yes = "$lt_cv_ld_force_load"; then
12772    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\"`'
12773
12774  else
12775    whole_archive_flag_spec=''
12776  fi
12777  link_all_deplibs=yes
12778  allow_undefined_flag=$_lt_dar_allow_undefined
12779  case $cc_basename in
12780     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12781     *) _lt_dar_can_shared=$GCC ;;
12782  esac
12783  if test yes = "$_lt_dar_can_shared"; then
12784    output_verbose_link_cmd=func_echo_all
12785    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12786    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12787    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"
12788    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"
12789
12790  else
12791  ld_shlibs=no
12792  fi
12793
12794      ;;
12795
12796    dgux*)
12797      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12798      hardcode_libdir_flag_spec='-L$libdir'
12799      hardcode_shlibpath_var=no
12800      ;;
12801
12802    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12803    # support.  Future versions do this automatically, but an explicit c++rt0.o
12804    # does not break anything, and helps significantly (at the cost of a little
12805    # extra space).
12806    freebsd2.2*)
12807      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12808      hardcode_libdir_flag_spec='-R$libdir'
12809      hardcode_direct=yes
12810      hardcode_shlibpath_var=no
12811      ;;
12812
12813    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12814    freebsd2.*)
12815      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12816      hardcode_direct=yes
12817      hardcode_minus_L=yes
12818      hardcode_shlibpath_var=no
12819      ;;
12820
12821    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12822    freebsd* | dragonfly*)
12823      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12824      hardcode_libdir_flag_spec='-R$libdir'
12825      hardcode_direct=yes
12826      hardcode_shlibpath_var=no
12827      ;;
12828
12829    hpux9*)
12830      if test yes = "$GCC"; then
12831	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'
12832      else
12833	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'
12834      fi
12835      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12836      hardcode_libdir_separator=:
12837      hardcode_direct=yes
12838
12839      # hardcode_minus_L: Not really in the search PATH,
12840      # but as the default location of the library.
12841      hardcode_minus_L=yes
12842      export_dynamic_flag_spec='$wl-E'
12843      ;;
12844
12845    hpux10*)
12846      if test yes,no = "$GCC,$with_gnu_ld"; then
12847	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12848      else
12849	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12850      fi
12851      if test no = "$with_gnu_ld"; then
12852	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12853	hardcode_libdir_separator=:
12854	hardcode_direct=yes
12855	hardcode_direct_absolute=yes
12856	export_dynamic_flag_spec='$wl-E'
12857	# hardcode_minus_L: Not really in the search PATH,
12858	# but as the default location of the library.
12859	hardcode_minus_L=yes
12860      fi
12861      ;;
12862
12863    hpux11*)
12864      if test yes,no = "$GCC,$with_gnu_ld"; then
12865	case $host_cpu in
12866	hppa*64*)
12867	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12868	  ;;
12869	ia64*)
12870	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12871	  ;;
12872	*)
12873	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12874	  ;;
12875	esac
12876      else
12877	case $host_cpu in
12878	hppa*64*)
12879	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12880	  ;;
12881	ia64*)
12882	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12883	  ;;
12884	*)
12885
12886	  # Older versions of the 11.00 compiler do not understand -b yet
12887	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12888	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12889$as_echo_n "checking if $CC understands -b... " >&6; }
12890if ${lt_cv_prog_compiler__b+:} false; then :
12891  $as_echo_n "(cached) " >&6
12892else
12893  lt_cv_prog_compiler__b=no
12894   save_LDFLAGS=$LDFLAGS
12895   LDFLAGS="$LDFLAGS -b"
12896   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12897   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12898     # The linker can only warn and ignore the option if not recognized
12899     # So say no if there are warnings
12900     if test -s conftest.err; then
12901       # Append any errors to the config.log.
12902       cat conftest.err 1>&5
12903       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12904       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12905       if diff conftest.exp conftest.er2 >/dev/null; then
12906         lt_cv_prog_compiler__b=yes
12907       fi
12908     else
12909       lt_cv_prog_compiler__b=yes
12910     fi
12911   fi
12912   $RM -r conftest*
12913   LDFLAGS=$save_LDFLAGS
12914
12915fi
12916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12917$as_echo "$lt_cv_prog_compiler__b" >&6; }
12918
12919if test yes = "$lt_cv_prog_compiler__b"; then
12920    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12921else
12922    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12923fi
12924
12925	  ;;
12926	esac
12927      fi
12928      if test no = "$with_gnu_ld"; then
12929	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12930	hardcode_libdir_separator=:
12931
12932	case $host_cpu in
12933	hppa*64*|ia64*)
12934	  hardcode_direct=no
12935	  hardcode_shlibpath_var=no
12936	  ;;
12937	*)
12938	  hardcode_direct=yes
12939	  hardcode_direct_absolute=yes
12940	  export_dynamic_flag_spec='$wl-E'
12941
12942	  # hardcode_minus_L: Not really in the search PATH,
12943	  # but as the default location of the library.
12944	  hardcode_minus_L=yes
12945	  ;;
12946	esac
12947      fi
12948      ;;
12949
12950    irix5* | irix6* | nonstopux*)
12951      if test yes = "$GCC"; then
12952	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'
12953	# Try to use the -exported_symbol ld option, if it does not
12954	# work, assume that -exports_file does not work either and
12955	# implicitly export all symbols.
12956	# This should be the same for all languages, so no per-tag cache variable.
12957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12958$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12959if ${lt_cv_irix_exported_symbol+:} false; then :
12960  $as_echo_n "(cached) " >&6
12961else
12962  save_LDFLAGS=$LDFLAGS
12963	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12964	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965/* end confdefs.h.  */
12966int foo (void) { return 0; }
12967_ACEOF
12968if ac_fn_c_try_link "$LINENO"; then :
12969  lt_cv_irix_exported_symbol=yes
12970else
12971  lt_cv_irix_exported_symbol=no
12972fi
12973rm -f core conftest.err conftest.$ac_objext \
12974    conftest$ac_exeext conftest.$ac_ext
12975           LDFLAGS=$save_LDFLAGS
12976fi
12977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12978$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12979	if test yes = "$lt_cv_irix_exported_symbol"; then
12980          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'
12981	fi
12982      else
12983	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'
12984	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'
12985      fi
12986      archive_cmds_need_lc='no'
12987      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12988      hardcode_libdir_separator=:
12989      inherit_rpath=yes
12990      link_all_deplibs=yes
12991      ;;
12992
12993    linux*)
12994      case $cc_basename in
12995      tcc*)
12996	# Fabrice Bellard et al's Tiny C Compiler
12997	ld_shlibs=yes
12998	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12999	;;
13000      esac
13001      ;;
13002
13003    netbsd*)
13004      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13005	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13006      else
13007	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13008      fi
13009      hardcode_libdir_flag_spec='-R$libdir'
13010      hardcode_direct=yes
13011      hardcode_shlibpath_var=no
13012      ;;
13013
13014    newsos6)
13015      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13016      hardcode_direct=yes
13017      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13018      hardcode_libdir_separator=:
13019      hardcode_shlibpath_var=no
13020      ;;
13021
13022    *nto* | *qnx*)
13023      ;;
13024
13025    openbsd* | bitrig*)
13026      if test -f /usr/libexec/ld.so; then
13027	hardcode_direct=yes
13028	hardcode_shlibpath_var=no
13029	hardcode_direct_absolute=yes
13030	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13031	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13032	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13033	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13034	  export_dynamic_flag_spec='$wl-E'
13035	else
13036	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13037	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13038	fi
13039      else
13040	ld_shlibs=no
13041      fi
13042      ;;
13043
13044    os2*)
13045      hardcode_libdir_flag_spec='-L$libdir'
13046      hardcode_minus_L=yes
13047      allow_undefined_flag=unsupported
13048      shrext_cmds=.dll
13049      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13050	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13051	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13052	$ECHO EXPORTS >> $output_objdir/$libname.def~
13053	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13054	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13055	emximp -o $lib $output_objdir/$libname.def'
13056      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13057	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13058	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13059	$ECHO EXPORTS >> $output_objdir/$libname.def~
13060	prefix_cmds="$SED"~
13061	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13062	  prefix_cmds="$prefix_cmds -e 1d";
13063	fi~
13064	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13065	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13066	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13067	emximp -o $lib $output_objdir/$libname.def'
13068      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13069      enable_shared_with_static_runtimes=yes
13070      file_list_spec='@'
13071      ;;
13072
13073    osf3*)
13074      if test yes = "$GCC"; then
13075	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13076	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'
13077      else
13078	allow_undefined_flag=' -expect_unresolved \*'
13079	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'
13080      fi
13081      archive_cmds_need_lc='no'
13082      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13083      hardcode_libdir_separator=:
13084      ;;
13085
13086    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13087      if test yes = "$GCC"; then
13088	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13089	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'
13090	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13091      else
13092	allow_undefined_flag=' -expect_unresolved \*'
13093	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'
13094	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~
13095          $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'
13096
13097	# Both c and cxx compiler support -rpath directly
13098	hardcode_libdir_flag_spec='-rpath $libdir'
13099      fi
13100      archive_cmds_need_lc='no'
13101      hardcode_libdir_separator=:
13102      ;;
13103
13104    solaris*)
13105      no_undefined_flag=' -z defs'
13106      if test yes = "$GCC"; then
13107	wlarc='$wl'
13108	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13109	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13110          $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'
13111      else
13112	case `$CC -V 2>&1` in
13113	*"Compilers 5.0"*)
13114	  wlarc=''
13115	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13116	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13117            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13118	  ;;
13119	*)
13120	  wlarc='$wl'
13121	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13122	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13123            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13124	  ;;
13125	esac
13126      fi
13127      hardcode_libdir_flag_spec='-R$libdir'
13128      hardcode_shlibpath_var=no
13129      case $host_os in
13130      solaris2.[0-5] | solaris2.[0-5].*) ;;
13131      *)
13132	# The compiler driver will combine and reorder linker options,
13133	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13134	# but is careful enough not to reorder.
13135	# Supported since Solaris 2.6 (maybe 2.5.1?)
13136	if test yes = "$GCC"; then
13137	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13138	else
13139	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13140	fi
13141	;;
13142      esac
13143      link_all_deplibs=yes
13144      ;;
13145
13146    sunos4*)
13147      if test sequent = "$host_vendor"; then
13148	# Use $CC to link under sequent, because it throws in some extra .o
13149	# files that make .init and .fini sections work.
13150	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13151      else
13152	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13153      fi
13154      hardcode_libdir_flag_spec='-L$libdir'
13155      hardcode_direct=yes
13156      hardcode_minus_L=yes
13157      hardcode_shlibpath_var=no
13158      ;;
13159
13160    sysv4)
13161      case $host_vendor in
13162	sni)
13163	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13164	  hardcode_direct=yes # is this really true???
13165	;;
13166	siemens)
13167	  ## LD is ld it makes a PLAMLIB
13168	  ## CC just makes a GrossModule.
13169	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13170	  reload_cmds='$CC -r -o $output$reload_objs'
13171	  hardcode_direct=no
13172        ;;
13173	motorola)
13174	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13175	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13176	;;
13177      esac
13178      runpath_var='LD_RUN_PATH'
13179      hardcode_shlibpath_var=no
13180      ;;
13181
13182    sysv4.3*)
13183      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13184      hardcode_shlibpath_var=no
13185      export_dynamic_flag_spec='-Bexport'
13186      ;;
13187
13188    sysv4*MP*)
13189      if test -d /usr/nec; then
13190	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13191	hardcode_shlibpath_var=no
13192	runpath_var=LD_RUN_PATH
13193	hardcode_runpath_var=yes
13194	ld_shlibs=yes
13195      fi
13196      ;;
13197
13198    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13199      no_undefined_flag='$wl-z,text'
13200      archive_cmds_need_lc=no
13201      hardcode_shlibpath_var=no
13202      runpath_var='LD_RUN_PATH'
13203
13204      if test yes = "$GCC"; then
13205	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13206	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13207      else
13208	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13209	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13210      fi
13211      ;;
13212
13213    sysv5* | sco3.2v5* | sco5v6*)
13214      # Note: We CANNOT use -z defs as we might desire, because we do not
13215      # link with -lc, and that would cause any symbols used from libc to
13216      # always be unresolved, which means just about no library would
13217      # ever link correctly.  If we're not using GNU ld we use -z text
13218      # though, which does catch some bad symbols but isn't as heavy-handed
13219      # as -z defs.
13220      no_undefined_flag='$wl-z,text'
13221      allow_undefined_flag='$wl-z,nodefs'
13222      archive_cmds_need_lc=no
13223      hardcode_shlibpath_var=no
13224      hardcode_libdir_flag_spec='$wl-R,$libdir'
13225      hardcode_libdir_separator=':'
13226      link_all_deplibs=yes
13227      export_dynamic_flag_spec='$wl-Bexport'
13228      runpath_var='LD_RUN_PATH'
13229
13230      if test yes = "$GCC"; then
13231	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13232	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13233      else
13234	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13235	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13236      fi
13237      ;;
13238
13239    uts4*)
13240      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13241      hardcode_libdir_flag_spec='-L$libdir'
13242      hardcode_shlibpath_var=no
13243      ;;
13244
13245    *)
13246      ld_shlibs=no
13247      ;;
13248    esac
13249
13250    if test sni = "$host_vendor"; then
13251      case $host in
13252      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13253	export_dynamic_flag_spec='$wl-Blargedynsym'
13254	;;
13255      esac
13256    fi
13257  fi
13258
13259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13260$as_echo "$ld_shlibs" >&6; }
13261test no = "$ld_shlibs" && can_build_shared=no
13262
13263with_gnu_ld=$with_gnu_ld
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279#
13280# Do we need to explicitly link libc?
13281#
13282case "x$archive_cmds_need_lc" in
13283x|xyes)
13284  # Assume -lc should be added
13285  archive_cmds_need_lc=yes
13286
13287  if test yes,yes = "$GCC,$enable_shared"; then
13288    case $archive_cmds in
13289    *'~'*)
13290      # FIXME: we may have to deal with multi-command sequences.
13291      ;;
13292    '$CC '*)
13293      # Test whether the compiler implicitly links with -lc since on some
13294      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13295      # to ld, don't add -lc before -lgcc.
13296      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13297$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13298if ${lt_cv_archive_cmds_need_lc+:} false; then :
13299  $as_echo_n "(cached) " >&6
13300else
13301  $RM conftest*
13302	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13303
13304	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13305  (eval $ac_compile) 2>&5
13306  ac_status=$?
13307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13308  test $ac_status = 0; } 2>conftest.err; then
13309	  soname=conftest
13310	  lib=conftest
13311	  libobjs=conftest.$ac_objext
13312	  deplibs=
13313	  wl=$lt_prog_compiler_wl
13314	  pic_flag=$lt_prog_compiler_pic
13315	  compiler_flags=-v
13316	  linker_flags=-v
13317	  verstring=
13318	  output_objdir=.
13319	  libname=conftest
13320	  lt_save_allow_undefined_flag=$allow_undefined_flag
13321	  allow_undefined_flag=
13322	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13323  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13324  ac_status=$?
13325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13326  test $ac_status = 0; }
13327	  then
13328	    lt_cv_archive_cmds_need_lc=no
13329	  else
13330	    lt_cv_archive_cmds_need_lc=yes
13331	  fi
13332	  allow_undefined_flag=$lt_save_allow_undefined_flag
13333	else
13334	  cat conftest.err 1>&5
13335	fi
13336	$RM conftest*
13337
13338fi
13339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13340$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13341      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13342      ;;
13343    esac
13344  fi
13345  ;;
13346esac
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13500$as_echo_n "checking dynamic linker characteristics... " >&6; }
13501
13502if test yes = "$GCC"; then
13503  case $host_os in
13504    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13505    *) lt_awk_arg='/^libraries:/' ;;
13506  esac
13507  case $host_os in
13508    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13509    *) lt_sed_strip_eq='s|=/|/|g' ;;
13510  esac
13511  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13512  case $lt_search_path_spec in
13513  *\;*)
13514    # if the path contains ";" then we assume it to be the separator
13515    # otherwise default to the standard path separator (i.e. ":") - it is
13516    # assumed that no part of a normal pathname contains ";" but that should
13517    # okay in the real world where ";" in dirpaths is itself problematic.
13518    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13519    ;;
13520  *)
13521    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13522    ;;
13523  esac
13524  # Ok, now we have the path, separated by spaces, we can step through it
13525  # and add multilib dir if necessary...
13526  lt_tmp_lt_search_path_spec=
13527  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13528  # ...but if some path component already ends with the multilib dir we assume
13529  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13530  case "$lt_multi_os_dir; $lt_search_path_spec " in
13531  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13532    lt_multi_os_dir=
13533    ;;
13534  esac
13535  for lt_sys_path in $lt_search_path_spec; do
13536    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13537      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13538    elif test -n "$lt_multi_os_dir"; then
13539      test -d "$lt_sys_path" && \
13540	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13541    fi
13542  done
13543  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13544BEGIN {RS = " "; FS = "/|\n";} {
13545  lt_foo = "";
13546  lt_count = 0;
13547  for (lt_i = NF; lt_i > 0; lt_i--) {
13548    if ($lt_i != "" && $lt_i != ".") {
13549      if ($lt_i == "..") {
13550        lt_count++;
13551      } else {
13552        if (lt_count == 0) {
13553          lt_foo = "/" $lt_i lt_foo;
13554        } else {
13555          lt_count--;
13556        }
13557      }
13558    }
13559  }
13560  if (lt_foo != "") { lt_freq[lt_foo]++; }
13561  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13562}'`
13563  # AWK program above erroneously prepends '/' to C:/dos/paths
13564  # for these hosts.
13565  case $host_os in
13566    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13567      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13568  esac
13569  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13570else
13571  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13572fi
13573library_names_spec=
13574libname_spec='lib$name'
13575soname_spec=
13576shrext_cmds=.so
13577postinstall_cmds=
13578postuninstall_cmds=
13579finish_cmds=
13580finish_eval=
13581shlibpath_var=
13582shlibpath_overrides_runpath=unknown
13583version_type=none
13584dynamic_linker="$host_os ld.so"
13585sys_lib_dlsearch_path_spec="/lib /usr/lib"
13586need_lib_prefix=unknown
13587hardcode_into_libs=no
13588
13589# when you set need_version to no, make sure it does not cause -set_version
13590# flags to be left without arguments
13591need_version=unknown
13592
13593
13594
13595case $host_os in
13596aix3*)
13597  version_type=linux # correct to gnu/linux during the next big refactor
13598  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13599  shlibpath_var=LIBPATH
13600
13601  # AIX 3 has no versioning support, so we append a major version to the name.
13602  soname_spec='$libname$release$shared_ext$major'
13603  ;;
13604
13605aix[4-9]*)
13606  version_type=linux # correct to gnu/linux during the next big refactor
13607  need_lib_prefix=no
13608  need_version=no
13609  hardcode_into_libs=yes
13610  if test ia64 = "$host_cpu"; then
13611    # AIX 5 supports IA64
13612    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13613    shlibpath_var=LD_LIBRARY_PATH
13614  else
13615    # With GCC up to 2.95.x, collect2 would create an import file
13616    # for dependence libraries.  The import file would start with
13617    # the line '#! .'.  This would cause the generated library to
13618    # depend on '.', always an invalid library.  This was fixed in
13619    # development snapshots of GCC prior to 3.0.
13620    case $host_os in
13621      aix4 | aix4.[01] | aix4.[01].*)
13622      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13623	   echo ' yes '
13624	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13625	:
13626      else
13627	can_build_shared=no
13628      fi
13629      ;;
13630    esac
13631    # Using Import Files as archive members, it is possible to support
13632    # filename-based versioning of shared library archives on AIX. While
13633    # this would work for both with and without runtime linking, it will
13634    # prevent static linking of such archives. So we do filename-based
13635    # shared library versioning with .so extension only, which is used
13636    # when both runtime linking and shared linking is enabled.
13637    # Unfortunately, runtime linking may impact performance, so we do
13638    # not want this to be the default eventually. Also, we use the
13639    # versioned .so libs for executables only if there is the -brtl
13640    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13641    # To allow for filename-based versioning support, we need to create
13642    # libNAME.so.V as an archive file, containing:
13643    # *) an Import File, referring to the versioned filename of the
13644    #    archive as well as the shared archive member, telling the
13645    #    bitwidth (32 or 64) of that shared object, and providing the
13646    #    list of exported symbols of that shared object, eventually
13647    #    decorated with the 'weak' keyword
13648    # *) the shared object with the F_LOADONLY flag set, to really avoid
13649    #    it being seen by the linker.
13650    # At run time we better use the real file rather than another symlink,
13651    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13652
13653    case $with_aix_soname,$aix_use_runtimelinking in
13654    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13655    # soname into executable. Probably we can add versioning support to
13656    # collect2, so additional links can be useful in future.
13657    aix,yes) # traditional libtool
13658      dynamic_linker='AIX unversionable lib.so'
13659      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13660      # instead of lib<name>.a to let people know that these are not
13661      # typical AIX shared libraries.
13662      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13663      ;;
13664    aix,no) # traditional AIX only
13665      dynamic_linker='AIX lib.a(lib.so.V)'
13666      # We preserve .a as extension for shared libraries through AIX4.2
13667      # and later when we are not doing run time linking.
13668      library_names_spec='$libname$release.a $libname.a'
13669      soname_spec='$libname$release$shared_ext$major'
13670      ;;
13671    svr4,*) # full svr4 only
13672      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13673      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13674      # We do not specify a path in Import Files, so LIBPATH fires.
13675      shlibpath_overrides_runpath=yes
13676      ;;
13677    *,yes) # both, prefer svr4
13678      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13679      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13680      # unpreferred sharedlib libNAME.a needs extra handling
13681      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"'
13682      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"'
13683      # We do not specify a path in Import Files, so LIBPATH fires.
13684      shlibpath_overrides_runpath=yes
13685      ;;
13686    *,no) # both, prefer aix
13687      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13688      library_names_spec='$libname$release.a $libname.a'
13689      soname_spec='$libname$release$shared_ext$major'
13690      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13691      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)'
13692      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"'
13693      ;;
13694    esac
13695    shlibpath_var=LIBPATH
13696  fi
13697  ;;
13698
13699amigaos*)
13700  case $host_cpu in
13701  powerpc)
13702    # Since July 2007 AmigaOS4 officially supports .so libraries.
13703    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13704    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13705    ;;
13706  m68k)
13707    library_names_spec='$libname.ixlibrary $libname.a'
13708    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13709    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'
13710    ;;
13711  esac
13712  ;;
13713
13714beos*)
13715  library_names_spec='$libname$shared_ext'
13716  dynamic_linker="$host_os ld.so"
13717  shlibpath_var=LIBRARY_PATH
13718  ;;
13719
13720bsdi[45]*)
13721  version_type=linux # correct to gnu/linux during the next big refactor
13722  need_version=no
13723  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13724  soname_spec='$libname$release$shared_ext$major'
13725  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13726  shlibpath_var=LD_LIBRARY_PATH
13727  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13728  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13729  # the default ld.so.conf also contains /usr/contrib/lib and
13730  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13731  # libtool to hard-code these into programs
13732  ;;
13733
13734cygwin* | mingw* | pw32* | cegcc*)
13735  version_type=windows
13736  shrext_cmds=.dll
13737  need_version=no
13738  need_lib_prefix=no
13739
13740  case $GCC,$cc_basename in
13741  yes,*)
13742    # gcc
13743    library_names_spec='$libname.dll.a'
13744    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13745    postinstall_cmds='base_file=`basename \$file`~
13746      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13747      dldir=$destdir/`dirname \$dlpath`~
13748      test -d \$dldir || mkdir -p \$dldir~
13749      $install_prog $dir/$dlname \$dldir/$dlname~
13750      chmod a+x \$dldir/$dlname~
13751      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13752        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13753      fi'
13754    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13755      dlpath=$dir/\$dldll~
13756       $RM \$dlpath'
13757    shlibpath_overrides_runpath=yes
13758
13759    case $host_os in
13760    cygwin*)
13761      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13762      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13763
13764      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13765      ;;
13766    mingw* | cegcc*)
13767      # MinGW DLLs use traditional 'lib' prefix
13768      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13769      ;;
13770    pw32*)
13771      # pw32 DLLs use 'pw' prefix rather than 'lib'
13772      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13773      ;;
13774    esac
13775    dynamic_linker='Win32 ld.exe'
13776    ;;
13777
13778  *,cl*)
13779    # Native MSVC
13780    libname_spec='$name'
13781    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13782    library_names_spec='$libname.dll.lib'
13783
13784    case $build_os in
13785    mingw*)
13786      sys_lib_search_path_spec=
13787      lt_save_ifs=$IFS
13788      IFS=';'
13789      for lt_path in $LIB
13790      do
13791        IFS=$lt_save_ifs
13792        # Let DOS variable expansion print the short 8.3 style file name.
13793        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13794        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13795      done
13796      IFS=$lt_save_ifs
13797      # Convert to MSYS style.
13798      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13799      ;;
13800    cygwin*)
13801      # Convert to unix form, then to dos form, then back to unix form
13802      # but this time dos style (no spaces!) so that the unix form looks
13803      # like /cygdrive/c/PROGRA~1:/cygdr...
13804      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13805      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13806      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13807      ;;
13808    *)
13809      sys_lib_search_path_spec=$LIB
13810      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13811        # It is most probably a Windows format PATH.
13812        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13813      else
13814        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13815      fi
13816      # FIXME: find the short name or the path components, as spaces are
13817      # common. (e.g. "Program Files" -> "PROGRA~1")
13818      ;;
13819    esac
13820
13821    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13822    postinstall_cmds='base_file=`basename \$file`~
13823      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13824      dldir=$destdir/`dirname \$dlpath`~
13825      test -d \$dldir || mkdir -p \$dldir~
13826      $install_prog $dir/$dlname \$dldir/$dlname'
13827    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13828      dlpath=$dir/\$dldll~
13829       $RM \$dlpath'
13830    shlibpath_overrides_runpath=yes
13831    dynamic_linker='Win32 link.exe'
13832    ;;
13833
13834  *)
13835    # Assume MSVC wrapper
13836    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13837    dynamic_linker='Win32 ld.exe'
13838    ;;
13839  esac
13840  # FIXME: first we should search . and the directory the executable is in
13841  shlibpath_var=PATH
13842  ;;
13843
13844darwin* | rhapsody*)
13845  dynamic_linker="$host_os dyld"
13846  version_type=darwin
13847  need_lib_prefix=no
13848  need_version=no
13849  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13850  soname_spec='$libname$release$major$shared_ext'
13851  shlibpath_overrides_runpath=yes
13852  shlibpath_var=DYLD_LIBRARY_PATH
13853  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13854
13855  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13856  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13857  ;;
13858
13859dgux*)
13860  version_type=linux # correct to gnu/linux during the next big refactor
13861  need_lib_prefix=no
13862  need_version=no
13863  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13864  soname_spec='$libname$release$shared_ext$major'
13865  shlibpath_var=LD_LIBRARY_PATH
13866  ;;
13867
13868freebsd* | dragonfly*)
13869  # DragonFly does not have aout.  When/if they implement a new
13870  # versioning mechanism, adjust this.
13871  if test -x /usr/bin/objformat; then
13872    objformat=`/usr/bin/objformat`
13873  else
13874    case $host_os in
13875    freebsd[23].*) objformat=aout ;;
13876    *) objformat=elf ;;
13877    esac
13878  fi
13879  version_type=freebsd-$objformat
13880  case $version_type in
13881    freebsd-elf*)
13882      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13883      soname_spec='$libname$release$shared_ext$major'
13884      need_version=no
13885      need_lib_prefix=no
13886      ;;
13887    freebsd-*)
13888      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13889      need_version=yes
13890      ;;
13891  esac
13892  shlibpath_var=LD_LIBRARY_PATH
13893  case $host_os in
13894  freebsd2.*)
13895    shlibpath_overrides_runpath=yes
13896    ;;
13897  freebsd3.[01]* | freebsdelf3.[01]*)
13898    shlibpath_overrides_runpath=yes
13899    hardcode_into_libs=yes
13900    ;;
13901  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13902  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13903    shlibpath_overrides_runpath=no
13904    hardcode_into_libs=yes
13905    ;;
13906  *) # from 4.6 on, and DragonFly
13907    shlibpath_overrides_runpath=yes
13908    hardcode_into_libs=yes
13909    ;;
13910  esac
13911  ;;
13912
13913haiku*)
13914  version_type=linux # correct to gnu/linux during the next big refactor
13915  need_lib_prefix=no
13916  need_version=no
13917  dynamic_linker="$host_os runtime_loader"
13918  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13919  soname_spec='$libname$release$shared_ext$major'
13920  shlibpath_var=LIBRARY_PATH
13921  shlibpath_overrides_runpath=no
13922  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13923  hardcode_into_libs=yes
13924  ;;
13925
13926hpux9* | hpux10* | hpux11*)
13927  # Give a soname corresponding to the major version so that dld.sl refuses to
13928  # link against other versions.
13929  version_type=sunos
13930  need_lib_prefix=no
13931  need_version=no
13932  case $host_cpu in
13933  ia64*)
13934    shrext_cmds='.so'
13935    hardcode_into_libs=yes
13936    dynamic_linker="$host_os dld.so"
13937    shlibpath_var=LD_LIBRARY_PATH
13938    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13939    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13940    soname_spec='$libname$release$shared_ext$major'
13941    if test 32 = "$HPUX_IA64_MODE"; then
13942      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13943      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13944    else
13945      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13946      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13947    fi
13948    ;;
13949  hppa*64*)
13950    shrext_cmds='.sl'
13951    hardcode_into_libs=yes
13952    dynamic_linker="$host_os dld.sl"
13953    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13954    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13955    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13956    soname_spec='$libname$release$shared_ext$major'
13957    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13958    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13959    ;;
13960  *)
13961    shrext_cmds='.sl'
13962    dynamic_linker="$host_os dld.sl"
13963    shlibpath_var=SHLIB_PATH
13964    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13965    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13966    soname_spec='$libname$release$shared_ext$major'
13967    ;;
13968  esac
13969  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13970  postinstall_cmds='chmod 555 $lib'
13971  # or fails outright, so override atomically:
13972  install_override_mode=555
13973  ;;
13974
13975interix[3-9]*)
13976  version_type=linux # correct to gnu/linux during the next big refactor
13977  need_lib_prefix=no
13978  need_version=no
13979  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13980  soname_spec='$libname$release$shared_ext$major'
13981  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13982  shlibpath_var=LD_LIBRARY_PATH
13983  shlibpath_overrides_runpath=no
13984  hardcode_into_libs=yes
13985  ;;
13986
13987irix5* | irix6* | nonstopux*)
13988  case $host_os in
13989    nonstopux*) version_type=nonstopux ;;
13990    *)
13991	if test yes = "$lt_cv_prog_gnu_ld"; then
13992		version_type=linux # correct to gnu/linux during the next big refactor
13993	else
13994		version_type=irix
13995	fi ;;
13996  esac
13997  need_lib_prefix=no
13998  need_version=no
13999  soname_spec='$libname$release$shared_ext$major'
14000  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14001  case $host_os in
14002  irix5* | nonstopux*)
14003    libsuff= shlibsuff=
14004    ;;
14005  *)
14006    case $LD in # libtool.m4 will add one of these switches to LD
14007    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14008      libsuff= shlibsuff= libmagic=32-bit;;
14009    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14010      libsuff=32 shlibsuff=N32 libmagic=N32;;
14011    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14012      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14013    *) libsuff= shlibsuff= libmagic=never-match;;
14014    esac
14015    ;;
14016  esac
14017  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14018  shlibpath_overrides_runpath=no
14019  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14020  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14021  hardcode_into_libs=yes
14022  ;;
14023
14024# No shared lib support for Linux oldld, aout, or coff.
14025linux*oldld* | linux*aout* | linux*coff*)
14026  dynamic_linker=no
14027  ;;
14028
14029linux*android*)
14030  version_type=none # Android doesn't support versioned libraries.
14031  need_lib_prefix=no
14032  need_version=no
14033  library_names_spec='$libname$release$shared_ext'
14034  soname_spec='$libname$release$shared_ext'
14035  finish_cmds=
14036  shlibpath_var=LD_LIBRARY_PATH
14037  shlibpath_overrides_runpath=yes
14038
14039  # This implies no fast_install, which is unacceptable.
14040  # Some rework will be needed to allow for fast_install
14041  # before this can be enabled.
14042  hardcode_into_libs=yes
14043
14044  dynamic_linker='Android linker'
14045  # Don't embed -rpath directories since the linker doesn't support them.
14046  hardcode_libdir_flag_spec='-L$libdir'
14047  ;;
14048
14049# This must be glibc/ELF.
14050linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14051  version_type=linux # correct to gnu/linux during the next big refactor
14052  need_lib_prefix=no
14053  need_version=no
14054  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14055  soname_spec='$libname$release$shared_ext$major'
14056  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14057  shlibpath_var=LD_LIBRARY_PATH
14058  shlibpath_overrides_runpath=no
14059
14060  # Some binutils ld are patched to set DT_RUNPATH
14061  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14062  $as_echo_n "(cached) " >&6
14063else
14064  lt_cv_shlibpath_overrides_runpath=no
14065    save_LDFLAGS=$LDFLAGS
14066    save_libdir=$libdir
14067    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14068	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14069    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070/* end confdefs.h.  */
14071
14072int
14073main ()
14074{
14075
14076  ;
14077  return 0;
14078}
14079_ACEOF
14080if ac_fn_c_try_link "$LINENO"; then :
14081  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14082  lt_cv_shlibpath_overrides_runpath=yes
14083fi
14084fi
14085rm -f core conftest.err conftest.$ac_objext \
14086    conftest$ac_exeext conftest.$ac_ext
14087    LDFLAGS=$save_LDFLAGS
14088    libdir=$save_libdir
14089
14090fi
14091
14092  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14093
14094  # This implies no fast_install, which is unacceptable.
14095  # Some rework will be needed to allow for fast_install
14096  # before this can be enabled.
14097  hardcode_into_libs=yes
14098
14099  # Ideally, we could use ldconfig to report *all* directores which are
14100  # searched for libraries, however this is still not possible.  Aside from not
14101  # being certain /sbin/ldconfig is available, command
14102  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14103  # even though it is searched at run-time.  Try to do the best guess by
14104  # appending ld.so.conf contents (and includes) to the search path.
14105  if test -f /etc/ld.so.conf; then
14106    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' ' '`
14107    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14108  fi
14109
14110  # We used to test for /lib/ld.so.1 and disable shared libraries on
14111  # powerpc, because MkLinux only supported shared libraries with the
14112  # GNU dynamic linker.  Since this was broken with cross compilers,
14113  # most powerpc-linux boxes support dynamic linking these days and
14114  # people can always --disable-shared, the test was removed, and we
14115  # assume the GNU/Linux dynamic linker is in use.
14116  dynamic_linker='GNU/Linux ld.so'
14117  ;;
14118
14119netbsd*)
14120  version_type=sunos
14121  need_lib_prefix=no
14122  need_version=no
14123  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14124    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14125    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14126    dynamic_linker='NetBSD (a.out) ld.so'
14127  else
14128    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14129    soname_spec='$libname$release$shared_ext$major'
14130    dynamic_linker='NetBSD ld.elf_so'
14131  fi
14132  shlibpath_var=LD_LIBRARY_PATH
14133  shlibpath_overrides_runpath=yes
14134  hardcode_into_libs=yes
14135  ;;
14136
14137newsos6)
14138  version_type=linux # correct to gnu/linux during the next big refactor
14139  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14140  shlibpath_var=LD_LIBRARY_PATH
14141  shlibpath_overrides_runpath=yes
14142  ;;
14143
14144*nto* | *qnx*)
14145  version_type=qnx
14146  need_lib_prefix=no
14147  need_version=no
14148  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14149  soname_spec='$libname$release$shared_ext$major'
14150  shlibpath_var=LD_LIBRARY_PATH
14151  shlibpath_overrides_runpath=no
14152  hardcode_into_libs=yes
14153  dynamic_linker='ldqnx.so'
14154  ;;
14155
14156openbsd* | bitrig*)
14157  version_type=sunos
14158  sys_lib_dlsearch_path_spec=/usr/lib
14159  need_lib_prefix=no
14160  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14161    need_version=no
14162  else
14163    need_version=yes
14164  fi
14165  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14166  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14167  shlibpath_var=LD_LIBRARY_PATH
14168  shlibpath_overrides_runpath=yes
14169  ;;
14170
14171os2*)
14172  libname_spec='$name'
14173  version_type=windows
14174  shrext_cmds=.dll
14175  need_version=no
14176  need_lib_prefix=no
14177  # OS/2 can only load a DLL with a base name of 8 characters or less.
14178  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14179    v=$($ECHO $release$versuffix | tr -d .-);
14180    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14181    $ECHO $n$v`$shared_ext'
14182  library_names_spec='${libname}_dll.$libext'
14183  dynamic_linker='OS/2 ld.exe'
14184  shlibpath_var=BEGINLIBPATH
14185  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14186  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14187  postinstall_cmds='base_file=`basename \$file`~
14188    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14189    dldir=$destdir/`dirname \$dlpath`~
14190    test -d \$dldir || mkdir -p \$dldir~
14191    $install_prog $dir/$dlname \$dldir/$dlname~
14192    chmod a+x \$dldir/$dlname~
14193    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14194      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14195    fi'
14196  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14197    dlpath=$dir/\$dldll~
14198    $RM \$dlpath'
14199  ;;
14200
14201osf3* | osf4* | osf5*)
14202  version_type=osf
14203  need_lib_prefix=no
14204  need_version=no
14205  soname_spec='$libname$release$shared_ext$major'
14206  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14207  shlibpath_var=LD_LIBRARY_PATH
14208  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14209  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14210  ;;
14211
14212rdos*)
14213  dynamic_linker=no
14214  ;;
14215
14216solaris*)
14217  version_type=linux # correct to gnu/linux during the next big refactor
14218  need_lib_prefix=no
14219  need_version=no
14220  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14221  soname_spec='$libname$release$shared_ext$major'
14222  shlibpath_var=LD_LIBRARY_PATH
14223  shlibpath_overrides_runpath=yes
14224  hardcode_into_libs=yes
14225  # ldd complains unless libraries are executable
14226  postinstall_cmds='chmod +x $lib'
14227  ;;
14228
14229sunos4*)
14230  version_type=sunos
14231  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14232  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14233  shlibpath_var=LD_LIBRARY_PATH
14234  shlibpath_overrides_runpath=yes
14235  if test yes = "$with_gnu_ld"; then
14236    need_lib_prefix=no
14237  fi
14238  need_version=yes
14239  ;;
14240
14241sysv4 | sysv4.3*)
14242  version_type=linux # correct to gnu/linux during the next big refactor
14243  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14244  soname_spec='$libname$release$shared_ext$major'
14245  shlibpath_var=LD_LIBRARY_PATH
14246  case $host_vendor in
14247    sni)
14248      shlibpath_overrides_runpath=no
14249      need_lib_prefix=no
14250      runpath_var=LD_RUN_PATH
14251      ;;
14252    siemens)
14253      need_lib_prefix=no
14254      ;;
14255    motorola)
14256      need_lib_prefix=no
14257      need_version=no
14258      shlibpath_overrides_runpath=no
14259      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14260      ;;
14261  esac
14262  ;;
14263
14264sysv4*MP*)
14265  if test -d /usr/nec; then
14266    version_type=linux # correct to gnu/linux during the next big refactor
14267    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14268    soname_spec='$libname$shared_ext.$major'
14269    shlibpath_var=LD_LIBRARY_PATH
14270  fi
14271  ;;
14272
14273sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14274  version_type=sco
14275  need_lib_prefix=no
14276  need_version=no
14277  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14278  soname_spec='$libname$release$shared_ext$major'
14279  shlibpath_var=LD_LIBRARY_PATH
14280  shlibpath_overrides_runpath=yes
14281  hardcode_into_libs=yes
14282  if test yes = "$with_gnu_ld"; then
14283    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14284  else
14285    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14286    case $host_os in
14287      sco3.2v5*)
14288        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14289	;;
14290    esac
14291  fi
14292  sys_lib_dlsearch_path_spec='/usr/lib'
14293  ;;
14294
14295tpf*)
14296  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14297  version_type=linux # correct to gnu/linux during the next big refactor
14298  need_lib_prefix=no
14299  need_version=no
14300  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14301  shlibpath_var=LD_LIBRARY_PATH
14302  shlibpath_overrides_runpath=no
14303  hardcode_into_libs=yes
14304  ;;
14305
14306uts4*)
14307  version_type=linux # correct to gnu/linux during the next big refactor
14308  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14309  soname_spec='$libname$release$shared_ext$major'
14310  shlibpath_var=LD_LIBRARY_PATH
14311  ;;
14312
14313*)
14314  dynamic_linker=no
14315  ;;
14316esac
14317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14318$as_echo "$dynamic_linker" >&6; }
14319test no = "$dynamic_linker" && can_build_shared=no
14320
14321variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14322if test yes = "$GCC"; then
14323  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14324fi
14325
14326if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14327  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14328fi
14329
14330if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14331  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14332fi
14333
14334# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14335configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14336
14337# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14338func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14339
14340# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14341configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14440$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14441hardcode_action=
14442if test -n "$hardcode_libdir_flag_spec" ||
14443   test -n "$runpath_var" ||
14444   test yes = "$hardcode_automatic"; then
14445
14446  # We can hardcode non-existent directories.
14447  if test no != "$hardcode_direct" &&
14448     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14449     # have to relink, otherwise we might link with an installed library
14450     # when we should be linking with a yet-to-be-installed one
14451     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14452     test no != "$hardcode_minus_L"; then
14453    # Linking always hardcodes the temporary library directory.
14454    hardcode_action=relink
14455  else
14456    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14457    hardcode_action=immediate
14458  fi
14459else
14460  # We cannot hardcode anything, or else we can only hardcode existing
14461  # directories.
14462  hardcode_action=unsupported
14463fi
14464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14465$as_echo "$hardcode_action" >&6; }
14466
14467if test relink = "$hardcode_action" ||
14468   test yes = "$inherit_rpath"; then
14469  # Fast installation is not supported
14470  enable_fast_install=no
14471elif test yes = "$shlibpath_overrides_runpath" ||
14472     test no = "$enable_shared"; then
14473  # Fast installation is not necessary
14474  enable_fast_install=needless
14475fi
14476
14477
14478
14479
14480
14481
14482  if test yes != "$enable_dlopen"; then
14483  enable_dlopen=unknown
14484  enable_dlopen_self=unknown
14485  enable_dlopen_self_static=unknown
14486else
14487  lt_cv_dlopen=no
14488  lt_cv_dlopen_libs=
14489
14490  case $host_os in
14491  beos*)
14492    lt_cv_dlopen=load_add_on
14493    lt_cv_dlopen_libs=
14494    lt_cv_dlopen_self=yes
14495    ;;
14496
14497  mingw* | pw32* | cegcc*)
14498    lt_cv_dlopen=LoadLibrary
14499    lt_cv_dlopen_libs=
14500    ;;
14501
14502  cygwin*)
14503    lt_cv_dlopen=dlopen
14504    lt_cv_dlopen_libs=
14505    ;;
14506
14507  darwin*)
14508    # if libdl is installed we need to link against it
14509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14510$as_echo_n "checking for dlopen in -ldl... " >&6; }
14511if ${ac_cv_lib_dl_dlopen+:} false; then :
14512  $as_echo_n "(cached) " >&6
14513else
14514  ac_check_lib_save_LIBS=$LIBS
14515LIBS="-ldl  $LIBS"
14516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517/* end confdefs.h.  */
14518
14519/* Override any GCC internal prototype to avoid an error.
14520   Use char because int might match the return type of a GCC
14521   builtin and then its argument prototype would still apply.  */
14522#ifdef __cplusplus
14523extern "C"
14524#endif
14525char dlopen ();
14526int
14527main ()
14528{
14529return dlopen ();
14530  ;
14531  return 0;
14532}
14533_ACEOF
14534if ac_fn_c_try_link "$LINENO"; then :
14535  ac_cv_lib_dl_dlopen=yes
14536else
14537  ac_cv_lib_dl_dlopen=no
14538fi
14539rm -f core conftest.err conftest.$ac_objext \
14540    conftest$ac_exeext conftest.$ac_ext
14541LIBS=$ac_check_lib_save_LIBS
14542fi
14543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14544$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14545if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14546  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14547else
14548
14549    lt_cv_dlopen=dyld
14550    lt_cv_dlopen_libs=
14551    lt_cv_dlopen_self=yes
14552
14553fi
14554
14555    ;;
14556
14557  tpf*)
14558    # Don't try to run any link tests for TPF.  We know it's impossible
14559    # because TPF is a cross-compiler, and we know how we open DSOs.
14560    lt_cv_dlopen=dlopen
14561    lt_cv_dlopen_libs=
14562    lt_cv_dlopen_self=no
14563    ;;
14564
14565  *)
14566    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14567if test "x$ac_cv_func_shl_load" = xyes; then :
14568  lt_cv_dlopen=shl_load
14569else
14570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14571$as_echo_n "checking for shl_load in -ldld... " >&6; }
14572if ${ac_cv_lib_dld_shl_load+:} false; then :
14573  $as_echo_n "(cached) " >&6
14574else
14575  ac_check_lib_save_LIBS=$LIBS
14576LIBS="-ldld  $LIBS"
14577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14578/* end confdefs.h.  */
14579
14580/* Override any GCC internal prototype to avoid an error.
14581   Use char because int might match the return type of a GCC
14582   builtin and then its argument prototype would still apply.  */
14583#ifdef __cplusplus
14584extern "C"
14585#endif
14586char shl_load ();
14587int
14588main ()
14589{
14590return shl_load ();
14591  ;
14592  return 0;
14593}
14594_ACEOF
14595if ac_fn_c_try_link "$LINENO"; then :
14596  ac_cv_lib_dld_shl_load=yes
14597else
14598  ac_cv_lib_dld_shl_load=no
14599fi
14600rm -f core conftest.err conftest.$ac_objext \
14601    conftest$ac_exeext conftest.$ac_ext
14602LIBS=$ac_check_lib_save_LIBS
14603fi
14604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14605$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14606if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14607  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14608else
14609  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14610if test "x$ac_cv_func_dlopen" = xyes; then :
14611  lt_cv_dlopen=dlopen
14612else
14613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14614$as_echo_n "checking for dlopen in -ldl... " >&6; }
14615if ${ac_cv_lib_dl_dlopen+:} false; then :
14616  $as_echo_n "(cached) " >&6
14617else
14618  ac_check_lib_save_LIBS=$LIBS
14619LIBS="-ldl  $LIBS"
14620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621/* end confdefs.h.  */
14622
14623/* Override any GCC internal prototype to avoid an error.
14624   Use char because int might match the return type of a GCC
14625   builtin and then its argument prototype would still apply.  */
14626#ifdef __cplusplus
14627extern "C"
14628#endif
14629char dlopen ();
14630int
14631main ()
14632{
14633return dlopen ();
14634  ;
14635  return 0;
14636}
14637_ACEOF
14638if ac_fn_c_try_link "$LINENO"; then :
14639  ac_cv_lib_dl_dlopen=yes
14640else
14641  ac_cv_lib_dl_dlopen=no
14642fi
14643rm -f core conftest.err conftest.$ac_objext \
14644    conftest$ac_exeext conftest.$ac_ext
14645LIBS=$ac_check_lib_save_LIBS
14646fi
14647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14648$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14649if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14650  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14651else
14652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14653$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14654if ${ac_cv_lib_svld_dlopen+:} false; then :
14655  $as_echo_n "(cached) " >&6
14656else
14657  ac_check_lib_save_LIBS=$LIBS
14658LIBS="-lsvld  $LIBS"
14659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660/* end confdefs.h.  */
14661
14662/* Override any GCC internal prototype to avoid an error.
14663   Use char because int might match the return type of a GCC
14664   builtin and then its argument prototype would still apply.  */
14665#ifdef __cplusplus
14666extern "C"
14667#endif
14668char dlopen ();
14669int
14670main ()
14671{
14672return dlopen ();
14673  ;
14674  return 0;
14675}
14676_ACEOF
14677if ac_fn_c_try_link "$LINENO"; then :
14678  ac_cv_lib_svld_dlopen=yes
14679else
14680  ac_cv_lib_svld_dlopen=no
14681fi
14682rm -f core conftest.err conftest.$ac_objext \
14683    conftest$ac_exeext conftest.$ac_ext
14684LIBS=$ac_check_lib_save_LIBS
14685fi
14686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14687$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14688if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14689  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14690else
14691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14692$as_echo_n "checking for dld_link in -ldld... " >&6; }
14693if ${ac_cv_lib_dld_dld_link+:} false; then :
14694  $as_echo_n "(cached) " >&6
14695else
14696  ac_check_lib_save_LIBS=$LIBS
14697LIBS="-ldld  $LIBS"
14698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699/* end confdefs.h.  */
14700
14701/* Override any GCC internal prototype to avoid an error.
14702   Use char because int might match the return type of a GCC
14703   builtin and then its argument prototype would still apply.  */
14704#ifdef __cplusplus
14705extern "C"
14706#endif
14707char dld_link ();
14708int
14709main ()
14710{
14711return dld_link ();
14712  ;
14713  return 0;
14714}
14715_ACEOF
14716if ac_fn_c_try_link "$LINENO"; then :
14717  ac_cv_lib_dld_dld_link=yes
14718else
14719  ac_cv_lib_dld_dld_link=no
14720fi
14721rm -f core conftest.err conftest.$ac_objext \
14722    conftest$ac_exeext conftest.$ac_ext
14723LIBS=$ac_check_lib_save_LIBS
14724fi
14725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14726$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14727if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14728  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14729fi
14730
14731
14732fi
14733
14734
14735fi
14736
14737
14738fi
14739
14740
14741fi
14742
14743
14744fi
14745
14746    ;;
14747  esac
14748
14749  if test no = "$lt_cv_dlopen"; then
14750    enable_dlopen=no
14751  else
14752    enable_dlopen=yes
14753  fi
14754
14755  case $lt_cv_dlopen in
14756  dlopen)
14757    save_CPPFLAGS=$CPPFLAGS
14758    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14759
14760    save_LDFLAGS=$LDFLAGS
14761    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14762
14763    save_LIBS=$LIBS
14764    LIBS="$lt_cv_dlopen_libs $LIBS"
14765
14766    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14767$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14768if ${lt_cv_dlopen_self+:} false; then :
14769  $as_echo_n "(cached) " >&6
14770else
14771  	  if test yes = "$cross_compiling"; then :
14772  lt_cv_dlopen_self=cross
14773else
14774  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14775  lt_status=$lt_dlunknown
14776  cat > conftest.$ac_ext <<_LT_EOF
14777#line $LINENO "configure"
14778#include "confdefs.h"
14779
14780#if HAVE_DLFCN_H
14781#include <dlfcn.h>
14782#endif
14783
14784#include <stdio.h>
14785
14786#ifdef RTLD_GLOBAL
14787#  define LT_DLGLOBAL		RTLD_GLOBAL
14788#else
14789#  ifdef DL_GLOBAL
14790#    define LT_DLGLOBAL		DL_GLOBAL
14791#  else
14792#    define LT_DLGLOBAL		0
14793#  endif
14794#endif
14795
14796/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14797   find out it does not work in some platform. */
14798#ifndef LT_DLLAZY_OR_NOW
14799#  ifdef RTLD_LAZY
14800#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14801#  else
14802#    ifdef DL_LAZY
14803#      define LT_DLLAZY_OR_NOW		DL_LAZY
14804#    else
14805#      ifdef RTLD_NOW
14806#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14807#      else
14808#        ifdef DL_NOW
14809#          define LT_DLLAZY_OR_NOW	DL_NOW
14810#        else
14811#          define LT_DLLAZY_OR_NOW	0
14812#        endif
14813#      endif
14814#    endif
14815#  endif
14816#endif
14817
14818/* When -fvisibility=hidden is used, assume the code has been annotated
14819   correspondingly for the symbols needed.  */
14820#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14821int fnord () __attribute__((visibility("default")));
14822#endif
14823
14824int fnord () { return 42; }
14825int main ()
14826{
14827  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14828  int status = $lt_dlunknown;
14829
14830  if (self)
14831    {
14832      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14833      else
14834        {
14835	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14836          else puts (dlerror ());
14837	}
14838      /* dlclose (self); */
14839    }
14840  else
14841    puts (dlerror ());
14842
14843  return status;
14844}
14845_LT_EOF
14846  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14847  (eval $ac_link) 2>&5
14848  ac_status=$?
14849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14850  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14851    (./conftest; exit; ) >&5 2>/dev/null
14852    lt_status=$?
14853    case x$lt_status in
14854      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14855      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14856      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14857    esac
14858  else :
14859    # compilation failed
14860    lt_cv_dlopen_self=no
14861  fi
14862fi
14863rm -fr conftest*
14864
14865
14866fi
14867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14868$as_echo "$lt_cv_dlopen_self" >&6; }
14869
14870    if test yes = "$lt_cv_dlopen_self"; then
14871      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14872      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14873$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14874if ${lt_cv_dlopen_self_static+:} false; then :
14875  $as_echo_n "(cached) " >&6
14876else
14877  	  if test yes = "$cross_compiling"; then :
14878  lt_cv_dlopen_self_static=cross
14879else
14880  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14881  lt_status=$lt_dlunknown
14882  cat > conftest.$ac_ext <<_LT_EOF
14883#line $LINENO "configure"
14884#include "confdefs.h"
14885
14886#if HAVE_DLFCN_H
14887#include <dlfcn.h>
14888#endif
14889
14890#include <stdio.h>
14891
14892#ifdef RTLD_GLOBAL
14893#  define LT_DLGLOBAL		RTLD_GLOBAL
14894#else
14895#  ifdef DL_GLOBAL
14896#    define LT_DLGLOBAL		DL_GLOBAL
14897#  else
14898#    define LT_DLGLOBAL		0
14899#  endif
14900#endif
14901
14902/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14903   find out it does not work in some platform. */
14904#ifndef LT_DLLAZY_OR_NOW
14905#  ifdef RTLD_LAZY
14906#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14907#  else
14908#    ifdef DL_LAZY
14909#      define LT_DLLAZY_OR_NOW		DL_LAZY
14910#    else
14911#      ifdef RTLD_NOW
14912#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14913#      else
14914#        ifdef DL_NOW
14915#          define LT_DLLAZY_OR_NOW	DL_NOW
14916#        else
14917#          define LT_DLLAZY_OR_NOW	0
14918#        endif
14919#      endif
14920#    endif
14921#  endif
14922#endif
14923
14924/* When -fvisibility=hidden is used, assume the code has been annotated
14925   correspondingly for the symbols needed.  */
14926#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14927int fnord () __attribute__((visibility("default")));
14928#endif
14929
14930int fnord () { return 42; }
14931int main ()
14932{
14933  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14934  int status = $lt_dlunknown;
14935
14936  if (self)
14937    {
14938      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14939      else
14940        {
14941	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14942          else puts (dlerror ());
14943	}
14944      /* dlclose (self); */
14945    }
14946  else
14947    puts (dlerror ());
14948
14949  return status;
14950}
14951_LT_EOF
14952  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14953  (eval $ac_link) 2>&5
14954  ac_status=$?
14955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14956  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14957    (./conftest; exit; ) >&5 2>/dev/null
14958    lt_status=$?
14959    case x$lt_status in
14960      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14961      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14962      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14963    esac
14964  else :
14965    # compilation failed
14966    lt_cv_dlopen_self_static=no
14967  fi
14968fi
14969rm -fr conftest*
14970
14971
14972fi
14973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14974$as_echo "$lt_cv_dlopen_self_static" >&6; }
14975    fi
14976
14977    CPPFLAGS=$save_CPPFLAGS
14978    LDFLAGS=$save_LDFLAGS
14979    LIBS=$save_LIBS
14980    ;;
14981  esac
14982
14983  case $lt_cv_dlopen_self in
14984  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14985  *) enable_dlopen_self=unknown ;;
14986  esac
14987
14988  case $lt_cv_dlopen_self_static in
14989  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14990  *) enable_dlopen_self_static=unknown ;;
14991  esac
14992fi
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010striplib=
15011old_striplib=
15012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15013$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15014if test -z "$STRIP"; then
15015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15016$as_echo "no" >&6; }
15017else
15018  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15019    old_striplib="$STRIP --strip-debug"
15020    striplib="$STRIP --strip-unneeded"
15021    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15022$as_echo "yes" >&6; }
15023  else
15024    case $host_os in
15025    darwin*)
15026      # FIXME - insert some real tests, host_os isn't really good enough
15027      striplib="$STRIP -x"
15028      old_striplib="$STRIP -S"
15029      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15030$as_echo "yes" >&6; }
15031      ;;
15032    freebsd*)
15033      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15034        old_striplib="$STRIP --strip-debug"
15035        striplib="$STRIP --strip-unneeded"
15036        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15037$as_echo "yes" >&6; }
15038      else
15039        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040$as_echo "no" >&6; }
15041      fi
15042      ;;
15043    *)
15044      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15045$as_echo "no" >&6; }
15046      ;;
15047    esac
15048  fi
15049fi
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062  # Report what library types will actually be built
15063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15064$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15066$as_echo "$can_build_shared" >&6; }
15067
15068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15069$as_echo_n "checking whether to build shared libraries... " >&6; }
15070  test no = "$can_build_shared" && enable_shared=no
15071
15072  # On AIX, shared libraries and static libraries use the same namespace, and
15073  # are all built from PIC.
15074  case $host_os in
15075  aix3*)
15076    test yes = "$enable_shared" && enable_static=no
15077    if test -n "$RANLIB"; then
15078      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15079      postinstall_cmds='$RANLIB $lib'
15080    fi
15081    ;;
15082
15083  aix[4-9]*)
15084    if test ia64 != "$host_cpu"; then
15085      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15086      yes,aix,yes) ;;			# shared object as lib.so file only
15087      yes,svr4,*) ;;			# shared object as lib.so archive member only
15088      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15089      esac
15090    fi
15091    ;;
15092  esac
15093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15094$as_echo "$enable_shared" >&6; }
15095
15096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15097$as_echo_n "checking whether to build static libraries... " >&6; }
15098  # Make sure either enable_shared or enable_static is yes.
15099  test yes = "$enable_shared" || enable_static=yes
15100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15101$as_echo "$enable_static" >&6; }
15102
15103
15104
15105
15106fi
15107ac_ext=c
15108ac_cpp='$CPP $CPPFLAGS'
15109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15111ac_compiler_gnu=$ac_cv_c_compiler_gnu
15112
15113CC=$lt_save_CC
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129        ac_config_commands="$ac_config_commands libtool"
15130
15131
15132
15133
15134# Only expand once:
15135
15136
15137if test -n "$ac_tool_prefix"; then
15138  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15139set dummy ${ac_tool_prefix}windres; ac_word=$2
15140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15141$as_echo_n "checking for $ac_word... " >&6; }
15142if ${ac_cv_prog_RC+:} false; then :
15143  $as_echo_n "(cached) " >&6
15144else
15145  if test -n "$RC"; then
15146  ac_cv_prog_RC="$RC" # Let the user override the test.
15147else
15148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15149for as_dir in $PATH
15150do
15151  IFS=$as_save_IFS
15152  test -z "$as_dir" && as_dir=.
15153    for ac_exec_ext in '' $ac_executable_extensions; do
15154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15155    ac_cv_prog_RC="${ac_tool_prefix}windres"
15156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15157    break 2
15158  fi
15159done
15160  done
15161IFS=$as_save_IFS
15162
15163fi
15164fi
15165RC=$ac_cv_prog_RC
15166if test -n "$RC"; then
15167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
15168$as_echo "$RC" >&6; }
15169else
15170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15171$as_echo "no" >&6; }
15172fi
15173
15174
15175fi
15176if test -z "$ac_cv_prog_RC"; then
15177  ac_ct_RC=$RC
15178  # Extract the first word of "windres", so it can be a program name with args.
15179set dummy windres; ac_word=$2
15180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15181$as_echo_n "checking for $ac_word... " >&6; }
15182if ${ac_cv_prog_ac_ct_RC+:} false; then :
15183  $as_echo_n "(cached) " >&6
15184else
15185  if test -n "$ac_ct_RC"; then
15186  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
15187else
15188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15189for as_dir in $PATH
15190do
15191  IFS=$as_save_IFS
15192  test -z "$as_dir" && as_dir=.
15193    for ac_exec_ext in '' $ac_executable_extensions; do
15194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15195    ac_cv_prog_ac_ct_RC="windres"
15196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15197    break 2
15198  fi
15199done
15200  done
15201IFS=$as_save_IFS
15202
15203fi
15204fi
15205ac_ct_RC=$ac_cv_prog_ac_ct_RC
15206if test -n "$ac_ct_RC"; then
15207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
15208$as_echo "$ac_ct_RC" >&6; }
15209else
15210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15211$as_echo "no" >&6; }
15212fi
15213
15214  if test "x$ac_ct_RC" = x; then
15215    RC=""
15216  else
15217    case $cross_compiling:$ac_tool_warned in
15218yes:)
15219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15221ac_tool_warned=yes ;;
15222esac
15223    RC=$ac_ct_RC
15224  fi
15225else
15226  RC="$ac_cv_prog_RC"
15227fi
15228
15229
15230
15231
15232# Source file extension for RC test sources.
15233ac_ext=rc
15234
15235# Object file extension for compiled RC test sources.
15236objext=o
15237objext_RC=$objext
15238
15239# Code to be used in simple compile tests
15240lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
15241
15242# Code to be used in simple link tests
15243lt_simple_link_test_code=$lt_simple_compile_test_code
15244
15245# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15246
15247
15248
15249
15250
15251
15252# If no C compiler was specified, use CC.
15253LTCC=${LTCC-"$CC"}
15254
15255# If no C compiler flags were specified, use CFLAGS.
15256LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15257
15258# Allow CC to be a program name with arguments.
15259compiler=$CC
15260
15261
15262# save warnings/boilerplate of simple test code
15263ac_outfile=conftest.$ac_objext
15264echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15265eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15266_lt_compiler_boilerplate=`cat conftest.err`
15267$RM conftest*
15268
15269ac_outfile=conftest.$ac_objext
15270echo "$lt_simple_link_test_code" >conftest.$ac_ext
15271eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15272_lt_linker_boilerplate=`cat conftest.err`
15273$RM -r conftest*
15274
15275
15276# Allow CC to be a program name with arguments.
15277lt_save_CC=$CC
15278lt_save_CFLAGS=$CFLAGS
15279lt_save_GCC=$GCC
15280GCC=
15281CC=${RC-"windres"}
15282CFLAGS=
15283compiler=$CC
15284compiler_RC=$CC
15285func_cc_basename $compiler
15286cc_basename=$func_cc_basename_result
15287
15288lt_cv_prog_compiler_c_o_RC=yes
15289
15290if test -n "$compiler"; then
15291  :
15292
15293
15294
15295fi
15296
15297GCC=$lt_save_GCC
15298ac_ext=c
15299ac_cpp='$CPP $CPPFLAGS'
15300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302ac_compiler_gnu=$ac_cv_c_compiler_gnu
15303
15304CC=$lt_save_CC
15305CFLAGS=$lt_save_CFLAGS
15306
15307
15308# This is a bit wrong since it is possible to request that only some libs
15309# are built as shared. Using that feature isn't so common though, and this
15310# breaks only on Windows (at least for now) if the user enables only some
15311# libs as shared.
15312 if test "x$enable_shared" != xno; then
15313  COND_SHARED_TRUE=
15314  COND_SHARED_FALSE='#'
15315else
15316  COND_SHARED_TRUE='#'
15317  COND_SHARED_FALSE=
15318fi
15319
15320
15321
15322###############################################################################
15323# Checks for libraries.
15324###############################################################################
15325
15326echo
15327echo "Initializing gettext:"
15328
15329
15330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15331$as_echo_n "checking whether NLS is requested... " >&6; }
15332    # Check whether --enable-nls was given.
15333if test "${enable_nls+set}" = set; then :
15334  enableval=$enable_nls; USE_NLS=$enableval
15335else
15336  USE_NLS=yes
15337fi
15338
15339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15340$as_echo "$USE_NLS" >&6; }
15341
15342
15343
15344
15345      GETTEXT_MACRO_VERSION=0.19
15346
15347
15348
15349
15350# Prepare PATH_SEPARATOR.
15351# The user is always right.
15352if test "${PATH_SEPARATOR+set}" != set; then
15353  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15354  # contains only /bin. Note that ksh looks also at the FPATH variable,
15355  # so we have to set that as well for the test.
15356  PATH_SEPARATOR=:
15357  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15358    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15359           || PATH_SEPARATOR=';'
15360       }
15361fi
15362
15363# Find out how to test for executable files. Don't use a zero-byte file,
15364# as systems may use methods other than mode bits to determine executability.
15365cat >conf$$.file <<_ASEOF
15366#! /bin/sh
15367exit 0
15368_ASEOF
15369chmod +x conf$$.file
15370if test -x conf$$.file >/dev/null 2>&1; then
15371  ac_executable_p="test -x"
15372else
15373  ac_executable_p="test -f"
15374fi
15375rm -f conf$$.file
15376
15377# Extract the first word of "msgfmt", so it can be a program name with args.
15378set dummy msgfmt; ac_word=$2
15379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15380$as_echo_n "checking for $ac_word... " >&6; }
15381if ${ac_cv_path_MSGFMT+:} false; then :
15382  $as_echo_n "(cached) " >&6
15383else
15384  case "$MSGFMT" in
15385  [\\/]* | ?:[\\/]*)
15386    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15387    ;;
15388  *)
15389    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15390    for ac_dir in $PATH; do
15391      IFS="$ac_save_IFS"
15392      test -z "$ac_dir" && ac_dir=.
15393      for ac_exec_ext in '' $ac_executable_extensions; do
15394        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15395          echo "$as_me: trying $ac_dir/$ac_word..." >&5
15396          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15397     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15398            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15399            break 2
15400          fi
15401        fi
15402      done
15403    done
15404    IFS="$ac_save_IFS"
15405  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15406    ;;
15407esac
15408fi
15409MSGFMT="$ac_cv_path_MSGFMT"
15410if test "$MSGFMT" != ":"; then
15411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15412$as_echo "$MSGFMT" >&6; }
15413else
15414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15415$as_echo "no" >&6; }
15416fi
15417
15418  # Extract the first word of "gmsgfmt", so it can be a program name with args.
15419set dummy gmsgfmt; ac_word=$2
15420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15421$as_echo_n "checking for $ac_word... " >&6; }
15422if ${ac_cv_path_GMSGFMT+:} false; then :
15423  $as_echo_n "(cached) " >&6
15424else
15425  case $GMSGFMT in
15426  [\\/]* | ?:[\\/]*)
15427  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15428  ;;
15429  *)
15430  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15431for as_dir in $PATH
15432do
15433  IFS=$as_save_IFS
15434  test -z "$as_dir" && as_dir=.
15435    for ac_exec_ext in '' $ac_executable_extensions; do
15436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15437    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15439    break 2
15440  fi
15441done
15442  done
15443IFS=$as_save_IFS
15444
15445  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15446  ;;
15447esac
15448fi
15449GMSGFMT=$ac_cv_path_GMSGFMT
15450if test -n "$GMSGFMT"; then
15451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15452$as_echo "$GMSGFMT" >&6; }
15453else
15454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15455$as_echo "no" >&6; }
15456fi
15457
15458
15459
15460    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15461    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15462    *) MSGFMT_015=$MSGFMT ;;
15463  esac
15464
15465  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15466    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15467    *) GMSGFMT_015=$GMSGFMT ;;
15468  esac
15469
15470
15471
15472# Prepare PATH_SEPARATOR.
15473# The user is always right.
15474if test "${PATH_SEPARATOR+set}" != set; then
15475  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15476  # contains only /bin. Note that ksh looks also at the FPATH variable,
15477  # so we have to set that as well for the test.
15478  PATH_SEPARATOR=:
15479  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15480    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15481           || PATH_SEPARATOR=';'
15482       }
15483fi
15484
15485# Find out how to test for executable files. Don't use a zero-byte file,
15486# as systems may use methods other than mode bits to determine executability.
15487cat >conf$$.file <<_ASEOF
15488#! /bin/sh
15489exit 0
15490_ASEOF
15491chmod +x conf$$.file
15492if test -x conf$$.file >/dev/null 2>&1; then
15493  ac_executable_p="test -x"
15494else
15495  ac_executable_p="test -f"
15496fi
15497rm -f conf$$.file
15498
15499# Extract the first word of "xgettext", so it can be a program name with args.
15500set dummy xgettext; ac_word=$2
15501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15502$as_echo_n "checking for $ac_word... " >&6; }
15503if ${ac_cv_path_XGETTEXT+:} false; then :
15504  $as_echo_n "(cached) " >&6
15505else
15506  case "$XGETTEXT" in
15507  [\\/]* | ?:[\\/]*)
15508    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15509    ;;
15510  *)
15511    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15512    for ac_dir in $PATH; do
15513      IFS="$ac_save_IFS"
15514      test -z "$ac_dir" && ac_dir=.
15515      for ac_exec_ext in '' $ac_executable_extensions; do
15516        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15517          echo "$as_me: trying $ac_dir/$ac_word..." >&5
15518          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15519     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15520            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15521            break 2
15522          fi
15523        fi
15524      done
15525    done
15526    IFS="$ac_save_IFS"
15527  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15528    ;;
15529esac
15530fi
15531XGETTEXT="$ac_cv_path_XGETTEXT"
15532if test "$XGETTEXT" != ":"; then
15533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15534$as_echo "$XGETTEXT" >&6; }
15535else
15536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15537$as_echo "no" >&6; }
15538fi
15539
15540    rm -f messages.po
15541
15542    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15543    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15544    *) XGETTEXT_015=$XGETTEXT ;;
15545  esac
15546
15547
15548
15549# Prepare PATH_SEPARATOR.
15550# The user is always right.
15551if test "${PATH_SEPARATOR+set}" != set; then
15552  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15553  # contains only /bin. Note that ksh looks also at the FPATH variable,
15554  # so we have to set that as well for the test.
15555  PATH_SEPARATOR=:
15556  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15557    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15558           || PATH_SEPARATOR=';'
15559       }
15560fi
15561
15562# Find out how to test for executable files. Don't use a zero-byte file,
15563# as systems may use methods other than mode bits to determine executability.
15564cat >conf$$.file <<_ASEOF
15565#! /bin/sh
15566exit 0
15567_ASEOF
15568chmod +x conf$$.file
15569if test -x conf$$.file >/dev/null 2>&1; then
15570  ac_executable_p="test -x"
15571else
15572  ac_executable_p="test -f"
15573fi
15574rm -f conf$$.file
15575
15576# Extract the first word of "msgmerge", so it can be a program name with args.
15577set dummy msgmerge; ac_word=$2
15578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15579$as_echo_n "checking for $ac_word... " >&6; }
15580if ${ac_cv_path_MSGMERGE+:} false; then :
15581  $as_echo_n "(cached) " >&6
15582else
15583  case "$MSGMERGE" in
15584  [\\/]* | ?:[\\/]*)
15585    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15586    ;;
15587  *)
15588    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15589    for ac_dir in $PATH; do
15590      IFS="$ac_save_IFS"
15591      test -z "$ac_dir" && ac_dir=.
15592      for ac_exec_ext in '' $ac_executable_extensions; do
15593        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15594          echo "$as_me: trying $ac_dir/$ac_word..." >&5
15595          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15596            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15597            break 2
15598          fi
15599        fi
15600      done
15601    done
15602    IFS="$ac_save_IFS"
15603  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15604    ;;
15605esac
15606fi
15607MSGMERGE="$ac_cv_path_MSGMERGE"
15608if test "$MSGMERGE" != ":"; then
15609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15610$as_echo "$MSGMERGE" >&6; }
15611else
15612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15613$as_echo "no" >&6; }
15614fi
15615
15616
15617        test -n "$localedir" || localedir='${datadir}/locale'
15618
15619
15620    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
15621
15622
15623  ac_config_commands="$ac_config_commands po-directories"
15624
15625
15626
15627      if test "X$prefix" = "XNONE"; then
15628    acl_final_prefix="$ac_default_prefix"
15629  else
15630    acl_final_prefix="$prefix"
15631  fi
15632  if test "X$exec_prefix" = "XNONE"; then
15633    acl_final_exec_prefix='${prefix}'
15634  else
15635    acl_final_exec_prefix="$exec_prefix"
15636  fi
15637  acl_save_prefix="$prefix"
15638  prefix="$acl_final_prefix"
15639  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15640  prefix="$acl_save_prefix"
15641
15642
15643
15644# Check whether --with-gnu-ld was given.
15645if test "${with_gnu_ld+set}" = set; then :
15646  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15647else
15648  with_gnu_ld=no
15649fi
15650
15651# Prepare PATH_SEPARATOR.
15652# The user is always right.
15653if test "${PATH_SEPARATOR+set}" != set; then
15654  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15655  # contains only /bin. Note that ksh looks also at the FPATH variable,
15656  # so we have to set that as well for the test.
15657  PATH_SEPARATOR=:
15658  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15659    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15660           || PATH_SEPARATOR=';'
15661       }
15662fi
15663
15664ac_prog=ld
15665if test "$GCC" = yes; then
15666  # Check if gcc -print-prog-name=ld gives a path.
15667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15668$as_echo_n "checking for ld used by $CC... " >&6; }
15669  case $host in
15670  *-*-mingw*)
15671    # gcc leaves a trailing carriage return which upsets mingw
15672    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15673  *)
15674    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15675  esac
15676  case $ac_prog in
15677    # Accept absolute paths.
15678    [\\/]* | ?:[\\/]*)
15679      re_direlt='/[^/][^/]*/\.\./'
15680      # Canonicalize the pathname of ld
15681      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
15682      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
15683        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15684      done
15685      test -z "$LD" && LD="$ac_prog"
15686      ;;
15687  "")
15688    # If it fails, then pretend we aren't using GCC.
15689    ac_prog=ld
15690    ;;
15691  *)
15692    # If it is relative, then search for the first ld in PATH.
15693    with_gnu_ld=unknown
15694    ;;
15695  esac
15696elif test "$with_gnu_ld" = yes; then
15697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15698$as_echo_n "checking for GNU ld... " >&6; }
15699else
15700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15701$as_echo_n "checking for non-GNU ld... " >&6; }
15702fi
15703if ${acl_cv_path_LD+:} false; then :
15704  $as_echo_n "(cached) " >&6
15705else
15706  if test -z "$LD"; then
15707  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15708  for ac_dir in $PATH; do
15709    IFS="$acl_save_ifs"
15710    test -z "$ac_dir" && ac_dir=.
15711    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15712      acl_cv_path_LD="$ac_dir/$ac_prog"
15713      # Check to see if the program is GNU ld.  I'd rather use --version,
15714      # but apparently some variants of GNU ld only accept -v.
15715      # Break only if it was the GNU/non-GNU ld that we prefer.
15716      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
15717      *GNU* | *'with BFD'*)
15718        test "$with_gnu_ld" != no && break
15719        ;;
15720      *)
15721        test "$with_gnu_ld" != yes && break
15722        ;;
15723      esac
15724    fi
15725  done
15726  IFS="$acl_save_ifs"
15727else
15728  acl_cv_path_LD="$LD" # Let the user override the test with a path.
15729fi
15730fi
15731
15732LD="$acl_cv_path_LD"
15733if test -n "$LD"; then
15734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15735$as_echo "$LD" >&6; }
15736else
15737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15738$as_echo "no" >&6; }
15739fi
15740test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15742$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15743if ${acl_cv_prog_gnu_ld+:} false; then :
15744  $as_echo_n "(cached) " >&6
15745else
15746  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15747case `$LD -v 2>&1 </dev/null` in
15748*GNU* | *'with BFD'*)
15749  acl_cv_prog_gnu_ld=yes
15750  ;;
15751*)
15752  acl_cv_prog_gnu_ld=no
15753  ;;
15754esac
15755fi
15756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15757$as_echo "$acl_cv_prog_gnu_ld" >&6; }
15758with_gnu_ld=$acl_cv_prog_gnu_ld
15759
15760
15761
15762
15763                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15764$as_echo_n "checking for shared library run path origin... " >&6; }
15765if ${acl_cv_rpath+:} false; then :
15766  $as_echo_n "(cached) " >&6
15767else
15768
15769    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15770    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15771    . ./conftest.sh
15772    rm -f ./conftest.sh
15773    acl_cv_rpath=done
15774
15775fi
15776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15777$as_echo "$acl_cv_rpath" >&6; }
15778  wl="$acl_cv_wl"
15779  acl_libext="$acl_cv_libext"
15780  acl_shlibext="$acl_cv_shlibext"
15781  acl_libname_spec="$acl_cv_libname_spec"
15782  acl_library_names_spec="$acl_cv_library_names_spec"
15783  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15784  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15785  acl_hardcode_direct="$acl_cv_hardcode_direct"
15786  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15787    # Check whether --enable-rpath was given.
15788if test "${enable_rpath+set}" = set; then :
15789  enableval=$enable_rpath; :
15790else
15791  enable_rpath=yes
15792fi
15793
15794
15795
15796
15797  acl_libdirstem=lib
15798  acl_libdirstem2=
15799  case "$host_os" in
15800    solaris*)
15801                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15802$as_echo_n "checking for 64-bit host... " >&6; }
15803if ${gl_cv_solaris_64bit+:} false; then :
15804  $as_echo_n "(cached) " >&6
15805else
15806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807/* end confdefs.h.  */
15808
15809#ifdef _LP64
15810sixtyfour bits
15811#endif
15812
15813_ACEOF
15814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15815  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
15816  gl_cv_solaris_64bit=yes
15817else
15818  gl_cv_solaris_64bit=no
15819fi
15820rm -f conftest*
15821
15822
15823fi
15824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15825$as_echo "$gl_cv_solaris_64bit" >&6; }
15826      if test $gl_cv_solaris_64bit = yes; then
15827        acl_libdirstem=lib/64
15828        case "$host_cpu" in
15829          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
15830          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15831        esac
15832      fi
15833      ;;
15834    *)
15835      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15836      if test -n "$searchpath"; then
15837        acl_save_IFS="${IFS= 	}"; IFS=":"
15838        for searchdir in $searchpath; do
15839          if test -d "$searchdir"; then
15840            case "$searchdir" in
15841              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15842              */../ | */.. )
15843                # Better ignore directories of this form. They are misleading.
15844                ;;
15845              *) searchdir=`cd "$searchdir" && pwd`
15846                 case "$searchdir" in
15847                   */lib64 ) acl_libdirstem=lib64 ;;
15848                 esac ;;
15849            esac
15850          fi
15851        done
15852        IFS="$acl_save_IFS"
15853      fi
15854      ;;
15855  esac
15856  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869    use_additional=yes
15870
15871  acl_save_prefix="$prefix"
15872  prefix="$acl_final_prefix"
15873  acl_save_exec_prefix="$exec_prefix"
15874  exec_prefix="$acl_final_exec_prefix"
15875
15876    eval additional_includedir=\"$includedir\"
15877    eval additional_libdir=\"$libdir\"
15878
15879  exec_prefix="$acl_save_exec_prefix"
15880  prefix="$acl_save_prefix"
15881
15882
15883# Check whether --with-libiconv-prefix was given.
15884if test "${with_libiconv_prefix+set}" = set; then :
15885  withval=$with_libiconv_prefix;
15886    if test "X$withval" = "Xno"; then
15887      use_additional=no
15888    else
15889      if test "X$withval" = "X"; then
15890
15891  acl_save_prefix="$prefix"
15892  prefix="$acl_final_prefix"
15893  acl_save_exec_prefix="$exec_prefix"
15894  exec_prefix="$acl_final_exec_prefix"
15895
15896          eval additional_includedir=\"$includedir\"
15897          eval additional_libdir=\"$libdir\"
15898
15899  exec_prefix="$acl_save_exec_prefix"
15900  prefix="$acl_save_prefix"
15901
15902      else
15903        additional_includedir="$withval/include"
15904        additional_libdir="$withval/$acl_libdirstem"
15905        if test "$acl_libdirstem2" != "$acl_libdirstem" \
15906           && ! test -d "$withval/$acl_libdirstem"; then
15907          additional_libdir="$withval/$acl_libdirstem2"
15908        fi
15909      fi
15910    fi
15911
15912fi
15913
15914      LIBICONV=
15915  LTLIBICONV=
15916  INCICONV=
15917  LIBICONV_PREFIX=
15918      HAVE_LIBICONV=
15919  rpathdirs=
15920  ltrpathdirs=
15921  names_already_handled=
15922  names_next_round='iconv '
15923  while test -n "$names_next_round"; do
15924    names_this_round="$names_next_round"
15925    names_next_round=
15926    for name in $names_this_round; do
15927      already_handled=
15928      for n in $names_already_handled; do
15929        if test "$n" = "$name"; then
15930          already_handled=yes
15931          break
15932        fi
15933      done
15934      if test -z "$already_handled"; then
15935        names_already_handled="$names_already_handled $name"
15936                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15937        eval value=\"\$HAVE_LIB$uppername\"
15938        if test -n "$value"; then
15939          if test "$value" = yes; then
15940            eval value=\"\$LIB$uppername\"
15941            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15942            eval value=\"\$LTLIB$uppername\"
15943            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15944          else
15945                                    :
15946          fi
15947        else
15948                              found_dir=
15949          found_la=
15950          found_so=
15951          found_a=
15952          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15953          if test -n "$acl_shlibext"; then
15954            shrext=".$acl_shlibext"             # typically: shrext=.so
15955          else
15956            shrext=
15957          fi
15958          if test $use_additional = yes; then
15959            dir="$additional_libdir"
15960                                    if test -n "$acl_shlibext"; then
15961              if test -f "$dir/$libname$shrext"; then
15962                found_dir="$dir"
15963                found_so="$dir/$libname$shrext"
15964              else
15965                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15966                  ver=`(cd "$dir" && \
15967                        for f in "$libname$shrext".*; do echo "$f"; done \
15968                        | sed -e "s,^$libname$shrext\\\\.,," \
15969                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15970                        | sed 1q ) 2>/dev/null`
15971                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15972                    found_dir="$dir"
15973                    found_so="$dir/$libname$shrext.$ver"
15974                  fi
15975                else
15976                  eval library_names=\"$acl_library_names_spec\"
15977                  for f in $library_names; do
15978                    if test -f "$dir/$f"; then
15979                      found_dir="$dir"
15980                      found_so="$dir/$f"
15981                      break
15982                    fi
15983                  done
15984                fi
15985              fi
15986            fi
15987                        if test "X$found_dir" = "X"; then
15988              if test -f "$dir/$libname.$acl_libext"; then
15989                found_dir="$dir"
15990                found_a="$dir/$libname.$acl_libext"
15991              fi
15992            fi
15993            if test "X$found_dir" != "X"; then
15994              if test -f "$dir/$libname.la"; then
15995                found_la="$dir/$libname.la"
15996              fi
15997            fi
15998          fi
15999          if test "X$found_dir" = "X"; then
16000            for x in $LDFLAGS $LTLIBICONV; do
16001
16002  acl_save_prefix="$prefix"
16003  prefix="$acl_final_prefix"
16004  acl_save_exec_prefix="$exec_prefix"
16005  exec_prefix="$acl_final_exec_prefix"
16006  eval x=\"$x\"
16007  exec_prefix="$acl_save_exec_prefix"
16008  prefix="$acl_save_prefix"
16009
16010              case "$x" in
16011                -L*)
16012                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16013                                    if test -n "$acl_shlibext"; then
16014                    if test -f "$dir/$libname$shrext"; then
16015                      found_dir="$dir"
16016                      found_so="$dir/$libname$shrext"
16017                    else
16018                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16019                        ver=`(cd "$dir" && \
16020                              for f in "$libname$shrext".*; do echo "$f"; done \
16021                              | sed -e "s,^$libname$shrext\\\\.,," \
16022                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16023                              | sed 1q ) 2>/dev/null`
16024                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16025                          found_dir="$dir"
16026                          found_so="$dir/$libname$shrext.$ver"
16027                        fi
16028                      else
16029                        eval library_names=\"$acl_library_names_spec\"
16030                        for f in $library_names; do
16031                          if test -f "$dir/$f"; then
16032                            found_dir="$dir"
16033                            found_so="$dir/$f"
16034                            break
16035                          fi
16036                        done
16037                      fi
16038                    fi
16039                  fi
16040                                    if test "X$found_dir" = "X"; then
16041                    if test -f "$dir/$libname.$acl_libext"; then
16042                      found_dir="$dir"
16043                      found_a="$dir/$libname.$acl_libext"
16044                    fi
16045                  fi
16046                  if test "X$found_dir" != "X"; then
16047                    if test -f "$dir/$libname.la"; then
16048                      found_la="$dir/$libname.la"
16049                    fi
16050                  fi
16051                  ;;
16052              esac
16053              if test "X$found_dir" != "X"; then
16054                break
16055              fi
16056            done
16057          fi
16058          if test "X$found_dir" != "X"; then
16059                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16060            if test "X$found_so" != "X"; then
16061                                                        if test "$enable_rpath" = no \
16062                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16063                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16064                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16065              else
16066                                                                                haveit=
16067                for x in $ltrpathdirs; do
16068                  if test "X$x" = "X$found_dir"; then
16069                    haveit=yes
16070                    break
16071                  fi
16072                done
16073                if test -z "$haveit"; then
16074                  ltrpathdirs="$ltrpathdirs $found_dir"
16075                fi
16076                                if test "$acl_hardcode_direct" = yes; then
16077                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16078                else
16079                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16080                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16081                                                            haveit=
16082                    for x in $rpathdirs; do
16083                      if test "X$x" = "X$found_dir"; then
16084                        haveit=yes
16085                        break
16086                      fi
16087                    done
16088                    if test -z "$haveit"; then
16089                      rpathdirs="$rpathdirs $found_dir"
16090                    fi
16091                  else
16092                                                                                haveit=
16093                    for x in $LDFLAGS $LIBICONV; do
16094
16095  acl_save_prefix="$prefix"
16096  prefix="$acl_final_prefix"
16097  acl_save_exec_prefix="$exec_prefix"
16098  exec_prefix="$acl_final_exec_prefix"
16099  eval x=\"$x\"
16100  exec_prefix="$acl_save_exec_prefix"
16101  prefix="$acl_save_prefix"
16102
16103                      if test "X$x" = "X-L$found_dir"; then
16104                        haveit=yes
16105                        break
16106                      fi
16107                    done
16108                    if test -z "$haveit"; then
16109                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16110                    fi
16111                    if test "$acl_hardcode_minus_L" != no; then
16112                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16113                    else
16114                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16115                    fi
16116                  fi
16117                fi
16118              fi
16119            else
16120              if test "X$found_a" != "X"; then
16121                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16122              else
16123                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16124              fi
16125            fi
16126                        additional_includedir=
16127            case "$found_dir" in
16128              */$acl_libdirstem | */$acl_libdirstem/)
16129                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16130                if test "$name" = 'iconv'; then
16131                  LIBICONV_PREFIX="$basedir"
16132                fi
16133                additional_includedir="$basedir/include"
16134                ;;
16135              */$acl_libdirstem2 | */$acl_libdirstem2/)
16136                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16137                if test "$name" = 'iconv'; then
16138                  LIBICONV_PREFIX="$basedir"
16139                fi
16140                additional_includedir="$basedir/include"
16141                ;;
16142            esac
16143            if test "X$additional_includedir" != "X"; then
16144                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
16145                haveit=
16146                if test "X$additional_includedir" = "X/usr/local/include"; then
16147                  if test -n "$GCC"; then
16148                    case $host_os in
16149                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16150                    esac
16151                  fi
16152                fi
16153                if test -z "$haveit"; then
16154                  for x in $CPPFLAGS $INCICONV; do
16155
16156  acl_save_prefix="$prefix"
16157  prefix="$acl_final_prefix"
16158  acl_save_exec_prefix="$exec_prefix"
16159  exec_prefix="$acl_final_exec_prefix"
16160  eval x=\"$x\"
16161  exec_prefix="$acl_save_exec_prefix"
16162  prefix="$acl_save_prefix"
16163
16164                    if test "X$x" = "X-I$additional_includedir"; then
16165                      haveit=yes
16166                      break
16167                    fi
16168                  done
16169                  if test -z "$haveit"; then
16170                    if test -d "$additional_includedir"; then
16171                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16172                    fi
16173                  fi
16174                fi
16175              fi
16176            fi
16177                        if test -n "$found_la"; then
16178                                                        save_libdir="$libdir"
16179              case "$found_la" in
16180                */* | *\\*) . "$found_la" ;;
16181                *) . "./$found_la" ;;
16182              esac
16183              libdir="$save_libdir"
16184                            for dep in $dependency_libs; do
16185                case "$dep" in
16186                  -L*)
16187                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16188                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16189                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16190                      haveit=
16191                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16192                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16193                        if test -n "$GCC"; then
16194                          case $host_os in
16195                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16196                          esac
16197                        fi
16198                      fi
16199                      if test -z "$haveit"; then
16200                        haveit=
16201                        for x in $LDFLAGS $LIBICONV; do
16202
16203  acl_save_prefix="$prefix"
16204  prefix="$acl_final_prefix"
16205  acl_save_exec_prefix="$exec_prefix"
16206  exec_prefix="$acl_final_exec_prefix"
16207  eval x=\"$x\"
16208  exec_prefix="$acl_save_exec_prefix"
16209  prefix="$acl_save_prefix"
16210
16211                          if test "X$x" = "X-L$additional_libdir"; then
16212                            haveit=yes
16213                            break
16214                          fi
16215                        done
16216                        if test -z "$haveit"; then
16217                          if test -d "$additional_libdir"; then
16218                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16219                          fi
16220                        fi
16221                        haveit=
16222                        for x in $LDFLAGS $LTLIBICONV; do
16223
16224  acl_save_prefix="$prefix"
16225  prefix="$acl_final_prefix"
16226  acl_save_exec_prefix="$exec_prefix"
16227  exec_prefix="$acl_final_exec_prefix"
16228  eval x=\"$x\"
16229  exec_prefix="$acl_save_exec_prefix"
16230  prefix="$acl_save_prefix"
16231
16232                          if test "X$x" = "X-L$additional_libdir"; then
16233                            haveit=yes
16234                            break
16235                          fi
16236                        done
16237                        if test -z "$haveit"; then
16238                          if test -d "$additional_libdir"; then
16239                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16240                          fi
16241                        fi
16242                      fi
16243                    fi
16244                    ;;
16245                  -R*)
16246                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
16247                    if test "$enable_rpath" != no; then
16248                                                                  haveit=
16249                      for x in $rpathdirs; do
16250                        if test "X$x" = "X$dir"; then
16251                          haveit=yes
16252                          break
16253                        fi
16254                      done
16255                      if test -z "$haveit"; then
16256                        rpathdirs="$rpathdirs $dir"
16257                      fi
16258                                                                  haveit=
16259                      for x in $ltrpathdirs; do
16260                        if test "X$x" = "X$dir"; then
16261                          haveit=yes
16262                          break
16263                        fi
16264                      done
16265                      if test -z "$haveit"; then
16266                        ltrpathdirs="$ltrpathdirs $dir"
16267                      fi
16268                    fi
16269                    ;;
16270                  -l*)
16271                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16272                    ;;
16273                  *.la)
16274                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16275                    ;;
16276                  *)
16277                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16278                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16279                    ;;
16280                esac
16281              done
16282            fi
16283          else
16284                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16285            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16286          fi
16287        fi
16288      fi
16289    done
16290  done
16291  if test "X$rpathdirs" != "X"; then
16292    if test -n "$acl_hardcode_libdir_separator"; then
16293                        alldirs=
16294      for found_dir in $rpathdirs; do
16295        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16296      done
16297            acl_save_libdir="$libdir"
16298      libdir="$alldirs"
16299      eval flag=\"$acl_hardcode_libdir_flag_spec\"
16300      libdir="$acl_save_libdir"
16301      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16302    else
16303            for found_dir in $rpathdirs; do
16304        acl_save_libdir="$libdir"
16305        libdir="$found_dir"
16306        eval flag=\"$acl_hardcode_libdir_flag_spec\"
16307        libdir="$acl_save_libdir"
16308        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16309      done
16310    fi
16311  fi
16312  if test "X$ltrpathdirs" != "X"; then
16313            for found_dir in $ltrpathdirs; do
16314      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16315    done
16316  fi
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16349$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16350if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16351  $as_echo_n "(cached) " >&6
16352else
16353  gt_save_LIBS="$LIBS"
16354     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16355     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16356/* end confdefs.h.  */
16357#include <CoreFoundation/CFPreferences.h>
16358int
16359main ()
16360{
16361CFPreferencesCopyAppValue(NULL, NULL)
16362  ;
16363  return 0;
16364}
16365_ACEOF
16366if ac_fn_c_try_link "$LINENO"; then :
16367  gt_cv_func_CFPreferencesCopyAppValue=yes
16368else
16369  gt_cv_func_CFPreferencesCopyAppValue=no
16370fi
16371rm -f core conftest.err conftest.$ac_objext \
16372    conftest$ac_exeext conftest.$ac_ext
16373     LIBS="$gt_save_LIBS"
16374fi
16375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16376$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16377  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16378
16379$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16380
16381  fi
16382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16383$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16384if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
16385  $as_echo_n "(cached) " >&6
16386else
16387  gt_save_LIBS="$LIBS"
16388     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16389     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390/* end confdefs.h.  */
16391#include <CoreFoundation/CFLocale.h>
16392int
16393main ()
16394{
16395CFLocaleCopyCurrent();
16396  ;
16397  return 0;
16398}
16399_ACEOF
16400if ac_fn_c_try_link "$LINENO"; then :
16401  gt_cv_func_CFLocaleCopyCurrent=yes
16402else
16403  gt_cv_func_CFLocaleCopyCurrent=no
16404fi
16405rm -f core conftest.err conftest.$ac_objext \
16406    conftest$ac_exeext conftest.$ac_ext
16407     LIBS="$gt_save_LIBS"
16408fi
16409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16410$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16411  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16412
16413$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16414
16415  fi
16416  INTL_MACOSX_LIBS=
16417  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16418    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16419  fi
16420
16421
16422
16423
16424
16425
16426  LIBINTL=
16427  LTLIBINTL=
16428  POSUB=
16429
16430    case " $gt_needs " in
16431    *" need-formatstring-macros "*) gt_api_version=3 ;;
16432    *" need-ngettext "*) gt_api_version=2 ;;
16433    *) gt_api_version=1 ;;
16434  esac
16435  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
16436  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
16437
16438    if test "$USE_NLS" = "yes"; then
16439    gt_use_preinstalled_gnugettext=no
16440
16441
16442        if test $gt_api_version -ge 3; then
16443          gt_revision_test_code='
16444#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16445#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
16446#endif
16447typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
16448'
16449        else
16450          gt_revision_test_code=
16451        fi
16452        if test $gt_api_version -ge 2; then
16453          gt_expression_test_code=' + * ngettext ("", "", 0)'
16454        else
16455          gt_expression_test_code=
16456        fi
16457
16458        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16459$as_echo_n "checking for GNU gettext in libc... " >&6; }
16460if eval \${$gt_func_gnugettext_libc+:} false; then :
16461  $as_echo_n "(cached) " >&6
16462else
16463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464/* end confdefs.h.  */
16465
16466#include <libintl.h>
16467$gt_revision_test_code
16468extern int _nl_msg_cat_cntr;
16469extern int *_nl_domain_bindings;
16470
16471int
16472main ()
16473{
16474
16475bindtextdomain ("", "");
16476return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
16477
16478  ;
16479  return 0;
16480}
16481_ACEOF
16482if ac_fn_c_try_link "$LINENO"; then :
16483  eval "$gt_func_gnugettext_libc=yes"
16484else
16485  eval "$gt_func_gnugettext_libc=no"
16486fi
16487rm -f core conftest.err conftest.$ac_objext \
16488    conftest$ac_exeext conftest.$ac_ext
16489fi
16490eval ac_res=\$$gt_func_gnugettext_libc
16491	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16492$as_echo "$ac_res" >&6; }
16493
16494        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
16495
16496
16497
16498
16499
16500          am_save_CPPFLAGS="$CPPFLAGS"
16501
16502  for element in $INCICONV; do
16503    haveit=
16504    for x in $CPPFLAGS; do
16505
16506  acl_save_prefix="$prefix"
16507  prefix="$acl_final_prefix"
16508  acl_save_exec_prefix="$exec_prefix"
16509  exec_prefix="$acl_final_exec_prefix"
16510  eval x=\"$x\"
16511  exec_prefix="$acl_save_exec_prefix"
16512  prefix="$acl_save_prefix"
16513
16514      if test "X$x" = "X$element"; then
16515        haveit=yes
16516        break
16517      fi
16518    done
16519    if test -z "$haveit"; then
16520      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16521    fi
16522  done
16523
16524
16525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16526$as_echo_n "checking for iconv... " >&6; }
16527if ${am_cv_func_iconv+:} false; then :
16528  $as_echo_n "(cached) " >&6
16529else
16530
16531    am_cv_func_iconv="no, consider installing GNU libiconv"
16532    am_cv_lib_iconv=no
16533    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534/* end confdefs.h.  */
16535
16536#include <stdlib.h>
16537#include <iconv.h>
16538
16539int
16540main ()
16541{
16542iconv_t cd = iconv_open("","");
16543           iconv(cd,NULL,NULL,NULL,NULL);
16544           iconv_close(cd);
16545  ;
16546  return 0;
16547}
16548_ACEOF
16549if ac_fn_c_try_link "$LINENO"; then :
16550  am_cv_func_iconv=yes
16551fi
16552rm -f core conftest.err conftest.$ac_objext \
16553    conftest$ac_exeext conftest.$ac_ext
16554    if test "$am_cv_func_iconv" != yes; then
16555      am_save_LIBS="$LIBS"
16556      LIBS="$LIBS $LIBICONV"
16557      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558/* end confdefs.h.  */
16559
16560#include <stdlib.h>
16561#include <iconv.h>
16562
16563int
16564main ()
16565{
16566iconv_t cd = iconv_open("","");
16567             iconv(cd,NULL,NULL,NULL,NULL);
16568             iconv_close(cd);
16569  ;
16570  return 0;
16571}
16572_ACEOF
16573if ac_fn_c_try_link "$LINENO"; then :
16574  am_cv_lib_iconv=yes
16575        am_cv_func_iconv=yes
16576fi
16577rm -f core conftest.err conftest.$ac_objext \
16578    conftest$ac_exeext conftest.$ac_ext
16579      LIBS="$am_save_LIBS"
16580    fi
16581
16582fi
16583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16584$as_echo "$am_cv_func_iconv" >&6; }
16585  if test "$am_cv_func_iconv" = yes; then
16586    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16587$as_echo_n "checking for working iconv... " >&6; }
16588if ${am_cv_func_iconv_works+:} false; then :
16589  $as_echo_n "(cached) " >&6
16590else
16591
16592                  am_save_LIBS="$LIBS"
16593      if test $am_cv_lib_iconv = yes; then
16594        LIBS="$LIBS $LIBICONV"
16595      fi
16596      if test "$cross_compiling" = yes; then :
16597
16598         case "$host_os" in
16599           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16600           *)            am_cv_func_iconv_works="guessing yes" ;;
16601         esac
16602
16603else
16604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605/* end confdefs.h.  */
16606
16607#include <iconv.h>
16608#include <string.h>
16609int main ()
16610{
16611  int result = 0;
16612  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16613     returns.  */
16614  {
16615    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16616    if (cd_utf8_to_88591 != (iconv_t)(-1))
16617      {
16618        static const char input[] = "\342\202\254"; /* EURO SIGN */
16619        char buf[10];
16620        const char *inptr = input;
16621        size_t inbytesleft = strlen (input);
16622        char *outptr = buf;
16623        size_t outbytesleft = sizeof (buf);
16624        size_t res = iconv (cd_utf8_to_88591,
16625                            (char **) &inptr, &inbytesleft,
16626                            &outptr, &outbytesleft);
16627        if (res == 0)
16628          result |= 1;
16629        iconv_close (cd_utf8_to_88591);
16630      }
16631  }
16632  /* Test against Solaris 10 bug: Failures are not distinguishable from
16633     successful returns.  */
16634  {
16635    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16636    if (cd_ascii_to_88591 != (iconv_t)(-1))
16637      {
16638        static const char input[] = "\263";
16639        char buf[10];
16640        const char *inptr = input;
16641        size_t inbytesleft = strlen (input);
16642        char *outptr = buf;
16643        size_t outbytesleft = sizeof (buf);
16644        size_t res = iconv (cd_ascii_to_88591,
16645                            (char **) &inptr, &inbytesleft,
16646                            &outptr, &outbytesleft);
16647        if (res == 0)
16648          result |= 2;
16649        iconv_close (cd_ascii_to_88591);
16650      }
16651  }
16652  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
16653  {
16654    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16655    if (cd_88591_to_utf8 != (iconv_t)(-1))
16656      {
16657        static const char input[] = "\304";
16658        static char buf[2] = { (char)0xDE, (char)0xAD };
16659        const char *inptr = input;
16660        size_t inbytesleft = 1;
16661        char *outptr = buf;
16662        size_t outbytesleft = 1;
16663        size_t res = iconv (cd_88591_to_utf8,
16664                            (char **) &inptr, &inbytesleft,
16665                            &outptr, &outbytesleft);
16666        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16667          result |= 4;
16668        iconv_close (cd_88591_to_utf8);
16669      }
16670  }
16671#if 0 /* This bug could be worked around by the caller.  */
16672  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
16673  {
16674    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16675    if (cd_88591_to_utf8 != (iconv_t)(-1))
16676      {
16677        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16678        char buf[50];
16679        const char *inptr = input;
16680        size_t inbytesleft = strlen (input);
16681        char *outptr = buf;
16682        size_t outbytesleft = sizeof (buf);
16683        size_t res = iconv (cd_88591_to_utf8,
16684                            (char **) &inptr, &inbytesleft,
16685                            &outptr, &outbytesleft);
16686        if ((int)res > 0)
16687          result |= 8;
16688        iconv_close (cd_88591_to_utf8);
16689      }
16690  }
16691#endif
16692  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16693     provided.  */
16694  if (/* Try standardized names.  */
16695      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16696      /* Try IRIX, OSF/1 names.  */
16697      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16698      /* Try AIX names.  */
16699      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16700      /* Try HP-UX names.  */
16701      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16702    result |= 16;
16703  return result;
16704}
16705_ACEOF
16706if ac_fn_c_try_run "$LINENO"; then :
16707  am_cv_func_iconv_works=yes
16708else
16709  am_cv_func_iconv_works=no
16710fi
16711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16712  conftest.$ac_objext conftest.beam conftest.$ac_ext
16713fi
16714
16715      LIBS="$am_save_LIBS"
16716
16717fi
16718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16719$as_echo "$am_cv_func_iconv_works" >&6; }
16720    case "$am_cv_func_iconv_works" in
16721      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16722      *)   am_func_iconv=yes ;;
16723    esac
16724  else
16725    am_func_iconv=no am_cv_lib_iconv=no
16726  fi
16727  if test "$am_func_iconv" = yes; then
16728
16729$as_echo "#define HAVE_ICONV 1" >>confdefs.h
16730
16731  fi
16732  if test "$am_cv_lib_iconv" = yes; then
16733    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16734$as_echo_n "checking how to link with libiconv... " >&6; }
16735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16736$as_echo "$LIBICONV" >&6; }
16737  else
16738            CPPFLAGS="$am_save_CPPFLAGS"
16739    LIBICONV=
16740    LTLIBICONV=
16741  fi
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753    use_additional=yes
16754
16755  acl_save_prefix="$prefix"
16756  prefix="$acl_final_prefix"
16757  acl_save_exec_prefix="$exec_prefix"
16758  exec_prefix="$acl_final_exec_prefix"
16759
16760    eval additional_includedir=\"$includedir\"
16761    eval additional_libdir=\"$libdir\"
16762
16763  exec_prefix="$acl_save_exec_prefix"
16764  prefix="$acl_save_prefix"
16765
16766
16767# Check whether --with-libintl-prefix was given.
16768if test "${with_libintl_prefix+set}" = set; then :
16769  withval=$with_libintl_prefix;
16770    if test "X$withval" = "Xno"; then
16771      use_additional=no
16772    else
16773      if test "X$withval" = "X"; then
16774
16775  acl_save_prefix="$prefix"
16776  prefix="$acl_final_prefix"
16777  acl_save_exec_prefix="$exec_prefix"
16778  exec_prefix="$acl_final_exec_prefix"
16779
16780          eval additional_includedir=\"$includedir\"
16781          eval additional_libdir=\"$libdir\"
16782
16783  exec_prefix="$acl_save_exec_prefix"
16784  prefix="$acl_save_prefix"
16785
16786      else
16787        additional_includedir="$withval/include"
16788        additional_libdir="$withval/$acl_libdirstem"
16789        if test "$acl_libdirstem2" != "$acl_libdirstem" \
16790           && ! test -d "$withval/$acl_libdirstem"; then
16791          additional_libdir="$withval/$acl_libdirstem2"
16792        fi
16793      fi
16794    fi
16795
16796fi
16797
16798      LIBINTL=
16799  LTLIBINTL=
16800  INCINTL=
16801  LIBINTL_PREFIX=
16802      HAVE_LIBINTL=
16803  rpathdirs=
16804  ltrpathdirs=
16805  names_already_handled=
16806  names_next_round='intl '
16807  while test -n "$names_next_round"; do
16808    names_this_round="$names_next_round"
16809    names_next_round=
16810    for name in $names_this_round; do
16811      already_handled=
16812      for n in $names_already_handled; do
16813        if test "$n" = "$name"; then
16814          already_handled=yes
16815          break
16816        fi
16817      done
16818      if test -z "$already_handled"; then
16819        names_already_handled="$names_already_handled $name"
16820                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16821        eval value=\"\$HAVE_LIB$uppername\"
16822        if test -n "$value"; then
16823          if test "$value" = yes; then
16824            eval value=\"\$LIB$uppername\"
16825            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16826            eval value=\"\$LTLIB$uppername\"
16827            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16828          else
16829                                    :
16830          fi
16831        else
16832                              found_dir=
16833          found_la=
16834          found_so=
16835          found_a=
16836          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16837          if test -n "$acl_shlibext"; then
16838            shrext=".$acl_shlibext"             # typically: shrext=.so
16839          else
16840            shrext=
16841          fi
16842          if test $use_additional = yes; then
16843            dir="$additional_libdir"
16844                                    if test -n "$acl_shlibext"; then
16845              if test -f "$dir/$libname$shrext"; then
16846                found_dir="$dir"
16847                found_so="$dir/$libname$shrext"
16848              else
16849                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16850                  ver=`(cd "$dir" && \
16851                        for f in "$libname$shrext".*; do echo "$f"; done \
16852                        | sed -e "s,^$libname$shrext\\\\.,," \
16853                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16854                        | sed 1q ) 2>/dev/null`
16855                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16856                    found_dir="$dir"
16857                    found_so="$dir/$libname$shrext.$ver"
16858                  fi
16859                else
16860                  eval library_names=\"$acl_library_names_spec\"
16861                  for f in $library_names; do
16862                    if test -f "$dir/$f"; then
16863                      found_dir="$dir"
16864                      found_so="$dir/$f"
16865                      break
16866                    fi
16867                  done
16868                fi
16869              fi
16870            fi
16871                        if test "X$found_dir" = "X"; then
16872              if test -f "$dir/$libname.$acl_libext"; then
16873                found_dir="$dir"
16874                found_a="$dir/$libname.$acl_libext"
16875              fi
16876            fi
16877            if test "X$found_dir" != "X"; then
16878              if test -f "$dir/$libname.la"; then
16879                found_la="$dir/$libname.la"
16880              fi
16881            fi
16882          fi
16883          if test "X$found_dir" = "X"; then
16884            for x in $LDFLAGS $LTLIBINTL; do
16885
16886  acl_save_prefix="$prefix"
16887  prefix="$acl_final_prefix"
16888  acl_save_exec_prefix="$exec_prefix"
16889  exec_prefix="$acl_final_exec_prefix"
16890  eval x=\"$x\"
16891  exec_prefix="$acl_save_exec_prefix"
16892  prefix="$acl_save_prefix"
16893
16894              case "$x" in
16895                -L*)
16896                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16897                                    if test -n "$acl_shlibext"; then
16898                    if test -f "$dir/$libname$shrext"; then
16899                      found_dir="$dir"
16900                      found_so="$dir/$libname$shrext"
16901                    else
16902                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16903                        ver=`(cd "$dir" && \
16904                              for f in "$libname$shrext".*; do echo "$f"; done \
16905                              | sed -e "s,^$libname$shrext\\\\.,," \
16906                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16907                              | sed 1q ) 2>/dev/null`
16908                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16909                          found_dir="$dir"
16910                          found_so="$dir/$libname$shrext.$ver"
16911                        fi
16912                      else
16913                        eval library_names=\"$acl_library_names_spec\"
16914                        for f in $library_names; do
16915                          if test -f "$dir/$f"; then
16916                            found_dir="$dir"
16917                            found_so="$dir/$f"
16918                            break
16919                          fi
16920                        done
16921                      fi
16922                    fi
16923                  fi
16924                                    if test "X$found_dir" = "X"; then
16925                    if test -f "$dir/$libname.$acl_libext"; then
16926                      found_dir="$dir"
16927                      found_a="$dir/$libname.$acl_libext"
16928                    fi
16929                  fi
16930                  if test "X$found_dir" != "X"; then
16931                    if test -f "$dir/$libname.la"; then
16932                      found_la="$dir/$libname.la"
16933                    fi
16934                  fi
16935                  ;;
16936              esac
16937              if test "X$found_dir" != "X"; then
16938                break
16939              fi
16940            done
16941          fi
16942          if test "X$found_dir" != "X"; then
16943                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16944            if test "X$found_so" != "X"; then
16945                                                        if test "$enable_rpath" = no \
16946                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16947                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16948                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16949              else
16950                                                                                haveit=
16951                for x in $ltrpathdirs; do
16952                  if test "X$x" = "X$found_dir"; then
16953                    haveit=yes
16954                    break
16955                  fi
16956                done
16957                if test -z "$haveit"; then
16958                  ltrpathdirs="$ltrpathdirs $found_dir"
16959                fi
16960                                if test "$acl_hardcode_direct" = yes; then
16961                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16962                else
16963                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16964                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16965                                                            haveit=
16966                    for x in $rpathdirs; do
16967                      if test "X$x" = "X$found_dir"; then
16968                        haveit=yes
16969                        break
16970                      fi
16971                    done
16972                    if test -z "$haveit"; then
16973                      rpathdirs="$rpathdirs $found_dir"
16974                    fi
16975                  else
16976                                                                                haveit=
16977                    for x in $LDFLAGS $LIBINTL; do
16978
16979  acl_save_prefix="$prefix"
16980  prefix="$acl_final_prefix"
16981  acl_save_exec_prefix="$exec_prefix"
16982  exec_prefix="$acl_final_exec_prefix"
16983  eval x=\"$x\"
16984  exec_prefix="$acl_save_exec_prefix"
16985  prefix="$acl_save_prefix"
16986
16987                      if test "X$x" = "X-L$found_dir"; then
16988                        haveit=yes
16989                        break
16990                      fi
16991                    done
16992                    if test -z "$haveit"; then
16993                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16994                    fi
16995                    if test "$acl_hardcode_minus_L" != no; then
16996                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16997                    else
16998                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16999                    fi
17000                  fi
17001                fi
17002              fi
17003            else
17004              if test "X$found_a" != "X"; then
17005                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17006              else
17007                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17008              fi
17009            fi
17010                        additional_includedir=
17011            case "$found_dir" in
17012              */$acl_libdirstem | */$acl_libdirstem/)
17013                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17014                if test "$name" = 'intl'; then
17015                  LIBINTL_PREFIX="$basedir"
17016                fi
17017                additional_includedir="$basedir/include"
17018                ;;
17019              */$acl_libdirstem2 | */$acl_libdirstem2/)
17020                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17021                if test "$name" = 'intl'; then
17022                  LIBINTL_PREFIX="$basedir"
17023                fi
17024                additional_includedir="$basedir/include"
17025                ;;
17026            esac
17027            if test "X$additional_includedir" != "X"; then
17028                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
17029                haveit=
17030                if test "X$additional_includedir" = "X/usr/local/include"; then
17031                  if test -n "$GCC"; then
17032                    case $host_os in
17033                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17034                    esac
17035                  fi
17036                fi
17037                if test -z "$haveit"; then
17038                  for x in $CPPFLAGS $INCINTL; do
17039
17040  acl_save_prefix="$prefix"
17041  prefix="$acl_final_prefix"
17042  acl_save_exec_prefix="$exec_prefix"
17043  exec_prefix="$acl_final_exec_prefix"
17044  eval x=\"$x\"
17045  exec_prefix="$acl_save_exec_prefix"
17046  prefix="$acl_save_prefix"
17047
17048                    if test "X$x" = "X-I$additional_includedir"; then
17049                      haveit=yes
17050                      break
17051                    fi
17052                  done
17053                  if test -z "$haveit"; then
17054                    if test -d "$additional_includedir"; then
17055                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17056                    fi
17057                  fi
17058                fi
17059              fi
17060            fi
17061                        if test -n "$found_la"; then
17062                                                        save_libdir="$libdir"
17063              case "$found_la" in
17064                */* | *\\*) . "$found_la" ;;
17065                *) . "./$found_la" ;;
17066              esac
17067              libdir="$save_libdir"
17068                            for dep in $dependency_libs; do
17069                case "$dep" in
17070                  -L*)
17071                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17072                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17073                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17074                      haveit=
17075                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17076                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17077                        if test -n "$GCC"; then
17078                          case $host_os in
17079                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17080                          esac
17081                        fi
17082                      fi
17083                      if test -z "$haveit"; then
17084                        haveit=
17085                        for x in $LDFLAGS $LIBINTL; do
17086
17087  acl_save_prefix="$prefix"
17088  prefix="$acl_final_prefix"
17089  acl_save_exec_prefix="$exec_prefix"
17090  exec_prefix="$acl_final_exec_prefix"
17091  eval x=\"$x\"
17092  exec_prefix="$acl_save_exec_prefix"
17093  prefix="$acl_save_prefix"
17094
17095                          if test "X$x" = "X-L$additional_libdir"; then
17096                            haveit=yes
17097                            break
17098                          fi
17099                        done
17100                        if test -z "$haveit"; then
17101                          if test -d "$additional_libdir"; then
17102                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17103                          fi
17104                        fi
17105                        haveit=
17106                        for x in $LDFLAGS $LTLIBINTL; do
17107
17108  acl_save_prefix="$prefix"
17109  prefix="$acl_final_prefix"
17110  acl_save_exec_prefix="$exec_prefix"
17111  exec_prefix="$acl_final_exec_prefix"
17112  eval x=\"$x\"
17113  exec_prefix="$acl_save_exec_prefix"
17114  prefix="$acl_save_prefix"
17115
17116                          if test "X$x" = "X-L$additional_libdir"; then
17117                            haveit=yes
17118                            break
17119                          fi
17120                        done
17121                        if test -z "$haveit"; then
17122                          if test -d "$additional_libdir"; then
17123                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17124                          fi
17125                        fi
17126                      fi
17127                    fi
17128                    ;;
17129                  -R*)
17130                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
17131                    if test "$enable_rpath" != no; then
17132                                                                  haveit=
17133                      for x in $rpathdirs; do
17134                        if test "X$x" = "X$dir"; then
17135                          haveit=yes
17136                          break
17137                        fi
17138                      done
17139                      if test -z "$haveit"; then
17140                        rpathdirs="$rpathdirs $dir"
17141                      fi
17142                                                                  haveit=
17143                      for x in $ltrpathdirs; do
17144                        if test "X$x" = "X$dir"; then
17145                          haveit=yes
17146                          break
17147                        fi
17148                      done
17149                      if test -z "$haveit"; then
17150                        ltrpathdirs="$ltrpathdirs $dir"
17151                      fi
17152                    fi
17153                    ;;
17154                  -l*)
17155                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17156                    ;;
17157                  *.la)
17158                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17159                    ;;
17160                  *)
17161                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17162                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17163                    ;;
17164                esac
17165              done
17166            fi
17167          else
17168                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17169            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17170          fi
17171        fi
17172      fi
17173    done
17174  done
17175  if test "X$rpathdirs" != "X"; then
17176    if test -n "$acl_hardcode_libdir_separator"; then
17177                        alldirs=
17178      for found_dir in $rpathdirs; do
17179        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17180      done
17181            acl_save_libdir="$libdir"
17182      libdir="$alldirs"
17183      eval flag=\"$acl_hardcode_libdir_flag_spec\"
17184      libdir="$acl_save_libdir"
17185      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17186    else
17187            for found_dir in $rpathdirs; do
17188        acl_save_libdir="$libdir"
17189        libdir="$found_dir"
17190        eval flag=\"$acl_hardcode_libdir_flag_spec\"
17191        libdir="$acl_save_libdir"
17192        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17193      done
17194    fi
17195  fi
17196  if test "X$ltrpathdirs" != "X"; then
17197            for found_dir in $ltrpathdirs; do
17198      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17199    done
17200  fi
17201
17202
17203
17204
17205
17206
17207          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17208$as_echo_n "checking for GNU gettext in libintl... " >&6; }
17209if eval \${$gt_func_gnugettext_libintl+:} false; then :
17210  $as_echo_n "(cached) " >&6
17211else
17212  gt_save_CPPFLAGS="$CPPFLAGS"
17213            CPPFLAGS="$CPPFLAGS $INCINTL"
17214            gt_save_LIBS="$LIBS"
17215            LIBS="$LIBS $LIBINTL"
17216                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217/* end confdefs.h.  */
17218
17219#include <libintl.h>
17220$gt_revision_test_code
17221extern int _nl_msg_cat_cntr;
17222extern
17223#ifdef __cplusplus
17224"C"
17225#endif
17226const char *_nl_expand_alias (const char *);
17227
17228int
17229main ()
17230{
17231
17232bindtextdomain ("", "");
17233return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17234
17235  ;
17236  return 0;
17237}
17238_ACEOF
17239if ac_fn_c_try_link "$LINENO"; then :
17240  eval "$gt_func_gnugettext_libintl=yes"
17241else
17242  eval "$gt_func_gnugettext_libintl=no"
17243fi
17244rm -f core conftest.err conftest.$ac_objext \
17245    conftest$ac_exeext conftest.$ac_ext
17246                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17247              LIBS="$LIBS $LIBICONV"
17248              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249/* end confdefs.h.  */
17250
17251#include <libintl.h>
17252$gt_revision_test_code
17253extern int _nl_msg_cat_cntr;
17254extern
17255#ifdef __cplusplus
17256"C"
17257#endif
17258const char *_nl_expand_alias (const char *);
17259
17260int
17261main ()
17262{
17263
17264bindtextdomain ("", "");
17265return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17266
17267  ;
17268  return 0;
17269}
17270_ACEOF
17271if ac_fn_c_try_link "$LINENO"; then :
17272  LIBINTL="$LIBINTL $LIBICONV"
17273                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17274                 eval "$gt_func_gnugettext_libintl=yes"
17275
17276fi
17277rm -f core conftest.err conftest.$ac_objext \
17278    conftest$ac_exeext conftest.$ac_ext
17279            fi
17280            CPPFLAGS="$gt_save_CPPFLAGS"
17281            LIBS="$gt_save_LIBS"
17282fi
17283eval ac_res=\$$gt_func_gnugettext_libintl
17284	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17285$as_echo "$ac_res" >&6; }
17286        fi
17287
17288                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17289           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17290                && test "$PACKAGE" != gettext-runtime \
17291                && test "$PACKAGE" != gettext-tools; }; then
17292          gt_use_preinstalled_gnugettext=yes
17293        else
17294                    LIBINTL=
17295          LTLIBINTL=
17296          INCINTL=
17297        fi
17298
17299
17300
17301    if test -n "$INTL_MACOSX_LIBS"; then
17302      if test "$gt_use_preinstalled_gnugettext" = "yes" \
17303         || test "$nls_cv_use_gnu_gettext" = "yes"; then
17304                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17305        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17306      fi
17307    fi
17308
17309    if test "$gt_use_preinstalled_gnugettext" = "yes" \
17310       || test "$nls_cv_use_gnu_gettext" = "yes"; then
17311
17312$as_echo "#define ENABLE_NLS 1" >>confdefs.h
17313
17314    else
17315      USE_NLS=no
17316    fi
17317  fi
17318
17319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17320$as_echo_n "checking whether to use NLS... " >&6; }
17321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17322$as_echo "$USE_NLS" >&6; }
17323  if test "$USE_NLS" = "yes"; then
17324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17325$as_echo_n "checking where the gettext function comes from... " >&6; }
17326    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17327      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17328        gt_source="external libintl"
17329      else
17330        gt_source="libc"
17331      fi
17332    else
17333      gt_source="included intl directory"
17334    fi
17335    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17336$as_echo "$gt_source" >&6; }
17337  fi
17338
17339  if test "$USE_NLS" = "yes"; then
17340
17341    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17342      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17343        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17344$as_echo_n "checking how to link with libintl... " >&6; }
17345        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17346$as_echo "$LIBINTL" >&6; }
17347
17348  for element in $INCINTL; do
17349    haveit=
17350    for x in $CPPFLAGS; do
17351
17352  acl_save_prefix="$prefix"
17353  prefix="$acl_final_prefix"
17354  acl_save_exec_prefix="$exec_prefix"
17355  exec_prefix="$acl_final_exec_prefix"
17356  eval x=\"$x\"
17357  exec_prefix="$acl_save_exec_prefix"
17358  prefix="$acl_save_prefix"
17359
17360      if test "X$x" = "X$element"; then
17361        haveit=yes
17362        break
17363      fi
17364    done
17365    if test -z "$haveit"; then
17366      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17367    fi
17368  done
17369
17370      fi
17371
17372
17373$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17374
17375
17376$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17377
17378    fi
17379
17380        POSUB=po
17381  fi
17382
17383
17384
17385    INTLLIBS="$LIBINTL"
17386
17387
17388
17389
17390
17391
17392
17393
17394###############################################################################
17395# Checks for header files.
17396###############################################################################
17397
17398echo
17399echo "System headers and functions:"
17400
17401# There is currently no workarounds in this package if some of
17402# these headers are missing.
17403for ac_header in fcntl.h limits.h sys/time.h
17404do :
17405  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17406ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17407if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17408  cat >>confdefs.h <<_ACEOF
17409#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17410_ACEOF
17411
17412else
17413  as_fn_error $? "Required header file(s) are missing." "$LINENO" 5
17414fi
17415
17416done
17417
17418
17419# This allows the use of the intrinsic functions if they are available.
17420for ac_header in immintrin.h
17421do :
17422  ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
17423if test "x$ac_cv_header_immintrin_h" = xyes; then :
17424  cat >>confdefs.h <<_ACEOF
17425#define HAVE_IMMINTRIN_H 1
17426_ACEOF
17427
17428fi
17429
17430done
17431
17432
17433
17434###############################################################################
17435# Checks for typedefs, structures, and compiler characteristics.
17436###############################################################################
17437
17438
17439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17440$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17441if ${ac_cv_header_stdbool_h+:} false; then :
17442  $as_echo_n "(cached) " >&6
17443else
17444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445/* end confdefs.h.  */
17446
17447             #include <stdbool.h>
17448             #ifndef bool
17449              "error: bool is not defined"
17450             #endif
17451             #ifndef false
17452              "error: false is not defined"
17453             #endif
17454             #if false
17455              "error: false is not 0"
17456             #endif
17457             #ifndef true
17458              "error: true is not defined"
17459             #endif
17460             #if true != 1
17461              "error: true is not 1"
17462             #endif
17463             #ifndef __bool_true_false_are_defined
17464              "error: __bool_true_false_are_defined is not defined"
17465             #endif
17466
17467             struct s { _Bool s: 1; _Bool t; } s;
17468
17469             char a[true == 1 ? 1 : -1];
17470             char b[false == 0 ? 1 : -1];
17471             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17472             char d[(bool) 0.5 == true ? 1 : -1];
17473             /* See body of main program for 'e'.  */
17474             char f[(_Bool) 0.0 == false ? 1 : -1];
17475             char g[true];
17476             char h[sizeof (_Bool)];
17477             char i[sizeof s.t];
17478             enum { j = false, k = true, l = false * true, m = true * 256 };
17479             /* The following fails for
17480                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17481             _Bool n[m];
17482             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17483             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17484             /* Catch a bug in an HP-UX C compiler.  See
17485                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17486                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17487              */
17488             _Bool q = true;
17489             _Bool *pq = &q;
17490
17491int
17492main ()
17493{
17494
17495             bool e = &s;
17496             *pq |= q;
17497             *pq |= ! q;
17498             /* Refer to every declared value, to avoid compiler optimizations.  */
17499             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17500                     + !m + !n + !o + !p + !q + !pq);
17501
17502  ;
17503  return 0;
17504}
17505_ACEOF
17506if ac_fn_c_try_compile "$LINENO"; then :
17507  ac_cv_header_stdbool_h=yes
17508else
17509  ac_cv_header_stdbool_h=no
17510fi
17511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17512fi
17513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17514$as_echo "$ac_cv_header_stdbool_h" >&6; }
17515   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17516if test "x$ac_cv_type__Bool" = xyes; then :
17517
17518cat >>confdefs.h <<_ACEOF
17519#define HAVE__BOOL 1
17520_ACEOF
17521
17522
17523fi
17524
17525
17526if test $ac_cv_header_stdbool_h = yes; then
17527
17528$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
17529
17530fi
17531
17532
17533ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17534case $ac_cv_c_uint8_t in #(
17535  no|yes) ;; #(
17536  *)
17537
17538$as_echo "#define _UINT8_T 1" >>confdefs.h
17539
17540
17541cat >>confdefs.h <<_ACEOF
17542#define uint8_t $ac_cv_c_uint8_t
17543_ACEOF
17544;;
17545  esac
17546
17547ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17548case $ac_cv_c_uint16_t in #(
17549  no|yes) ;; #(
17550  *)
17551
17552
17553cat >>confdefs.h <<_ACEOF
17554#define uint16_t $ac_cv_c_uint16_t
17555_ACEOF
17556;;
17557  esac
17558
17559ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
17560case $ac_cv_c_int32_t in #(
17561  no|yes) ;; #(
17562  *)
17563
17564cat >>confdefs.h <<_ACEOF
17565#define int32_t $ac_cv_c_int32_t
17566_ACEOF
17567;;
17568esac
17569
17570ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17571case $ac_cv_c_uint32_t in #(
17572  no|yes) ;; #(
17573  *)
17574
17575$as_echo "#define _UINT32_T 1" >>confdefs.h
17576
17577
17578cat >>confdefs.h <<_ACEOF
17579#define uint32_t $ac_cv_c_uint32_t
17580_ACEOF
17581;;
17582  esac
17583
17584ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
17585case $ac_cv_c_int64_t in #(
17586  no|yes) ;; #(
17587  *)
17588
17589cat >>confdefs.h <<_ACEOF
17590#define int64_t $ac_cv_c_int64_t
17591_ACEOF
17592;;
17593esac
17594
17595ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17596case $ac_cv_c_uint64_t in #(
17597  no|yes) ;; #(
17598  *)
17599
17600$as_echo "#define _UINT64_T 1" >>confdefs.h
17601
17602
17603cat >>confdefs.h <<_ACEOF
17604#define uint64_t $ac_cv_c_uint64_t
17605_ACEOF
17606;;
17607  esac
17608
17609
17610  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17611if test "x$ac_cv_type_uintptr_t" = xyes; then :
17612
17613$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
17614
17615else
17616  for ac_type in 'unsigned int' 'unsigned long int' \
17617	'unsigned long long int'; do
17618       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619/* end confdefs.h.  */
17620$ac_includes_default
17621int
17622main ()
17623{
17624static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17625test_array [0] = 0;
17626return test_array [0];
17627
17628  ;
17629  return 0;
17630}
17631_ACEOF
17632if ac_fn_c_try_compile "$LINENO"; then :
17633
17634cat >>confdefs.h <<_ACEOF
17635#define uintptr_t $ac_type
17636_ACEOF
17637
17638	  ac_type=
17639fi
17640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17641       test -z "$ac_type" && break
17642     done
17643fi
17644
17645
17646
17647# The cast to long int works around a bug in the HP C Compiler
17648# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17649# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17650# This bug is HP SR number 8606223364.
17651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17652$as_echo_n "checking size of size_t... " >&6; }
17653if ${ac_cv_sizeof_size_t+:} false; then :
17654  $as_echo_n "(cached) " >&6
17655else
17656  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
17657
17658else
17659  if test "$ac_cv_type_size_t" = yes; then
17660     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17662as_fn_error 77 "cannot compute sizeof (size_t)
17663See \`config.log' for more details" "$LINENO" 5; }
17664   else
17665     ac_cv_sizeof_size_t=0
17666   fi
17667fi
17668
17669fi
17670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17671$as_echo "$ac_cv_sizeof_size_t" >&6; }
17672
17673
17674
17675cat >>confdefs.h <<_ACEOF
17676#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17677_ACEOF
17678
17679
17680
17681# The command line tool can copy high resolution timestamps if such
17682# information is available in struct stat. Otherwise one second accuracy
17683# is used.
17684ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "$ac_includes_default"
17685if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
17686
17687cat >>confdefs.h <<_ACEOF
17688#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
17689_ACEOF
17690
17691
17692fi
17693ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "$ac_includes_default"
17694if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
17695
17696cat >>confdefs.h <<_ACEOF
17697#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
17698_ACEOF
17699
17700
17701fi
17702ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
17703if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
17704
17705cat >>confdefs.h <<_ACEOF
17706#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
17707_ACEOF
17708
17709
17710fi
17711ac_fn_c_check_member "$LINENO" "struct stat" "st_uatime" "ac_cv_member_struct_stat_st_uatime" "$ac_includes_default"
17712if test "x$ac_cv_member_struct_stat_st_uatime" = xyes; then :
17713
17714cat >>confdefs.h <<_ACEOF
17715#define HAVE_STRUCT_STAT_ST_UATIME 1
17716_ACEOF
17717
17718
17719fi
17720ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "$ac_includes_default"
17721if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
17722
17723cat >>confdefs.h <<_ACEOF
17724#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
17725_ACEOF
17726
17727
17728fi
17729
17730
17731# Check whether --enable-largefile was given.
17732if test "${enable_largefile+set}" = set; then :
17733  enableval=$enable_largefile;
17734fi
17735
17736if test "$enable_largefile" != no; then
17737
17738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17739$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17740if ${ac_cv_sys_largefile_CC+:} false; then :
17741  $as_echo_n "(cached) " >&6
17742else
17743  ac_cv_sys_largefile_CC=no
17744     if test "$GCC" != yes; then
17745       ac_save_CC=$CC
17746       while :; do
17747	 # IRIX 6.2 and later do not support large files by default,
17748	 # so use the C compiler's -n32 option if that helps.
17749	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17750/* end confdefs.h.  */
17751#include <sys/types.h>
17752 /* Check that off_t can represent 2**63 - 1 correctly.
17753    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17754    since some C++ compilers masquerading as C compilers
17755    incorrectly reject 9223372036854775807.  */
17756#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17757  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17758		       && LARGE_OFF_T % 2147483647 == 1)
17759		      ? 1 : -1];
17760int
17761main ()
17762{
17763
17764  ;
17765  return 0;
17766}
17767_ACEOF
17768	 if ac_fn_c_try_compile "$LINENO"; then :
17769  break
17770fi
17771rm -f core conftest.err conftest.$ac_objext
17772	 CC="$CC -n32"
17773	 if ac_fn_c_try_compile "$LINENO"; then :
17774  ac_cv_sys_largefile_CC=' -n32'; break
17775fi
17776rm -f core conftest.err conftest.$ac_objext
17777	 break
17778       done
17779       CC=$ac_save_CC
17780       rm -f conftest.$ac_ext
17781    fi
17782fi
17783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17784$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17785  if test "$ac_cv_sys_largefile_CC" != no; then
17786    CC=$CC$ac_cv_sys_largefile_CC
17787  fi
17788
17789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17790$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17791if ${ac_cv_sys_file_offset_bits+:} false; then :
17792  $as_echo_n "(cached) " >&6
17793else
17794  while :; do
17795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796/* end confdefs.h.  */
17797#include <sys/types.h>
17798 /* Check that off_t can represent 2**63 - 1 correctly.
17799    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17800    since some C++ compilers masquerading as C compilers
17801    incorrectly reject 9223372036854775807.  */
17802#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17803  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17804		       && LARGE_OFF_T % 2147483647 == 1)
17805		      ? 1 : -1];
17806int
17807main ()
17808{
17809
17810  ;
17811  return 0;
17812}
17813_ACEOF
17814if ac_fn_c_try_compile "$LINENO"; then :
17815  ac_cv_sys_file_offset_bits=no; break
17816fi
17817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17819/* end confdefs.h.  */
17820#define _FILE_OFFSET_BITS 64
17821#include <sys/types.h>
17822 /* Check that off_t can represent 2**63 - 1 correctly.
17823    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17824    since some C++ compilers masquerading as C compilers
17825    incorrectly reject 9223372036854775807.  */
17826#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17827  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17828		       && LARGE_OFF_T % 2147483647 == 1)
17829		      ? 1 : -1];
17830int
17831main ()
17832{
17833
17834  ;
17835  return 0;
17836}
17837_ACEOF
17838if ac_fn_c_try_compile "$LINENO"; then :
17839  ac_cv_sys_file_offset_bits=64; break
17840fi
17841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842  ac_cv_sys_file_offset_bits=unknown
17843  break
17844done
17845fi
17846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17847$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17848case $ac_cv_sys_file_offset_bits in #(
17849  no | unknown) ;;
17850  *)
17851cat >>confdefs.h <<_ACEOF
17852#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17853_ACEOF
17854;;
17855esac
17856rm -rf conftest*
17857  if test $ac_cv_sys_file_offset_bits = unknown; then
17858    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17859$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17860if ${ac_cv_sys_large_files+:} false; then :
17861  $as_echo_n "(cached) " >&6
17862else
17863  while :; do
17864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865/* end confdefs.h.  */
17866#include <sys/types.h>
17867 /* Check that off_t can represent 2**63 - 1 correctly.
17868    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17869    since some C++ compilers masquerading as C compilers
17870    incorrectly reject 9223372036854775807.  */
17871#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17872  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17873		       && LARGE_OFF_T % 2147483647 == 1)
17874		      ? 1 : -1];
17875int
17876main ()
17877{
17878
17879  ;
17880  return 0;
17881}
17882_ACEOF
17883if ac_fn_c_try_compile "$LINENO"; then :
17884  ac_cv_sys_large_files=no; break
17885fi
17886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17888/* end confdefs.h.  */
17889#define _LARGE_FILES 1
17890#include <sys/types.h>
17891 /* Check that off_t can represent 2**63 - 1 correctly.
17892    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17893    since some C++ compilers masquerading as C compilers
17894    incorrectly reject 9223372036854775807.  */
17895#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17896  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17897		       && LARGE_OFF_T % 2147483647 == 1)
17898		      ? 1 : -1];
17899int
17900main ()
17901{
17902
17903  ;
17904  return 0;
17905}
17906_ACEOF
17907if ac_fn_c_try_compile "$LINENO"; then :
17908  ac_cv_sys_large_files=1; break
17909fi
17910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911  ac_cv_sys_large_files=unknown
17912  break
17913done
17914fi
17915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17916$as_echo "$ac_cv_sys_large_files" >&6; }
17917case $ac_cv_sys_large_files in #(
17918  no | unknown) ;;
17919  *)
17920cat >>confdefs.h <<_ACEOF
17921#define _LARGE_FILES $ac_cv_sys_large_files
17922_ACEOF
17923;;
17924esac
17925rm -rf conftest*
17926  fi
17927
17928
17929fi
17930
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17932$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17933if ${ac_cv_c_bigendian+:} false; then :
17934  $as_echo_n "(cached) " >&6
17935else
17936  ac_cv_c_bigendian=unknown
17937    # See if we're dealing with a universal compiler.
17938    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939/* end confdefs.h.  */
17940#ifndef __APPLE_CC__
17941	       not a universal capable compiler
17942	     #endif
17943	     typedef int dummy;
17944
17945_ACEOF
17946if ac_fn_c_try_compile "$LINENO"; then :
17947
17948	# Check for potential -arch flags.  It is not universal unless
17949	# there are at least two -arch flags with different values.
17950	ac_arch=
17951	ac_prev=
17952	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17953	 if test -n "$ac_prev"; then
17954	   case $ac_word in
17955	     i?86 | x86_64 | ppc | ppc64)
17956	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17957		 ac_arch=$ac_word
17958	       else
17959		 ac_cv_c_bigendian=universal
17960		 break
17961	       fi
17962	       ;;
17963	   esac
17964	   ac_prev=
17965	 elif test "x$ac_word" = "x-arch"; then
17966	   ac_prev=arch
17967	 fi
17968       done
17969fi
17970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17971    if test $ac_cv_c_bigendian = unknown; then
17972      # See if sys/param.h defines the BYTE_ORDER macro.
17973      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974/* end confdefs.h.  */
17975#include <sys/types.h>
17976	     #include <sys/param.h>
17977
17978int
17979main ()
17980{
17981#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17982		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17983		     && LITTLE_ENDIAN)
17984	      bogus endian macros
17985	     #endif
17986
17987  ;
17988  return 0;
17989}
17990_ACEOF
17991if ac_fn_c_try_compile "$LINENO"; then :
17992  # It does; now see whether it defined to BIG_ENDIAN or not.
17993	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994/* end confdefs.h.  */
17995#include <sys/types.h>
17996		#include <sys/param.h>
17997
17998int
17999main ()
18000{
18001#if BYTE_ORDER != BIG_ENDIAN
18002		 not big endian
18003		#endif
18004
18005  ;
18006  return 0;
18007}
18008_ACEOF
18009if ac_fn_c_try_compile "$LINENO"; then :
18010  ac_cv_c_bigendian=yes
18011else
18012  ac_cv_c_bigendian=no
18013fi
18014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18015fi
18016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017    fi
18018    if test $ac_cv_c_bigendian = unknown; then
18019      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18020      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021/* end confdefs.h.  */
18022#include <limits.h>
18023
18024int
18025main ()
18026{
18027#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18028	      bogus endian macros
18029	     #endif
18030
18031  ;
18032  return 0;
18033}
18034_ACEOF
18035if ac_fn_c_try_compile "$LINENO"; then :
18036  # It does; now see whether it defined to _BIG_ENDIAN or not.
18037	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18038/* end confdefs.h.  */
18039#include <limits.h>
18040
18041int
18042main ()
18043{
18044#ifndef _BIG_ENDIAN
18045		 not big endian
18046		#endif
18047
18048  ;
18049  return 0;
18050}
18051_ACEOF
18052if ac_fn_c_try_compile "$LINENO"; then :
18053  ac_cv_c_bigendian=yes
18054else
18055  ac_cv_c_bigendian=no
18056fi
18057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18058fi
18059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060    fi
18061    if test $ac_cv_c_bigendian = unknown; then
18062      # Compile a test program.
18063      if test "$cross_compiling" = yes; then :
18064  # Try to guess by grepping values from an object file.
18065	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066/* end confdefs.h.  */
18067short int ascii_mm[] =
18068		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18069		short int ascii_ii[] =
18070		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18071		int use_ascii (int i) {
18072		  return ascii_mm[i] + ascii_ii[i];
18073		}
18074		short int ebcdic_ii[] =
18075		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18076		short int ebcdic_mm[] =
18077		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18078		int use_ebcdic (int i) {
18079		  return ebcdic_mm[i] + ebcdic_ii[i];
18080		}
18081		extern int foo;
18082
18083int
18084main ()
18085{
18086return use_ascii (foo) == use_ebcdic (foo);
18087  ;
18088  return 0;
18089}
18090_ACEOF
18091if ac_fn_c_try_compile "$LINENO"; then :
18092  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18093	      ac_cv_c_bigendian=yes
18094	    fi
18095	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18096	      if test "$ac_cv_c_bigendian" = unknown; then
18097		ac_cv_c_bigendian=no
18098	      else
18099		# finding both strings is unlikely to happen, but who knows?
18100		ac_cv_c_bigendian=unknown
18101	      fi
18102	    fi
18103fi
18104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18105else
18106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107/* end confdefs.h.  */
18108$ac_includes_default
18109int
18110main ()
18111{
18112
18113	     /* Are we little or big endian?  From Harbison&Steele.  */
18114	     union
18115	     {
18116	       long int l;
18117	       char c[sizeof (long int)];
18118	     } u;
18119	     u.l = 1;
18120	     return u.c[sizeof (long int) - 1] == 1;
18121
18122  ;
18123  return 0;
18124}
18125_ACEOF
18126if ac_fn_c_try_run "$LINENO"; then :
18127  ac_cv_c_bigendian=no
18128else
18129  ac_cv_c_bigendian=yes
18130fi
18131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18132  conftest.$ac_objext conftest.beam conftest.$ac_ext
18133fi
18134
18135    fi
18136fi
18137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18138$as_echo "$ac_cv_c_bigendian" >&6; }
18139 case $ac_cv_c_bigendian in #(
18140   yes)
18141     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18142;; #(
18143   no)
18144      ;; #(
18145   universal)
18146
18147$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18148
18149     ;; #(
18150   *)
18151     as_fn_error $? "unknown endianness
18152 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18153 esac
18154
18155
18156
18157###############################################################################
18158# Checks for library functions.
18159###############################################################################
18160
18161# Gnulib replacements as needed
18162
18163  if test -z "$GETOPT_H"; then
18164    for ac_header in getopt.h
18165do :
18166  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18167if test "x$ac_cv_header_getopt_h" = xyes; then :
18168  cat >>confdefs.h <<_ACEOF
18169#define HAVE_GETOPT_H 1
18170_ACEOF
18171
18172else
18173  GETOPT_H=getopt.h
18174fi
18175
18176done
18177
18178  fi
18179
18180  if test -z "$GETOPT_H"; then
18181    for ac_func in getopt_long
18182do :
18183  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
18184if test "x$ac_cv_func_getopt_long" = xyes; then :
18185  cat >>confdefs.h <<_ACEOF
18186#define HAVE_GETOPT_LONG 1
18187_ACEOF
18188
18189else
18190  GETOPT_H=getopt.h
18191fi
18192done
18193
18194  fi
18195
18196                                  if test -z "$GETOPT_H"; then
18197    ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
18198"
18199if test "x$ac_cv_have_decl_optreset" = xyes; then :
18200
18201$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
18202
18203fi
18204
18205  fi
18206
18207
18208
18209
18210  if test -n "$GETOPT_H"; then :
18211
18212  case " $LIBOBJS " in
18213  *" getopt.$ac_objext "* ) ;;
18214  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
18215 ;;
18216esac
18217
18218  case " $LIBOBJS " in
18219  *" getopt1.$ac_objext "* ) ;;
18220  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
18221 ;;
18222esac
18223
18224
18225  GETOPT_H=getopt.h
18226
18227$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18228
18229
18230
18231
18232fi
18233
18234
18235# Find the best function to set timestamps.
18236for ac_func in futimens futimes futimesat utimes _futime utime
18237do :
18238  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18239ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18240if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18241  cat >>confdefs.h <<_ACEOF
18242#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18243_ACEOF
18244 break
18245fi
18246done
18247
18248
18249# This is nice to have but not mandatory.
18250for ac_func in posix_fadvise
18251do :
18252  ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
18253if test "x$ac_cv_func_posix_fadvise" = xyes; then :
18254  cat >>confdefs.h <<_ACEOF
18255#define HAVE_POSIX_FADVISE 1
18256_ACEOF
18257
18258fi
18259done
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
18270"
18271if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
18272  ac_have_decl=1
18273else
18274  ac_have_decl=0
18275fi
18276
18277cat >>confdefs.h <<_ACEOF
18278#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
18279_ACEOF
18280
18281
18282
18283
18284
18285for ac_header in byteswap.h sys/endian.h sys/byteorder.h
18286do :
18287  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18288ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18289if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18290  cat >>confdefs.h <<_ACEOF
18291#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18292_ACEOF
18293 break
18294fi
18295
18296done
18297
18298
18299# Even if we have byteswap.h, we may lack the specific macros/functions.
18300if test x$ac_cv_header_byteswap_h = xyes ; then
18301
18302		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if bswap_16 is available" >&5
18303$as_echo_n "checking if bswap_16 is available... " >&6; }
18304		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305/* end confdefs.h.  */
18306
18307#include <byteswap.h>
18308int
18309main(void)
18310{
18311	bswap_16(42);
18312	return 0;
18313}
18314
18315_ACEOF
18316if ac_fn_c_try_link "$LINENO"; then :
18317
18318
18319$as_echo "#define HAVE_BSWAP_16 1" >>confdefs.h
18320
18321			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18322$as_echo "yes" >&6; }
18323
18324else
18325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18326$as_echo "no" >&6; }
18327fi
18328rm -f core conftest.err conftest.$ac_objext \
18329    conftest$ac_exeext conftest.$ac_ext
18330
18331
18332		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if bswap_32 is available" >&5
18333$as_echo_n "checking if bswap_32 is available... " >&6; }
18334		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18335/* end confdefs.h.  */
18336
18337#include <byteswap.h>
18338int
18339main(void)
18340{
18341	bswap_32(42);
18342	return 0;
18343}
18344
18345_ACEOF
18346if ac_fn_c_try_link "$LINENO"; then :
18347
18348
18349$as_echo "#define HAVE_BSWAP_32 1" >>confdefs.h
18350
18351			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18352$as_echo "yes" >&6; }
18353
18354else
18355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18356$as_echo "no" >&6; }
18357fi
18358rm -f core conftest.err conftest.$ac_objext \
18359    conftest$ac_exeext conftest.$ac_ext
18360
18361
18362		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if bswap_64 is available" >&5
18363$as_echo_n "checking if bswap_64 is available... " >&6; }
18364		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365/* end confdefs.h.  */
18366
18367#include <byteswap.h>
18368int
18369main(void)
18370{
18371	bswap_64(42);
18372	return 0;
18373}
18374
18375_ACEOF
18376if ac_fn_c_try_link "$LINENO"; then :
18377
18378
18379$as_echo "#define HAVE_BSWAP_64 1" >>confdefs.h
18380
18381			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18382$as_echo "yes" >&6; }
18383
18384else
18385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386$as_echo "no" >&6; }
18387fi
18388rm -f core conftest.err conftest.$ac_objext \
18389    conftest$ac_exeext conftest.$ac_ext
18390
18391	fi
18392
18393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned memory access should be used" >&5
18394$as_echo_n "checking if unaligned memory access should be used... " >&6; }
18395# Check whether --enable-unaligned-access was given.
18396if test "${enable_unaligned_access+set}" = set; then :
18397  enableval=$enable_unaligned_access;
18398else
18399  enable_unaligned_access=auto
18400fi
18401
18402if test "x$enable_unaligned_access" = xauto ; then
18403	# TODO: There may be other architectures, on which unaligned access
18404	# is OK.
18405	case $host_cpu in
18406		i?86|x86_64|powerpc|powerpc64)
18407			enable_unaligned_access=yes
18408			;;
18409		*)
18410			enable_unaligned_access=no
18411			;;
18412	esac
18413fi
18414if test "x$enable_unaligned_access" = xyes ; then
18415
18416$as_echo "#define TUKLIB_FAST_UNALIGNED_ACCESS 1" >>confdefs.h
18417
18418	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18419$as_echo "yes" >&6; }
18420else
18421	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18422$as_echo "no" >&6; }
18423fi
18424
18425
18426
18427
18428# sys/param.h might be needed by sys/sysctl.h.
18429for ac_header in sys/param.h
18430do :
18431  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
18432if test "x$ac_cv_header_sys_param_h" = xyes; then :
18433  cat >>confdefs.h <<_ACEOF
18434#define HAVE_SYS_PARAM_H 1
18435_ACEOF
18436
18437fi
18438
18439done
18440
18441
18442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to detect the amount of physical memory" >&5
18443$as_echo_n "checking how to detect the amount of physical memory... " >&6; }
18444if ${tuklib_cv_physmem_method+:} false; then :
18445  $as_echo_n "(cached) " >&6
18446else
18447
18448
18449# Maybe checking $host_os would be enough but this matches what
18450# tuklib_physmem.c does.
18451#
18452# NOTE: IRIX has a compiler that doesn't error out with #error, so use
18453# a non-compilable text instead of #error to generate an error.
18454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455/* end confdefs.h.  */
18456
18457#if defined(_WIN32) || defined(__CYGWIN__) || defined(__OS2__) \
18458		|| defined(__DJGPP__) || defined(__VMS) \
18459		|| defined(AMIGA) || defined(__AROS__) || defined(__QNX__)
18460int main(void) { return 0; }
18461#else
18462compile error
18463#endif
18464
18465_ACEOF
18466if ac_fn_c_try_compile "$LINENO"; then :
18467  tuklib_cv_physmem_method=special
18468else
18469
18470
18471# Look for AIX-specific solution before sysconf(), because the test
18472# for sysconf() will pass on AIX but won't actually work
18473# (sysconf(_SC_PHYS_PAGES) compiles but always returns -1 on AIX).
18474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18475/* end confdefs.h.  */
18476
18477#include <sys/systemcfg.h>
18478
18479int
18480main(void)
18481{
18482	(void)_system_configuration.physmem;
18483	return 0;
18484}
18485
18486_ACEOF
18487if ac_fn_c_try_compile "$LINENO"; then :
18488  tuklib_cv_physmem_method=aix
18489else
18490
18491
18492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493/* end confdefs.h.  */
18494
18495#include <unistd.h>
18496int
18497main(void)
18498{
18499	long i;
18500	i = sysconf(_SC_PAGESIZE);
18501	i = sysconf(_SC_PHYS_PAGES);
18502	return 0;
18503}
18504
18505_ACEOF
18506if ac_fn_c_try_compile "$LINENO"; then :
18507  tuklib_cv_physmem_method=sysconf
18508else
18509
18510
18511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512/* end confdefs.h.  */
18513
18514#include <sys/types.h>
18515#ifdef HAVE_SYS_PARAM_H
18516#	include <sys/param.h>
18517#endif
18518#include <sys/sysctl.h>
18519int
18520main(void)
18521{
18522	int name[2] = { CTL_HW, HW_PHYSMEM };
18523	unsigned long mem;
18524	size_t mem_ptr_size = sizeof(mem);
18525	sysctl(name, 2, &mem, &mem_ptr_size, NULL, 0);
18526	return 0;
18527}
18528
18529_ACEOF
18530if ac_fn_c_try_compile "$LINENO"; then :
18531  tuklib_cv_physmem_method=sysctl
18532else
18533
18534
18535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18536/* end confdefs.h.  */
18537
18538#include <sys/sysinfo.h>
18539#include <machine/hal_sysinfo.h>
18540
18541int
18542main(void)
18543{
18544	int memkb;
18545	int start = 0;
18546	getsysinfo(GSI_PHYSMEM, (caddr_t)&memkb, sizeof(memkb), &start);
18547	return 0;
18548}
18549
18550_ACEOF
18551if ac_fn_c_try_compile "$LINENO"; then :
18552  tuklib_cv_physmem_method=getsysinfo
18553else
18554
18555
18556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557/* end confdefs.h.  */
18558
18559#include <sys/param.h>
18560#include <sys/pstat.h>
18561
18562int
18563main(void)
18564{
18565	struct pst_static pst;
18566	pstat_getstatic(&pst, sizeof(pst), 1, 0);
18567	(void)pst.physical_memory;
18568	(void)pst.page_size;
18569	return 0;
18570}
18571
18572_ACEOF
18573if ac_fn_c_try_compile "$LINENO"; then :
18574  tuklib_cv_physmem_method=pstat_getstatic
18575else
18576
18577
18578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18579/* end confdefs.h.  */
18580
18581#include <invent.h>
18582int
18583main(void)
18584{
18585	inv_state_t *st = NULL;
18586	setinvent_r(&st);
18587	getinvent_r(st);
18588	endinvent_r(st);
18589	return 0;
18590}
18591
18592_ACEOF
18593if ac_fn_c_try_compile "$LINENO"; then :
18594  tuklib_cv_physmem_method=getinvent_r
18595else
18596
18597
18598# This version of sysinfo() is Linux-specific. Some non-Linux systems have
18599# different sysinfo() so we must check $host_os.
18600case $host_os in
18601	linux*)
18602		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18603/* end confdefs.h.  */
18604
18605#include <sys/sysinfo.h>
18606int
18607main(void)
18608{
18609	struct sysinfo si;
18610	sysinfo(&si);
18611	return 0;
18612}
18613
18614_ACEOF
18615if ac_fn_c_try_compile "$LINENO"; then :
18616
18617			tuklib_cv_physmem_method=sysinfo
18618
18619else
18620
18621			tuklib_cv_physmem_method=unknown
18622
18623fi
18624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18625		;;
18626	*)
18627		tuklib_cv_physmem_method=unknown
18628		;;
18629esac
18630
18631fi
18632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18633fi
18634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635fi
18636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18637fi
18638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18639fi
18640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18641fi
18642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18643fi
18644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18645fi
18646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tuklib_cv_physmem_method" >&5
18647$as_echo "$tuklib_cv_physmem_method" >&6; }
18648
18649case $tuklib_cv_physmem_method in
18650	aix)
18651
18652$as_echo "#define TUKLIB_PHYSMEM_AIX 1" >>confdefs.h
18653
18654		;;
18655	sysconf)
18656
18657$as_echo "#define TUKLIB_PHYSMEM_SYSCONF 1" >>confdefs.h
18658
18659		;;
18660	sysctl)
18661
18662$as_echo "#define TUKLIB_PHYSMEM_SYSCTL 1" >>confdefs.h
18663
18664		;;
18665	getsysinfo)
18666
18667$as_echo "#define TUKLIB_PHYSMEM_GETSYSINFO 1" >>confdefs.h
18668
18669		;;
18670	pstat_getstatic)
18671
18672$as_echo "#define TUKLIB_PHYSMEM_PSTAT_GETSTATIC 1" >>confdefs.h
18673
18674		;;
18675	getinvent_r)
18676
18677$as_echo "#define TUKLIB_PHYSMEM_GETINVENT_R 1" >>confdefs.h
18678
18679		;;
18680	sysinfo)
18681
18682$as_echo "#define TUKLIB_PHYSMEM_SYSINFO 1" >>confdefs.h
18683
18684		;;
18685esac
18686
18687
18688
18689
18690# sys/param.h might be needed by sys/sysctl.h.
18691for ac_header in sys/param.h
18692do :
18693  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
18694if test "x$ac_cv_header_sys_param_h" = xyes; then :
18695  cat >>confdefs.h <<_ACEOF
18696#define HAVE_SYS_PARAM_H 1
18697_ACEOF
18698
18699fi
18700
18701done
18702
18703
18704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to detect the number of available CPU cores" >&5
18705$as_echo_n "checking how to detect the number of available CPU cores... " >&6; }
18706if ${tuklib_cv_cpucores_method+:} false; then :
18707  $as_echo_n "(cached) " >&6
18708else
18709
18710
18711# Maybe checking $host_os would be enough but this matches what
18712# tuklib_cpucores.c does.
18713#
18714# NOTE: IRIX has a compiler that doesn't error out with #error, so use
18715# a non-compilable text instead of #error to generate an error.
18716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717/* end confdefs.h.  */
18718
18719#if defined(_WIN32) || defined(__CYGWIN__)
18720int main(void) { return 0; }
18721#else
18722compile error
18723#endif
18724
18725_ACEOF
18726if ac_fn_c_try_compile "$LINENO"; then :
18727  tuklib_cv_cpucores_method=special
18728else
18729
18730
18731# glibc-based systems (GNU/Linux and GNU/kFreeBSD) have sched_getaffinity().
18732# The CPU_COUNT() macro was added in glibc 2.9 so we try to link the
18733# test program instead of merely compiling it. glibc 2.9 is old enough that
18734# if someone uses the code on older glibc, the fallback to sysconf() should
18735# be good enough.
18736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18737/* end confdefs.h.  */
18738
18739#include <sched.h>
18740int
18741main(void)
18742{
18743	cpu_set_t cpu_mask;
18744	sched_getaffinity(0, sizeof(cpu_mask), &cpu_mask);
18745	return CPU_COUNT(&cpu_mask);
18746}
18747
18748_ACEOF
18749if ac_fn_c_try_link "$LINENO"; then :
18750  tuklib_cv_cpucores_method=sched_getaffinity
18751else
18752
18753
18754# FreeBSD has both cpuset and sysctl. Look for cpuset first because
18755# it's a better approach.
18756#
18757# This test would match on GNU/kFreeBSD too but it would require
18758# -lfreebsd-glue when linking and thus in the current form this would
18759# fail on GNU/kFreeBSD. The above test for sched_getaffinity() matches
18760# on GNU/kFreeBSD so the test below should never run on that OS.
18761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762/* end confdefs.h.  */
18763
18764#include <sys/param.h>
18765#include <sys/cpuset.h>
18766
18767int
18768main(void)
18769{
18770	cpuset_t set;
18771	cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, -1,
18772			sizeof(set), &set);
18773	return 0;
18774}
18775
18776_ACEOF
18777if ac_fn_c_try_compile "$LINENO"; then :
18778  tuklib_cv_cpucores_method=cpuset
18779else
18780
18781
18782# On OS/2, both sysconf() and sysctl() pass the tests in this file,
18783# but only sysctl() works. On QNX it's the opposite: only sysconf() works
18784# (although it assumes that _POSIX_SOURCE, _XOPEN_SOURCE, and _POSIX_C_SOURCE
18785# are undefined or alternatively _QNX_SOURCE is defined).
18786#
18787# We test sysctl() first and intentionally break the sysctl() test on QNX
18788# so that sysctl() is never used on QNX.
18789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18790/* end confdefs.h.  */
18791
18792#ifdef __QNX__
18793compile error
18794#endif
18795#include <sys/types.h>
18796#ifdef HAVE_SYS_PARAM_H
18797#	include <sys/param.h>
18798#endif
18799#include <sys/sysctl.h>
18800int
18801main(void)
18802{
18803	int name[2] = { CTL_HW, HW_NCPU };
18804	int cpus;
18805	size_t cpus_size = sizeof(cpus);
18806	sysctl(name, 2, &cpus, &cpus_size, NULL, 0);
18807	return 0;
18808}
18809
18810_ACEOF
18811if ac_fn_c_try_compile "$LINENO"; then :
18812  tuklib_cv_cpucores_method=sysctl
18813else
18814
18815
18816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18817/* end confdefs.h.  */
18818
18819#include <unistd.h>
18820int
18821main(void)
18822{
18823	long i;
18824#ifdef _SC_NPROCESSORS_ONLN
18825	/* Many systems using sysconf() */
18826	i = sysconf(_SC_NPROCESSORS_ONLN);
18827#else
18828	/* IRIX */
18829	i = sysconf(_SC_NPROC_ONLN);
18830#endif
18831	return 0;
18832}
18833
18834_ACEOF
18835if ac_fn_c_try_compile "$LINENO"; then :
18836  tuklib_cv_cpucores_method=sysconf
18837else
18838
18839
18840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841/* end confdefs.h.  */
18842
18843#include <sys/param.h>
18844#include <sys/pstat.h>
18845
18846int
18847main(void)
18848{
18849	struct pst_dynamic pst;
18850	pstat_getdynamic(&pst, sizeof(pst), 1, 0);
18851	(void)pst.psd_proc_cnt;
18852	return 0;
18853}
18854
18855_ACEOF
18856if ac_fn_c_try_compile "$LINENO"; then :
18857  tuklib_cv_cpucores_method=pstat_getdynamic
18858else
18859
18860
18861	tuklib_cv_cpucores_method=unknown
18862
18863fi
18864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18865fi
18866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18867fi
18868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18869fi
18870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18871fi
18872rm -f core conftest.err conftest.$ac_objext \
18873    conftest$ac_exeext conftest.$ac_ext
18874fi
18875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18876fi
18877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tuklib_cv_cpucores_method" >&5
18878$as_echo "$tuklib_cv_cpucores_method" >&6; }
18879
18880case $tuklib_cv_cpucores_method in
18881	sched_getaffinity)
18882
18883$as_echo "#define TUKLIB_CPUCORES_SCHED_GETAFFINITY 1" >>confdefs.h
18884
18885		;;
18886	cpuset)
18887
18888$as_echo "#define TUKLIB_CPUCORES_CPUSET 1" >>confdefs.h
18889
18890		;;
18891	sysctl)
18892
18893$as_echo "#define TUKLIB_CPUCORES_SYSCTL 1" >>confdefs.h
18894
18895		;;
18896	sysconf)
18897
18898$as_echo "#define TUKLIB_CPUCORES_SYSCONF 1" >>confdefs.h
18899
18900		;;
18901	pstat_getdynamic)
18902
18903$as_echo "#define TUKLIB_CPUCORES_PSTAT_GETDYNAMIC 1" >>confdefs.h
18904
18905		;;
18906esac
18907
18908
18909
18910
18911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
18912$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
18913if ${ac_cv_func_mbrtowc+:} false; then :
18914  $as_echo_n "(cached) " >&6
18915else
18916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18917/* end confdefs.h.  */
18918#include <wchar.h>
18919int
18920main ()
18921{
18922wchar_t wc;
18923	      char const s[] = "";
18924	      size_t n = 1;
18925	      mbstate_t state;
18926	      return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
18927  ;
18928  return 0;
18929}
18930_ACEOF
18931if ac_fn_c_try_link "$LINENO"; then :
18932  ac_cv_func_mbrtowc=yes
18933else
18934  ac_cv_func_mbrtowc=no
18935fi
18936rm -f core conftest.err conftest.$ac_objext \
18937    conftest$ac_exeext conftest.$ac_ext
18938fi
18939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
18940$as_echo "$ac_cv_func_mbrtowc" >&6; }
18941  if test $ac_cv_func_mbrtowc = yes; then
18942
18943$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
18944
18945  fi
18946
18947for ac_func in wcwidth
18948do :
18949  ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
18950if test "x$ac_cv_func_wcwidth" = xyes; then :
18951  cat >>confdefs.h <<_ACEOF
18952#define HAVE_WCWIDTH 1
18953_ACEOF
18954
18955fi
18956done
18957
18958
18959
18960# If requsted, check for system-provided SHA-256. At least the following
18961# implementations are supported:
18962#
18963# OS       Headers                     Library  Type           Function
18964# FreeBSD  sys/types.h + sha256.h      libmd    SHA256_CTX     SHA256_Init
18965# NetBSD   sys/types.h + sha2.h                 SHA256_CTX     SHA256_Init
18966# OpenBSD  sys/types.h + sha2.h                 SHA2_CTX       SHA256Init
18967# Solaris  sys/types.h + sha2.h        libmd    SHA256_CTX     SHA256Init
18968# MINIX 3  sys/types.h + sha2.h                 SHA256_CTX     SHA256_Init
18969# Darwin   CommonCrypto/CommonDigest.h          CC_SHA256_CTX  CC_SHA256_Init
18970#
18971# Note that Darwin's CC_SHA256_Update takes buffer size as uint32_t instead
18972# of size_t.
18973#
18974sha256_header_found=no
18975sha256_type_found=no
18976sha256_func_found=no
18977if test "x$enable_external_sha256" = "xyes"; then
18978	# Test for Common Crypto before others, because Darwin has sha256.h
18979	# too and we don't want to use that, because on older versions it
18980	# uses OpenSSL functions, whose SHA256_Init is not guaranteed to
18981	# succeed.
18982	for ac_header in CommonCrypto/CommonDigest.h sha256.h sha2.h
18983do :
18984  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18985ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18986if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18987  cat >>confdefs.h <<_ACEOF
18988#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18989_ACEOF
18990 sha256_header_found=yes ; break
18991fi
18992
18993done
18994
18995	if test "x$sha256_header_found" = xyes; then
18996		ac_fn_c_check_type "$LINENO" "CC_SHA256_CTX" "ac_cv_type_CC_SHA256_CTX" "#ifdef HAVE_SYS_TYPES_H
18997			  # include <sys/types.h>
18998			  #endif
18999			  #ifdef HAVE_COMMONCRYPTO_COMMONDIGEST_H
19000			  # include <CommonCrypto/CommonDigest.h>
19001			  #endif
19002			  #ifdef HAVE_SHA256_H
19003			  # include <sha256.h>
19004			  #endif
19005			  #ifdef HAVE_SHA2_H
19006			  # include <sha2.h>
19007			  #endif
19008"
19009if test "x$ac_cv_type_CC_SHA256_CTX" = xyes; then :
19010
19011cat >>confdefs.h <<_ACEOF
19012#define HAVE_CC_SHA256_CTX 1
19013_ACEOF
19014
19015sha256_type_found=yes
19016fi
19017ac_fn_c_check_type "$LINENO" "SHA256_CTX" "ac_cv_type_SHA256_CTX" "#ifdef HAVE_SYS_TYPES_H
19018			  # include <sys/types.h>
19019			  #endif
19020			  #ifdef HAVE_COMMONCRYPTO_COMMONDIGEST_H
19021			  # include <CommonCrypto/CommonDigest.h>
19022			  #endif
19023			  #ifdef HAVE_SHA256_H
19024			  # include <sha256.h>
19025			  #endif
19026			  #ifdef HAVE_SHA2_H
19027			  # include <sha2.h>
19028			  #endif
19029"
19030if test "x$ac_cv_type_SHA256_CTX" = xyes; then :
19031
19032cat >>confdefs.h <<_ACEOF
19033#define HAVE_SHA256_CTX 1
19034_ACEOF
19035
19036sha256_type_found=yes
19037fi
19038ac_fn_c_check_type "$LINENO" "SHA2_CTX" "ac_cv_type_SHA2_CTX" "#ifdef HAVE_SYS_TYPES_H
19039			  # include <sys/types.h>
19040			  #endif
19041			  #ifdef HAVE_COMMONCRYPTO_COMMONDIGEST_H
19042			  # include <CommonCrypto/CommonDigest.h>
19043			  #endif
19044			  #ifdef HAVE_SHA256_H
19045			  # include <sha256.h>
19046			  #endif
19047			  #ifdef HAVE_SHA2_H
19048			  # include <sha2.h>
19049			  #endif
19050"
19051if test "x$ac_cv_type_SHA2_CTX" = xyes; then :
19052
19053cat >>confdefs.h <<_ACEOF
19054#define HAVE_SHA2_CTX 1
19055_ACEOF
19056
19057sha256_type_found=yes
19058fi
19059
19060		if test "x$sha256_type_found" = xyes ; then
19061			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SHA256Init" >&5
19062$as_echo_n "checking for library containing SHA256Init... " >&6; }
19063if ${ac_cv_search_SHA256Init+:} false; then :
19064  $as_echo_n "(cached) " >&6
19065else
19066  ac_func_search_save_LIBS=$LIBS
19067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068/* end confdefs.h.  */
19069
19070/* Override any GCC internal prototype to avoid an error.
19071   Use char because int might match the return type of a GCC
19072   builtin and then its argument prototype would still apply.  */
19073#ifdef __cplusplus
19074extern "C"
19075#endif
19076char SHA256Init ();
19077int
19078main ()
19079{
19080return SHA256Init ();
19081  ;
19082  return 0;
19083}
19084_ACEOF
19085for ac_lib in '' md; do
19086  if test -z "$ac_lib"; then
19087    ac_res="none required"
19088  else
19089    ac_res=-l$ac_lib
19090    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19091  fi
19092  if ac_fn_c_try_link "$LINENO"; then :
19093  ac_cv_search_SHA256Init=$ac_res
19094fi
19095rm -f core conftest.err conftest.$ac_objext \
19096    conftest$ac_exeext
19097  if ${ac_cv_search_SHA256Init+:} false; then :
19098  break
19099fi
19100done
19101if ${ac_cv_search_SHA256Init+:} false; then :
19102
19103else
19104  ac_cv_search_SHA256Init=no
19105fi
19106rm conftest.$ac_ext
19107LIBS=$ac_func_search_save_LIBS
19108fi
19109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SHA256Init" >&5
19110$as_echo "$ac_cv_search_SHA256Init" >&6; }
19111ac_res=$ac_cv_search_SHA256Init
19112if test "$ac_res" != no; then :
19113  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19114
19115fi
19116
19117			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SHA256_Init" >&5
19118$as_echo_n "checking for library containing SHA256_Init... " >&6; }
19119if ${ac_cv_search_SHA256_Init+:} false; then :
19120  $as_echo_n "(cached) " >&6
19121else
19122  ac_func_search_save_LIBS=$LIBS
19123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124/* end confdefs.h.  */
19125
19126/* Override any GCC internal prototype to avoid an error.
19127   Use char because int might match the return type of a GCC
19128   builtin and then its argument prototype would still apply.  */
19129#ifdef __cplusplus
19130extern "C"
19131#endif
19132char SHA256_Init ();
19133int
19134main ()
19135{
19136return SHA256_Init ();
19137  ;
19138  return 0;
19139}
19140_ACEOF
19141for ac_lib in '' md; do
19142  if test -z "$ac_lib"; then
19143    ac_res="none required"
19144  else
19145    ac_res=-l$ac_lib
19146    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19147  fi
19148  if ac_fn_c_try_link "$LINENO"; then :
19149  ac_cv_search_SHA256_Init=$ac_res
19150fi
19151rm -f core conftest.err conftest.$ac_objext \
19152    conftest$ac_exeext
19153  if ${ac_cv_search_SHA256_Init+:} false; then :
19154  break
19155fi
19156done
19157if ${ac_cv_search_SHA256_Init+:} false; then :
19158
19159else
19160  ac_cv_search_SHA256_Init=no
19161fi
19162rm conftest.$ac_ext
19163LIBS=$ac_func_search_save_LIBS
19164fi
19165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SHA256_Init" >&5
19166$as_echo "$ac_cv_search_SHA256_Init" >&6; }
19167ac_res=$ac_cv_search_SHA256_Init
19168if test "$ac_res" != no; then :
19169  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19170
19171fi
19172
19173			for ac_func in CC_SHA256_Init SHA256Init SHA256_Init
19174do :
19175  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19176ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19177if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19178  cat >>confdefs.h <<_ACEOF
19179#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19180_ACEOF
19181 sha256_func_found=yes ; break
19182fi
19183done
19184
19185		fi
19186	fi
19187fi
19188 if test "x$sha256_func_found" = xno; then
19189  COND_INTERNAL_SHA256_TRUE=
19190  COND_INTERNAL_SHA256_FALSE='#'
19191else
19192  COND_INTERNAL_SHA256_TRUE='#'
19193  COND_INTERNAL_SHA256_FALSE=
19194fi
19195
19196if test "x$enable_external_sha256$sha256_func_found" = xyesno; then
19197	as_fn_error $? "--enable-external-sha256 was specified but no supported external SHA-256 implementation was found" "$LINENO" 5
19198fi
19199
19200# Check for SSE2 intrinsics.
19201ac_fn_c_check_decl "$LINENO" "_mm_movemask_epi8" "ac_cv_have_decl__mm_movemask_epi8" "#ifdef HAVE_IMMINTRIN_H
19202#include <immintrin.h>
19203#endif
19204"
19205if test "x$ac_cv_have_decl__mm_movemask_epi8" = xyes; then :
19206
19207$as_echo "#define HAVE__MM_MOVEMASK_EPI8 1" >>confdefs.h
19208
19209fi
19210
19211
19212# Check for sandbox support. If one is found, set enable_sandbox=found.
19213case $enable_sandbox in
19214	auto | capsicum)
19215
19216# On FreeBSD >= 11.x and Linux, Capsicum is uses <sys/capsicum.h>.
19217# If this header is found, it is assumed to be the right one.
19218capsicum_header_found=no
19219for ac_header in sys/capsicum.h
19220do :
19221  ac_fn_c_check_header_mongrel "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" "$ac_includes_default"
19222if test "x$ac_cv_header_sys_capsicum_h" = xyes; then :
19223  cat >>confdefs.h <<_ACEOF
19224#define HAVE_SYS_CAPSICUM_H 1
19225_ACEOF
19226 capsicum_header_found=yes
19227fi
19228
19229done
19230
19231if test "$capsicum_header_found" = no ; then
19232    # On FreeBSD 10.x Capsicum uses <sys/capability.h>. Such a header exists
19233    # on Linux too but it describes POSIX.1e capabilities. Look for the
19234    # declaration of cap_rights_limit to check if <sys/capability.h> is
19235    # a Capsicum header.
19236    ac_fn_c_check_decl "$LINENO" "cap_rights_limit" "ac_cv_have_decl_cap_rights_limit" "#include <sys/capability.h>
19237"
19238if test "x$ac_cv_have_decl_cap_rights_limit" = xyes; then :
19239  capsicum_header_found=yes
19240fi
19241
19242fi
19243
19244capsicum_lib_found=no
19245CAPSICUM_LIB=
19246if test "$capsicum_header_found" = yes ; then
19247    ac_ext=c
19248ac_cpp='$CPP $CPPFLAGS'
19249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19251ac_compiler_gnu=$ac_cv_c_compiler_gnu
19252
19253    # FreeBSD >= 10.x has Capsicum functions in libc.
19254    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19255/* end confdefs.h.  */
19256
19257/* Override any GCC internal prototype to avoid an error.
19258   Use char because int might match the return type of a GCC
19259   builtin and then its argument prototype would still apply.  */
19260#ifdef __cplusplus
19261extern "C"
19262#endif
19263char cap_rights_limit ();
19264int
19265main ()
19266{
19267return cap_rights_limit ();
19268  ;
19269  return 0;
19270}
19271_ACEOF
19272if ac_fn_c_try_link "$LINENO"; then :
19273  capsicum_lib_found=yes
19274fi
19275rm -f core conftest.err conftest.$ac_objext \
19276    conftest$ac_exeext conftest.$ac_ext
19277    # Linux has Capsicum functions in libcaprights.
19278    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_rights_limit in -lcaprights" >&5
19279$as_echo_n "checking for cap_rights_limit in -lcaprights... " >&6; }
19280if ${ac_cv_lib_caprights_cap_rights_limit+:} false; then :
19281  $as_echo_n "(cached) " >&6
19282else
19283  ac_check_lib_save_LIBS=$LIBS
19284LIBS="-lcaprights  $LIBS"
19285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19286/* end confdefs.h.  */
19287
19288/* Override any GCC internal prototype to avoid an error.
19289   Use char because int might match the return type of a GCC
19290   builtin and then its argument prototype would still apply.  */
19291#ifdef __cplusplus
19292extern "C"
19293#endif
19294char cap_rights_limit ();
19295int
19296main ()
19297{
19298return cap_rights_limit ();
19299  ;
19300  return 0;
19301}
19302_ACEOF
19303if ac_fn_c_try_link "$LINENO"; then :
19304  ac_cv_lib_caprights_cap_rights_limit=yes
19305else
19306  ac_cv_lib_caprights_cap_rights_limit=no
19307fi
19308rm -f core conftest.err conftest.$ac_objext \
19309    conftest$ac_exeext conftest.$ac_ext
19310LIBS=$ac_check_lib_save_LIBS
19311fi
19312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caprights_cap_rights_limit" >&5
19313$as_echo "$ac_cv_lib_caprights_cap_rights_limit" >&6; }
19314if test "x$ac_cv_lib_caprights_cap_rights_limit" = xyes; then :
19315  CAPSICUM_LIB=-lcaprights
19316                  capsicum_lib_found=yes
19317fi
19318
19319    ac_ext=c
19320ac_cpp='$CPP $CPPFLAGS'
19321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19323ac_compiler_gnu=$ac_cv_c_compiler_gnu
19324
19325fi
19326
19327
19328if test "$capsicum_lib_found" = yes ; then
19329
19330$as_echo "#define HAVE_CAPSICUM 1" >>confdefs.h
19331
19332    enable_sandbox=found
19333else
19334    :
19335fi
19336		;;
19337esac
19338
19339# If a specific sandboxing method was explicitly requested and it wasn't
19340# found, give an error.
19341case $enable_sandbox in
19342	auto | no | found)
19343		;;
19344	*)
19345		as_fn_error $? "$enable_sandbox support not found" "$LINENO" 5
19346		;;
19347esac
19348
19349
19350###############################################################################
19351# If using GCC, set some additional AM_CFLAGS:
19352###############################################################################
19353
19354if test "$GCC" = yes ; then
19355	echo
19356	echo "GCC extensions:"
19357fi
19358
19359# Always do the visibility check but don't set AM_CFLAGS on Windows.
19360# This way things get set properly even on Windows.
19361
19362
19363  CFLAG_VISIBILITY=
19364  HAVE_VISIBILITY=0
19365  if test -n "$GCC"; then
19366                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
19367$as_echo_n "checking whether the -Werror option is usable... " >&6; }
19368    if ${gl_cv_cc_vis_werror+:} false; then :
19369  $as_echo_n "(cached) " >&6
19370else
19371
19372      gl_save_CFLAGS="$CFLAGS"
19373      CFLAGS="$CFLAGS -Werror"
19374      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19375/* end confdefs.h.  */
19376
19377int
19378main ()
19379{
19380
19381  ;
19382  return 0;
19383}
19384_ACEOF
19385if ac_fn_c_try_compile "$LINENO"; then :
19386  gl_cv_cc_vis_werror=yes
19387else
19388  gl_cv_cc_vis_werror=no
19389fi
19390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19391      CFLAGS="$gl_save_CFLAGS"
19392fi
19393
19394    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
19395$as_echo "$gl_cv_cc_vis_werror" >&6; }
19396        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
19397$as_echo_n "checking for simple visibility declarations... " >&6; }
19398    if ${gl_cv_cc_visibility+:} false; then :
19399  $as_echo_n "(cached) " >&6
19400else
19401
19402      gl_save_CFLAGS="$CFLAGS"
19403      CFLAGS="$CFLAGS -fvisibility=hidden"
19404                                    if test $gl_cv_cc_vis_werror = yes; then
19405        CFLAGS="$CFLAGS -Werror"
19406      fi
19407      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408/* end confdefs.h.  */
19409extern __attribute__((__visibility__("hidden"))) int hiddenvar;
19410             extern __attribute__((__visibility__("default"))) int exportedvar;
19411             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
19412             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
19413             void dummyfunc (void) {}
19414
19415int
19416main ()
19417{
19418
19419  ;
19420  return 0;
19421}
19422_ACEOF
19423if ac_fn_c_try_compile "$LINENO"; then :
19424  gl_cv_cc_visibility=yes
19425else
19426  gl_cv_cc_visibility=no
19427fi
19428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19429      CFLAGS="$gl_save_CFLAGS"
19430fi
19431
19432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
19433$as_echo "$gl_cv_cc_visibility" >&6; }
19434    if test $gl_cv_cc_visibility = yes; then
19435      CFLAG_VISIBILITY="-fvisibility=hidden"
19436      HAVE_VISIBILITY=1
19437    fi
19438  fi
19439
19440
19441
19442cat >>confdefs.h <<_ACEOF
19443#define HAVE_VISIBILITY $HAVE_VISIBILITY
19444_ACEOF
19445
19446
19447if test -n "$CFLAG_VISIBILITY" && test "$is_w32" = no; then
19448	AM_CFLAGS="$AM_CFLAGS $CFLAG_VISIBILITY"
19449fi
19450
19451if test "$GCC" = yes ; then
19452	# Enable as much warnings as possible. These commented warnings won't
19453	# work for this package though:
19454	#   * -Wunreachable-code breaks several assert(0) cases, which are
19455	#     backed up with "return LZMA_PROG_ERROR".
19456	#   * -Wcast-qual would break various things where we need a non-const
19457	#     pointer although we don't modify anything through it.
19458	#   * -Wcast-align breaks optimized CRC32 and CRC64 implementation
19459	#     on some architectures (not on x86), where this warning is bogus,
19460	#     because we take care of correct alignment.
19461	#   * -Winline, -Wdisabled-optimization, -Wunsafe-loop-optimizations
19462	#     don't seem so useful here; at least the last one gives some
19463	#     warnings which are not bugs.
19464	for NEW_FLAG in \
19465			-Wall \
19466			-Wextra \
19467			-Wvla \
19468			-Wformat=2 \
19469			-Winit-self \
19470			-Wmissing-include-dirs \
19471			-Wstrict-aliasing \
19472			-Wfloat-equal \
19473			-Wundef \
19474			-Wshadow \
19475			-Wpointer-arith \
19476			-Wbad-function-cast \
19477			-Wwrite-strings \
19478			-Wlogical-op \
19479			-Waggregate-return \
19480			-Wstrict-prototypes \
19481			-Wold-style-definition \
19482			-Wmissing-prototypes \
19483			-Wmissing-declarations \
19484			-Wmissing-noreturn \
19485			-Wredundant-decls
19486	do
19487		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts $NEW_FLAG" >&5
19488$as_echo_n "checking if $CC accepts $NEW_FLAG... " >&6; }
19489		OLD_CFLAGS="$CFLAGS"
19490		CFLAGS="$CFLAGS $NEW_FLAG -Werror"
19491		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19492/* end confdefs.h.  */
19493void foo(void); void foo(void) { }
19494_ACEOF
19495if ac_fn_c_try_compile "$LINENO"; then :
19496
19497			AM_CFLAGS="$AM_CFLAGS $NEW_FLAG"
19498			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19499$as_echo "yes" >&6; }
19500
19501else
19502
19503			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19504$as_echo "no" >&6; }
19505
19506fi
19507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19508		CFLAGS="$OLD_CFLAGS"
19509	done
19510
19511	# Check whether --enable-werror was given.
19512if test "${enable_werror+set}" = set; then :
19513  enableval=$enable_werror;
19514else
19515  enable_werror=no
19516fi
19517
19518	if test "x$enable_werror" = "xyes"; then
19519		AM_CFLAGS="$AM_CFLAGS -Werror"
19520	fi
19521fi
19522
19523
19524###############################################################################
19525# Create the makefiles and config.h
19526###############################################################################
19527
19528echo
19529
19530# Don't build the lib directory at all if we don't need any replacement
19531# functions.
19532 if test -n "$LIBOBJS"; then
19533  COND_GNULIB_TRUE=
19534  COND_GNULIB_FALSE='#'
19535else
19536  COND_GNULIB_TRUE='#'
19537  COND_GNULIB_FALSE=
19538fi
19539
19540
19541# Add default AM_CFLAGS.
19542
19543
19544# This is needed for src/scripts.
19545xz=`echo xz | sed "$program_transform_name"`
19546
19547
19548
19549
19550
19551
19552
19553
19554cat >confcache <<\_ACEOF
19555# This file is a shell script that caches the results of configure
19556# tests run on this system so they can be shared between configure
19557# scripts and configure runs, see configure's option --config-cache.
19558# It is not useful on other systems.  If it contains results you don't
19559# want to keep, you may remove or edit it.
19560#
19561# config.status only pays attention to the cache file if you give it
19562# the --recheck option to rerun configure.
19563#
19564# `ac_cv_env_foo' variables (set or unset) will be overridden when
19565# loading this file, other *unset* `ac_cv_foo' will be assigned the
19566# following values.
19567
19568_ACEOF
19569
19570# The following way of writing the cache mishandles newlines in values,
19571# but we know of no workaround that is simple, portable, and efficient.
19572# So, we kill variables containing newlines.
19573# Ultrix sh set writes to stderr and can't be redirected directly,
19574# and sets the high bit in the cache file unless we assign to the vars.
19575(
19576  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19577    eval ac_val=\$$ac_var
19578    case $ac_val in #(
19579    *${as_nl}*)
19580      case $ac_var in #(
19581      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19582$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19583      esac
19584      case $ac_var in #(
19585      _ | IFS | as_nl) ;; #(
19586      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19587      *) { eval $ac_var=; unset $ac_var;} ;;
19588      esac ;;
19589    esac
19590  done
19591
19592  (set) 2>&1 |
19593    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19594    *${as_nl}ac_space=\ *)
19595      # `set' does not quote correctly, so add quotes: double-quote
19596      # substitution turns \\\\ into \\, and sed turns \\ into \.
19597      sed -n \
19598	"s/'/'\\\\''/g;
19599	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19600      ;; #(
19601    *)
19602      # `set' quotes correctly as required by POSIX, so do not add quotes.
19603      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19604      ;;
19605    esac |
19606    sort
19607) |
19608  sed '
19609     /^ac_cv_env_/b end
19610     t clear
19611     :clear
19612     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19613     t end
19614     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19615     :end' >>confcache
19616if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19617  if test -w "$cache_file"; then
19618    if test "x$cache_file" != "x/dev/null"; then
19619      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19620$as_echo "$as_me: updating cache $cache_file" >&6;}
19621      if test ! -f "$cache_file" || test -h "$cache_file"; then
19622	cat confcache >"$cache_file"
19623      else
19624        case $cache_file in #(
19625        */* | ?:*)
19626	  mv -f confcache "$cache_file"$$ &&
19627	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19628        *)
19629	  mv -f confcache "$cache_file" ;;
19630	esac
19631      fi
19632    fi
19633  else
19634    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19635$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19636  fi
19637fi
19638rm -f confcache
19639
19640test "x$prefix" = xNONE && prefix=$ac_default_prefix
19641# Let make expand exec_prefix.
19642test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19643
19644DEFS=-DHAVE_CONFIG_H
19645
19646ac_libobjs=
19647ac_ltlibobjs=
19648U=
19649for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19650  # 1. Remove the extension, and $U if already installed.
19651  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19652  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19653  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19654  #    will be set to the directory where LIBOBJS objects are built.
19655  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19656  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19657done
19658LIBOBJS=$ac_libobjs
19659
19660LTLIBOBJS=$ac_ltlibobjs
19661
19662
19663if test -z "${COND_W32_TRUE}" && test -z "${COND_W32_FALSE}"; then
19664  as_fn_error $? "conditional \"COND_W32\" was never defined.
19665Usually this means the macro was only invoked conditionally." "$LINENO" 5
19666fi
19667if test -z "${COND_MAIN_ENCODER_TRUE}" && test -z "${COND_MAIN_ENCODER_FALSE}"; then
19668  as_fn_error $? "conditional \"COND_MAIN_ENCODER\" was never defined.
19669Usually this means the macro was only invoked conditionally." "$LINENO" 5
19670fi
19671if test -z "${COND_MAIN_DECODER_TRUE}" && test -z "${COND_MAIN_DECODER_FALSE}"; then
19672  as_fn_error $? "conditional \"COND_MAIN_DECODER\" was never defined.
19673Usually this means the macro was only invoked conditionally." "$LINENO" 5
19674fi
19675if test -z "${COND_FILTER_LZMA1_TRUE}" && test -z "${COND_FILTER_LZMA1_FALSE}"; then
19676  as_fn_error $? "conditional \"COND_FILTER_LZMA1\" was never defined.
19677Usually this means the macro was only invoked conditionally." "$LINENO" 5
19678fi
19679if test -z "${COND_ENCODER_LZMA1_TRUE}" && test -z "${COND_ENCODER_LZMA1_FALSE}"; then
19680  as_fn_error $? "conditional \"COND_ENCODER_LZMA1\" was never defined.
19681Usually this means the macro was only invoked conditionally." "$LINENO" 5
19682fi
19683if test -z "${COND_DECODER_LZMA1_TRUE}" && test -z "${COND_DECODER_LZMA1_FALSE}"; then
19684  as_fn_error $? "conditional \"COND_DECODER_LZMA1\" was never defined.
19685Usually this means the macro was only invoked conditionally." "$LINENO" 5
19686fi
19687if test -z "${COND_FILTER_LZMA2_TRUE}" && test -z "${COND_FILTER_LZMA2_FALSE}"; then
19688  as_fn_error $? "conditional \"COND_FILTER_LZMA2\" was never defined.
19689Usually this means the macro was only invoked conditionally." "$LINENO" 5
19690fi
19691if test -z "${COND_ENCODER_LZMA2_TRUE}" && test -z "${COND_ENCODER_LZMA2_FALSE}"; then
19692  as_fn_error $? "conditional \"COND_ENCODER_LZMA2\" was never defined.
19693Usually this means the macro was only invoked conditionally." "$LINENO" 5
19694fi
19695if test -z "${COND_DECODER_LZMA2_TRUE}" && test -z "${COND_DECODER_LZMA2_FALSE}"; then
19696  as_fn_error $? "conditional \"COND_DECODER_LZMA2\" was never defined.
19697Usually this means the macro was only invoked conditionally." "$LINENO" 5
19698fi
19699if test -z "${COND_FILTER_DELTA_TRUE}" && test -z "${COND_FILTER_DELTA_FALSE}"; then
19700  as_fn_error $? "conditional \"COND_FILTER_DELTA\" was never defined.
19701Usually this means the macro was only invoked conditionally." "$LINENO" 5
19702fi
19703if test -z "${COND_ENCODER_DELTA_TRUE}" && test -z "${COND_ENCODER_DELTA_FALSE}"; then
19704  as_fn_error $? "conditional \"COND_ENCODER_DELTA\" was never defined.
19705Usually this means the macro was only invoked conditionally." "$LINENO" 5
19706fi
19707if test -z "${COND_DECODER_DELTA_TRUE}" && test -z "${COND_DECODER_DELTA_FALSE}"; then
19708  as_fn_error $? "conditional \"COND_DECODER_DELTA\" was never defined.
19709Usually this means the macro was only invoked conditionally." "$LINENO" 5
19710fi
19711if test -z "${COND_FILTER_X86_TRUE}" && test -z "${COND_FILTER_X86_FALSE}"; then
19712  as_fn_error $? "conditional \"COND_FILTER_X86\" was never defined.
19713Usually this means the macro was only invoked conditionally." "$LINENO" 5
19714fi
19715if test -z "${COND_ENCODER_X86_TRUE}" && test -z "${COND_ENCODER_X86_FALSE}"; then
19716  as_fn_error $? "conditional \"COND_ENCODER_X86\" was never defined.
19717Usually this means the macro was only invoked conditionally." "$LINENO" 5
19718fi
19719if test -z "${COND_DECODER_X86_TRUE}" && test -z "${COND_DECODER_X86_FALSE}"; then
19720  as_fn_error $? "conditional \"COND_DECODER_X86\" was never defined.
19721Usually this means the macro was only invoked conditionally." "$LINENO" 5
19722fi
19723if test -z "${COND_FILTER_POWERPC_TRUE}" && test -z "${COND_FILTER_POWERPC_FALSE}"; then
19724  as_fn_error $? "conditional \"COND_FILTER_POWERPC\" was never defined.
19725Usually this means the macro was only invoked conditionally." "$LINENO" 5
19726fi
19727if test -z "${COND_ENCODER_POWERPC_TRUE}" && test -z "${COND_ENCODER_POWERPC_FALSE}"; then
19728  as_fn_error $? "conditional \"COND_ENCODER_POWERPC\" was never defined.
19729Usually this means the macro was only invoked conditionally." "$LINENO" 5
19730fi
19731if test -z "${COND_DECODER_POWERPC_TRUE}" && test -z "${COND_DECODER_POWERPC_FALSE}"; then
19732  as_fn_error $? "conditional \"COND_DECODER_POWERPC\" was never defined.
19733Usually this means the macro was only invoked conditionally." "$LINENO" 5
19734fi
19735if test -z "${COND_FILTER_IA64_TRUE}" && test -z "${COND_FILTER_IA64_FALSE}"; then
19736  as_fn_error $? "conditional \"COND_FILTER_IA64\" was never defined.
19737Usually this means the macro was only invoked conditionally." "$LINENO" 5
19738fi
19739if test -z "${COND_ENCODER_IA64_TRUE}" && test -z "${COND_ENCODER_IA64_FALSE}"; then
19740  as_fn_error $? "conditional \"COND_ENCODER_IA64\" was never defined.
19741Usually this means the macro was only invoked conditionally." "$LINENO" 5
19742fi
19743if test -z "${COND_DECODER_IA64_TRUE}" && test -z "${COND_DECODER_IA64_FALSE}"; then
19744  as_fn_error $? "conditional \"COND_DECODER_IA64\" was never defined.
19745Usually this means the macro was only invoked conditionally." "$LINENO" 5
19746fi
19747if test -z "${COND_FILTER_ARM_TRUE}" && test -z "${COND_FILTER_ARM_FALSE}"; then
19748  as_fn_error $? "conditional \"COND_FILTER_ARM\" was never defined.
19749Usually this means the macro was only invoked conditionally." "$LINENO" 5
19750fi
19751if test -z "${COND_ENCODER_ARM_TRUE}" && test -z "${COND_ENCODER_ARM_FALSE}"; then
19752  as_fn_error $? "conditional \"COND_ENCODER_ARM\" was never defined.
19753Usually this means the macro was only invoked conditionally." "$LINENO" 5
19754fi
19755if test -z "${COND_DECODER_ARM_TRUE}" && test -z "${COND_DECODER_ARM_FALSE}"; then
19756  as_fn_error $? "conditional \"COND_DECODER_ARM\" was never defined.
19757Usually this means the macro was only invoked conditionally." "$LINENO" 5
19758fi
19759if test -z "${COND_FILTER_ARMTHUMB_TRUE}" && test -z "${COND_FILTER_ARMTHUMB_FALSE}"; then
19760  as_fn_error $? "conditional \"COND_FILTER_ARMTHUMB\" was never defined.
19761Usually this means the macro was only invoked conditionally." "$LINENO" 5
19762fi
19763if test -z "${COND_ENCODER_ARMTHUMB_TRUE}" && test -z "${COND_ENCODER_ARMTHUMB_FALSE}"; then
19764  as_fn_error $? "conditional \"COND_ENCODER_ARMTHUMB\" was never defined.
19765Usually this means the macro was only invoked conditionally." "$LINENO" 5
19766fi
19767if test -z "${COND_DECODER_ARMTHUMB_TRUE}" && test -z "${COND_DECODER_ARMTHUMB_FALSE}"; then
19768  as_fn_error $? "conditional \"COND_DECODER_ARMTHUMB\" was never defined.
19769Usually this means the macro was only invoked conditionally." "$LINENO" 5
19770fi
19771if test -z "${COND_FILTER_SPARC_TRUE}" && test -z "${COND_FILTER_SPARC_FALSE}"; then
19772  as_fn_error $? "conditional \"COND_FILTER_SPARC\" was never defined.
19773Usually this means the macro was only invoked conditionally." "$LINENO" 5
19774fi
19775if test -z "${COND_ENCODER_SPARC_TRUE}" && test -z "${COND_ENCODER_SPARC_FALSE}"; then
19776  as_fn_error $? "conditional \"COND_ENCODER_SPARC\" was never defined.
19777Usually this means the macro was only invoked conditionally." "$LINENO" 5
19778fi
19779if test -z "${COND_DECODER_SPARC_TRUE}" && test -z "${COND_DECODER_SPARC_FALSE}"; then
19780  as_fn_error $? "conditional \"COND_DECODER_SPARC\" was never defined.
19781Usually this means the macro was only invoked conditionally." "$LINENO" 5
19782fi
19783if test -z "${COND_FILTER_SIMPLE_TRUE}" && test -z "${COND_FILTER_SIMPLE_FALSE}"; then
19784  as_fn_error $? "conditional \"COND_FILTER_SIMPLE\" was never defined.
19785Usually this means the macro was only invoked conditionally." "$LINENO" 5
19786fi
19787if test -z "${COND_ENCODER_SIMPLE_TRUE}" && test -z "${COND_ENCODER_SIMPLE_FALSE}"; then
19788  as_fn_error $? "conditional \"COND_ENCODER_SIMPLE\" was never defined.
19789Usually this means the macro was only invoked conditionally." "$LINENO" 5
19790fi
19791if test -z "${COND_DECODER_SIMPLE_TRUE}" && test -z "${COND_DECODER_SIMPLE_FALSE}"; then
19792  as_fn_error $? "conditional \"COND_DECODER_SIMPLE\" was never defined.
19793Usually this means the macro was only invoked conditionally." "$LINENO" 5
19794fi
19795if test -z "${COND_FILTER_LZ_TRUE}" && test -z "${COND_FILTER_LZ_FALSE}"; then
19796  as_fn_error $? "conditional \"COND_FILTER_LZ\" was never defined.
19797Usually this means the macro was only invoked conditionally." "$LINENO" 5
19798fi
19799if test -z "${COND_ENCODER_LZ_TRUE}" && test -z "${COND_ENCODER_LZ_FALSE}"; then
19800  as_fn_error $? "conditional \"COND_ENCODER_LZ\" was never defined.
19801Usually this means the macro was only invoked conditionally." "$LINENO" 5
19802fi
19803if test -z "${COND_DECODER_LZ_TRUE}" && test -z "${COND_DECODER_LZ_FALSE}"; then
19804  as_fn_error $? "conditional \"COND_DECODER_LZ\" was never defined.
19805Usually this means the macro was only invoked conditionally." "$LINENO" 5
19806fi
19807if test -z "${COND_CHECK_CRC32_TRUE}" && test -z "${COND_CHECK_CRC32_FALSE}"; then
19808  as_fn_error $? "conditional \"COND_CHECK_CRC32\" was never defined.
19809Usually this means the macro was only invoked conditionally." "$LINENO" 5
19810fi
19811if test -z "${COND_CHECK_CRC64_TRUE}" && test -z "${COND_CHECK_CRC64_FALSE}"; then
19812  as_fn_error $? "conditional \"COND_CHECK_CRC64\" was never defined.
19813Usually this means the macro was only invoked conditionally." "$LINENO" 5
19814fi
19815if test -z "${COND_CHECK_SHA256_TRUE}" && test -z "${COND_CHECK_SHA256_FALSE}"; then
19816  as_fn_error $? "conditional \"COND_CHECK_SHA256\" was never defined.
19817Usually this means the macro was only invoked conditionally." "$LINENO" 5
19818fi
19819if test -z "${COND_ASM_X86_TRUE}" && test -z "${COND_ASM_X86_FALSE}"; then
19820  as_fn_error $? "conditional \"COND_ASM_X86\" was never defined.
19821Usually this means the macro was only invoked conditionally." "$LINENO" 5
19822fi
19823if test -z "${COND_ASM_X86_64_TRUE}" && test -z "${COND_ASM_X86_64_FALSE}"; then
19824  as_fn_error $? "conditional \"COND_ASM_X86_64\" was never defined.
19825Usually this means the macro was only invoked conditionally." "$LINENO" 5
19826fi
19827if test -z "${COND_SMALL_TRUE}" && test -z "${COND_SMALL_FALSE}"; then
19828  as_fn_error $? "conditional \"COND_SMALL\" was never defined.
19829Usually this means the macro was only invoked conditionally." "$LINENO" 5
19830fi
19831if test -z "${COND_XZ_TRUE}" && test -z "${COND_XZ_FALSE}"; then
19832  as_fn_error $? "conditional \"COND_XZ\" was never defined.
19833Usually this means the macro was only invoked conditionally." "$LINENO" 5
19834fi
19835if test -z "${COND_XZDEC_TRUE}" && test -z "${COND_XZDEC_FALSE}"; then
19836  as_fn_error $? "conditional \"COND_XZDEC\" was never defined.
19837Usually this means the macro was only invoked conditionally." "$LINENO" 5
19838fi
19839if test -z "${COND_LZMADEC_TRUE}" && test -z "${COND_LZMADEC_FALSE}"; then
19840  as_fn_error $? "conditional \"COND_LZMADEC\" was never defined.
19841Usually this means the macro was only invoked conditionally." "$LINENO" 5
19842fi
19843if test -z "${COND_LZMAINFO_TRUE}" && test -z "${COND_LZMAINFO_FALSE}"; then
19844  as_fn_error $? "conditional \"COND_LZMAINFO\" was never defined.
19845Usually this means the macro was only invoked conditionally." "$LINENO" 5
19846fi
19847if test -z "${COND_LZMALINKS_TRUE}" && test -z "${COND_LZMALINKS_FALSE}"; then
19848  as_fn_error $? "conditional \"COND_LZMALINKS\" was never defined.
19849Usually this means the macro was only invoked conditionally." "$LINENO" 5
19850fi
19851if test -z "${COND_SCRIPTS_TRUE}" && test -z "${COND_SCRIPTS_FALSE}"; then
19852  as_fn_error $? "conditional \"COND_SCRIPTS\" was never defined.
19853Usually this means the macro was only invoked conditionally." "$LINENO" 5
19854fi
19855if test -z "${COND_DOC_TRUE}" && test -z "${COND_DOC_FALSE}"; then
19856  as_fn_error $? "conditional \"COND_DOC\" was never defined.
19857Usually this means the macro was only invoked conditionally." "$LINENO" 5
19858fi
19859if test -z "${COND_SYMVERS_TRUE}" && test -z "${COND_SYMVERS_FALSE}"; then
19860  as_fn_error $? "conditional \"COND_SYMVERS\" was never defined.
19861Usually this means the macro was only invoked conditionally." "$LINENO" 5
19862fi
19863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19864$as_echo_n "checking that generated files are newer than configure... " >&6; }
19865   if test -n "$am_sleep_pid"; then
19866     # Hide warnings about reused PIDs.
19867     wait $am_sleep_pid 2>/dev/null
19868   fi
19869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19870$as_echo "done" >&6; }
19871 if test -n "$EXEEXT"; then
19872  am__EXEEXT_TRUE=
19873  am__EXEEXT_FALSE='#'
19874else
19875  am__EXEEXT_TRUE='#'
19876  am__EXEEXT_FALSE=
19877fi
19878
19879if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19880  as_fn_error $? "conditional \"AMDEP\" was never defined.
19881Usually this means the macro was only invoked conditionally." "$LINENO" 5
19882fi
19883if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19884  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19885Usually this means the macro was only invoked conditionally." "$LINENO" 5
19886fi
19887if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19888  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19889Usually this means the macro was only invoked conditionally." "$LINENO" 5
19890fi
19891if test -z "${COND_THREADS_TRUE}" && test -z "${COND_THREADS_FALSE}"; then
19892  as_fn_error $? "conditional \"COND_THREADS\" was never defined.
19893Usually this means the macro was only invoked conditionally." "$LINENO" 5
19894fi
19895if test -z "${COND_SHARED_TRUE}" && test -z "${COND_SHARED_FALSE}"; then
19896  as_fn_error $? "conditional \"COND_SHARED\" was never defined.
19897Usually this means the macro was only invoked conditionally." "$LINENO" 5
19898fi
19899
19900if test -z "${COND_INTERNAL_SHA256_TRUE}" && test -z "${COND_INTERNAL_SHA256_FALSE}"; then
19901  as_fn_error $? "conditional \"COND_INTERNAL_SHA256\" was never defined.
19902Usually this means the macro was only invoked conditionally." "$LINENO" 5
19903fi
19904if test -z "${COND_GNULIB_TRUE}" && test -z "${COND_GNULIB_FALSE}"; then
19905  as_fn_error $? "conditional \"COND_GNULIB\" was never defined.
19906Usually this means the macro was only invoked conditionally." "$LINENO" 5
19907fi
19908
19909: "${CONFIG_STATUS=./config.status}"
19910ac_write_fail=0
19911ac_clean_files_save=$ac_clean_files
19912ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19913{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19914$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19915as_write_fail=0
19916cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19917#! $SHELL
19918# Generated by $as_me.
19919# Run this file to recreate the current configuration.
19920# Compiler output produced by configure, useful for debugging
19921# configure, is in config.log if it exists.
19922
19923debug=false
19924ac_cs_recheck=false
19925ac_cs_silent=false
19926
19927SHELL=\${CONFIG_SHELL-$SHELL}
19928export SHELL
19929_ASEOF
19930cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19931## -------------------- ##
19932## M4sh Initialization. ##
19933## -------------------- ##
19934
19935# Be more Bourne compatible
19936DUALCASE=1; export DUALCASE # for MKS sh
19937if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19938  emulate sh
19939  NULLCMD=:
19940  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19941  # is contrary to our usage.  Disable this feature.
19942  alias -g '${1+"$@"}'='"$@"'
19943  setopt NO_GLOB_SUBST
19944else
19945  case `(set -o) 2>/dev/null` in #(
19946  *posix*) :
19947    set -o posix ;; #(
19948  *) :
19949     ;;
19950esac
19951fi
19952
19953
19954as_nl='
19955'
19956export as_nl
19957# Printing a long string crashes Solaris 7 /usr/bin/printf.
19958as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19959as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19960as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19961# Prefer a ksh shell builtin over an external printf program on Solaris,
19962# but without wasting forks for bash or zsh.
19963if test -z "$BASH_VERSION$ZSH_VERSION" \
19964    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19965  as_echo='print -r --'
19966  as_echo_n='print -rn --'
19967elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19968  as_echo='printf %s\n'
19969  as_echo_n='printf %s'
19970else
19971  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19972    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19973    as_echo_n='/usr/ucb/echo -n'
19974  else
19975    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19976    as_echo_n_body='eval
19977      arg=$1;
19978      case $arg in #(
19979      *"$as_nl"*)
19980	expr "X$arg" : "X\\(.*\\)$as_nl";
19981	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19982      esac;
19983      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19984    '
19985    export as_echo_n_body
19986    as_echo_n='sh -c $as_echo_n_body as_echo'
19987  fi
19988  export as_echo_body
19989  as_echo='sh -c $as_echo_body as_echo'
19990fi
19991
19992# The user is always right.
19993if test "${PATH_SEPARATOR+set}" != set; then
19994  PATH_SEPARATOR=:
19995  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19996    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19997      PATH_SEPARATOR=';'
19998  }
19999fi
20000
20001
20002# IFS
20003# We need space, tab and new line, in precisely that order.  Quoting is
20004# there to prevent editors from complaining about space-tab.
20005# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20006# splitting by setting IFS to empty value.)
20007IFS=" ""	$as_nl"
20008
20009# Find who we are.  Look in the path if we contain no directory separator.
20010as_myself=
20011case $0 in #((
20012  *[\\/]* ) as_myself=$0 ;;
20013  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20014for as_dir in $PATH
20015do
20016  IFS=$as_save_IFS
20017  test -z "$as_dir" && as_dir=.
20018    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20019  done
20020IFS=$as_save_IFS
20021
20022     ;;
20023esac
20024# We did not find ourselves, most probably we were run as `sh COMMAND'
20025# in which case we are not to be found in the path.
20026if test "x$as_myself" = x; then
20027  as_myself=$0
20028fi
20029if test ! -f "$as_myself"; then
20030  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20031  exit 1
20032fi
20033
20034# Unset variables that we do not need and which cause bugs (e.g. in
20035# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20036# suppresses any "Segmentation fault" message there.  '((' could
20037# trigger a bug in pdksh 5.2.14.
20038for as_var in BASH_ENV ENV MAIL MAILPATH
20039do eval test x\${$as_var+set} = xset \
20040  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20041done
20042PS1='$ '
20043PS2='> '
20044PS4='+ '
20045
20046# NLS nuisances.
20047LC_ALL=C
20048export LC_ALL
20049LANGUAGE=C
20050export LANGUAGE
20051
20052# CDPATH.
20053(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20054
20055
20056# as_fn_error STATUS ERROR [LINENO LOG_FD]
20057# ----------------------------------------
20058# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20059# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20060# script with STATUS, using 1 if that was 0.
20061as_fn_error ()
20062{
20063  as_status=$1; test $as_status -eq 0 && as_status=1
20064  if test "$4"; then
20065    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20066    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20067  fi
20068  $as_echo "$as_me: error: $2" >&2
20069  as_fn_exit $as_status
20070} # as_fn_error
20071
20072
20073# as_fn_set_status STATUS
20074# -----------------------
20075# Set $? to STATUS, without forking.
20076as_fn_set_status ()
20077{
20078  return $1
20079} # as_fn_set_status
20080
20081# as_fn_exit STATUS
20082# -----------------
20083# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20084as_fn_exit ()
20085{
20086  set +e
20087  as_fn_set_status $1
20088  exit $1
20089} # as_fn_exit
20090
20091# as_fn_unset VAR
20092# ---------------
20093# Portably unset VAR.
20094as_fn_unset ()
20095{
20096  { eval $1=; unset $1;}
20097}
20098as_unset=as_fn_unset
20099# as_fn_append VAR VALUE
20100# ----------------------
20101# Append the text in VALUE to the end of the definition contained in VAR. Take
20102# advantage of any shell optimizations that allow amortized linear growth over
20103# repeated appends, instead of the typical quadratic growth present in naive
20104# implementations.
20105if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20106  eval 'as_fn_append ()
20107  {
20108    eval $1+=\$2
20109  }'
20110else
20111  as_fn_append ()
20112  {
20113    eval $1=\$$1\$2
20114  }
20115fi # as_fn_append
20116
20117# as_fn_arith ARG...
20118# ------------------
20119# Perform arithmetic evaluation on the ARGs, and store the result in the
20120# global $as_val. Take advantage of shells that can avoid forks. The arguments
20121# must be portable across $(()) and expr.
20122if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20123  eval 'as_fn_arith ()
20124  {
20125    as_val=$(( $* ))
20126  }'
20127else
20128  as_fn_arith ()
20129  {
20130    as_val=`expr "$@" || test $? -eq 1`
20131  }
20132fi # as_fn_arith
20133
20134
20135if expr a : '\(a\)' >/dev/null 2>&1 &&
20136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20137  as_expr=expr
20138else
20139  as_expr=false
20140fi
20141
20142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20143  as_basename=basename
20144else
20145  as_basename=false
20146fi
20147
20148if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20149  as_dirname=dirname
20150else
20151  as_dirname=false
20152fi
20153
20154as_me=`$as_basename -- "$0" ||
20155$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20156	 X"$0" : 'X\(//\)$' \| \
20157	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20158$as_echo X/"$0" |
20159    sed '/^.*\/\([^/][^/]*\)\/*$/{
20160	    s//\1/
20161	    q
20162	  }
20163	  /^X\/\(\/\/\)$/{
20164	    s//\1/
20165	    q
20166	  }
20167	  /^X\/\(\/\).*/{
20168	    s//\1/
20169	    q
20170	  }
20171	  s/.*/./; q'`
20172
20173# Avoid depending upon Character Ranges.
20174as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20175as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20176as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20177as_cr_digits='0123456789'
20178as_cr_alnum=$as_cr_Letters$as_cr_digits
20179
20180ECHO_C= ECHO_N= ECHO_T=
20181case `echo -n x` in #(((((
20182-n*)
20183  case `echo 'xy\c'` in
20184  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20185  xy)  ECHO_C='\c';;
20186  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20187       ECHO_T='	';;
20188  esac;;
20189*)
20190  ECHO_N='-n';;
20191esac
20192
20193rm -f conf$$ conf$$.exe conf$$.file
20194if test -d conf$$.dir; then
20195  rm -f conf$$.dir/conf$$.file
20196else
20197  rm -f conf$$.dir
20198  mkdir conf$$.dir 2>/dev/null
20199fi
20200if (echo >conf$$.file) 2>/dev/null; then
20201  if ln -s conf$$.file conf$$ 2>/dev/null; then
20202    as_ln_s='ln -s'
20203    # ... but there are two gotchas:
20204    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20205    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20206    # In both cases, we have to default to `cp -pR'.
20207    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20208      as_ln_s='cp -pR'
20209  elif ln conf$$.file conf$$ 2>/dev/null; then
20210    as_ln_s=ln
20211  else
20212    as_ln_s='cp -pR'
20213  fi
20214else
20215  as_ln_s='cp -pR'
20216fi
20217rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20218rmdir conf$$.dir 2>/dev/null
20219
20220
20221# as_fn_mkdir_p
20222# -------------
20223# Create "$as_dir" as a directory, including parents if necessary.
20224as_fn_mkdir_p ()
20225{
20226
20227  case $as_dir in #(
20228  -*) as_dir=./$as_dir;;
20229  esac
20230  test -d "$as_dir" || eval $as_mkdir_p || {
20231    as_dirs=
20232    while :; do
20233      case $as_dir in #(
20234      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20235      *) as_qdir=$as_dir;;
20236      esac
20237      as_dirs="'$as_qdir' $as_dirs"
20238      as_dir=`$as_dirname -- "$as_dir" ||
20239$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20240	 X"$as_dir" : 'X\(//\)[^/]' \| \
20241	 X"$as_dir" : 'X\(//\)$' \| \
20242	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20243$as_echo X"$as_dir" |
20244    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20245	    s//\1/
20246	    q
20247	  }
20248	  /^X\(\/\/\)[^/].*/{
20249	    s//\1/
20250	    q
20251	  }
20252	  /^X\(\/\/\)$/{
20253	    s//\1/
20254	    q
20255	  }
20256	  /^X\(\/\).*/{
20257	    s//\1/
20258	    q
20259	  }
20260	  s/.*/./; q'`
20261      test -d "$as_dir" && break
20262    done
20263    test -z "$as_dirs" || eval "mkdir $as_dirs"
20264  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20265
20266
20267} # as_fn_mkdir_p
20268if mkdir -p . 2>/dev/null; then
20269  as_mkdir_p='mkdir -p "$as_dir"'
20270else
20271  test -d ./-p && rmdir ./-p
20272  as_mkdir_p=false
20273fi
20274
20275
20276# as_fn_executable_p FILE
20277# -----------------------
20278# Test if FILE is an executable regular file.
20279as_fn_executable_p ()
20280{
20281  test -f "$1" && test -x "$1"
20282} # as_fn_executable_p
20283as_test_x='test -x'
20284as_executable_p=as_fn_executable_p
20285
20286# Sed expression to map a string onto a valid CPP name.
20287as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20288
20289# Sed expression to map a string onto a valid variable name.
20290as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20291
20292
20293exec 6>&1
20294## ----------------------------------- ##
20295## Main body of $CONFIG_STATUS script. ##
20296## ----------------------------------- ##
20297_ASEOF
20298test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20299
20300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20301# Save the log message, to keep $0 and so on meaningful, and to
20302# report actual input values of CONFIG_FILES etc. instead of their
20303# values after options handling.
20304ac_log="
20305This file was extended by XZ Utils $as_me 5.2.4, which was
20306generated by GNU Autoconf 2.69.  Invocation command line was
20307
20308  CONFIG_FILES    = $CONFIG_FILES
20309  CONFIG_HEADERS  = $CONFIG_HEADERS
20310  CONFIG_LINKS    = $CONFIG_LINKS
20311  CONFIG_COMMANDS = $CONFIG_COMMANDS
20312  $ $0 $@
20313
20314on `(hostname || uname -n) 2>/dev/null | sed 1q`
20315"
20316
20317_ACEOF
20318
20319case $ac_config_files in *"
20320"*) set x $ac_config_files; shift; ac_config_files=$*;;
20321esac
20322
20323case $ac_config_headers in *"
20324"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20325esac
20326
20327
20328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20329# Files that config.status was made for.
20330config_files="$ac_config_files"
20331config_headers="$ac_config_headers"
20332config_commands="$ac_config_commands"
20333
20334_ACEOF
20335
20336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20337ac_cs_usage="\
20338\`$as_me' instantiates files and other configuration actions
20339from templates according to the current configuration.  Unless the files
20340and actions are specified as TAGs, all are instantiated by default.
20341
20342Usage: $0 [OPTION]... [TAG]...
20343
20344  -h, --help       print this help, then exit
20345  -V, --version    print version number and configuration settings, then exit
20346      --config     print configuration, then exit
20347  -q, --quiet, --silent
20348                   do not print progress messages
20349  -d, --debug      don't remove temporary files
20350      --recheck    update $as_me by reconfiguring in the same conditions
20351      --file=FILE[:TEMPLATE]
20352                   instantiate the configuration file FILE
20353      --header=FILE[:TEMPLATE]
20354                   instantiate the configuration header FILE
20355
20356Configuration files:
20357$config_files
20358
20359Configuration headers:
20360$config_headers
20361
20362Configuration commands:
20363$config_commands
20364
20365Report bugs to <lasse.collin@tukaani.org>.
20366XZ Utils home page: <https://tukaani.org/xz/>."
20367
20368_ACEOF
20369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20370ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20371ac_cs_version="\\
20372XZ Utils config.status 5.2.4
20373configured by $0, generated by GNU Autoconf 2.69,
20374  with options \\"\$ac_cs_config\\"
20375
20376Copyright (C) 2012 Free Software Foundation, Inc.
20377This config.status script is free software; the Free Software Foundation
20378gives unlimited permission to copy, distribute and modify it."
20379
20380ac_pwd='$ac_pwd'
20381srcdir='$srcdir'
20382INSTALL='$INSTALL'
20383MKDIR_P='$MKDIR_P'
20384AWK='$AWK'
20385test -n "\$AWK" || AWK=awk
20386_ACEOF
20387
20388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20389# The default lists apply if the user does not specify any file.
20390ac_need_defaults=:
20391while test $# != 0
20392do
20393  case $1 in
20394  --*=?*)
20395    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20396    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20397    ac_shift=:
20398    ;;
20399  --*=)
20400    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20401    ac_optarg=
20402    ac_shift=:
20403    ;;
20404  *)
20405    ac_option=$1
20406    ac_optarg=$2
20407    ac_shift=shift
20408    ;;
20409  esac
20410
20411  case $ac_option in
20412  # Handling of the options.
20413  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20414    ac_cs_recheck=: ;;
20415  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20416    $as_echo "$ac_cs_version"; exit ;;
20417  --config | --confi | --conf | --con | --co | --c )
20418    $as_echo "$ac_cs_config"; exit ;;
20419  --debug | --debu | --deb | --de | --d | -d )
20420    debug=: ;;
20421  --file | --fil | --fi | --f )
20422    $ac_shift
20423    case $ac_optarg in
20424    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20425    '') as_fn_error $? "missing file argument" ;;
20426    esac
20427    as_fn_append CONFIG_FILES " '$ac_optarg'"
20428    ac_need_defaults=false;;
20429  --header | --heade | --head | --hea )
20430    $ac_shift
20431    case $ac_optarg in
20432    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20433    esac
20434    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20435    ac_need_defaults=false;;
20436  --he | --h)
20437    # Conflict between --help and --header
20438    as_fn_error $? "ambiguous option: \`$1'
20439Try \`$0 --help' for more information.";;
20440  --help | --hel | -h )
20441    $as_echo "$ac_cs_usage"; exit ;;
20442  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20443  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20444    ac_cs_silent=: ;;
20445
20446  # This is an error.
20447  -*) as_fn_error $? "unrecognized option: \`$1'
20448Try \`$0 --help' for more information." ;;
20449
20450  *) as_fn_append ac_config_targets " $1"
20451     ac_need_defaults=false ;;
20452
20453  esac
20454  shift
20455done
20456
20457ac_configure_extra_args=
20458
20459if $ac_cs_silent; then
20460  exec 6>/dev/null
20461  ac_configure_extra_args="$ac_configure_extra_args --silent"
20462fi
20463
20464_ACEOF
20465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20466if \$ac_cs_recheck; then
20467  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20468  shift
20469  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20470  CONFIG_SHELL='$SHELL'
20471  export CONFIG_SHELL
20472  exec "\$@"
20473fi
20474
20475_ACEOF
20476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20477exec 5>>config.log
20478{
20479  echo
20480  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20481## Running $as_me. ##
20482_ASBOX
20483  $as_echo "$ac_log"
20484} >&5
20485
20486_ACEOF
20487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20488#
20489# INIT-COMMANDS
20490#
20491AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20492
20493
20494# The HP-UX ksh and POSIX shell print the target directory to stdout
20495# if CDPATH is set.
20496(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20497
20498sed_quote_subst='$sed_quote_subst'
20499double_quote_subst='$double_quote_subst'
20500delay_variable_subst='$delay_variable_subst'
20501macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20502macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20503AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20504DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20505OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20506enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20507enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20508pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20509enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20510shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20511SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20512ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20513PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20514host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20515host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20516host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20517build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20518build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20519build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20520SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20521Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20522GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20523EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20524FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20525LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20526NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20527LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20528max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20529ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20530exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20531lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20532lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20533lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20534lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20535lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20536reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20537reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20538deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20539file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20540file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20541want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20542sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20543AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20544lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20545AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20546archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20547STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20548RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20549old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20550old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20551old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20552lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20553CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20554CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20555compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20556GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20557lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20558lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20559lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20560lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20561lt_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"`'
20562lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20563nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20564lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20565lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20566objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20567MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20568lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20569lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20570lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20571lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20572lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20573need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20574MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20575DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20576NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20577LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20578OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20579OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20580libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20581shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20582extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20583archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20584enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20585export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20586whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20587compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20588old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20589old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20590archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20591archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20592module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20593module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20594with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20595allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20596no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20597hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20598hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20599hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20600hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20601hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20602hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20603hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20604inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20605link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20606always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20607export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20608exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20609include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20610prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20611postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20612file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20613variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20614need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20615need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20616version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20617runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20618shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20619shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20620libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20621library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20622soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20623install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20624postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20625postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20626finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20627finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20628hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20629sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20630configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20631configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20632hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20633enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20634enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20635enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20636old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20637striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20638LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
20639reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
20640reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
20641old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20642compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
20643GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
20644lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
20645lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
20646lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
20647lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
20648lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
20649archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
20650enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
20651export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20652whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20653compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
20654old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
20655old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
20656archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
20657archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20658module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
20659module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
20660with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
20661allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20662no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20663hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20664hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
20665hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
20666hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
20667hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
20668hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
20669hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
20670inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
20671link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
20672always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
20673export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
20674exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20675include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20676prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20677postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20678file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
20679hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
20680
20681LTCC='$LTCC'
20682LTCFLAGS='$LTCFLAGS'
20683compiler='$compiler_DEFAULT'
20684
20685# A function that is used when there is no print builtin or printf.
20686func_fallback_echo ()
20687{
20688  eval 'cat <<_LTECHO_EOF
20689\$1
20690_LTECHO_EOF'
20691}
20692
20693# Quote evaled strings.
20694for var in AS \
20695DLLTOOL \
20696OBJDUMP \
20697SHELL \
20698ECHO \
20699PATH_SEPARATOR \
20700SED \
20701GREP \
20702EGREP \
20703FGREP \
20704LD \
20705NM \
20706LN_S \
20707lt_SP2NL \
20708lt_NL2SP \
20709reload_flag \
20710deplibs_check_method \
20711file_magic_cmd \
20712file_magic_glob \
20713want_nocaseglob \
20714sharedlib_from_linklib_cmd \
20715AR \
20716archiver_list_spec \
20717STRIP \
20718RANLIB \
20719CC \
20720CFLAGS \
20721compiler \
20722lt_cv_sys_global_symbol_pipe \
20723lt_cv_sys_global_symbol_to_cdecl \
20724lt_cv_sys_global_symbol_to_import \
20725lt_cv_sys_global_symbol_to_c_name_address \
20726lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20727lt_cv_nm_interface \
20728nm_file_list_spec \
20729lt_cv_truncate_bin \
20730lt_prog_compiler_no_builtin_flag \
20731lt_prog_compiler_pic \
20732lt_prog_compiler_wl \
20733lt_prog_compiler_static \
20734lt_cv_prog_compiler_c_o \
20735need_locks \
20736MANIFEST_TOOL \
20737DSYMUTIL \
20738NMEDIT \
20739LIPO \
20740OTOOL \
20741OTOOL64 \
20742shrext_cmds \
20743export_dynamic_flag_spec \
20744whole_archive_flag_spec \
20745compiler_needs_object \
20746with_gnu_ld \
20747allow_undefined_flag \
20748no_undefined_flag \
20749hardcode_libdir_flag_spec \
20750hardcode_libdir_separator \
20751exclude_expsyms \
20752include_expsyms \
20753file_list_spec \
20754variables_saved_for_relink \
20755libname_spec \
20756library_names_spec \
20757soname_spec \
20758install_override_mode \
20759finish_eval \
20760old_striplib \
20761striplib \
20762LD_RC \
20763reload_flag_RC \
20764compiler_RC \
20765lt_prog_compiler_no_builtin_flag_RC \
20766lt_prog_compiler_pic_RC \
20767lt_prog_compiler_wl_RC \
20768lt_prog_compiler_static_RC \
20769lt_cv_prog_compiler_c_o_RC \
20770export_dynamic_flag_spec_RC \
20771whole_archive_flag_spec_RC \
20772compiler_needs_object_RC \
20773with_gnu_ld_RC \
20774allow_undefined_flag_RC \
20775no_undefined_flag_RC \
20776hardcode_libdir_flag_spec_RC \
20777hardcode_libdir_separator_RC \
20778exclude_expsyms_RC \
20779include_expsyms_RC \
20780file_list_spec_RC; do
20781    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20782    *[\\\\\\\`\\"\\\$]*)
20783      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20784      ;;
20785    *)
20786      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20787      ;;
20788    esac
20789done
20790
20791# Double-quote double-evaled strings.
20792for var in reload_cmds \
20793old_postinstall_cmds \
20794old_postuninstall_cmds \
20795old_archive_cmds \
20796extract_expsyms_cmds \
20797old_archive_from_new_cmds \
20798old_archive_from_expsyms_cmds \
20799archive_cmds \
20800archive_expsym_cmds \
20801module_cmds \
20802module_expsym_cmds \
20803export_symbols_cmds \
20804prelink_cmds \
20805postlink_cmds \
20806postinstall_cmds \
20807postuninstall_cmds \
20808finish_cmds \
20809sys_lib_search_path_spec \
20810configure_time_dlsearch_path \
20811configure_time_lt_sys_library_path \
20812reload_cmds_RC \
20813old_archive_cmds_RC \
20814old_archive_from_new_cmds_RC \
20815old_archive_from_expsyms_cmds_RC \
20816archive_cmds_RC \
20817archive_expsym_cmds_RC \
20818module_cmds_RC \
20819module_expsym_cmds_RC \
20820export_symbols_cmds_RC \
20821prelink_cmds_RC \
20822postlink_cmds_RC; do
20823    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20824    *[\\\\\\\`\\"\\\$]*)
20825      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20826      ;;
20827    *)
20828      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20829      ;;
20830    esac
20831done
20832
20833ac_aux_dir='$ac_aux_dir'
20834
20835# See if we are running on zsh, and set the options that allow our
20836# commands through without removal of \ escapes INIT.
20837if test -n "\${ZSH_VERSION+set}"; then
20838   setopt NO_GLOB_SUBST
20839fi
20840
20841
20842    PACKAGE='$PACKAGE'
20843    VERSION='$VERSION'
20844    RM='$RM'
20845    ofile='$ofile'
20846
20847
20848
20849
20850
20851# Capture the value of obsolete ALL_LINGUAS because we need it to compute
20852    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
20853    # from automake < 1.5.
20854    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20855    # Capture the value of LINGUAS because we need it to compute CATALOGS.
20856    LINGUAS="${LINGUAS-%UNSET%}"
20857
20858
20859_ACEOF
20860
20861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20862
20863# Handling of arguments.
20864for ac_config_target in $ac_config_targets
20865do
20866  case $ac_config_target in
20867    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20868    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20869    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20870    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
20871    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
20872    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20873    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20874    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20875    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20876    "src/liblzma/Makefile") CONFIG_FILES="$CONFIG_FILES src/liblzma/Makefile" ;;
20877    "src/liblzma/api/Makefile") CONFIG_FILES="$CONFIG_FILES src/liblzma/api/Makefile" ;;
20878    "src/xz/Makefile") CONFIG_FILES="$CONFIG_FILES src/xz/Makefile" ;;
20879    "src/xzdec/Makefile") CONFIG_FILES="$CONFIG_FILES src/xzdec/Makefile" ;;
20880    "src/lzmainfo/Makefile") CONFIG_FILES="$CONFIG_FILES src/lzmainfo/Makefile" ;;
20881    "src/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;;
20882    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20883    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
20884    "src/scripts/xzdiff") CONFIG_FILES="$CONFIG_FILES src/scripts/xzdiff" ;;
20885    "src/scripts/xzgrep") CONFIG_FILES="$CONFIG_FILES src/scripts/xzgrep" ;;
20886    "src/scripts/xzmore") CONFIG_FILES="$CONFIG_FILES src/scripts/xzmore" ;;
20887    "src/scripts/xzless") CONFIG_FILES="$CONFIG_FILES src/scripts/xzless" ;;
20888
20889  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20890  esac
20891done
20892
20893
20894# If the user did not use the arguments to specify the items to instantiate,
20895# then the envvar interface is used.  Set only those that are not.
20896# We use the long form for the default assignment because of an extremely
20897# bizarre bug on SunOS 4.1.3.
20898if $ac_need_defaults; then
20899  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20900  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20901  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20902fi
20903
20904# Have a temporary directory for convenience.  Make it in the build tree
20905# simply because there is no reason against having it here, and in addition,
20906# creating and moving files from /tmp can sometimes cause problems.
20907# Hook for its removal unless debugging.
20908# Note that there is a small window in which the directory will not be cleaned:
20909# after its creation but before its name has been assigned to `$tmp'.
20910$debug ||
20911{
20912  tmp= ac_tmp=
20913  trap 'exit_status=$?
20914  : "${ac_tmp:=$tmp}"
20915  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20916' 0
20917  trap 'as_fn_exit 1' 1 2 13 15
20918}
20919# Create a (secure) tmp directory for tmp files.
20920
20921{
20922  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20923  test -d "$tmp"
20924}  ||
20925{
20926  tmp=./conf$$-$RANDOM
20927  (umask 077 && mkdir "$tmp")
20928} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20929ac_tmp=$tmp
20930
20931# Set up the scripts for CONFIG_FILES section.
20932# No need to generate them if there are no CONFIG_FILES.
20933# This happens for instance with `./config.status config.h'.
20934if test -n "$CONFIG_FILES"; then
20935
20936
20937ac_cr=`echo X | tr X '\015'`
20938# On cygwin, bash can eat \r inside `` if the user requested igncr.
20939# But we know of no other shell where ac_cr would be empty at this
20940# point, so we can use a bashism as a fallback.
20941if test "x$ac_cr" = x; then
20942  eval ac_cr=\$\'\\r\'
20943fi
20944ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20945if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20946  ac_cs_awk_cr='\\r'
20947else
20948  ac_cs_awk_cr=$ac_cr
20949fi
20950
20951echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20952_ACEOF
20953
20954
20955{
20956  echo "cat >conf$$subs.awk <<_ACEOF" &&
20957  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20958  echo "_ACEOF"
20959} >conf$$subs.sh ||
20960  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20961ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20962ac_delim='%!_!# '
20963for ac_last_try in false false false false false :; do
20964  . ./conf$$subs.sh ||
20965    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20966
20967  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20968  if test $ac_delim_n = $ac_delim_num; then
20969    break
20970  elif $ac_last_try; then
20971    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20972  else
20973    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20974  fi
20975done
20976rm -f conf$$subs.sh
20977
20978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20979cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20980_ACEOF
20981sed -n '
20982h
20983s/^/S["/; s/!.*/"]=/
20984p
20985g
20986s/^[^!]*!//
20987:repl
20988t repl
20989s/'"$ac_delim"'$//
20990t delim
20991:nl
20992h
20993s/\(.\{148\}\)..*/\1/
20994t more1
20995s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20996p
20997n
20998b repl
20999:more1
21000s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21001p
21002g
21003s/.\{148\}//
21004t nl
21005:delim
21006h
21007s/\(.\{148\}\)..*/\1/
21008t more2
21009s/["\\]/\\&/g; s/^/"/; s/$/"/
21010p
21011b
21012:more2
21013s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21014p
21015g
21016s/.\{148\}//
21017t delim
21018' <conf$$subs.awk | sed '
21019/^[^""]/{
21020  N
21021  s/\n//
21022}
21023' >>$CONFIG_STATUS || ac_write_fail=1
21024rm -f conf$$subs.awk
21025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21026_ACAWK
21027cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21028  for (key in S) S_is_set[key] = 1
21029  FS = ""
21030
21031}
21032{
21033  line = $ 0
21034  nfields = split(line, field, "@")
21035  substed = 0
21036  len = length(field[1])
21037  for (i = 2; i < nfields; i++) {
21038    key = field[i]
21039    keylen = length(key)
21040    if (S_is_set[key]) {
21041      value = S[key]
21042      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21043      len += length(value) + length(field[++i])
21044      substed = 1
21045    } else
21046      len += 1 + keylen
21047  }
21048
21049  print line
21050}
21051
21052_ACAWK
21053_ACEOF
21054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21055if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21056  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21057else
21058  cat
21059fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21060  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21061_ACEOF
21062
21063# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21064# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21065# trailing colons and then remove the whole line if VPATH becomes empty
21066# (actually we leave an empty line to preserve line numbers).
21067if test "x$srcdir" = x.; then
21068  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21069h
21070s///
21071s/^/:/
21072s/[	 ]*$/:/
21073s/:\$(srcdir):/:/g
21074s/:\${srcdir}:/:/g
21075s/:@srcdir@:/:/g
21076s/^:*//
21077s/:*$//
21078x
21079s/\(=[	 ]*\).*/\1/
21080G
21081s/\n//
21082s/^[^=]*=[	 ]*$//
21083}'
21084fi
21085
21086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21087fi # test -n "$CONFIG_FILES"
21088
21089# Set up the scripts for CONFIG_HEADERS section.
21090# No need to generate them if there are no CONFIG_HEADERS.
21091# This happens for instance with `./config.status Makefile'.
21092if test -n "$CONFIG_HEADERS"; then
21093cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21094BEGIN {
21095_ACEOF
21096
21097# Transform confdefs.h into an awk script `defines.awk', embedded as
21098# here-document in config.status, that substitutes the proper values into
21099# config.h.in to produce config.h.
21100
21101# Create a delimiter string that does not exist in confdefs.h, to ease
21102# handling of long lines.
21103ac_delim='%!_!# '
21104for ac_last_try in false false :; do
21105  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21106  if test -z "$ac_tt"; then
21107    break
21108  elif $ac_last_try; then
21109    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21110  else
21111    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21112  fi
21113done
21114
21115# For the awk script, D is an array of macro values keyed by name,
21116# likewise P contains macro parameters if any.  Preserve backslash
21117# newline sequences.
21118
21119ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21120sed -n '
21121s/.\{148\}/&'"$ac_delim"'/g
21122t rset
21123:rset
21124s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21125t def
21126d
21127:def
21128s/\\$//
21129t bsnl
21130s/["\\]/\\&/g
21131s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21132D["\1"]=" \3"/p
21133s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21134d
21135:bsnl
21136s/["\\]/\\&/g
21137s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21138D["\1"]=" \3\\\\\\n"\\/p
21139t cont
21140s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21141t cont
21142d
21143:cont
21144n
21145s/.\{148\}/&'"$ac_delim"'/g
21146t clear
21147:clear
21148s/\\$//
21149t bsnlc
21150s/["\\]/\\&/g; s/^/"/; s/$/"/p
21151d
21152:bsnlc
21153s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21154b cont
21155' <confdefs.h | sed '
21156s/'"$ac_delim"'/"\\\
21157"/g' >>$CONFIG_STATUS || ac_write_fail=1
21158
21159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21160  for (key in D) D_is_set[key] = 1
21161  FS = ""
21162}
21163/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21164  line = \$ 0
21165  split(line, arg, " ")
21166  if (arg[1] == "#") {
21167    defundef = arg[2]
21168    mac1 = arg[3]
21169  } else {
21170    defundef = substr(arg[1], 2)
21171    mac1 = arg[2]
21172  }
21173  split(mac1, mac2, "(") #)
21174  macro = mac2[1]
21175  prefix = substr(line, 1, index(line, defundef) - 1)
21176  if (D_is_set[macro]) {
21177    # Preserve the white space surrounding the "#".
21178    print prefix "define", macro P[macro] D[macro]
21179    next
21180  } else {
21181    # Replace #undef with comments.  This is necessary, for example,
21182    # in the case of _POSIX_SOURCE, which is predefined and required
21183    # on some systems where configure will not decide to define it.
21184    if (defundef == "undef") {
21185      print "/*", prefix defundef, macro, "*/"
21186      next
21187    }
21188  }
21189}
21190{ print }
21191_ACAWK
21192_ACEOF
21193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21194  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21195fi # test -n "$CONFIG_HEADERS"
21196
21197
21198eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21199shift
21200for ac_tag
21201do
21202  case $ac_tag in
21203  :[FHLC]) ac_mode=$ac_tag; continue;;
21204  esac
21205  case $ac_mode$ac_tag in
21206  :[FHL]*:*);;
21207  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21208  :[FH]-) ac_tag=-:-;;
21209  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21210  esac
21211  ac_save_IFS=$IFS
21212  IFS=:
21213  set x $ac_tag
21214  IFS=$ac_save_IFS
21215  shift
21216  ac_file=$1
21217  shift
21218
21219  case $ac_mode in
21220  :L) ac_source=$1;;
21221  :[FH])
21222    ac_file_inputs=
21223    for ac_f
21224    do
21225      case $ac_f in
21226      -) ac_f="$ac_tmp/stdin";;
21227      *) # Look for the file first in the build tree, then in the source tree
21228	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21229	 # because $ac_f cannot contain `:'.
21230	 test -f "$ac_f" ||
21231	   case $ac_f in
21232	   [\\/$]*) false;;
21233	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21234	   esac ||
21235	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21236      esac
21237      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21238      as_fn_append ac_file_inputs " '$ac_f'"
21239    done
21240
21241    # Let's still pretend it is `configure' which instantiates (i.e., don't
21242    # use $as_me), people would be surprised to read:
21243    #    /* config.h.  Generated by config.status.  */
21244    configure_input='Generated from '`
21245	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21246	`' by configure.'
21247    if test x"$ac_file" != x-; then
21248      configure_input="$ac_file.  $configure_input"
21249      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21250$as_echo "$as_me: creating $ac_file" >&6;}
21251    fi
21252    # Neutralize special characters interpreted by sed in replacement strings.
21253    case $configure_input in #(
21254    *\&* | *\|* | *\\* )
21255       ac_sed_conf_input=`$as_echo "$configure_input" |
21256       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21257    *) ac_sed_conf_input=$configure_input;;
21258    esac
21259
21260    case $ac_tag in
21261    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21262      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21263    esac
21264    ;;
21265  esac
21266
21267  ac_dir=`$as_dirname -- "$ac_file" ||
21268$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21269	 X"$ac_file" : 'X\(//\)[^/]' \| \
21270	 X"$ac_file" : 'X\(//\)$' \| \
21271	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21272$as_echo X"$ac_file" |
21273    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21274	    s//\1/
21275	    q
21276	  }
21277	  /^X\(\/\/\)[^/].*/{
21278	    s//\1/
21279	    q
21280	  }
21281	  /^X\(\/\/\)$/{
21282	    s//\1/
21283	    q
21284	  }
21285	  /^X\(\/\).*/{
21286	    s//\1/
21287	    q
21288	  }
21289	  s/.*/./; q'`
21290  as_dir="$ac_dir"; as_fn_mkdir_p
21291  ac_builddir=.
21292
21293case "$ac_dir" in
21294.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21295*)
21296  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21297  # A ".." for each directory in $ac_dir_suffix.
21298  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21299  case $ac_top_builddir_sub in
21300  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21301  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21302  esac ;;
21303esac
21304ac_abs_top_builddir=$ac_pwd
21305ac_abs_builddir=$ac_pwd$ac_dir_suffix
21306# for backward compatibility:
21307ac_top_builddir=$ac_top_build_prefix
21308
21309case $srcdir in
21310  .)  # We are building in place.
21311    ac_srcdir=.
21312    ac_top_srcdir=$ac_top_builddir_sub
21313    ac_abs_top_srcdir=$ac_pwd ;;
21314  [\\/]* | ?:[\\/]* )  # Absolute name.
21315    ac_srcdir=$srcdir$ac_dir_suffix;
21316    ac_top_srcdir=$srcdir
21317    ac_abs_top_srcdir=$srcdir ;;
21318  *) # Relative name.
21319    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21320    ac_top_srcdir=$ac_top_build_prefix$srcdir
21321    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21322esac
21323ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21324
21325
21326  case $ac_mode in
21327  :F)
21328  #
21329  # CONFIG_FILE
21330  #
21331
21332  case $INSTALL in
21333  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21334  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21335  esac
21336  ac_MKDIR_P=$MKDIR_P
21337  case $MKDIR_P in
21338  [\\/$]* | ?:[\\/]* ) ;;
21339  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21340  esac
21341_ACEOF
21342
21343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21344# If the template does not know about datarootdir, expand it.
21345# FIXME: This hack should be removed a few years after 2.60.
21346ac_datarootdir_hack=; ac_datarootdir_seen=
21347ac_sed_dataroot='
21348/datarootdir/ {
21349  p
21350  q
21351}
21352/@datadir@/p
21353/@docdir@/p
21354/@infodir@/p
21355/@localedir@/p
21356/@mandir@/p'
21357case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21358*datarootdir*) ac_datarootdir_seen=yes;;
21359*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21360  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21361$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21362_ACEOF
21363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21364  ac_datarootdir_hack='
21365  s&@datadir@&$datadir&g
21366  s&@docdir@&$docdir&g
21367  s&@infodir@&$infodir&g
21368  s&@localedir@&$localedir&g
21369  s&@mandir@&$mandir&g
21370  s&\\\${datarootdir}&$datarootdir&g' ;;
21371esac
21372_ACEOF
21373
21374# Neutralize VPATH when `$srcdir' = `.'.
21375# Shell code in configure.ac might set extrasub.
21376# FIXME: do we really want to maintain this feature?
21377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21378ac_sed_extra="$ac_vpsub
21379$extrasub
21380_ACEOF
21381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21382:t
21383/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21384s|@configure_input@|$ac_sed_conf_input|;t t
21385s&@top_builddir@&$ac_top_builddir_sub&;t t
21386s&@top_build_prefix@&$ac_top_build_prefix&;t t
21387s&@srcdir@&$ac_srcdir&;t t
21388s&@abs_srcdir@&$ac_abs_srcdir&;t t
21389s&@top_srcdir@&$ac_top_srcdir&;t t
21390s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21391s&@builddir@&$ac_builddir&;t t
21392s&@abs_builddir@&$ac_abs_builddir&;t t
21393s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21394s&@INSTALL@&$ac_INSTALL&;t t
21395s&@MKDIR_P@&$ac_MKDIR_P&;t t
21396$ac_datarootdir_hack
21397"
21398eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21399  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21400
21401test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21402  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21403  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21404      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21405  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21406which seems to be undefined.  Please make sure it is defined" >&5
21407$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21408which seems to be undefined.  Please make sure it is defined" >&2;}
21409
21410  rm -f "$ac_tmp/stdin"
21411  case $ac_file in
21412  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21413  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21414  esac \
21415  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21416 ;;
21417  :H)
21418  #
21419  # CONFIG_HEADER
21420  #
21421  if test x"$ac_file" != x-; then
21422    {
21423      $as_echo "/* $configure_input  */" \
21424      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21425    } >"$ac_tmp/config.h" \
21426      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21427    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21428      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21429$as_echo "$as_me: $ac_file is unchanged" >&6;}
21430    else
21431      rm -f "$ac_file"
21432      mv "$ac_tmp/config.h" "$ac_file" \
21433	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21434    fi
21435  else
21436    $as_echo "/* $configure_input  */" \
21437      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21438      || as_fn_error $? "could not create -" "$LINENO" 5
21439  fi
21440# Compute "$ac_file"'s index in $config_headers.
21441_am_arg="$ac_file"
21442_am_stamp_count=1
21443for _am_header in $config_headers :; do
21444  case $_am_header in
21445    $_am_arg | $_am_arg:* )
21446      break ;;
21447    * )
21448      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21449  esac
21450done
21451echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21452$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21453	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21454	 X"$_am_arg" : 'X\(//\)$' \| \
21455	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21456$as_echo X"$_am_arg" |
21457    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21458	    s//\1/
21459	    q
21460	  }
21461	  /^X\(\/\/\)[^/].*/{
21462	    s//\1/
21463	    q
21464	  }
21465	  /^X\(\/\/\)$/{
21466	    s//\1/
21467	    q
21468	  }
21469	  /^X\(\/\).*/{
21470	    s//\1/
21471	    q
21472	  }
21473	  s/.*/./; q'`/stamp-h$_am_stamp_count
21474 ;;
21475
21476  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21477$as_echo "$as_me: executing $ac_file commands" >&6;}
21478 ;;
21479  esac
21480
21481
21482  case $ac_file$ac_mode in
21483    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21484  # Older Autoconf quotes --file arguments for eval, but not when files
21485  # are listed without --file.  Let's play safe and only enable the eval
21486  # if we detect the quoting.
21487  case $CONFIG_FILES in
21488  *\'*) eval set x "$CONFIG_FILES" ;;
21489  *)   set x $CONFIG_FILES ;;
21490  esac
21491  shift
21492  for mf
21493  do
21494    # Strip MF so we end up with the name of the file.
21495    mf=`echo "$mf" | sed -e 's/:.*$//'`
21496    # Check whether this is an Automake generated Makefile or not.
21497    # We used to match only the files named 'Makefile.in', but
21498    # some people rename them; so instead we look at the file content.
21499    # Grep'ing the first line is not enough: some people post-process
21500    # each Makefile.in and add a new line on top of each file to say so.
21501    # Grep'ing the whole file is not good either: AIX grep has a line
21502    # limit of 2048, but all sed's we know have understand at least 4000.
21503    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21504      dirpart=`$as_dirname -- "$mf" ||
21505$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21506	 X"$mf" : 'X\(//\)[^/]' \| \
21507	 X"$mf" : 'X\(//\)$' \| \
21508	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21509$as_echo X"$mf" |
21510    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21511	    s//\1/
21512	    q
21513	  }
21514	  /^X\(\/\/\)[^/].*/{
21515	    s//\1/
21516	    q
21517	  }
21518	  /^X\(\/\/\)$/{
21519	    s//\1/
21520	    q
21521	  }
21522	  /^X\(\/\).*/{
21523	    s//\1/
21524	    q
21525	  }
21526	  s/.*/./; q'`
21527    else
21528      continue
21529    fi
21530    # Extract the definition of DEPDIR, am__include, and am__quote
21531    # from the Makefile without running 'make'.
21532    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21533    test -z "$DEPDIR" && continue
21534    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21535    test -z "$am__include" && continue
21536    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21537    # Find all dependency output files, they are included files with
21538    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21539    # simplest approach to changing $(DEPDIR) to its actual value in the
21540    # expansion.
21541    for file in `sed -n "
21542      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21543	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21544      # Make sure the directory exists.
21545      test -f "$dirpart/$file" && continue
21546      fdir=`$as_dirname -- "$file" ||
21547$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21548	 X"$file" : 'X\(//\)[^/]' \| \
21549	 X"$file" : 'X\(//\)$' \| \
21550	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21551$as_echo X"$file" |
21552    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21553	    s//\1/
21554	    q
21555	  }
21556	  /^X\(\/\/\)[^/].*/{
21557	    s//\1/
21558	    q
21559	  }
21560	  /^X\(\/\/\)$/{
21561	    s//\1/
21562	    q
21563	  }
21564	  /^X\(\/\).*/{
21565	    s//\1/
21566	    q
21567	  }
21568	  s/.*/./; q'`
21569      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21570      # echo "creating $dirpart/$file"
21571      echo '# dummy' > "$dirpart/$file"
21572    done
21573  done
21574}
21575 ;;
21576    "libtool":C)
21577
21578    # See if we are running on zsh, and set the options that allow our
21579    # commands through without removal of \ escapes.
21580    if test -n "${ZSH_VERSION+set}"; then
21581      setopt NO_GLOB_SUBST
21582    fi
21583
21584    cfgfile=${ofile}T
21585    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21586    $RM "$cfgfile"
21587
21588    cat <<_LT_EOF >> "$cfgfile"
21589#! $SHELL
21590# Generated automatically by $as_me ($PACKAGE) $VERSION
21591# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21592# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21593
21594# Provide generalized library-building support services.
21595# Written by Gordon Matzigkeit, 1996
21596
21597# Copyright (C) 2014 Free Software Foundation, Inc.
21598# This is free software; see the source for copying conditions.  There is NO
21599# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21600
21601# GNU Libtool is free software; you can redistribute it and/or modify
21602# it under the terms of the GNU General Public License as published by
21603# the Free Software Foundation; either version 2 of of the License, or
21604# (at your option) any later version.
21605#
21606# As a special exception to the GNU General Public License, if you
21607# distribute this file as part of a program or library that is built
21608# using GNU Libtool, you may include this file under the  same
21609# distribution terms that you use for the rest of that program.
21610#
21611# GNU Libtool is distributed in the hope that it will be useful, but
21612# WITHOUT ANY WARRANTY; without even the implied warranty of
21613# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21614# GNU General Public License for more details.
21615#
21616# You should have received a copy of the GNU General Public License
21617# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21618
21619
21620# The names of the tagged configurations supported by this script.
21621available_tags='RC '
21622
21623# Configured defaults for sys_lib_dlsearch_path munging.
21624: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21625
21626# ### BEGIN LIBTOOL CONFIG
21627
21628# Which release of libtool.m4 was used?
21629macro_version=$macro_version
21630macro_revision=$macro_revision
21631
21632# Assembler program.
21633AS=$lt_AS
21634
21635# DLL creation program.
21636DLLTOOL=$lt_DLLTOOL
21637
21638# Object dumper program.
21639OBJDUMP=$lt_OBJDUMP
21640
21641# Whether or not to build shared libraries.
21642build_libtool_libs=$enable_shared
21643
21644# Whether or not to build static libraries.
21645build_old_libs=$enable_static
21646
21647# What type of objects to build.
21648pic_mode=$pic_mode
21649
21650# Whether or not to optimize for fast installation.
21651fast_install=$enable_fast_install
21652
21653# Shared archive member basename,for filename based shared library versioning on AIX.
21654shared_archive_member_spec=$shared_archive_member_spec
21655
21656# Shell to use when invoking shell scripts.
21657SHELL=$lt_SHELL
21658
21659# An echo program that protects backslashes.
21660ECHO=$lt_ECHO
21661
21662# The PATH separator for the build system.
21663PATH_SEPARATOR=$lt_PATH_SEPARATOR
21664
21665# The host system.
21666host_alias=$host_alias
21667host=$host
21668host_os=$host_os
21669
21670# The build system.
21671build_alias=$build_alias
21672build=$build
21673build_os=$build_os
21674
21675# A sed program that does not truncate output.
21676SED=$lt_SED
21677
21678# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21679Xsed="\$SED -e 1s/^X//"
21680
21681# A grep program that handles long lines.
21682GREP=$lt_GREP
21683
21684# An ERE matcher.
21685EGREP=$lt_EGREP
21686
21687# A literal string matcher.
21688FGREP=$lt_FGREP
21689
21690# A BSD- or MS-compatible name lister.
21691NM=$lt_NM
21692
21693# Whether we need soft or hard links.
21694LN_S=$lt_LN_S
21695
21696# What is the maximum length of a command?
21697max_cmd_len=$max_cmd_len
21698
21699# Object file suffix (normally "o").
21700objext=$ac_objext
21701
21702# Executable file suffix (normally "").
21703exeext=$exeext
21704
21705# whether the shell understands "unset".
21706lt_unset=$lt_unset
21707
21708# turn spaces into newlines.
21709SP2NL=$lt_lt_SP2NL
21710
21711# turn newlines into spaces.
21712NL2SP=$lt_lt_NL2SP
21713
21714# convert \$build file names to \$host format.
21715to_host_file_cmd=$lt_cv_to_host_file_cmd
21716
21717# convert \$build files to toolchain format.
21718to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21719
21720# Method to check whether dependent libraries are shared objects.
21721deplibs_check_method=$lt_deplibs_check_method
21722
21723# Command to use when deplibs_check_method = "file_magic".
21724file_magic_cmd=$lt_file_magic_cmd
21725
21726# How to find potential files when deplibs_check_method = "file_magic".
21727file_magic_glob=$lt_file_magic_glob
21728
21729# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21730want_nocaseglob=$lt_want_nocaseglob
21731
21732# Command to associate shared and link libraries.
21733sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21734
21735# The archiver.
21736AR=$lt_AR
21737
21738# Flags to create an archive (by configure).
21739lt_ar_flags=$lt_ar_flags
21740
21741# Flags to create an archive.
21742AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21743
21744# How to feed a file listing to the archiver.
21745archiver_list_spec=$lt_archiver_list_spec
21746
21747# A symbol stripping program.
21748STRIP=$lt_STRIP
21749
21750# Commands used to install an old-style archive.
21751RANLIB=$lt_RANLIB
21752old_postinstall_cmds=$lt_old_postinstall_cmds
21753old_postuninstall_cmds=$lt_old_postuninstall_cmds
21754
21755# Whether to use a lock for old archive extraction.
21756lock_old_archive_extraction=$lock_old_archive_extraction
21757
21758# A C compiler.
21759LTCC=$lt_CC
21760
21761# LTCC compiler flags.
21762LTCFLAGS=$lt_CFLAGS
21763
21764# Take the output of nm and produce a listing of raw symbols and C names.
21765global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21766
21767# Transform the output of nm in a proper C declaration.
21768global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21769
21770# Transform the output of nm into a list of symbols to manually relocate.
21771global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21772
21773# Transform the output of nm in a C name address pair.
21774global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21775
21776# Transform the output of nm in a C name address pair when lib prefix is needed.
21777global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21778
21779# The name lister interface.
21780nm_interface=$lt_lt_cv_nm_interface
21781
21782# Specify filename containing input files for \$NM.
21783nm_file_list_spec=$lt_nm_file_list_spec
21784
21785# The root where to search for dependent libraries,and where our libraries should be installed.
21786lt_sysroot=$lt_sysroot
21787
21788# Command to truncate a binary pipe.
21789lt_truncate_bin=$lt_lt_cv_truncate_bin
21790
21791# The name of the directory that contains temporary libtool files.
21792objdir=$objdir
21793
21794# Used to examine libraries when file_magic_cmd begins with "file".
21795MAGIC_CMD=$MAGIC_CMD
21796
21797# Must we lock files when doing compilation?
21798need_locks=$lt_need_locks
21799
21800# Manifest tool.
21801MANIFEST_TOOL=$lt_MANIFEST_TOOL
21802
21803# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21804DSYMUTIL=$lt_DSYMUTIL
21805
21806# Tool to change global to local symbols on Mac OS X.
21807NMEDIT=$lt_NMEDIT
21808
21809# Tool to manipulate fat objects and archives on Mac OS X.
21810LIPO=$lt_LIPO
21811
21812# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21813OTOOL=$lt_OTOOL
21814
21815# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21816OTOOL64=$lt_OTOOL64
21817
21818# Old archive suffix (normally "a").
21819libext=$libext
21820
21821# Shared library suffix (normally ".so").
21822shrext_cmds=$lt_shrext_cmds
21823
21824# The commands to extract the exported symbol list from a shared archive.
21825extract_expsyms_cmds=$lt_extract_expsyms_cmds
21826
21827# Variables whose values should be saved in libtool wrapper scripts and
21828# restored at link time.
21829variables_saved_for_relink=$lt_variables_saved_for_relink
21830
21831# Do we need the "lib" prefix for modules?
21832need_lib_prefix=$need_lib_prefix
21833
21834# Do we need a version for libraries?
21835need_version=$need_version
21836
21837# Library versioning type.
21838version_type=$version_type
21839
21840# Shared library runtime path variable.
21841runpath_var=$runpath_var
21842
21843# Shared library path variable.
21844shlibpath_var=$shlibpath_var
21845
21846# Is shlibpath searched before the hard-coded library search path?
21847shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21848
21849# Format of library name prefix.
21850libname_spec=$lt_libname_spec
21851
21852# List of archive names.  First name is the real one, the rest are links.
21853# The last name is the one that the linker finds with -lNAME
21854library_names_spec=$lt_library_names_spec
21855
21856# The coded name of the library, if different from the real name.
21857soname_spec=$lt_soname_spec
21858
21859# Permission mode override for installation of shared libraries.
21860install_override_mode=$lt_install_override_mode
21861
21862# Command to use after installation of a shared archive.
21863postinstall_cmds=$lt_postinstall_cmds
21864
21865# Command to use after uninstallation of a shared archive.
21866postuninstall_cmds=$lt_postuninstall_cmds
21867
21868# Commands used to finish a libtool library installation in a directory.
21869finish_cmds=$lt_finish_cmds
21870
21871# As "finish_cmds", except a single script fragment to be evaled but
21872# not shown.
21873finish_eval=$lt_finish_eval
21874
21875# Whether we should hardcode library paths into libraries.
21876hardcode_into_libs=$hardcode_into_libs
21877
21878# Compile-time system search path for libraries.
21879sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21880
21881# Detected run-time system search path for libraries.
21882sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21883
21884# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21885configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21886
21887# Whether dlopen is supported.
21888dlopen_support=$enable_dlopen
21889
21890# Whether dlopen of programs is supported.
21891dlopen_self=$enable_dlopen_self
21892
21893# Whether dlopen of statically linked programs is supported.
21894dlopen_self_static=$enable_dlopen_self_static
21895
21896# Commands to strip libraries.
21897old_striplib=$lt_old_striplib
21898striplib=$lt_striplib
21899
21900
21901# The linker used to build libraries.
21902LD=$lt_LD
21903
21904# How to create reloadable object files.
21905reload_flag=$lt_reload_flag
21906reload_cmds=$lt_reload_cmds
21907
21908# Commands used to build an old-style archive.
21909old_archive_cmds=$lt_old_archive_cmds
21910
21911# A language specific compiler.
21912CC=$lt_compiler
21913
21914# Is the compiler the GNU compiler?
21915with_gcc=$GCC
21916
21917# Compiler flag to turn off builtin functions.
21918no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21919
21920# Additional compiler flags for building library objects.
21921pic_flag=$lt_lt_prog_compiler_pic
21922
21923# How to pass a linker flag through the compiler.
21924wl=$lt_lt_prog_compiler_wl
21925
21926# Compiler flag to prevent dynamic linking.
21927link_static_flag=$lt_lt_prog_compiler_static
21928
21929# Does compiler simultaneously support -c and -o options?
21930compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21931
21932# Whether or not to add -lc for building shared libraries.
21933build_libtool_need_lc=$archive_cmds_need_lc
21934
21935# Whether or not to disallow shared libs when runtime libs are static.
21936allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21937
21938# Compiler flag to allow reflexive dlopens.
21939export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21940
21941# Compiler flag to generate shared objects directly from archives.
21942whole_archive_flag_spec=$lt_whole_archive_flag_spec
21943
21944# Whether the compiler copes with passing no objects directly.
21945compiler_needs_object=$lt_compiler_needs_object
21946
21947# Create an old-style archive from a shared archive.
21948old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21949
21950# Create a temporary old-style archive to link instead of a shared archive.
21951old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21952
21953# Commands used to build a shared archive.
21954archive_cmds=$lt_archive_cmds
21955archive_expsym_cmds=$lt_archive_expsym_cmds
21956
21957# Commands used to build a loadable module if different from building
21958# a shared archive.
21959module_cmds=$lt_module_cmds
21960module_expsym_cmds=$lt_module_expsym_cmds
21961
21962# Whether we are building with GNU ld or not.
21963with_gnu_ld=$lt_with_gnu_ld
21964
21965# Flag that allows shared libraries with undefined symbols to be built.
21966allow_undefined_flag=$lt_allow_undefined_flag
21967
21968# Flag that enforces no undefined symbols.
21969no_undefined_flag=$lt_no_undefined_flag
21970
21971# Flag to hardcode \$libdir into a binary during linking.
21972# This must work even if \$libdir does not exist
21973hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21974
21975# Whether we need a single "-rpath" flag with a separated argument.
21976hardcode_libdir_separator=$lt_hardcode_libdir_separator
21977
21978# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21979# DIR into the resulting binary.
21980hardcode_direct=$hardcode_direct
21981
21982# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21983# DIR into the resulting binary and the resulting library dependency is
21984# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21985# library is relocated.
21986hardcode_direct_absolute=$hardcode_direct_absolute
21987
21988# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21989# into the resulting binary.
21990hardcode_minus_L=$hardcode_minus_L
21991
21992# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21993# into the resulting binary.
21994hardcode_shlibpath_var=$hardcode_shlibpath_var
21995
21996# Set to "yes" if building a shared library automatically hardcodes DIR
21997# into the library and all subsequent libraries and executables linked
21998# against it.
21999hardcode_automatic=$hardcode_automatic
22000
22001# Set to yes if linker adds runtime paths of dependent libraries
22002# to runtime path list.
22003inherit_rpath=$inherit_rpath
22004
22005# Whether libtool must link a program against all its dependency libraries.
22006link_all_deplibs=$link_all_deplibs
22007
22008# Set to "yes" if exported symbols are required.
22009always_export_symbols=$always_export_symbols
22010
22011# The commands to list exported symbols.
22012export_symbols_cmds=$lt_export_symbols_cmds
22013
22014# Symbols that should not be listed in the preloaded symbols.
22015exclude_expsyms=$lt_exclude_expsyms
22016
22017# Symbols that must always be exported.
22018include_expsyms=$lt_include_expsyms
22019
22020# Commands necessary for linking programs (against libraries) with templates.
22021prelink_cmds=$lt_prelink_cmds
22022
22023# Commands necessary for finishing linking programs.
22024postlink_cmds=$lt_postlink_cmds
22025
22026# Specify filename containing input files.
22027file_list_spec=$lt_file_list_spec
22028
22029# How to hardcode a shared library path into an executable.
22030hardcode_action=$hardcode_action
22031
22032# ### END LIBTOOL CONFIG
22033
22034_LT_EOF
22035
22036    cat <<'_LT_EOF' >> "$cfgfile"
22037
22038# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22039
22040# func_munge_path_list VARIABLE PATH
22041# -----------------------------------
22042# VARIABLE is name of variable containing _space_ separated list of
22043# directories to be munged by the contents of PATH, which is string
22044# having a format:
22045# "DIR[:DIR]:"
22046#       string "DIR[ DIR]" will be prepended to VARIABLE
22047# ":DIR[:DIR]"
22048#       string "DIR[ DIR]" will be appended to VARIABLE
22049# "DIRP[:DIRP]::[DIRA:]DIRA"
22050#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22051#       "DIRA[ DIRA]" will be appended to VARIABLE
22052# "DIR[:DIR]"
22053#       VARIABLE will be replaced by "DIR[ DIR]"
22054func_munge_path_list ()
22055{
22056    case x$2 in
22057    x)
22058        ;;
22059    *:)
22060        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22061        ;;
22062    x:*)
22063        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22064        ;;
22065    *::*)
22066        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22067        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22068        ;;
22069    *)
22070        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22071        ;;
22072    esac
22073}
22074
22075
22076# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22077func_cc_basename ()
22078{
22079    for cc_temp in $*""; do
22080      case $cc_temp in
22081        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22082        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22083        \-*) ;;
22084        *) break;;
22085      esac
22086    done
22087    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22088}
22089
22090
22091# ### END FUNCTIONS SHARED WITH CONFIGURE
22092
22093_LT_EOF
22094
22095  case $host_os in
22096  aix3*)
22097    cat <<\_LT_EOF >> "$cfgfile"
22098# AIX sometimes has problems with the GCC collect2 program.  For some
22099# reason, if we set the COLLECT_NAMES environment variable, the problems
22100# vanish in a puff of smoke.
22101if test set != "${COLLECT_NAMES+set}"; then
22102  COLLECT_NAMES=
22103  export COLLECT_NAMES
22104fi
22105_LT_EOF
22106    ;;
22107  esac
22108
22109
22110ltmain=$ac_aux_dir/ltmain.sh
22111
22112
22113  # We use sed instead of cat because bash on DJGPP gets confused if
22114  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22115  # text mode, it properly converts lines to CR/LF.  This bash problem
22116  # is reportedly fixed, but why not run on old versions too?
22117  sed '$q' "$ltmain" >> "$cfgfile" \
22118     || (rm -f "$cfgfile"; exit 1)
22119
22120   mv -f "$cfgfile" "$ofile" ||
22121    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22122  chmod +x "$ofile"
22123
22124
22125    cat <<_LT_EOF >> "$ofile"
22126
22127# ### BEGIN LIBTOOL TAG CONFIG: RC
22128
22129# The linker used to build libraries.
22130LD=$lt_LD_RC
22131
22132# How to create reloadable object files.
22133reload_flag=$lt_reload_flag_RC
22134reload_cmds=$lt_reload_cmds_RC
22135
22136# Commands used to build an old-style archive.
22137old_archive_cmds=$lt_old_archive_cmds_RC
22138
22139# A language specific compiler.
22140CC=$lt_compiler_RC
22141
22142# Is the compiler the GNU compiler?
22143with_gcc=$GCC_RC
22144
22145# Compiler flag to turn off builtin functions.
22146no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22147
22148# Additional compiler flags for building library objects.
22149pic_flag=$lt_lt_prog_compiler_pic_RC
22150
22151# How to pass a linker flag through the compiler.
22152wl=$lt_lt_prog_compiler_wl_RC
22153
22154# Compiler flag to prevent dynamic linking.
22155link_static_flag=$lt_lt_prog_compiler_static_RC
22156
22157# Does compiler simultaneously support -c and -o options?
22158compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22159
22160# Whether or not to add -lc for building shared libraries.
22161build_libtool_need_lc=$archive_cmds_need_lc_RC
22162
22163# Whether or not to disallow shared libs when runtime libs are static.
22164allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22165
22166# Compiler flag to allow reflexive dlopens.
22167export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22168
22169# Compiler flag to generate shared objects directly from archives.
22170whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22171
22172# Whether the compiler copes with passing no objects directly.
22173compiler_needs_object=$lt_compiler_needs_object_RC
22174
22175# Create an old-style archive from a shared archive.
22176old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22177
22178# Create a temporary old-style archive to link instead of a shared archive.
22179old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22180
22181# Commands used to build a shared archive.
22182archive_cmds=$lt_archive_cmds_RC
22183archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22184
22185# Commands used to build a loadable module if different from building
22186# a shared archive.
22187module_cmds=$lt_module_cmds_RC
22188module_expsym_cmds=$lt_module_expsym_cmds_RC
22189
22190# Whether we are building with GNU ld or not.
22191with_gnu_ld=$lt_with_gnu_ld_RC
22192
22193# Flag that allows shared libraries with undefined symbols to be built.
22194allow_undefined_flag=$lt_allow_undefined_flag_RC
22195
22196# Flag that enforces no undefined symbols.
22197no_undefined_flag=$lt_no_undefined_flag_RC
22198
22199# Flag to hardcode \$libdir into a binary during linking.
22200# This must work even if \$libdir does not exist
22201hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22202
22203# Whether we need a single "-rpath" flag with a separated argument.
22204hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22205
22206# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22207# DIR into the resulting binary.
22208hardcode_direct=$hardcode_direct_RC
22209
22210# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22211# DIR into the resulting binary and the resulting library dependency is
22212# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22213# library is relocated.
22214hardcode_direct_absolute=$hardcode_direct_absolute_RC
22215
22216# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22217# into the resulting binary.
22218hardcode_minus_L=$hardcode_minus_L_RC
22219
22220# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22221# into the resulting binary.
22222hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22223
22224# Set to "yes" if building a shared library automatically hardcodes DIR
22225# into the library and all subsequent libraries and executables linked
22226# against it.
22227hardcode_automatic=$hardcode_automatic_RC
22228
22229# Set to yes if linker adds runtime paths of dependent libraries
22230# to runtime path list.
22231inherit_rpath=$inherit_rpath_RC
22232
22233# Whether libtool must link a program against all its dependency libraries.
22234link_all_deplibs=$link_all_deplibs_RC
22235
22236# Set to "yes" if exported symbols are required.
22237always_export_symbols=$always_export_symbols_RC
22238
22239# The commands to list exported symbols.
22240export_symbols_cmds=$lt_export_symbols_cmds_RC
22241
22242# Symbols that should not be listed in the preloaded symbols.
22243exclude_expsyms=$lt_exclude_expsyms_RC
22244
22245# Symbols that must always be exported.
22246include_expsyms=$lt_include_expsyms_RC
22247
22248# Commands necessary for linking programs (against libraries) with templates.
22249prelink_cmds=$lt_prelink_cmds_RC
22250
22251# Commands necessary for finishing linking programs.
22252postlink_cmds=$lt_postlink_cmds_RC
22253
22254# Specify filename containing input files.
22255file_list_spec=$lt_file_list_spec_RC
22256
22257# How to hardcode a shared library path into an executable.
22258hardcode_action=$hardcode_action_RC
22259
22260# ### END LIBTOOL TAG CONFIG: RC
22261_LT_EOF
22262
22263 ;;
22264    "po-directories":C)
22265    for ac_file in $CONFIG_FILES; do
22266      # Support "outfile[:infile[:infile...]]"
22267      case "$ac_file" in
22268        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22269      esac
22270      # PO directories have a Makefile.in generated from Makefile.in.in.
22271      case "$ac_file" in */Makefile.in)
22272        # Adjust a relative srcdir.
22273        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22274        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22275        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22276        # In autoconf-2.13 it is called $ac_given_srcdir.
22277        # In autoconf-2.50 it is called $srcdir.
22278        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22279        case "$ac_given_srcdir" in
22280          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22281          /*) top_srcdir="$ac_given_srcdir" ;;
22282          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22283        esac
22284        # Treat a directory as a PO directory if and only if it has a
22285        # POTFILES.in file. This allows packages to have multiple PO
22286        # directories under different names or in different locations.
22287        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22288          rm -f "$ac_dir/POTFILES"
22289          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22290          gt_tab=`printf '\t'`
22291          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22292          POMAKEFILEDEPS="POTFILES.in"
22293          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22294          # on $ac_dir but don't depend on user-specified configuration
22295          # parameters.
22296          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22297            # The LINGUAS file contains the set of available languages.
22298            if test -n "$OBSOLETE_ALL_LINGUAS"; then
22299              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22300            fi
22301            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22302            # Hide the ALL_LINGUAS assignment from automake < 1.5.
22303            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22304            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22305          else
22306            # The set of available languages was given in configure.in.
22307            # Hide the ALL_LINGUAS assignment from automake < 1.5.
22308            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22309          fi
22310          # Compute POFILES
22311          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22312          # Compute UPDATEPOFILES
22313          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22314          # Compute DUMMYPOFILES
22315          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22316          # Compute GMOFILES
22317          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22318          case "$ac_given_srcdir" in
22319            .) srcdirpre= ;;
22320            *) srcdirpre='$(srcdir)/' ;;
22321          esac
22322          POFILES=
22323          UPDATEPOFILES=
22324          DUMMYPOFILES=
22325          GMOFILES=
22326          for lang in $ALL_LINGUAS; do
22327            POFILES="$POFILES $srcdirpre$lang.po"
22328            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22329            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22330            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22331          done
22332          # CATALOGS depends on both $ac_dir and the user's LINGUAS
22333          # environment variable.
22334          INST_LINGUAS=
22335          if test -n "$ALL_LINGUAS"; then
22336            for presentlang in $ALL_LINGUAS; do
22337              useit=no
22338              if test "%UNSET%" != "$LINGUAS"; then
22339                desiredlanguages="$LINGUAS"
22340              else
22341                desiredlanguages="$ALL_LINGUAS"
22342              fi
22343              for desiredlang in $desiredlanguages; do
22344                # Use the presentlang catalog if desiredlang is
22345                #   a. equal to presentlang, or
22346                #   b. a variant of presentlang (because in this case,
22347                #      presentlang can be used as a fallback for messages
22348                #      which are not translated in the desiredlang catalog).
22349                case "$desiredlang" in
22350                  "$presentlang"*) useit=yes;;
22351                esac
22352              done
22353              if test $useit = yes; then
22354                INST_LINGUAS="$INST_LINGUAS $presentlang"
22355              fi
22356            done
22357          fi
22358          CATALOGS=
22359          if test -n "$INST_LINGUAS"; then
22360            for lang in $INST_LINGUAS; do
22361              CATALOGS="$CATALOGS $lang.gmo"
22362            done
22363          fi
22364          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22365          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22366          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22367            if test -f "$f"; then
22368              case "$f" in
22369                *.orig | *.bak | *~) ;;
22370                *) cat "$f" >> "$ac_dir/Makefile" ;;
22371              esac
22372            fi
22373          done
22374        fi
22375        ;;
22376      esac
22377    done ;;
22378    "src/scripts/xzdiff":F) chmod +x src/scripts/xzdiff ;;
22379    "src/scripts/xzgrep":F) chmod +x src/scripts/xzgrep ;;
22380    "src/scripts/xzmore":F) chmod +x src/scripts/xzmore ;;
22381    "src/scripts/xzless":F) chmod +x src/scripts/xzless ;;
22382
22383  esac
22384done # for ac_tag
22385
22386
22387as_fn_exit 0
22388_ACEOF
22389ac_clean_files=$ac_clean_files_save
22390
22391test $ac_write_fail = 0 ||
22392  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22393
22394
22395# configure is writing to config.log, and then calls config.status.
22396# config.status does its own redirection, appending to config.log.
22397# Unfortunately, on DOS this fails, as config.log is still kept open
22398# by configure, so config.status won't be able to write to it; its
22399# output is simply discarded.  So we exec the FD to /dev/null,
22400# effectively closing config.log, so it can be properly (re)opened and
22401# appended to by config.status.  When coming back to configure, we
22402# need to make the FD available again.
22403if test "$no_create" != yes; then
22404  ac_cs_success=:
22405  ac_config_status_args=
22406  test "$silent" = yes &&
22407    ac_config_status_args="$ac_config_status_args --quiet"
22408  exec 5>/dev/null
22409  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22410  exec 5>>config.log
22411  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22412  # would make configure fail if this is the last instruction.
22413  $ac_cs_success || as_fn_exit 1
22414fi
22415if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22416  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22417$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22418fi
22419
22420
22421# Some warnings
22422if test x$tuklib_cv_physmem_method = xunknown; then
22423	echo
22424	echo "WARNING:"
22425	echo "No supported method to detect the amount of RAM."
22426	echo "Consider using --enable-assume-ram (if you didn't already)"
22427	echo "or make a patch to add support for this operating system."
22428fi
22429
22430if test x$tuklib_cv_cpucores_method = xunknown; then
22431	echo
22432	echo "WARNING:"
22433	echo "No supported method to detect the number of CPU cores."
22434fi
22435
22436if test "x$enable_threads$enable_small" = xnoyes; then
22437	echo
22438	echo "NOTE:"
22439	echo "liblzma will be thread unsafe due the combination"
22440	echo "of --disable-threads --enable-small."
22441fi
22442