1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for file 5.45.
4#
5# Report bugs to <christos@astron.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: christos@astron.com about your system, including any
280$0: error possibly output before this message. Then install
281$0: a modern shell, or manually run the script under such a
282$0: shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='file'
623PACKAGE_TARNAME='file'
624PACKAGE_VERSION='5.45'
625PACKAGE_STRING='file 5.45'
626PACKAGE_BUGREPORT='christos@astron.com'
627PACKAGE_URL=''
628
629# Factoring default headers for most tests.
630ac_includes_default="\
631#include <stddef.h>
632#ifdef HAVE_STDIO_H
633# include <stdio.h>
634#endif
635#ifdef HAVE_STDLIB_H
636# include <stdlib.h>
637#endif
638#ifdef HAVE_STRING_H
639# include <string.h>
640#endif
641#ifdef HAVE_INTTYPES_H
642# include <inttypes.h>
643#endif
644#ifdef HAVE_STDINT_H
645# include <stdint.h>
646#endif
647#ifdef HAVE_STRINGS_H
648# include <strings.h>
649#endif
650#ifdef HAVE_SYS_TYPES_H
651# include <sys/types.h>
652#endif
653#ifdef HAVE_SYS_STAT_H
654# include <sys/stat.h>
655#endif
656#ifdef HAVE_UNISTD_H
657# include <unistd.h>
658#endif"
659
660ac_header_c_list=
661ac_func_c_list=
662ac_subst_vars='am__EXEEXT_FALSE
663am__EXEEXT_TRUE
664LTLIBOBJS
665IS_CROSS_COMPILE_FALSE
666IS_CROSS_COMPILE_TRUE
667LIBOBJS
668HAVE_VISIBILITY
669CFLAG_VISIBILITY
670LT_SYS_LIBRARY_PATH
671OTOOL64
672OTOOL
673LIPO
674NMEDIT
675DSYMUTIL
676MANIFEST_TOOL
677RANLIB
678ac_ct_AR
679AR
680DLLTOOL
681OBJDUMP
682NM
683ac_ct_DUMPBIN
684DUMPBIN
685LD
686FGREP
687EGREP
688GREP
689SED
690LIBTOOL
691LN_S
692am__fastdepCC_FALSE
693am__fastdepCC_TRUE
694CCDEPMODE
695am__nodep
696AMDEPBACKSLASH
697AMDEP_FALSE
698AMDEP_TRUE
699am__include
700DEPDIR
701OBJEXT
702EXEEXT
703ac_ct_CC
704CPPFLAGS
705LDFLAGS
706CFLAGS
707CC
708WARNINGS
709FSECT5_FALSE
710FSECT5_TRUE
711fsect
712pkgdatadir
713MINGW_FALSE
714MINGW_TRUE
715MINGW
716host_os
717host_vendor
718host_cpu
719host
720build_os
721build_vendor
722build_cpu
723build
724MAINT
725MAINTAINER_MODE_FALSE
726MAINTAINER_MODE_TRUE
727AM_BACKSLASH
728AM_DEFAULT_VERBOSITY
729AM_DEFAULT_V
730AM_V
731CSCOPE
732ETAGS
733CTAGS
734am__untar
735am__tar
736AMTAR
737am__leading_dot
738SET_MAKE
739AWK
740mkdir_p
741MKDIR_P
742INSTALL_STRIP_PROGRAM
743STRIP
744install_sh
745MAKEINFO
746AUTOHEADER
747AUTOMAKE
748AUTOCONF
749ACLOCAL
750VERSION
751PACKAGE
752CYGPATH_W
753am__isrc
754INSTALL_DATA
755INSTALL_SCRIPT
756INSTALL_PROGRAM
757target_alias
758host_alias
759build_alias
760LIBS
761ECHO_T
762ECHO_N
763ECHO_C
764DEFS
765mandir
766localedir
767libdir
768psdir
769pdfdir
770dvidir
771htmldir
772infodir
773docdir
774oldincludedir
775includedir
776runstatedir
777localstatedir
778sharedstatedir
779sysconfdir
780datadir
781datarootdir
782libexecdir
783sbindir
784bindir
785program_transform_name
786prefix
787exec_prefix
788PACKAGE_URL
789PACKAGE_BUGREPORT
790PACKAGE_STRING
791PACKAGE_VERSION
792PACKAGE_TARNAME
793PACKAGE_NAME
794PATH_SEPARATOR
795SHELL
796am__quote'
797ac_subst_files=''
798ac_user_opts='
799enable_option_checking
800enable_silent_rules
801enable_maintainer_mode
802enable_elf
803enable_elf_core
804enable_zlib
805enable_bzlib
806enable_xzlib
807enable_zstdlib
808enable_lzlib
809enable_libseccomp
810enable_fsect_man5
811enable_dependency_tracking
812enable_static
813with_pic
814enable_shared
815enable_fast_install
816with_aix_soname
817with_gnu_ld
818with_sysroot
819enable_libtool_lock
820enable_largefile
821enable_warnings
822'
823      ac_precious_vars='build_alias
824host_alias
825target_alias
826CC
827CFLAGS
828LDFLAGS
829LIBS
830CPPFLAGS
831LT_SYS_LIBRARY_PATH'
832
833
834# Initialize some variables set by options.
835ac_init_help=
836ac_init_version=false
837ac_unrecognized_opts=
838ac_unrecognized_sep=
839# The variables have the same names as the options, with
840# dashes changed to underlines.
841cache_file=/dev/null
842exec_prefix=NONE
843no_create=
844no_recursion=
845prefix=NONE
846program_prefix=NONE
847program_suffix=NONE
848program_transform_name=s,x,x,
849silent=
850site=
851srcdir=
852verbose=
853x_includes=NONE
854x_libraries=NONE
855
856# Installation directory options.
857# These are left unexpanded so users can "make install exec_prefix=/foo"
858# and all the variables that are supposed to be based on exec_prefix
859# by default will actually change.
860# Use braces instead of parens because sh, perl, etc. also accept them.
861# (The list follows the same order as the GNU Coding Standards.)
862bindir='${exec_prefix}/bin'
863sbindir='${exec_prefix}/sbin'
864libexecdir='${exec_prefix}/libexec'
865datarootdir='${prefix}/share'
866datadir='${datarootdir}'
867sysconfdir='${prefix}/etc'
868sharedstatedir='${prefix}/com'
869localstatedir='${prefix}/var'
870runstatedir='${localstatedir}/run'
871includedir='${prefix}/include'
872oldincludedir='/usr/include'
873docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874infodir='${datarootdir}/info'
875htmldir='${docdir}'
876dvidir='${docdir}'
877pdfdir='${docdir}'
878psdir='${docdir}'
879libdir='${exec_prefix}/lib'
880localedir='${datarootdir}/locale'
881mandir='${datarootdir}/man'
882
883ac_prev=
884ac_dashdash=
885for ac_option
886do
887  # If the previous option needs an argument, assign it.
888  if test -n "$ac_prev"; then
889    eval $ac_prev=\$ac_option
890    ac_prev=
891    continue
892  fi
893
894  case $ac_option in
895  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896  *=)   ac_optarg= ;;
897  *)    ac_optarg=yes ;;
898  esac
899
900  case $ac_dashdash$ac_option in
901  --)
902    ac_dashdash=yes ;;
903
904  -bindir | --bindir | --bindi | --bind | --bin | --bi)
905    ac_prev=bindir ;;
906  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907    bindir=$ac_optarg ;;
908
909  -build | --build | --buil | --bui | --bu)
910    ac_prev=build_alias ;;
911  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912    build_alias=$ac_optarg ;;
913
914  -cache-file | --cache-file | --cache-fil | --cache-fi \
915  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916    ac_prev=cache_file ;;
917  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919    cache_file=$ac_optarg ;;
920
921  --config-cache | -C)
922    cache_file=config.cache ;;
923
924  -datadir | --datadir | --datadi | --datad)
925    ac_prev=datadir ;;
926  -datadir=* | --datadir=* | --datadi=* | --datad=*)
927    datadir=$ac_optarg ;;
928
929  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930  | --dataroo | --dataro | --datar)
931    ac_prev=datarootdir ;;
932  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934    datarootdir=$ac_optarg ;;
935
936  -disable-* | --disable-*)
937    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938    # Reject names that are not valid shell variable names.
939    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940      as_fn_error $? "invalid feature name: \`$ac_useropt'"
941    ac_useropt_orig=$ac_useropt
942    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
943    case $ac_user_opts in
944      *"
945"enable_$ac_useropt"
946"*) ;;
947      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948	 ac_unrecognized_sep=', ';;
949    esac
950    eval enable_$ac_useropt=no ;;
951
952  -docdir | --docdir | --docdi | --doc | --do)
953    ac_prev=docdir ;;
954  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955    docdir=$ac_optarg ;;
956
957  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958    ac_prev=dvidir ;;
959  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960    dvidir=$ac_optarg ;;
961
962  -enable-* | --enable-*)
963    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964    # Reject names that are not valid shell variable names.
965    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966      as_fn_error $? "invalid feature name: \`$ac_useropt'"
967    ac_useropt_orig=$ac_useropt
968    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
969    case $ac_user_opts in
970      *"
971"enable_$ac_useropt"
972"*) ;;
973      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974	 ac_unrecognized_sep=', ';;
975    esac
976    eval enable_$ac_useropt=\$ac_optarg ;;
977
978  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980  | --exec | --exe | --ex)
981    ac_prev=exec_prefix ;;
982  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984  | --exec=* | --exe=* | --ex=*)
985    exec_prefix=$ac_optarg ;;
986
987  -gas | --gas | --ga | --g)
988    # Obsolete; use --with-gas.
989    with_gas=yes ;;
990
991  -help | --help | --hel | --he | -h)
992    ac_init_help=long ;;
993  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994    ac_init_help=recursive ;;
995  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996    ac_init_help=short ;;
997
998  -host | --host | --hos | --ho)
999    ac_prev=host_alias ;;
1000  -host=* | --host=* | --hos=* | --ho=*)
1001    host_alias=$ac_optarg ;;
1002
1003  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004    ac_prev=htmldir ;;
1005  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006  | --ht=*)
1007    htmldir=$ac_optarg ;;
1008
1009  -includedir | --includedir | --includedi | --included | --include \
1010  | --includ | --inclu | --incl | --inc)
1011    ac_prev=includedir ;;
1012  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013  | --includ=* | --inclu=* | --incl=* | --inc=*)
1014    includedir=$ac_optarg ;;
1015
1016  -infodir | --infodir | --infodi | --infod | --info | --inf)
1017    ac_prev=infodir ;;
1018  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019    infodir=$ac_optarg ;;
1020
1021  -libdir | --libdir | --libdi | --libd)
1022    ac_prev=libdir ;;
1023  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024    libdir=$ac_optarg ;;
1025
1026  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027  | --libexe | --libex | --libe)
1028    ac_prev=libexecdir ;;
1029  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030  | --libexe=* | --libex=* | --libe=*)
1031    libexecdir=$ac_optarg ;;
1032
1033  -localedir | --localedir | --localedi | --localed | --locale)
1034    ac_prev=localedir ;;
1035  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036    localedir=$ac_optarg ;;
1037
1038  -localstatedir | --localstatedir | --localstatedi | --localstated \
1039  | --localstate | --localstat | --localsta | --localst | --locals)
1040    ac_prev=localstatedir ;;
1041  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043    localstatedir=$ac_optarg ;;
1044
1045  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046    ac_prev=mandir ;;
1047  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048    mandir=$ac_optarg ;;
1049
1050  -nfp | --nfp | --nf)
1051    # Obsolete; use --without-fp.
1052    with_fp=no ;;
1053
1054  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055  | --no-cr | --no-c | -n)
1056    no_create=yes ;;
1057
1058  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060    no_recursion=yes ;;
1061
1062  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064  | --oldin | --oldi | --old | --ol | --o)
1065    ac_prev=oldincludedir ;;
1066  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069    oldincludedir=$ac_optarg ;;
1070
1071  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072    ac_prev=prefix ;;
1073  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074    prefix=$ac_optarg ;;
1075
1076  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077  | --program-pre | --program-pr | --program-p)
1078    ac_prev=program_prefix ;;
1079  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081    program_prefix=$ac_optarg ;;
1082
1083  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084  | --program-suf | --program-su | --program-s)
1085    ac_prev=program_suffix ;;
1086  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088    program_suffix=$ac_optarg ;;
1089
1090  -program-transform-name | --program-transform-name \
1091  | --program-transform-nam | --program-transform-na \
1092  | --program-transform-n | --program-transform- \
1093  | --program-transform | --program-transfor \
1094  | --program-transfo | --program-transf \
1095  | --program-trans | --program-tran \
1096  | --progr-tra | --program-tr | --program-t)
1097    ac_prev=program_transform_name ;;
1098  -program-transform-name=* | --program-transform-name=* \
1099  | --program-transform-nam=* | --program-transform-na=* \
1100  | --program-transform-n=* | --program-transform-=* \
1101  | --program-transform=* | --program-transfor=* \
1102  | --program-transfo=* | --program-transf=* \
1103  | --program-trans=* | --program-tran=* \
1104  | --progr-tra=* | --program-tr=* | --program-t=*)
1105    program_transform_name=$ac_optarg ;;
1106
1107  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108    ac_prev=pdfdir ;;
1109  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110    pdfdir=$ac_optarg ;;
1111
1112  -psdir | --psdir | --psdi | --psd | --ps)
1113    ac_prev=psdir ;;
1114  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115    psdir=$ac_optarg ;;
1116
1117  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118  | -silent | --silent | --silen | --sile | --sil)
1119    silent=yes ;;
1120
1121  -runstatedir | --runstatedir | --runstatedi | --runstated \
1122  | --runstate | --runstat | --runsta | --runst | --runs \
1123  | --run | --ru | --r)
1124    ac_prev=runstatedir ;;
1125  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1126  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1127  | --run=* | --ru=* | --r=*)
1128    runstatedir=$ac_optarg ;;
1129
1130  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131    ac_prev=sbindir ;;
1132  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133  | --sbi=* | --sb=*)
1134    sbindir=$ac_optarg ;;
1135
1136  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138  | --sharedst | --shareds | --shared | --share | --shar \
1139  | --sha | --sh)
1140    ac_prev=sharedstatedir ;;
1141  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144  | --sha=* | --sh=*)
1145    sharedstatedir=$ac_optarg ;;
1146
1147  -site | --site | --sit)
1148    ac_prev=site ;;
1149  -site=* | --site=* | --sit=*)
1150    site=$ac_optarg ;;
1151
1152  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153    ac_prev=srcdir ;;
1154  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155    srcdir=$ac_optarg ;;
1156
1157  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158  | --syscon | --sysco | --sysc | --sys | --sy)
1159    ac_prev=sysconfdir ;;
1160  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162    sysconfdir=$ac_optarg ;;
1163
1164  -target | --target | --targe | --targ | --tar | --ta | --t)
1165    ac_prev=target_alias ;;
1166  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167    target_alias=$ac_optarg ;;
1168
1169  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170    verbose=yes ;;
1171
1172  -version | --version | --versio | --versi | --vers | -V)
1173    ac_init_version=: ;;
1174
1175  -with-* | --with-*)
1176    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177    # Reject names that are not valid shell variable names.
1178    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179      as_fn_error $? "invalid package name: \`$ac_useropt'"
1180    ac_useropt_orig=$ac_useropt
1181    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1182    case $ac_user_opts in
1183      *"
1184"with_$ac_useropt"
1185"*) ;;
1186      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187	 ac_unrecognized_sep=', ';;
1188    esac
1189    eval with_$ac_useropt=\$ac_optarg ;;
1190
1191  -without-* | --without-*)
1192    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193    # Reject names that are not valid shell variable names.
1194    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195      as_fn_error $? "invalid package name: \`$ac_useropt'"
1196    ac_useropt_orig=$ac_useropt
1197    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1198    case $ac_user_opts in
1199      *"
1200"with_$ac_useropt"
1201"*) ;;
1202      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203	 ac_unrecognized_sep=', ';;
1204    esac
1205    eval with_$ac_useropt=no ;;
1206
1207  --x)
1208    # Obsolete; use --with-x.
1209    with_x=yes ;;
1210
1211  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212  | --x-incl | --x-inc | --x-in | --x-i)
1213    ac_prev=x_includes ;;
1214  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216    x_includes=$ac_optarg ;;
1217
1218  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220    ac_prev=x_libraries ;;
1221  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223    x_libraries=$ac_optarg ;;
1224
1225  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226Try \`$0 --help' for more information"
1227    ;;
1228
1229  *=*)
1230    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231    # Reject names that are not valid shell variable names.
1232    case $ac_envvar in #(
1233      '' | [0-9]* | *[!_$as_cr_alnum]* )
1234      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235    esac
1236    eval $ac_envvar=\$ac_optarg
1237    export $ac_envvar ;;
1238
1239  *)
1240    # FIXME: should be removed in autoconf 3.0.
1241    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1242    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1244    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1245    ;;
1246
1247  esac
1248done
1249
1250if test -n "$ac_prev"; then
1251  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252  as_fn_error $? "missing argument to $ac_option"
1253fi
1254
1255if test -n "$ac_unrecognized_opts"; then
1256  case $enable_option_checking in
1257    no) ;;
1258    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260  esac
1261fi
1262
1263# Check all directory arguments for consistency.
1264for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265		datadir sysconfdir sharedstatedir localstatedir includedir \
1266		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267		libdir localedir mandir runstatedir
1268do
1269  eval ac_val=\$$ac_var
1270  # Remove trailing slashes.
1271  case $ac_val in
1272    */ )
1273      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274      eval $ac_var=\$ac_val;;
1275  esac
1276  # Be sure to have absolute directory names.
1277  case $ac_val in
1278    [\\/$]* | ?:[\\/]* )  continue;;
1279    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280  esac
1281  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282done
1283
1284# There might be people who depend on the old broken behavior: `$host'
1285# used to hold the argument of --host etc.
1286# FIXME: To remove some day.
1287build=$build_alias
1288host=$host_alias
1289target=$target_alias
1290
1291# FIXME: To remove some day.
1292if test "x$host_alias" != x; then
1293  if test "x$build_alias" = x; then
1294    cross_compiling=maybe
1295  elif test "x$build_alias" != "x$host_alias"; then
1296    cross_compiling=yes
1297  fi
1298fi
1299
1300ac_tool_prefix=
1301test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303test "$silent" = yes && exec 6>/dev/null
1304
1305
1306ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307ac_ls_di=`ls -di .` &&
1308ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309  as_fn_error $? "working directory cannot be determined"
1310test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311  as_fn_error $? "pwd does not report name of working directory"
1312
1313
1314# Find the source files, if location was not specified.
1315if test -z "$srcdir"; then
1316  ac_srcdir_defaulted=yes
1317  # Try the directory containing this script, then the parent directory.
1318  ac_confdir=`$as_dirname -- "$as_myself" ||
1319$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320	 X"$as_myself" : 'X\(//\)[^/]' \| \
1321	 X"$as_myself" : 'X\(//\)$' \| \
1322	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323printf "%s\n" X"$as_myself" |
1324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325	    s//\1/
1326	    q
1327	  }
1328	  /^X\(\/\/\)[^/].*/{
1329	    s//\1/
1330	    q
1331	  }
1332	  /^X\(\/\/\)$/{
1333	    s//\1/
1334	    q
1335	  }
1336	  /^X\(\/\).*/{
1337	    s//\1/
1338	    q
1339	  }
1340	  s/.*/./; q'`
1341  srcdir=$ac_confdir
1342  if test ! -r "$srcdir/$ac_unique_file"; then
1343    srcdir=..
1344  fi
1345else
1346  ac_srcdir_defaulted=no
1347fi
1348if test ! -r "$srcdir/$ac_unique_file"; then
1349  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351fi
1352ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353ac_abs_confdir=`(
1354	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355	pwd)`
1356# When building in place, set srcdir=.
1357if test "$ac_abs_confdir" = "$ac_pwd"; then
1358  srcdir=.
1359fi
1360# Remove unnecessary trailing slashes from srcdir.
1361# Double slashes in file names in object file debugging info
1362# mess up M-x gdb in Emacs.
1363case $srcdir in
1364*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365esac
1366for ac_var in $ac_precious_vars; do
1367  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368  eval ac_env_${ac_var}_value=\$${ac_var}
1369  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371done
1372
1373#
1374# Report the --help message.
1375#
1376if test "$ac_init_help" = "long"; then
1377  # Omit some internal or obsolete options to make the list less imposing.
1378  # This message is too long to be a string in the A/UX 3.1 sh.
1379  cat <<_ACEOF
1380\`configure' configures file 5.45 to adapt to many kinds of systems.
1381
1382Usage: $0 [OPTION]... [VAR=VALUE]...
1383
1384To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385VAR=VALUE.  See below for descriptions of some of the useful variables.
1386
1387Defaults for the options are specified in brackets.
1388
1389Configuration:
1390  -h, --help              display this help and exit
1391      --help=short        display options specific to this package
1392      --help=recursive    display the short help of all the included packages
1393  -V, --version           display version information and exit
1394  -q, --quiet, --silent   do not print \`checking ...' messages
1395      --cache-file=FILE   cache test results in FILE [disabled]
1396  -C, --config-cache      alias for \`--cache-file=config.cache'
1397  -n, --no-create         do not create output files
1398      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1399
1400Installation directories:
1401  --prefix=PREFIX         install architecture-independent files in PREFIX
1402                          [$ac_default_prefix]
1403  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1404                          [PREFIX]
1405
1406By default, \`make install' will install all the files in
1407\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1408an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409for instance \`--prefix=\$HOME'.
1410
1411For better control, use the options below.
1412
1413Fine tuning of the installation directories:
1414  --bindir=DIR            user executables [EPREFIX/bin]
1415  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1416  --libexecdir=DIR        program executables [EPREFIX/libexec]
1417  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1418  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1419  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1420  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1421  --libdir=DIR            object code libraries [EPREFIX/lib]
1422  --includedir=DIR        C header files [PREFIX/include]
1423  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1424  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1425  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1426  --infodir=DIR           info documentation [DATAROOTDIR/info]
1427  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1428  --mandir=DIR            man documentation [DATAROOTDIR/man]
1429  --docdir=DIR            documentation root [DATAROOTDIR/doc/file]
1430  --htmldir=DIR           html documentation [DOCDIR]
1431  --dvidir=DIR            dvi documentation [DOCDIR]
1432  --pdfdir=DIR            pdf documentation [DOCDIR]
1433  --psdir=DIR             ps documentation [DOCDIR]
1434_ACEOF
1435
1436  cat <<\_ACEOF
1437
1438Program names:
1439  --program-prefix=PREFIX            prepend PREFIX to installed program names
1440  --program-suffix=SUFFIX            append SUFFIX to installed program names
1441  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1442
1443System types:
1444  --build=BUILD     configure for building on BUILD [guessed]
1445  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1446_ACEOF
1447fi
1448
1449if test -n "$ac_init_help"; then
1450  case $ac_init_help in
1451     short | recursive ) echo "Configuration of file 5.45:";;
1452   esac
1453  cat <<\_ACEOF
1454
1455Optional Features:
1456  --disable-option-checking  ignore unrecognized --enable/--with options
1457  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1458  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1459  --enable-silent-rules   less verbose build output (undo: "make V=1")
1460  --disable-silent-rules  verbose build output (undo: "make V=0")
1461  --enable-maintainer-mode
1462                          enable make rules and dependencies not useful (and
1463                          sometimes confusing) to the casual installer
1464  --disable-elf            disable builtin ELF support
1465  --disable-elf-core       disable ELF core file support
1466  --disable-zlib          disable zlib compression support [default=auto]
1467  --disable-bzlib         disable bz2lib compression support [default=auto]
1468  --disable-xzlib         disable liblzma/xz compression support
1469                          [default=auto]
1470  --disable-zstdlib       disable zstdlib compression support [default=auto]
1471  --disable-lzlib         disable liblz (lzip) compression support
1472                          [default=auto]
1473  --disable-libseccomp    disable libseccomp sandboxing [default=auto]
1474  --enable-fsect-man5      enable file formats in man section 5
1475  --enable-dependency-tracking
1476                          do not reject slow dependency extractors
1477  --disable-dependency-tracking
1478                          speeds up one-time build
1479  --enable-static[=PKGS]  build static libraries [default=no]
1480  --enable-shared[=PKGS]  build shared libraries [default=yes]
1481  --enable-fast-install[=PKGS]
1482                          optimize for fast installation [default=yes]
1483  --disable-libtool-lock  avoid locking (might break parallel builds)
1484  --disable-largefile     omit support for large files
1485  --disable-warnings	disable compiler warnings
1486
1487Optional Packages:
1488  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1489  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1490  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1491                          both]
1492  --with-aix-soname=aix|svr4|both
1493                          shared library versioning (aka "SONAME") variant to
1494                          provide on AIX, [default=aix].
1495  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1496  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1497                          compiler's sysroot if not specified).
1498
1499Some influential environment variables:
1500  CC          C compiler command
1501  CFLAGS      C compiler flags
1502  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1503              nonstandard directory <lib dir>
1504  LIBS        libraries to pass to the linker, e.g. -l<library>
1505  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506              you have headers in a nonstandard directory <include dir>
1507  LT_SYS_LIBRARY_PATH
1508              User-defined run-time library search path.
1509
1510Use these variables to override the choices made by `configure' or to help
1511it to find libraries and programs with nonstandard names/locations.
1512
1513Report bugs to <christos@astron.com>.
1514_ACEOF
1515ac_status=$?
1516fi
1517
1518if test "$ac_init_help" = "recursive"; then
1519  # If there are subdirs, report their specific --help.
1520  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521    test -d "$ac_dir" ||
1522      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523      continue
1524    ac_builddir=.
1525
1526case "$ac_dir" in
1527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528*)
1529  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1530  # A ".." for each directory in $ac_dir_suffix.
1531  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532  case $ac_top_builddir_sub in
1533  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535  esac ;;
1536esac
1537ac_abs_top_builddir=$ac_pwd
1538ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539# for backward compatibility:
1540ac_top_builddir=$ac_top_build_prefix
1541
1542case $srcdir in
1543  .)  # We are building in place.
1544    ac_srcdir=.
1545    ac_top_srcdir=$ac_top_builddir_sub
1546    ac_abs_top_srcdir=$ac_pwd ;;
1547  [\\/]* | ?:[\\/]* )  # Absolute name.
1548    ac_srcdir=$srcdir$ac_dir_suffix;
1549    ac_top_srcdir=$srcdir
1550    ac_abs_top_srcdir=$srcdir ;;
1551  *) # Relative name.
1552    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553    ac_top_srcdir=$ac_top_build_prefix$srcdir
1554    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555esac
1556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558    cd "$ac_dir" || { ac_status=$?; continue; }
1559    # Check for configure.gnu first; this name is used for a wrapper for
1560    # Metaconfig's "Configure" on case-insensitive file systems.
1561    if test -f "$ac_srcdir/configure.gnu"; then
1562      echo &&
1563      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564    elif test -f "$ac_srcdir/configure"; then
1565      echo &&
1566      $SHELL "$ac_srcdir/configure" --help=recursive
1567    else
1568      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569    fi || ac_status=$?
1570    cd "$ac_pwd" || { ac_status=$?; break; }
1571  done
1572fi
1573
1574test -n "$ac_init_help" && exit $ac_status
1575if $ac_init_version; then
1576  cat <<\_ACEOF
1577file configure 5.45
1578generated by GNU Autoconf 2.71
1579
1580Copyright (C) 2021 Free Software Foundation, Inc.
1581This configure script is free software; the Free Software Foundation
1582gives unlimited permission to copy, distribute and modify it.
1583_ACEOF
1584  exit
1585fi
1586
1587## ------------------------ ##
1588## Autoconf initialization. ##
1589## ------------------------ ##
1590
1591# ac_fn_c_try_compile LINENO
1592# --------------------------
1593# Try to compile conftest.$ac_ext, and return whether this succeeded.
1594ac_fn_c_try_compile ()
1595{
1596  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597  rm -f conftest.$ac_objext conftest.beam
1598  if { { ac_try="$ac_compile"
1599case "(($ac_try" in
1600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601  *) ac_try_echo=$ac_try;;
1602esac
1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604printf "%s\n" "$ac_try_echo"; } >&5
1605  (eval "$ac_compile") 2>conftest.err
1606  ac_status=$?
1607  if test -s conftest.err; then
1608    grep -v '^ *+' conftest.err >conftest.er1
1609    cat conftest.er1 >&5
1610    mv -f conftest.er1 conftest.err
1611  fi
1612  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613  test $ac_status = 0; } && {
1614	 test -z "$ac_c_werror_flag" ||
1615	 test ! -s conftest.err
1616       } && test -s conftest.$ac_objext
1617then :
1618  ac_retval=0
1619else $as_nop
1620  printf "%s\n" "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
1622
1623	ac_retval=1
1624fi
1625  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626  as_fn_set_status $ac_retval
1627
1628} # ac_fn_c_try_compile
1629
1630# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631# -------------------------------------------------------
1632# Tests whether HEADER exists and can be compiled using the include files in
1633# INCLUDES, setting the cache variable VAR accordingly.
1634ac_fn_c_check_header_compile ()
1635{
1636  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638printf %s "checking for $2... " >&6; }
1639if eval test \${$3+y}
1640then :
1641  printf %s "(cached) " >&6
1642else $as_nop
1643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644/* end confdefs.h.  */
1645$4
1646#include <$2>
1647_ACEOF
1648if ac_fn_c_try_compile "$LINENO"
1649then :
1650  eval "$3=yes"
1651else $as_nop
1652  eval "$3=no"
1653fi
1654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1655fi
1656eval ac_res=\$$3
1657	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658printf "%s\n" "$ac_res" >&6; }
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660
1661} # ac_fn_c_check_header_compile
1662
1663# ac_fn_c_try_run LINENO
1664# ----------------------
1665# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1666# executables *can* be run.
1667ac_fn_c_try_run ()
1668{
1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670  if { { ac_try="$ac_link"
1671case "(($ac_try" in
1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673  *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676printf "%s\n" "$ac_try_echo"; } >&5
1677  (eval "$ac_link") 2>&5
1678  ac_status=$?
1679  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1681  { { case "(($ac_try" in
1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683  *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686printf "%s\n" "$ac_try_echo"; } >&5
1687  (eval "$ac_try") 2>&5
1688  ac_status=$?
1689  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690  test $ac_status = 0; }; }
1691then :
1692  ac_retval=0
1693else $as_nop
1694  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1695       printf "%s\n" "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698       ac_retval=$ac_status
1699fi
1700  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702  as_fn_set_status $ac_retval
1703
1704} # ac_fn_c_try_run
1705
1706# ac_fn_c_try_link LINENO
1707# -----------------------
1708# Try to link conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_c_try_link ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1713  if { { ac_try="$ac_link"
1714case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719printf "%s\n" "$ac_try_echo"; } >&5
1720  (eval "$ac_link") 2>conftest.err
1721  ac_status=$?
1722  if test -s conftest.err; then
1723    grep -v '^ *+' conftest.err >conftest.er1
1724    cat conftest.er1 >&5
1725    mv -f conftest.er1 conftest.err
1726  fi
1727  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728  test $ac_status = 0; } && {
1729	 test -z "$ac_c_werror_flag" ||
1730	 test ! -s conftest.err
1731       } && test -s conftest$ac_exeext && {
1732	 test "$cross_compiling" = yes ||
1733	 test -x conftest$ac_exeext
1734       }
1735then :
1736  ac_retval=0
1737else $as_nop
1738  printf "%s\n" "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741	ac_retval=1
1742fi
1743  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745  # interfere with the next link command; also delete a directory that is
1746  # left behind by Apple's compiler.  We do this before executing the actions.
1747  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749  as_fn_set_status $ac_retval
1750
1751} # ac_fn_c_try_link
1752
1753# ac_fn_c_check_func LINENO FUNC VAR
1754# ----------------------------------
1755# Tests whether FUNC exists, setting the cache variable VAR accordingly
1756ac_fn_c_check_func ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760printf %s "checking for $2... " >&6; }
1761if eval test \${$3+y}
1762then :
1763  printf %s "(cached) " >&6
1764else $as_nop
1765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h.  */
1767/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1769#define $2 innocuous_$2
1770
1771/* System header to define __stub macros and hopefully few prototypes,
1772   which can conflict with char $2 (); below.  */
1773
1774#include <limits.h>
1775#undef $2
1776
1777/* Override any GCC internal prototype to avoid an error.
1778   Use char because int might match the return type of a GCC
1779   builtin and then its argument prototype would still apply.  */
1780#ifdef __cplusplus
1781extern "C"
1782#endif
1783char $2 ();
1784/* The GNU C library defines this for functions which it implements
1785    to always fail with ENOSYS.  Some functions are actually named
1786    something starting with __ and the normal name is an alias.  */
1787#if defined __stub_$2 || defined __stub___$2
1788choke me
1789#endif
1790
1791int
1792main (void)
1793{
1794return $2 ();
1795  ;
1796  return 0;
1797}
1798_ACEOF
1799if ac_fn_c_try_link "$LINENO"
1800then :
1801  eval "$3=yes"
1802else $as_nop
1803  eval "$3=no"
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.beam \
1806    conftest$ac_exeext conftest.$ac_ext
1807fi
1808eval ac_res=\$$3
1809	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810printf "%s\n" "$ac_res" >&6; }
1811  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813} # ac_fn_c_check_func
1814
1815# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1816# -------------------------------------------
1817# Tests whether TYPE exists after having included INCLUDES, setting cache
1818# variable VAR accordingly.
1819ac_fn_c_check_type ()
1820{
1821  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823printf %s "checking for $2... " >&6; }
1824if eval test \${$3+y}
1825then :
1826  printf %s "(cached) " >&6
1827else $as_nop
1828  eval "$3=no"
1829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h.  */
1831$4
1832int
1833main (void)
1834{
1835if (sizeof ($2))
1836	 return 0;
1837  ;
1838  return 0;
1839}
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"
1842then :
1843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h.  */
1845$4
1846int
1847main (void)
1848{
1849if (sizeof (($2)))
1850	    return 0;
1851  ;
1852  return 0;
1853}
1854_ACEOF
1855if ac_fn_c_try_compile "$LINENO"
1856then :
1857
1858else $as_nop
1859  eval "$3=yes"
1860fi
1861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1862fi
1863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1864fi
1865eval ac_res=\$$3
1866	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867printf "%s\n" "$ac_res" >&6; }
1868  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870} # ac_fn_c_check_type
1871
1872# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1873# ----------------------------------------------------
1874# Tries to find if the field MEMBER exists in type AGGR, after including
1875# INCLUDES, setting cache variable VAR accordingly.
1876ac_fn_c_check_member ()
1877{
1878  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1880printf %s "checking for $2.$3... " >&6; }
1881if eval test \${$4+y}
1882then :
1883  printf %s "(cached) " >&6
1884else $as_nop
1885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h.  */
1887$5
1888int
1889main (void)
1890{
1891static $2 ac_aggr;
1892if (ac_aggr.$3)
1893return 0;
1894  ;
1895  return 0;
1896}
1897_ACEOF
1898if ac_fn_c_try_compile "$LINENO"
1899then :
1900  eval "$4=yes"
1901else $as_nop
1902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h.  */
1904$5
1905int
1906main (void)
1907{
1908static $2 ac_aggr;
1909if (sizeof ac_aggr.$3)
1910return 0;
1911  ;
1912  return 0;
1913}
1914_ACEOF
1915if ac_fn_c_try_compile "$LINENO"
1916then :
1917  eval "$4=yes"
1918else $as_nop
1919  eval "$4=no"
1920fi
1921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1924fi
1925eval ac_res=\$$4
1926	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927printf "%s\n" "$ac_res" >&6; }
1928  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930} # ac_fn_c_check_member
1931
1932# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1933# ------------------------------------------------------------------
1934# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1935# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1936ac_fn_check_decl ()
1937{
1938  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939  as_decl_name=`echo $2|sed 's/ *(.*//'`
1940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1941printf %s "checking whether $as_decl_name is declared... " >&6; }
1942if eval test \${$3+y}
1943then :
1944  printf %s "(cached) " >&6
1945else $as_nop
1946  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1947  eval ac_save_FLAGS=\$$6
1948  as_fn_append $6 " $5"
1949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h.  */
1951$4
1952int
1953main (void)
1954{
1955#ifndef $as_decl_name
1956#ifdef __cplusplus
1957  (void) $as_decl_use;
1958#else
1959  (void) $as_decl_name;
1960#endif
1961#endif
1962
1963  ;
1964  return 0;
1965}
1966_ACEOF
1967if ac_fn_c_try_compile "$LINENO"
1968then :
1969  eval "$3=yes"
1970else $as_nop
1971  eval "$3=no"
1972fi
1973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1974  eval $6=\$ac_save_FLAGS
1975
1976fi
1977eval ac_res=\$$3
1978	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979printf "%s\n" "$ac_res" >&6; }
1980  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982} # ac_fn_check_decl
1983
1984# ac_fn_c_find_uintX_t LINENO BITS VAR
1985# ------------------------------------
1986# Finds an unsigned integer type with width BITS, setting cache variable VAR
1987# accordingly.
1988ac_fn_c_find_uintX_t ()
1989{
1990  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1992printf %s "checking for uint$2_t... " >&6; }
1993if eval test \${$3+y}
1994then :
1995  printf %s "(cached) " >&6
1996else $as_nop
1997  eval "$3=no"
1998     # Order is important - never check a type that is potentially smaller
1999     # than half of the expected target width.
2000     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2001	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2002       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h.  */
2004$ac_includes_default
2005int
2006main (void)
2007{
2008static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2009test_array [0] = 0;
2010return test_array [0];
2011
2012  ;
2013  return 0;
2014}
2015_ACEOF
2016if ac_fn_c_try_compile "$LINENO"
2017then :
2018  case $ac_type in #(
2019  uint$2_t) :
2020    eval "$3=yes" ;; #(
2021  *) :
2022    eval "$3=\$ac_type" ;;
2023esac
2024fi
2025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2026       if eval test \"x\$"$3"\" = x"no"
2027then :
2028
2029else $as_nop
2030  break
2031fi
2032     done
2033fi
2034eval ac_res=\$$3
2035	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036printf "%s\n" "$ac_res" >&6; }
2037  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038
2039} # ac_fn_c_find_uintX_t
2040
2041# ac_fn_c_find_intX_t LINENO BITS VAR
2042# -----------------------------------
2043# Finds a signed integer type with width BITS, setting cache variable VAR
2044# accordingly.
2045ac_fn_c_find_intX_t ()
2046{
2047  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2049printf %s "checking for int$2_t... " >&6; }
2050if eval test \${$3+y}
2051then :
2052  printf %s "(cached) " >&6
2053else $as_nop
2054  eval "$3=no"
2055     # Order is important - never check a type that is potentially smaller
2056     # than half of the expected target width.
2057     for ac_type in int$2_t 'int' 'long int' \
2058	 'long long int' 'short int' 'signed char'; do
2059       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h.  */
2061$ac_includes_default
2062	     enum { N = $2 / 2 - 1 };
2063int
2064main (void)
2065{
2066static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2067test_array [0] = 0;
2068return test_array [0];
2069
2070  ;
2071  return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"
2075then :
2076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h.  */
2078$ac_includes_default
2079	        enum { N = $2 / 2 - 1 };
2080int
2081main (void)
2082{
2083static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2084		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2085test_array [0] = 0;
2086return test_array [0];
2087
2088  ;
2089  return 0;
2090}
2091_ACEOF
2092if ac_fn_c_try_compile "$LINENO"
2093then :
2094
2095else $as_nop
2096  case $ac_type in #(
2097  int$2_t) :
2098    eval "$3=yes" ;; #(
2099  *) :
2100    eval "$3=\$ac_type" ;;
2101esac
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2106       if eval test \"x\$"$3"\" = x"no"
2107then :
2108
2109else $as_nop
2110  break
2111fi
2112     done
2113fi
2114eval ac_res=\$$3
2115	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116printf "%s\n" "$ac_res" >&6; }
2117  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118
2119} # ac_fn_c_find_intX_t
2120ac_configure_args_raw=
2121for ac_arg
2122do
2123  case $ac_arg in
2124  *\'*)
2125    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2126  esac
2127  as_fn_append ac_configure_args_raw " '$ac_arg'"
2128done
2129
2130case $ac_configure_args_raw in
2131  *$as_nl*)
2132    ac_safe_unquote= ;;
2133  *)
2134    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2135    ac_unsafe_a="$ac_unsafe_z#~"
2136    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2137    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2138esac
2139
2140cat >config.log <<_ACEOF
2141This file contains any messages produced by compilers while
2142running configure, to aid debugging if configure makes a mistake.
2143
2144It was created by file $as_me 5.45, which was
2145generated by GNU Autoconf 2.71.  Invocation command line was
2146
2147  $ $0$ac_configure_args_raw
2148
2149_ACEOF
2150exec 5>>config.log
2151{
2152cat <<_ASUNAME
2153## --------- ##
2154## Platform. ##
2155## --------- ##
2156
2157hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2158uname -m = `(uname -m) 2>/dev/null || echo unknown`
2159uname -r = `(uname -r) 2>/dev/null || echo unknown`
2160uname -s = `(uname -s) 2>/dev/null || echo unknown`
2161uname -v = `(uname -v) 2>/dev/null || echo unknown`
2162
2163/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2164/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2165
2166/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2167/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2168/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2169/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2170/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2171/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2172/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2173
2174_ASUNAME
2175
2176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177for as_dir in $PATH
2178do
2179  IFS=$as_save_IFS
2180  case $as_dir in #(((
2181    '') as_dir=./ ;;
2182    */) ;;
2183    *) as_dir=$as_dir/ ;;
2184  esac
2185    printf "%s\n" "PATH: $as_dir"
2186  done
2187IFS=$as_save_IFS
2188
2189} >&5
2190
2191cat >&5 <<_ACEOF
2192
2193
2194## ----------- ##
2195## Core tests. ##
2196## ----------- ##
2197
2198_ACEOF
2199
2200
2201# Keep a trace of the command line.
2202# Strip out --no-create and --no-recursion so they do not pile up.
2203# Strip out --silent because we don't want to record it for future runs.
2204# Also quote any args containing shell meta-characters.
2205# Make two passes to allow for proper duplicate-argument suppression.
2206ac_configure_args=
2207ac_configure_args0=
2208ac_configure_args1=
2209ac_must_keep_next=false
2210for ac_pass in 1 2
2211do
2212  for ac_arg
2213  do
2214    case $ac_arg in
2215    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2216    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2217    | -silent | --silent | --silen | --sile | --sil)
2218      continue ;;
2219    *\'*)
2220      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2221    esac
2222    case $ac_pass in
2223    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2224    2)
2225      as_fn_append ac_configure_args1 " '$ac_arg'"
2226      if test $ac_must_keep_next = true; then
2227	ac_must_keep_next=false # Got value, back to normal.
2228      else
2229	case $ac_arg in
2230	  *=* | --config-cache | -C | -disable-* | --disable-* \
2231	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2232	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2233	  | -with-* | --with-* | -without-* | --without-* | --x)
2234	    case "$ac_configure_args0 " in
2235	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2236	    esac
2237	    ;;
2238	  -* ) ac_must_keep_next=true ;;
2239	esac
2240      fi
2241      as_fn_append ac_configure_args " '$ac_arg'"
2242      ;;
2243    esac
2244  done
2245done
2246{ ac_configure_args0=; unset ac_configure_args0;}
2247{ ac_configure_args1=; unset ac_configure_args1;}
2248
2249# When interrupted or exit'd, cleanup temporary files, and complete
2250# config.log.  We remove comments because anyway the quotes in there
2251# would cause problems or look ugly.
2252# WARNING: Use '\'' to represent an apostrophe within the trap.
2253# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2254trap 'exit_status=$?
2255  # Sanitize IFS.
2256  IFS=" ""	$as_nl"
2257  # Save into config.log some information that might help in debugging.
2258  {
2259    echo
2260
2261    printf "%s\n" "## ---------------- ##
2262## Cache variables. ##
2263## ---------------- ##"
2264    echo
2265    # The following way of writing the cache mishandles newlines in values,
2266(
2267  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2268    eval ac_val=\$$ac_var
2269    case $ac_val in #(
2270    *${as_nl}*)
2271      case $ac_var in #(
2272      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2273printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2274      esac
2275      case $ac_var in #(
2276      _ | IFS | as_nl) ;; #(
2277      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2278      *) { eval $ac_var=; unset $ac_var;} ;;
2279      esac ;;
2280    esac
2281  done
2282  (set) 2>&1 |
2283    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2284    *${as_nl}ac_space=\ *)
2285      sed -n \
2286	"s/'\''/'\''\\\\'\'''\''/g;
2287	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2288      ;; #(
2289    *)
2290      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2291      ;;
2292    esac |
2293    sort
2294)
2295    echo
2296
2297    printf "%s\n" "## ----------------- ##
2298## Output variables. ##
2299## ----------------- ##"
2300    echo
2301    for ac_var in $ac_subst_vars
2302    do
2303      eval ac_val=\$$ac_var
2304      case $ac_val in
2305      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2306      esac
2307      printf "%s\n" "$ac_var='\''$ac_val'\''"
2308    done | sort
2309    echo
2310
2311    if test -n "$ac_subst_files"; then
2312      printf "%s\n" "## ------------------- ##
2313## File substitutions. ##
2314## ------------------- ##"
2315      echo
2316      for ac_var in $ac_subst_files
2317      do
2318	eval ac_val=\$$ac_var
2319	case $ac_val in
2320	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2321	esac
2322	printf "%s\n" "$ac_var='\''$ac_val'\''"
2323      done | sort
2324      echo
2325    fi
2326
2327    if test -s confdefs.h; then
2328      printf "%s\n" "## ----------- ##
2329## confdefs.h. ##
2330## ----------- ##"
2331      echo
2332      cat confdefs.h
2333      echo
2334    fi
2335    test "$ac_signal" != 0 &&
2336      printf "%s\n" "$as_me: caught signal $ac_signal"
2337    printf "%s\n" "$as_me: exit $exit_status"
2338  } >&5
2339  rm -f core *.core core.conftest.* &&
2340    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2341    exit $exit_status
2342' 0
2343for ac_signal in 1 2 13 15; do
2344  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2345done
2346ac_signal=0
2347
2348# confdefs.h avoids OS command line length limits that DEFS can exceed.
2349rm -f -r conftest* confdefs.h
2350
2351printf "%s\n" "/* confdefs.h */" > confdefs.h
2352
2353# Predefined preprocessor variables.
2354
2355printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2356
2357printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2358
2359printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2360
2361printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2362
2363printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2364
2365printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2366
2367
2368# Let the site file select an alternate cache file if it wants to.
2369# Prefer an explicitly selected file to automatically selected ones.
2370if test -n "$CONFIG_SITE"; then
2371  ac_site_files="$CONFIG_SITE"
2372elif test "x$prefix" != xNONE; then
2373  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2374else
2375  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2376fi
2377
2378for ac_site_file in $ac_site_files
2379do
2380  case $ac_site_file in #(
2381  */*) :
2382     ;; #(
2383  *) :
2384    ac_site_file=./$ac_site_file ;;
2385esac
2386  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2387    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2388printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2389    sed 's/^/| /' "$ac_site_file" >&5
2390    . "$ac_site_file" \
2391      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2392printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2393as_fn_error $? "failed to load site script $ac_site_file
2394See \`config.log' for more details" "$LINENO" 5; }
2395  fi
2396done
2397
2398if test -r "$cache_file"; then
2399  # Some versions of bash will fail to source /dev/null (special files
2400  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2401  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2402    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2403printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2404    case $cache_file in
2405      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2406      *)                      . "./$cache_file";;
2407    esac
2408  fi
2409else
2410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2411printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2412  >$cache_file
2413fi
2414
2415# Test code for whether the C compiler supports C89 (global declarations)
2416ac_c_conftest_c89_globals='
2417/* Does the compiler advertise C89 conformance?
2418   Do not test the value of __STDC__, because some compilers set it to 0
2419   while being otherwise adequately conformant. */
2420#if !defined __STDC__
2421# error "Compiler does not advertise C89 conformance"
2422#endif
2423
2424#include <stddef.h>
2425#include <stdarg.h>
2426struct stat;
2427/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2428struct buf { int x; };
2429struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2430static char *e (p, i)
2431     char **p;
2432     int i;
2433{
2434  return p[i];
2435}
2436static char *f (char * (*g) (char **, int), char **p, ...)
2437{
2438  char *s;
2439  va_list v;
2440  va_start (v,p);
2441  s = g (p, va_arg (v,int));
2442  va_end (v);
2443  return s;
2444}
2445
2446/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2447   function prototypes and stuff, but not \xHH hex character constants.
2448   These do not provoke an error unfortunately, instead are silently treated
2449   as an "x".  The following induces an error, until -std is added to get
2450   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2451   array size at least.  It is necessary to write \x00 == 0 to get something
2452   that is true only with -std.  */
2453int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2454
2455/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2456   inside strings and character constants.  */
2457#define FOO(x) '\''x'\''
2458int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2459
2460int test (int i, double x);
2461struct s1 {int (*f) (int a);};
2462struct s2 {int (*f) (double a);};
2463int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2464               int, int);'
2465
2466# Test code for whether the C compiler supports C89 (body of main).
2467ac_c_conftest_c89_main='
2468ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2469'
2470
2471# Test code for whether the C compiler supports C99 (global declarations)
2472ac_c_conftest_c99_globals='
2473// Does the compiler advertise C99 conformance?
2474#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2475# error "Compiler does not advertise C99 conformance"
2476#endif
2477
2478#include <stdbool.h>
2479extern int puts (const char *);
2480extern int printf (const char *, ...);
2481extern int dprintf (int, const char *, ...);
2482extern void *malloc (size_t);
2483
2484// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2485// dprintf is used instead of fprintf to avoid needing to declare
2486// FILE and stderr.
2487#define debug(...) dprintf (2, __VA_ARGS__)
2488#define showlist(...) puts (#__VA_ARGS__)
2489#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2490static void
2491test_varargs_macros (void)
2492{
2493  int x = 1234;
2494  int y = 5678;
2495  debug ("Flag");
2496  debug ("X = %d\n", x);
2497  showlist (The first, second, and third items.);
2498  report (x>y, "x is %d but y is %d", x, y);
2499}
2500
2501// Check long long types.
2502#define BIG64 18446744073709551615ull
2503#define BIG32 4294967295ul
2504#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2505#if !BIG_OK
2506  #error "your preprocessor is broken"
2507#endif
2508#if BIG_OK
2509#else
2510  #error "your preprocessor is broken"
2511#endif
2512static long long int bignum = -9223372036854775807LL;
2513static unsigned long long int ubignum = BIG64;
2514
2515struct incomplete_array
2516{
2517  int datasize;
2518  double data[];
2519};
2520
2521struct named_init {
2522  int number;
2523  const wchar_t *name;
2524  double average;
2525};
2526
2527typedef const char *ccp;
2528
2529static inline int
2530test_restrict (ccp restrict text)
2531{
2532  // See if C++-style comments work.
2533  // Iterate through items via the restricted pointer.
2534  // Also check for declarations in for loops.
2535  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2536    continue;
2537  return 0;
2538}
2539
2540// Check varargs and va_copy.
2541static bool
2542test_varargs (const char *format, ...)
2543{
2544  va_list args;
2545  va_start (args, format);
2546  va_list args_copy;
2547  va_copy (args_copy, args);
2548
2549  const char *str = "";
2550  int number = 0;
2551  float fnumber = 0;
2552
2553  while (*format)
2554    {
2555      switch (*format++)
2556	{
2557	case '\''s'\'': // string
2558	  str = va_arg (args_copy, const char *);
2559	  break;
2560	case '\''d'\'': // int
2561	  number = va_arg (args_copy, int);
2562	  break;
2563	case '\''f'\'': // float
2564	  fnumber = va_arg (args_copy, double);
2565	  break;
2566	default:
2567	  break;
2568	}
2569    }
2570  va_end (args_copy);
2571  va_end (args);
2572
2573  return *str && number && fnumber;
2574}
2575'
2576
2577# Test code for whether the C compiler supports C99 (body of main).
2578ac_c_conftest_c99_main='
2579  // Check bool.
2580  _Bool success = false;
2581  success |= (argc != 0);
2582
2583  // Check restrict.
2584  if (test_restrict ("String literal") == 0)
2585    success = true;
2586  char *restrict newvar = "Another string";
2587
2588  // Check varargs.
2589  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2590  test_varargs_macros ();
2591
2592  // Check flexible array members.
2593  struct incomplete_array *ia =
2594    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2595  ia->datasize = 10;
2596  for (int i = 0; i < ia->datasize; ++i)
2597    ia->data[i] = i * 1.234;
2598
2599  // Check named initializers.
2600  struct named_init ni = {
2601    .number = 34,
2602    .name = L"Test wide string",
2603    .average = 543.34343,
2604  };
2605
2606  ni.number = 58;
2607
2608  int dynamic_array[ni.number];
2609  dynamic_array[0] = argv[0][0];
2610  dynamic_array[ni.number - 1] = 543;
2611
2612  // work around unused variable warnings
2613  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2614	 || dynamic_array[ni.number - 1] != 543);
2615'
2616
2617# Test code for whether the C compiler supports C11 (global declarations)
2618ac_c_conftest_c11_globals='
2619// Does the compiler advertise C11 conformance?
2620#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2621# error "Compiler does not advertise C11 conformance"
2622#endif
2623
2624// Check _Alignas.
2625char _Alignas (double) aligned_as_double;
2626char _Alignas (0) no_special_alignment;
2627extern char aligned_as_int;
2628char _Alignas (0) _Alignas (int) aligned_as_int;
2629
2630// Check _Alignof.
2631enum
2632{
2633  int_alignment = _Alignof (int),
2634  int_array_alignment = _Alignof (int[100]),
2635  char_alignment = _Alignof (char)
2636};
2637_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2638
2639// Check _Noreturn.
2640int _Noreturn does_not_return (void) { for (;;) continue; }
2641
2642// Check _Static_assert.
2643struct test_static_assert
2644{
2645  int x;
2646  _Static_assert (sizeof (int) <= sizeof (long int),
2647                  "_Static_assert does not work in struct");
2648  long int y;
2649};
2650
2651// Check UTF-8 literals.
2652#define u8 syntax error!
2653char const utf8_literal[] = u8"happens to be ASCII" "another string";
2654
2655// Check duplicate typedefs.
2656typedef long *long_ptr;
2657typedef long int *long_ptr;
2658typedef long_ptr long_ptr;
2659
2660// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2661struct anonymous
2662{
2663  union {
2664    struct { int i; int j; };
2665    struct { int k; long int l; } w;
2666  };
2667  int m;
2668} v1;
2669'
2670
2671# Test code for whether the C compiler supports C11 (body of main).
2672ac_c_conftest_c11_main='
2673  _Static_assert ((offsetof (struct anonymous, i)
2674		   == offsetof (struct anonymous, w.k)),
2675		  "Anonymous union alignment botch");
2676  v1.i = 2;
2677  v1.w.k = 5;
2678  ok |= v1.i != 5;
2679'
2680
2681# Test code for whether the C compiler supports C11 (complete).
2682ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2683${ac_c_conftest_c99_globals}
2684${ac_c_conftest_c11_globals}
2685
2686int
2687main (int argc, char **argv)
2688{
2689  int ok = 0;
2690  ${ac_c_conftest_c89_main}
2691  ${ac_c_conftest_c99_main}
2692  ${ac_c_conftest_c11_main}
2693  return ok;
2694}
2695"
2696
2697# Test code for whether the C compiler supports C99 (complete).
2698ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2699${ac_c_conftest_c99_globals}
2700
2701int
2702main (int argc, char **argv)
2703{
2704  int ok = 0;
2705  ${ac_c_conftest_c89_main}
2706  ${ac_c_conftest_c99_main}
2707  return ok;
2708}
2709"
2710
2711# Test code for whether the C compiler supports C89 (complete).
2712ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2713
2714int
2715main (int argc, char **argv)
2716{
2717  int ok = 0;
2718  ${ac_c_conftest_c89_main}
2719  return ok;
2720}
2721"
2722
2723as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2724as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2725as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2726as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2727as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2728as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2729as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2730as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2731as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2732as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2733as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2734as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2735as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2736as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2737as_fn_append ac_func_c_list " fork HAVE_FORK"
2738as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2739
2740# Auxiliary files required by this configure script.
2741ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
2742
2743# Locations in which to look for auxiliary files.
2744ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2745
2746# Search for a directory containing all of the required auxiliary files,
2747# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2748# If we don't find one directory that contains all the files we need,
2749# we report the set of missing files from the *first* directory in
2750# $ac_aux_dir_candidates and give up.
2751ac_missing_aux_files=""
2752ac_first_candidate=:
2753printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755as_found=false
2756for as_dir in $ac_aux_dir_candidates
2757do
2758  IFS=$as_save_IFS
2759  case $as_dir in #(((
2760    '') as_dir=./ ;;
2761    */) ;;
2762    *) as_dir=$as_dir/ ;;
2763  esac
2764  as_found=:
2765
2766  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2767  ac_aux_dir_found=yes
2768  ac_install_sh=
2769  for ac_aux in $ac_aux_files
2770  do
2771    # As a special case, if "install-sh" is required, that requirement
2772    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2773    # and $ac_install_sh is set appropriately for whichever one is found.
2774    if test x"$ac_aux" = x"install-sh"
2775    then
2776      if test -f "${as_dir}install-sh"; then
2777        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2778        ac_install_sh="${as_dir}install-sh -c"
2779      elif test -f "${as_dir}install.sh"; then
2780        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2781        ac_install_sh="${as_dir}install.sh -c"
2782      elif test -f "${as_dir}shtool"; then
2783        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2784        ac_install_sh="${as_dir}shtool install -c"
2785      else
2786        ac_aux_dir_found=no
2787        if $ac_first_candidate; then
2788          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2789        else
2790          break
2791        fi
2792      fi
2793    else
2794      if test -f "${as_dir}${ac_aux}"; then
2795        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2796      else
2797        ac_aux_dir_found=no
2798        if $ac_first_candidate; then
2799          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2800        else
2801          break
2802        fi
2803      fi
2804    fi
2805  done
2806  if test "$ac_aux_dir_found" = yes; then
2807    ac_aux_dir="$as_dir"
2808    break
2809  fi
2810  ac_first_candidate=false
2811
2812  as_found=false
2813done
2814IFS=$as_save_IFS
2815if $as_found
2816then :
2817
2818else $as_nop
2819  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2820fi
2821
2822
2823# These three variables are undocumented and unsupported,
2824# and are intended to be withdrawn in a future Autoconf release.
2825# They can cause serious problems if a builder's source tree is in a directory
2826# whose full name contains unusual characters.
2827if test -f "${ac_aux_dir}config.guess"; then
2828  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2829fi
2830if test -f "${ac_aux_dir}config.sub"; then
2831  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2832fi
2833if test -f "$ac_aux_dir/configure"; then
2834  ac_configure="$SHELL ${ac_aux_dir}configure"
2835fi
2836
2837# Check that the precious variables saved in the cache have kept the same
2838# value.
2839ac_cache_corrupted=false
2840for ac_var in $ac_precious_vars; do
2841  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2842  eval ac_new_set=\$ac_env_${ac_var}_set
2843  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2844  eval ac_new_val=\$ac_env_${ac_var}_value
2845  case $ac_old_set,$ac_new_set in
2846    set,)
2847      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2848printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2849      ac_cache_corrupted=: ;;
2850    ,set)
2851      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2852printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2853      ac_cache_corrupted=: ;;
2854    ,);;
2855    *)
2856      if test "x$ac_old_val" != "x$ac_new_val"; then
2857	# differences in whitespace do not lead to failure.
2858	ac_old_val_w=`echo x $ac_old_val`
2859	ac_new_val_w=`echo x $ac_new_val`
2860	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2861	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2862printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2863	  ac_cache_corrupted=:
2864	else
2865	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2866printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2867	  eval $ac_var=\$ac_old_val
2868	fi
2869	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2870printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2872printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2873      fi;;
2874  esac
2875  # Pass precious variables to config.status.
2876  if test "$ac_new_set" = set; then
2877    case $ac_new_val in
2878    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2879    *) ac_arg=$ac_var=$ac_new_val ;;
2880    esac
2881    case " $ac_configure_args " in
2882      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2883      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2884    esac
2885  fi
2886done
2887if $ac_cache_corrupted; then
2888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2889printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2891printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2892  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2893	    and start over" "$LINENO" 5
2894fi
2895## -------------------- ##
2896## Main body of script. ##
2897## -------------------- ##
2898
2899ac_ext=c
2900ac_cpp='$CPP $CPPFLAGS'
2901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2903ac_compiler_gnu=$ac_cv_c_compiler_gnu
2904
2905
2906am__api_version='1.16'
2907
2908
2909
2910  # Find a good install program.  We prefer a C program (faster),
2911# so one script is as good as another.  But avoid the broken or
2912# incompatible versions:
2913# SysV /etc/install, /usr/sbin/install
2914# SunOS /usr/etc/install
2915# IRIX /sbin/install
2916# AIX /bin/install
2917# AmigaOS /C/install, which installs bootblocks on floppy discs
2918# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2919# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2920# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2921# OS/2's system install, which has a completely different semantic
2922# ./install, which can be erroneously created by make from ./install.sh.
2923# Reject install programs that cannot install multiple files.
2924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2925printf %s "checking for a BSD-compatible install... " >&6; }
2926if test -z "$INSTALL"; then
2927if test ${ac_cv_path_install+y}
2928then :
2929  printf %s "(cached) " >&6
2930else $as_nop
2931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH
2933do
2934  IFS=$as_save_IFS
2935  case $as_dir in #(((
2936    '') as_dir=./ ;;
2937    */) ;;
2938    *) as_dir=$as_dir/ ;;
2939  esac
2940    # Account for fact that we put trailing slashes in our PATH walk.
2941case $as_dir in #((
2942  ./ | /[cC]/* | \
2943  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2944  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2945  /usr/ucb/* ) ;;
2946  *)
2947    # OSF1 and SCO ODT 3.0 have their own names for install.
2948    # Don't use installbsd from OSF since it installs stuff as root
2949    # by default.
2950    for ac_prog in ginstall scoinst install; do
2951      for ac_exec_ext in '' $ac_executable_extensions; do
2952	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2953	  if test $ac_prog = install &&
2954	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2955	    # AIX install.  It has an incompatible calling convention.
2956	    :
2957	  elif test $ac_prog = install &&
2958	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2959	    # program-specific install script used by HP pwplus--don't use.
2960	    :
2961	  else
2962	    rm -rf conftest.one conftest.two conftest.dir
2963	    echo one > conftest.one
2964	    echo two > conftest.two
2965	    mkdir conftest.dir
2966	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2967	      test -s conftest.one && test -s conftest.two &&
2968	      test -s conftest.dir/conftest.one &&
2969	      test -s conftest.dir/conftest.two
2970	    then
2971	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2972	      break 3
2973	    fi
2974	  fi
2975	fi
2976      done
2977    done
2978    ;;
2979esac
2980
2981  done
2982IFS=$as_save_IFS
2983
2984rm -rf conftest.one conftest.two conftest.dir
2985
2986fi
2987  if test ${ac_cv_path_install+y}; then
2988    INSTALL=$ac_cv_path_install
2989  else
2990    # As a last resort, use the slow shell script.  Don't cache a
2991    # value for INSTALL within a source directory, because that will
2992    # break other packages using the cache if that directory is
2993    # removed, or if the value is a relative name.
2994    INSTALL=$ac_install_sh
2995  fi
2996fi
2997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2998printf "%s\n" "$INSTALL" >&6; }
2999
3000# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3001# It thinks the first close brace ends the variable substitution.
3002test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3003
3004test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3005
3006test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3007
3008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3009printf %s "checking whether build environment is sane... " >&6; }
3010# Reject unsafe characters in $srcdir or the absolute working directory
3011# name.  Accept space and tab only in the latter.
3012am_lf='
3013'
3014case `pwd` in
3015  *[\\\"\#\$\&\'\`$am_lf]*)
3016    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3017esac
3018case $srcdir in
3019  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3020    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3021esac
3022
3023# Do 'set' in a subshell so we don't clobber the current shell's
3024# arguments.  Must try -L first in case configure is actually a
3025# symlink; some systems play weird games with the mod time of symlinks
3026# (eg FreeBSD returns the mod time of the symlink's containing
3027# directory).
3028if (
3029   am_has_slept=no
3030   for am_try in 1 2; do
3031     echo "timestamp, slept: $am_has_slept" > conftest.file
3032     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3033     if test "$*" = "X"; then
3034	# -L didn't work.
3035	set X `ls -t "$srcdir/configure" conftest.file`
3036     fi
3037     if test "$*" != "X $srcdir/configure conftest.file" \
3038	&& test "$*" != "X conftest.file $srcdir/configure"; then
3039
3040	# If neither matched, then we have a broken ls.  This can happen
3041	# if, for instance, CONFIG_SHELL is bash and it inherits a
3042	# broken ls alias from the environment.  This has actually
3043	# happened.  Such a system could not be considered "sane".
3044	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3045  alias in your environment" "$LINENO" 5
3046     fi
3047     if test "$2" = conftest.file || test $am_try -eq 2; then
3048       break
3049     fi
3050     # Just in case.
3051     sleep 1
3052     am_has_slept=yes
3053   done
3054   test "$2" = conftest.file
3055   )
3056then
3057   # Ok.
3058   :
3059else
3060   as_fn_error $? "newly created file is older than distributed files!
3061Check your system clock" "$LINENO" 5
3062fi
3063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3064printf "%s\n" "yes" >&6; }
3065# If we didn't sleep, we still need to ensure time stamps of config.status and
3066# generated files are strictly newer.
3067am_sleep_pid=
3068if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3069  ( sleep 1 ) &
3070  am_sleep_pid=$!
3071fi
3072
3073rm -f conftest.file
3074
3075test "$program_prefix" != NONE &&
3076  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3077# Use a double $ so make ignores it.
3078test "$program_suffix" != NONE &&
3079  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3080# Double any \ or $.
3081# By default was `s,x,x', remove it if useless.
3082ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3083program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3084
3085
3086# Expand $ac_aux_dir to an absolute path.
3087am_aux_dir=`cd "$ac_aux_dir" && pwd`
3088
3089
3090  if test x"${MISSING+set}" != xset; then
3091  MISSING="\${SHELL} '$am_aux_dir/missing'"
3092fi
3093# Use eval to expand $SHELL
3094if eval "$MISSING --is-lightweight"; then
3095  am_missing_run="$MISSING "
3096else
3097  am_missing_run=
3098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3099printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3100fi
3101
3102if test x"${install_sh+set}" != xset; then
3103  case $am_aux_dir in
3104  *\ * | *\	*)
3105    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3106  *)
3107    install_sh="\${SHELL} $am_aux_dir/install-sh"
3108  esac
3109fi
3110
3111# Installed binaries are usually stripped using 'strip' when the user
3112# run "make install-strip".  However 'strip' might not be the right
3113# tool to use in cross-compilation environments, therefore Automake
3114# will honor the 'STRIP' environment variable to overrule this program.
3115if test "$cross_compiling" != no; then
3116  if test -n "$ac_tool_prefix"; then
3117  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3118set dummy ${ac_tool_prefix}strip; ac_word=$2
3119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120printf %s "checking for $ac_word... " >&6; }
3121if test ${ac_cv_prog_STRIP+y}
3122then :
3123  printf %s "(cached) " >&6
3124else $as_nop
3125  if test -n "$STRIP"; then
3126  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131  IFS=$as_save_IFS
3132  case $as_dir in #(((
3133    '') as_dir=./ ;;
3134    */) ;;
3135    *) as_dir=$as_dir/ ;;
3136  esac
3137    for ac_exec_ext in '' $ac_executable_extensions; do
3138  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3139    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3140    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3141    break 2
3142  fi
3143done
3144  done
3145IFS=$as_save_IFS
3146
3147fi
3148fi
3149STRIP=$ac_cv_prog_STRIP
3150if test -n "$STRIP"; then
3151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3152printf "%s\n" "$STRIP" >&6; }
3153else
3154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155printf "%s\n" "no" >&6; }
3156fi
3157
3158
3159fi
3160if test -z "$ac_cv_prog_STRIP"; then
3161  ac_ct_STRIP=$STRIP
3162  # Extract the first word of "strip", so it can be a program name with args.
3163set dummy strip; ac_word=$2
3164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165printf %s "checking for $ac_word... " >&6; }
3166if test ${ac_cv_prog_ac_ct_STRIP+y}
3167then :
3168  printf %s "(cached) " >&6
3169else $as_nop
3170  if test -n "$ac_ct_STRIP"; then
3171  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3172else
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176  IFS=$as_save_IFS
3177  case $as_dir in #(((
3178    '') as_dir=./ ;;
3179    */) ;;
3180    *) as_dir=$as_dir/ ;;
3181  esac
3182    for ac_exec_ext in '' $ac_executable_extensions; do
3183  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3184    ac_cv_prog_ac_ct_STRIP="strip"
3185    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3186    break 2
3187  fi
3188done
3189  done
3190IFS=$as_save_IFS
3191
3192fi
3193fi
3194ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3195if test -n "$ac_ct_STRIP"; then
3196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3197printf "%s\n" "$ac_ct_STRIP" >&6; }
3198else
3199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200printf "%s\n" "no" >&6; }
3201fi
3202
3203  if test "x$ac_ct_STRIP" = x; then
3204    STRIP=":"
3205  else
3206    case $cross_compiling:$ac_tool_warned in
3207yes:)
3208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210ac_tool_warned=yes ;;
3211esac
3212    STRIP=$ac_ct_STRIP
3213  fi
3214else
3215  STRIP="$ac_cv_prog_STRIP"
3216fi
3217
3218fi
3219INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3220
3221
3222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3223printf %s "checking for a race-free mkdir -p... " >&6; }
3224if test -z "$MKDIR_P"; then
3225  if test ${ac_cv_path_mkdir+y}
3226then :
3227  printf %s "(cached) " >&6
3228else $as_nop
3229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3231do
3232  IFS=$as_save_IFS
3233  case $as_dir in #(((
3234    '') as_dir=./ ;;
3235    */) ;;
3236    *) as_dir=$as_dir/ ;;
3237  esac
3238    for ac_prog in mkdir gmkdir; do
3239	 for ac_exec_ext in '' $ac_executable_extensions; do
3240	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3241	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3242	     'mkdir ('*'coreutils) '* | \
3243	     'BusyBox '* | \
3244	     'mkdir (fileutils) '4.1*)
3245	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3246	       break 3;;
3247	   esac
3248	 done
3249       done
3250  done
3251IFS=$as_save_IFS
3252
3253fi
3254
3255  test -d ./--version && rmdir ./--version
3256  if test ${ac_cv_path_mkdir+y}; then
3257    MKDIR_P="$ac_cv_path_mkdir -p"
3258  else
3259    # As a last resort, use the slow shell script.  Don't cache a
3260    # value for MKDIR_P within a source directory, because that will
3261    # break other packages using the cache if that directory is
3262    # removed, or if the value is a relative name.
3263    MKDIR_P="$ac_install_sh -d"
3264  fi
3265fi
3266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3267printf "%s\n" "$MKDIR_P" >&6; }
3268
3269for ac_prog in gawk mawk nawk awk
3270do
3271  # Extract the first word of "$ac_prog", so it can be a program name with args.
3272set dummy $ac_prog; ac_word=$2
3273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274printf %s "checking for $ac_word... " >&6; }
3275if test ${ac_cv_prog_AWK+y}
3276then :
3277  printf %s "(cached) " >&6
3278else $as_nop
3279  if test -n "$AWK"; then
3280  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  case $as_dir in #(((
3287    '') as_dir=./ ;;
3288    */) ;;
3289    *) as_dir=$as_dir/ ;;
3290  esac
3291    for ac_exec_ext in '' $ac_executable_extensions; do
3292  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3293    ac_cv_prog_AWK="$ac_prog"
3294    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3295    break 2
3296  fi
3297done
3298  done
3299IFS=$as_save_IFS
3300
3301fi
3302fi
3303AWK=$ac_cv_prog_AWK
3304if test -n "$AWK"; then
3305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3306printf "%s\n" "$AWK" >&6; }
3307else
3308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309printf "%s\n" "no" >&6; }
3310fi
3311
3312
3313  test -n "$AWK" && break
3314done
3315
3316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3317printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3318set x ${MAKE-make}
3319ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3320if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3321then :
3322  printf %s "(cached) " >&6
3323else $as_nop
3324  cat >conftest.make <<\_ACEOF
3325SHELL = /bin/sh
3326all:
3327	@echo '@@@%%%=$(MAKE)=@@@%%%'
3328_ACEOF
3329# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3330case `${MAKE-make} -f conftest.make 2>/dev/null` in
3331  *@@@%%%=?*=@@@%%%*)
3332    eval ac_cv_prog_make_${ac_make}_set=yes;;
3333  *)
3334    eval ac_cv_prog_make_${ac_make}_set=no;;
3335esac
3336rm -f conftest.make
3337fi
3338if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340printf "%s\n" "yes" >&6; }
3341  SET_MAKE=
3342else
3343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344printf "%s\n" "no" >&6; }
3345  SET_MAKE="MAKE=${MAKE-make}"
3346fi
3347
3348rm -rf .tst 2>/dev/null
3349mkdir .tst 2>/dev/null
3350if test -d .tst; then
3351  am__leading_dot=.
3352else
3353  am__leading_dot=_
3354fi
3355rmdir .tst 2>/dev/null
3356
3357# Check whether --enable-silent-rules was given.
3358if test ${enable_silent_rules+y}
3359then :
3360  enableval=$enable_silent_rules;
3361fi
3362
3363case $enable_silent_rules in # (((
3364  yes) AM_DEFAULT_VERBOSITY=0;;
3365   no) AM_DEFAULT_VERBOSITY=1;;
3366    *) AM_DEFAULT_VERBOSITY=1;;
3367esac
3368am_make=${MAKE-make}
3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3370printf %s "checking whether $am_make supports nested variables... " >&6; }
3371if test ${am_cv_make_support_nested_variables+y}
3372then :
3373  printf %s "(cached) " >&6
3374else $as_nop
3375  if printf "%s\n" 'TRUE=$(BAR$(V))
3376BAR0=false
3377BAR1=true
3378V=1
3379am__doit:
3380	@$(TRUE)
3381.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3382  am_cv_make_support_nested_variables=yes
3383else
3384  am_cv_make_support_nested_variables=no
3385fi
3386fi
3387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3388printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3389if test $am_cv_make_support_nested_variables = yes; then
3390    AM_V='$(V)'
3391  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3392else
3393  AM_V=$AM_DEFAULT_VERBOSITY
3394  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3395fi
3396AM_BACKSLASH='\'
3397
3398if test "`cd $srcdir && pwd`" != "`pwd`"; then
3399  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3400  # is not polluted with repeated "-I."
3401  am__isrc=' -I$(srcdir)'
3402  # test to see if srcdir already configured
3403  if test -f $srcdir/config.status; then
3404    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3405  fi
3406fi
3407
3408# test whether we have cygpath
3409if test -z "$CYGPATH_W"; then
3410  if (cygpath --version) >/dev/null 2>/dev/null; then
3411    CYGPATH_W='cygpath -w'
3412  else
3413    CYGPATH_W=echo
3414  fi
3415fi
3416
3417
3418# Define the identity of the package.
3419 PACKAGE='file'
3420 VERSION='5.45'
3421
3422
3423printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3424
3425
3426printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3427
3428# Some tools Automake needs.
3429
3430ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3431
3432
3433AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3434
3435
3436AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3437
3438
3439AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3440
3441
3442MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3443
3444# For better backward compatibility.  To be removed once Automake 1.9.x
3445# dies out for good.  For more background, see:
3446# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3447# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3448mkdir_p='$(MKDIR_P)'
3449
3450# We need awk for the "check" target (and possibly the TAP driver).  The
3451# system "awk" is bad on some platforms.
3452# Always define AMTAR for backward compatibility.  Yes, it's still used
3453# in the wild :-(  We should find a proper way to deprecate it ...
3454AMTAR='$${TAR-tar}'
3455
3456
3457# We'll loop over all known methods to create a tar archive until one works.
3458_am_tools='gnutar  pax cpio none'
3459
3460am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3461
3462
3463
3464
3465
3466# Variables for tags utilities; see am/tags.am
3467if test -z "$CTAGS"; then
3468  CTAGS=ctags
3469fi
3470
3471if test -z "$ETAGS"; then
3472  ETAGS=etags
3473fi
3474
3475if test -z "$CSCOPE"; then
3476  CSCOPE=cscope
3477fi
3478
3479
3480
3481# POSIX will say in a future version that running "rm -f" with no argument
3482# is OK; and we want to be able to make that assumption in our Makefile
3483# recipes.  So use an aggressive probe to check that the usage we want is
3484# actually supported "in the wild" to an acceptable degree.
3485# See automake bug#10828.
3486# To make any issue more visible, cause the running configure to be aborted
3487# by default if the 'rm' program in use doesn't match our expectations; the
3488# user can still override this though.
3489if rm -f && rm -fr && rm -rf; then : OK; else
3490  cat >&2 <<'END'
3491Oops!
3492
3493Your 'rm' program seems unable to run without file operands specified
3494on the command line, even when the '-f' option is present.  This is contrary
3495to the behaviour of most rm programs out there, and not conforming with
3496the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3497
3498Please tell bug-automake@gnu.org about your system, including the value
3499of your $PATH and any error possibly output before this message.  This
3500can help us improve future automake versions.
3501
3502END
3503  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3504    echo 'Configuration will proceed anyway, since you have set the' >&2
3505    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3506    echo >&2
3507  else
3508    cat >&2 <<'END'
3509Aborting the configuration process, to ensure you take notice of the issue.
3510
3511You can download and install GNU coreutils to get an 'rm' implementation
3512that behaves properly: <https://www.gnu.org/software/coreutils/>.
3513
3514If you want to complete the configuration process using your problematic
3515'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3516to "yes", and re-run configure.
3517
3518END
3519    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3520  fi
3521fi
3522
3523
3524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3525printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3526    # Check whether --enable-maintainer-mode was given.
3527if test ${enable_maintainer_mode+y}
3528then :
3529  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3530else $as_nop
3531  USE_MAINTAINER_MODE=no
3532fi
3533
3534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3535printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3536   if test $USE_MAINTAINER_MODE = yes; then
3537  MAINTAINER_MODE_TRUE=
3538  MAINTAINER_MODE_FALSE='#'
3539else
3540  MAINTAINER_MODE_TRUE='#'
3541  MAINTAINER_MODE_FALSE=
3542fi
3543
3544  MAINT=$MAINTAINER_MODE_TRUE
3545
3546
3547# Check whether --enable-silent-rules was given.
3548if test ${enable_silent_rules+y}
3549then :
3550  enableval=$enable_silent_rules;
3551fi
3552
3553case $enable_silent_rules in # (((
3554  yes) AM_DEFAULT_VERBOSITY=0;;
3555   no) AM_DEFAULT_VERBOSITY=1;;
3556    *) AM_DEFAULT_VERBOSITY=0;;
3557esac
3558am_make=${MAKE-make}
3559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3560printf %s "checking whether $am_make supports nested variables... " >&6; }
3561if test ${am_cv_make_support_nested_variables+y}
3562then :
3563  printf %s "(cached) " >&6
3564else $as_nop
3565  if printf "%s\n" 'TRUE=$(BAR$(V))
3566BAR0=false
3567BAR1=true
3568V=1
3569am__doit:
3570	@$(TRUE)
3571.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3572  am_cv_make_support_nested_variables=yes
3573else
3574  am_cv_make_support_nested_variables=no
3575fi
3576fi
3577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3578printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3579if test $am_cv_make_support_nested_variables = yes; then
3580    AM_V='$(V)'
3581  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3582else
3583  AM_V=$AM_DEFAULT_VERBOSITY
3584  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3585fi
3586AM_BACKSLASH='\'
3587
3588
3589ac_config_headers="$ac_config_headers config.h"
3590
3591
3592
3593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3594printf %s "checking for builtin ELF support... " >&6; }
3595# Check whether --enable-elf was given.
3596if test ${enable_elf+y}
3597then :
3598  enableval=$enable_elf; if test "${enableval}" = yes; then
3599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600printf "%s\n" "yes" >&6; }
3601
3602printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
3603
3604else
3605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606printf "%s\n" "no" >&6; }
3607fi
3608else $as_nop
3609
3610  # enable by default
3611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3612printf "%s\n" "yes" >&6; }
3613
3614printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
3615
3616
3617fi
3618
3619
3620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3621printf %s "checking for ELF core file support... " >&6; }
3622# Check whether --enable-elf-core was given.
3623if test ${enable_elf_core+y}
3624then :
3625  enableval=$enable_elf_core; if test "${enableval}" = yes; then
3626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3627printf "%s\n" "yes" >&6; }
3628
3629printf "%s\n" "#define ELFCORE 1" >>confdefs.h
3630
3631else
3632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633printf "%s\n" "no" >&6; }
3634fi
3635else $as_nop
3636
3637  # enable by default
3638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3639printf "%s\n" "yes" >&6; }
3640
3641printf "%s\n" "#define ELFCORE 1" >>confdefs.h
3642
3643
3644fi
3645
3646
3647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
3648printf %s "checking for zlib support... " >&6; }
3649# Check whether --enable-zlib was given.
3650if test ${enable_zlib+y}
3651then :
3652  enableval=$enable_zlib;
3653fi
3654
3655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
3656printf "%s\n" "$enable_zlib" >&6; }
3657
3658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5
3659printf %s "checking for bzlib support... " >&6; }
3660# Check whether --enable-bzlib was given.
3661if test ${enable_bzlib+y}
3662then :
3663  enableval=$enable_bzlib;
3664fi
3665
3666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5
3667printf "%s\n" "$enable_bzlib" >&6; }
3668
3669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5
3670printf %s "checking for xzlib support... " >&6; }
3671# Check whether --enable-xzlib was given.
3672if test ${enable_xzlib+y}
3673then :
3674  enableval=$enable_xzlib;
3675fi
3676
3677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5
3678printf "%s\n" "$enable_xzlib" >&6; }
3679
3680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zstdlib support" >&5
3681printf %s "checking for zstdlib support... " >&6; }
3682# Check whether --enable-zstdlib was given.
3683if test ${enable_zstdlib+y}
3684then :
3685  enableval=$enable_zstdlib;
3686fi
3687
3688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zstdlib" >&5
3689printf "%s\n" "$enable_zstdlib" >&6; }
3690
3691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzlib support" >&5
3692printf %s "checking for lzlib support... " >&6; }
3693# Check whether --enable-lzlib was given.
3694if test ${enable_lzlib+y}
3695then :
3696  enableval=$enable_lzlib;
3697fi
3698
3699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lzlib" >&5
3700printf "%s\n" "$enable_lzlib" >&6; }
3701
3702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
3703printf %s "checking for libseccomp support... " >&6; }
3704# Check whether --enable-libseccomp was given.
3705if test ${enable_libseccomp+y}
3706then :
3707  enableval=$enable_libseccomp;
3708fi
3709
3710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
3711printf "%s\n" "$enable_libseccomp" >&6; }
3712
3713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3714printf %s "checking for file formats in man section 5... " >&6; }
3715# Check whether --enable-fsect-man5 was given.
3716if test ${enable_fsect_man5+y}
3717then :
3718  enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3720printf "%s\n" "yes" >&6; }
3721  fsect=5
3722else
3723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724printf "%s\n" "no" >&6; }
3725  fsect=4
3726fi
3727else $as_nop
3728
3729  # disable by default
3730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731printf "%s\n" "no" >&6; }
3732  fsect=4
3733
3734fi
3735
3736
3737
3738
3739  # Make sure we can run config.sub.
3740$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3741  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3742
3743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3744printf %s "checking build system type... " >&6; }
3745if test ${ac_cv_build+y}
3746then :
3747  printf %s "(cached) " >&6
3748else $as_nop
3749  ac_build_alias=$build_alias
3750test "x$ac_build_alias" = x &&
3751  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3752test "x$ac_build_alias" = x &&
3753  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3754ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3755  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3756
3757fi
3758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3759printf "%s\n" "$ac_cv_build" >&6; }
3760case $ac_cv_build in
3761*-*-*) ;;
3762*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3763esac
3764build=$ac_cv_build
3765ac_save_IFS=$IFS; IFS='-'
3766set x $ac_cv_build
3767shift
3768build_cpu=$1
3769build_vendor=$2
3770shift; shift
3771# Remember, the first character of IFS is used to create $*,
3772# except with old shells:
3773build_os=$*
3774IFS=$ac_save_IFS
3775case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3776
3777
3778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3779printf %s "checking host system type... " >&6; }
3780if test ${ac_cv_host+y}
3781then :
3782  printf %s "(cached) " >&6
3783else $as_nop
3784  if test "x$host_alias" = x; then
3785  ac_cv_host=$ac_cv_build
3786else
3787  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3788    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3789fi
3790
3791fi
3792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3793printf "%s\n" "$ac_cv_host" >&6; }
3794case $ac_cv_host in
3795*-*-*) ;;
3796*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3797esac
3798host=$ac_cv_host
3799ac_save_IFS=$IFS; IFS='-'
3800set x $ac_cv_host
3801shift
3802host_cpu=$1
3803host_vendor=$2
3804shift; shift
3805# Remember, the first character of IFS is used to create $*,
3806# except with old shells:
3807host_os=$*
3808IFS=$ac_save_IFS
3809case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3810
3811
3812case "$host_os" in
3813   mingw32*)
3814      MINGW=1
3815      ;;
3816   *)
3817      MINGW=0
3818      ;;
3819esac
3820
3821 if test "$MINGW" = 1; then
3822  MINGW_TRUE=
3823  MINGW_FALSE='#'
3824else
3825  MINGW_TRUE='#'
3826  MINGW_FALSE=
3827fi
3828
3829
3830pkgdatadir='$(datadir)/misc'
3831
3832
3833 if test x$fsect = x5; then
3834  FSECT5_TRUE=
3835  FSECT5_FALSE='#'
3836else
3837  FSECT5_TRUE='#'
3838  FSECT5_FALSE=
3839fi
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853ac_ext=c
3854ac_cpp='$CPP $CPPFLAGS'
3855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858if test -n "$ac_tool_prefix"; then
3859  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3860set dummy ${ac_tool_prefix}gcc; ac_word=$2
3861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862printf %s "checking for $ac_word... " >&6; }
3863if test ${ac_cv_prog_CC+y}
3864then :
3865  printf %s "(cached) " >&6
3866else $as_nop
3867  if test -n "$CC"; then
3868  ac_cv_prog_CC="$CC" # Let the user override the test.
3869else
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH
3872do
3873  IFS=$as_save_IFS
3874  case $as_dir in #(((
3875    '') as_dir=./ ;;
3876    */) ;;
3877    *) as_dir=$as_dir/ ;;
3878  esac
3879    for ac_exec_ext in '' $ac_executable_extensions; do
3880  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3881    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3882    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3883    break 2
3884  fi
3885done
3886  done
3887IFS=$as_save_IFS
3888
3889fi
3890fi
3891CC=$ac_cv_prog_CC
3892if test -n "$CC"; then
3893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3894printf "%s\n" "$CC" >&6; }
3895else
3896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897printf "%s\n" "no" >&6; }
3898fi
3899
3900
3901fi
3902if test -z "$ac_cv_prog_CC"; then
3903  ac_ct_CC=$CC
3904  # Extract the first word of "gcc", so it can be a program name with args.
3905set dummy gcc; ac_word=$2
3906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907printf %s "checking for $ac_word... " >&6; }
3908if test ${ac_cv_prog_ac_ct_CC+y}
3909then :
3910  printf %s "(cached) " >&6
3911else $as_nop
3912  if test -n "$ac_ct_CC"; then
3913  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3914else
3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918  IFS=$as_save_IFS
3919  case $as_dir in #(((
3920    '') as_dir=./ ;;
3921    */) ;;
3922    *) as_dir=$as_dir/ ;;
3923  esac
3924    for ac_exec_ext in '' $ac_executable_extensions; do
3925  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3926    ac_cv_prog_ac_ct_CC="gcc"
3927    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3928    break 2
3929  fi
3930done
3931  done
3932IFS=$as_save_IFS
3933
3934fi
3935fi
3936ac_ct_CC=$ac_cv_prog_ac_ct_CC
3937if test -n "$ac_ct_CC"; then
3938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3939printf "%s\n" "$ac_ct_CC" >&6; }
3940else
3941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942printf "%s\n" "no" >&6; }
3943fi
3944
3945  if test "x$ac_ct_CC" = x; then
3946    CC=""
3947  else
3948    case $cross_compiling:$ac_tool_warned in
3949yes:)
3950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3951printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3952ac_tool_warned=yes ;;
3953esac
3954    CC=$ac_ct_CC
3955  fi
3956else
3957  CC="$ac_cv_prog_CC"
3958fi
3959
3960if test -z "$CC"; then
3961          if test -n "$ac_tool_prefix"; then
3962    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3963set dummy ${ac_tool_prefix}cc; ac_word=$2
3964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965printf %s "checking for $ac_word... " >&6; }
3966if test ${ac_cv_prog_CC+y}
3967then :
3968  printf %s "(cached) " >&6
3969else $as_nop
3970  if test -n "$CC"; then
3971  ac_cv_prog_CC="$CC" # Let the user override the test.
3972else
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976  IFS=$as_save_IFS
3977  case $as_dir in #(((
3978    '') as_dir=./ ;;
3979    */) ;;
3980    *) as_dir=$as_dir/ ;;
3981  esac
3982    for ac_exec_ext in '' $ac_executable_extensions; do
3983  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3984    ac_cv_prog_CC="${ac_tool_prefix}cc"
3985    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3986    break 2
3987  fi
3988done
3989  done
3990IFS=$as_save_IFS
3991
3992fi
3993fi
3994CC=$ac_cv_prog_CC
3995if test -n "$CC"; then
3996  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3997printf "%s\n" "$CC" >&6; }
3998else
3999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000printf "%s\n" "no" >&6; }
4001fi
4002
4003
4004  fi
4005fi
4006if test -z "$CC"; then
4007  # Extract the first word of "cc", so it can be a program name with args.
4008set dummy cc; ac_word=$2
4009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010printf %s "checking for $ac_word... " >&6; }
4011if test ${ac_cv_prog_CC+y}
4012then :
4013  printf %s "(cached) " >&6
4014else $as_nop
4015  if test -n "$CC"; then
4016  ac_cv_prog_CC="$CC" # Let the user override the test.
4017else
4018  ac_prog_rejected=no
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022  IFS=$as_save_IFS
4023  case $as_dir in #(((
4024    '') as_dir=./ ;;
4025    */) ;;
4026    *) as_dir=$as_dir/ ;;
4027  esac
4028    for ac_exec_ext in '' $ac_executable_extensions; do
4029  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4030    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4031       ac_prog_rejected=yes
4032       continue
4033     fi
4034    ac_cv_prog_CC="cc"
4035    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4036    break 2
4037  fi
4038done
4039  done
4040IFS=$as_save_IFS
4041
4042if test $ac_prog_rejected = yes; then
4043  # We found a bogon in the path, so make sure we never use it.
4044  set dummy $ac_cv_prog_CC
4045  shift
4046  if test $# != 0; then
4047    # We chose a different compiler from the bogus one.
4048    # However, it has the same basename, so the bogon will be chosen
4049    # first if we set CC to just the basename; use the full file name.
4050    shift
4051    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4052  fi
4053fi
4054fi
4055fi
4056CC=$ac_cv_prog_CC
4057if test -n "$CC"; then
4058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4059printf "%s\n" "$CC" >&6; }
4060else
4061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062printf "%s\n" "no" >&6; }
4063fi
4064
4065
4066fi
4067if test -z "$CC"; then
4068  if test -n "$ac_tool_prefix"; then
4069  for ac_prog in cl.exe
4070  do
4071    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4072set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074printf %s "checking for $ac_word... " >&6; }
4075if test ${ac_cv_prog_CC+y}
4076then :
4077  printf %s "(cached) " >&6
4078else $as_nop
4079  if test -n "$CC"; then
4080  ac_cv_prog_CC="$CC" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085  IFS=$as_save_IFS
4086  case $as_dir in #(((
4087    '') as_dir=./ ;;
4088    */) ;;
4089    *) as_dir=$as_dir/ ;;
4090  esac
4091    for ac_exec_ext in '' $ac_executable_extensions; do
4092  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4093    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4094    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4095    break 2
4096  fi
4097done
4098  done
4099IFS=$as_save_IFS
4100
4101fi
4102fi
4103CC=$ac_cv_prog_CC
4104if test -n "$CC"; then
4105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106printf "%s\n" "$CC" >&6; }
4107else
4108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109printf "%s\n" "no" >&6; }
4110fi
4111
4112
4113    test -n "$CC" && break
4114  done
4115fi
4116if test -z "$CC"; then
4117  ac_ct_CC=$CC
4118  for ac_prog in cl.exe
4119do
4120  # Extract the first word of "$ac_prog", so it can be a program name with args.
4121set dummy $ac_prog; ac_word=$2
4122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123printf %s "checking for $ac_word... " >&6; }
4124if test ${ac_cv_prog_ac_ct_CC+y}
4125then :
4126  printf %s "(cached) " >&6
4127else $as_nop
4128  if test -n "$ac_ct_CC"; then
4129  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4130else
4131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132for as_dir in $PATH
4133do
4134  IFS=$as_save_IFS
4135  case $as_dir in #(((
4136    '') as_dir=./ ;;
4137    */) ;;
4138    *) as_dir=$as_dir/ ;;
4139  esac
4140    for ac_exec_ext in '' $ac_executable_extensions; do
4141  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4142    ac_cv_prog_ac_ct_CC="$ac_prog"
4143    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4144    break 2
4145  fi
4146done
4147  done
4148IFS=$as_save_IFS
4149
4150fi
4151fi
4152ac_ct_CC=$ac_cv_prog_ac_ct_CC
4153if test -n "$ac_ct_CC"; then
4154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4155printf "%s\n" "$ac_ct_CC" >&6; }
4156else
4157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158printf "%s\n" "no" >&6; }
4159fi
4160
4161
4162  test -n "$ac_ct_CC" && break
4163done
4164
4165  if test "x$ac_ct_CC" = x; then
4166    CC=""
4167  else
4168    case $cross_compiling:$ac_tool_warned in
4169yes:)
4170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172ac_tool_warned=yes ;;
4173esac
4174    CC=$ac_ct_CC
4175  fi
4176fi
4177
4178fi
4179if test -z "$CC"; then
4180  if test -n "$ac_tool_prefix"; then
4181  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4182set dummy ${ac_tool_prefix}clang; ac_word=$2
4183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184printf %s "checking for $ac_word... " >&6; }
4185if test ${ac_cv_prog_CC+y}
4186then :
4187  printf %s "(cached) " >&6
4188else $as_nop
4189  if test -n "$CC"; then
4190  ac_cv_prog_CC="$CC" # Let the user override the test.
4191else
4192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193for as_dir in $PATH
4194do
4195  IFS=$as_save_IFS
4196  case $as_dir in #(((
4197    '') as_dir=./ ;;
4198    */) ;;
4199    *) as_dir=$as_dir/ ;;
4200  esac
4201    for ac_exec_ext in '' $ac_executable_extensions; do
4202  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4203    ac_cv_prog_CC="${ac_tool_prefix}clang"
4204    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4205    break 2
4206  fi
4207done
4208  done
4209IFS=$as_save_IFS
4210
4211fi
4212fi
4213CC=$ac_cv_prog_CC
4214if test -n "$CC"; then
4215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216printf "%s\n" "$CC" >&6; }
4217else
4218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219printf "%s\n" "no" >&6; }
4220fi
4221
4222
4223fi
4224if test -z "$ac_cv_prog_CC"; then
4225  ac_ct_CC=$CC
4226  # Extract the first word of "clang", so it can be a program name with args.
4227set dummy clang; ac_word=$2
4228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229printf %s "checking for $ac_word... " >&6; }
4230if test ${ac_cv_prog_ac_ct_CC+y}
4231then :
4232  printf %s "(cached) " >&6
4233else $as_nop
4234  if test -n "$ac_ct_CC"; then
4235  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4236else
4237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH
4239do
4240  IFS=$as_save_IFS
4241  case $as_dir in #(((
4242    '') as_dir=./ ;;
4243    */) ;;
4244    *) as_dir=$as_dir/ ;;
4245  esac
4246    for ac_exec_ext in '' $ac_executable_extensions; do
4247  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4248    ac_cv_prog_ac_ct_CC="clang"
4249    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4250    break 2
4251  fi
4252done
4253  done
4254IFS=$as_save_IFS
4255
4256fi
4257fi
4258ac_ct_CC=$ac_cv_prog_ac_ct_CC
4259if test -n "$ac_ct_CC"; then
4260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4261printf "%s\n" "$ac_ct_CC" >&6; }
4262else
4263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264printf "%s\n" "no" >&6; }
4265fi
4266
4267  if test "x$ac_ct_CC" = x; then
4268    CC=""
4269  else
4270    case $cross_compiling:$ac_tool_warned in
4271yes:)
4272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4273printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4274ac_tool_warned=yes ;;
4275esac
4276    CC=$ac_ct_CC
4277  fi
4278else
4279  CC="$ac_cv_prog_CC"
4280fi
4281
4282fi
4283
4284
4285test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4286printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4287as_fn_error $? "no acceptable C compiler found in \$PATH
4288See \`config.log' for more details" "$LINENO" 5; }
4289
4290# Provide some information about the compiler.
4291printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4292set X $ac_compile
4293ac_compiler=$2
4294for ac_option in --version -v -V -qversion -version; do
4295  { { ac_try="$ac_compiler $ac_option >&5"
4296case "(($ac_try" in
4297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298  *) ac_try_echo=$ac_try;;
4299esac
4300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301printf "%s\n" "$ac_try_echo"; } >&5
4302  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4303  ac_status=$?
4304  if test -s conftest.err; then
4305    sed '10a\
4306... rest of stderr output deleted ...
4307         10q' conftest.err >conftest.er1
4308    cat conftest.er1 >&5
4309  fi
4310  rm -f conftest.er1 conftest.err
4311  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312  test $ac_status = 0; }
4313done
4314
4315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317
4318int
4319main (void)
4320{
4321
4322  ;
4323  return 0;
4324}
4325_ACEOF
4326ac_clean_files_save=$ac_clean_files
4327ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4328# Try to create an executable without -o first, disregard a.out.
4329# It will help us diagnose broken compilers, and finding out an intuition
4330# of exeext.
4331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4332printf %s "checking whether the C compiler works... " >&6; }
4333ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4334
4335# The possible output files:
4336ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4337
4338ac_rmfiles=
4339for ac_file in $ac_files
4340do
4341  case $ac_file in
4342    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4343    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4344  esac
4345done
4346rm -f $ac_rmfiles
4347
4348if { { ac_try="$ac_link_default"
4349case "(($ac_try" in
4350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351  *) ac_try_echo=$ac_try;;
4352esac
4353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4354printf "%s\n" "$ac_try_echo"; } >&5
4355  (eval "$ac_link_default") 2>&5
4356  ac_status=$?
4357  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4358  test $ac_status = 0; }
4359then :
4360  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4361# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4362# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4363# so that the user can short-circuit this test for compilers unknown to
4364# Autoconf.
4365for ac_file in $ac_files ''
4366do
4367  test -f "$ac_file" || continue
4368  case $ac_file in
4369    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4370	;;
4371    [ab].out )
4372	# We found the default executable, but exeext='' is most
4373	# certainly right.
4374	break;;
4375    *.* )
4376	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4377	then :; else
4378	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4379	fi
4380	# We set ac_cv_exeext here because the later test for it is not
4381	# safe: cross compilers may not add the suffix if given an `-o'
4382	# argument, so we may need to know it at that point already.
4383	# Even if this section looks crufty: it has the advantage of
4384	# actually working.
4385	break;;
4386    * )
4387	break;;
4388  esac
4389done
4390test "$ac_cv_exeext" = no && ac_cv_exeext=
4391
4392else $as_nop
4393  ac_file=''
4394fi
4395if test -z "$ac_file"
4396then :
4397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398printf "%s\n" "no" >&6; }
4399printf "%s\n" "$as_me: failed program was:" >&5
4400sed 's/^/| /' conftest.$ac_ext >&5
4401
4402{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4403printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4404as_fn_error 77 "C compiler cannot create executables
4405See \`config.log' for more details" "$LINENO" 5; }
4406else $as_nop
4407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4408printf "%s\n" "yes" >&6; }
4409fi
4410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4411printf %s "checking for C compiler default output file name... " >&6; }
4412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4413printf "%s\n" "$ac_file" >&6; }
4414ac_exeext=$ac_cv_exeext
4415
4416rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4417ac_clean_files=$ac_clean_files_save
4418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4419printf %s "checking for suffix of executables... " >&6; }
4420if { { ac_try="$ac_link"
4421case "(($ac_try" in
4422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423  *) ac_try_echo=$ac_try;;
4424esac
4425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4426printf "%s\n" "$ac_try_echo"; } >&5
4427  (eval "$ac_link") 2>&5
4428  ac_status=$?
4429  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4430  test $ac_status = 0; }
4431then :
4432  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4433# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4434# work properly (i.e., refer to `conftest.exe'), while it won't with
4435# `rm'.
4436for ac_file in conftest.exe conftest conftest.*; do
4437  test -f "$ac_file" || continue
4438  case $ac_file in
4439    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4440    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4441	  break;;
4442    * ) break;;
4443  esac
4444done
4445else $as_nop
4446  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4447printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4448as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4449See \`config.log' for more details" "$LINENO" 5; }
4450fi
4451rm -f conftest conftest$ac_cv_exeext
4452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4453printf "%s\n" "$ac_cv_exeext" >&6; }
4454
4455rm -f conftest.$ac_ext
4456EXEEXT=$ac_cv_exeext
4457ac_exeext=$EXEEXT
4458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h.  */
4460#include <stdio.h>
4461int
4462main (void)
4463{
4464FILE *f = fopen ("conftest.out", "w");
4465 return ferror (f) || fclose (f) != 0;
4466
4467  ;
4468  return 0;
4469}
4470_ACEOF
4471ac_clean_files="$ac_clean_files conftest.out"
4472# Check that the compiler produces executables we can run.  If not, either
4473# the compiler is broken, or we cross compile.
4474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4475printf %s "checking whether we are cross compiling... " >&6; }
4476if test "$cross_compiling" != yes; then
4477  { { ac_try="$ac_link"
4478case "(($ac_try" in
4479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480  *) ac_try_echo=$ac_try;;
4481esac
4482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483printf "%s\n" "$ac_try_echo"; } >&5
4484  (eval "$ac_link") 2>&5
4485  ac_status=$?
4486  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487  test $ac_status = 0; }
4488  if { ac_try='./conftest$ac_cv_exeext'
4489  { { case "(($ac_try" in
4490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491  *) ac_try_echo=$ac_try;;
4492esac
4493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494printf "%s\n" "$ac_try_echo"; } >&5
4495  (eval "$ac_try") 2>&5
4496  ac_status=$?
4497  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498  test $ac_status = 0; }; }; then
4499    cross_compiling=no
4500  else
4501    if test "$cross_compiling" = maybe; then
4502	cross_compiling=yes
4503    else
4504	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4505printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4506as_fn_error 77 "cannot run C compiled programs.
4507If you meant to cross compile, use \`--host'.
4508See \`config.log' for more details" "$LINENO" 5; }
4509    fi
4510  fi
4511fi
4512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4513printf "%s\n" "$cross_compiling" >&6; }
4514
4515rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4516ac_clean_files=$ac_clean_files_save
4517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4518printf %s "checking for suffix of object files... " >&6; }
4519if test ${ac_cv_objext+y}
4520then :
4521  printf %s "(cached) " >&6
4522else $as_nop
4523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524/* end confdefs.h.  */
4525
4526int
4527main (void)
4528{
4529
4530  ;
4531  return 0;
4532}
4533_ACEOF
4534rm -f conftest.o conftest.obj
4535if { { ac_try="$ac_compile"
4536case "(($ac_try" in
4537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538  *) ac_try_echo=$ac_try;;
4539esac
4540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541printf "%s\n" "$ac_try_echo"; } >&5
4542  (eval "$ac_compile") 2>&5
4543  ac_status=$?
4544  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545  test $ac_status = 0; }
4546then :
4547  for ac_file in conftest.o conftest.obj conftest.*; do
4548  test -f "$ac_file" || continue;
4549  case $ac_file in
4550    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4551    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4552       break;;
4553  esac
4554done
4555else $as_nop
4556  printf "%s\n" "$as_me: failed program was:" >&5
4557sed 's/^/| /' conftest.$ac_ext >&5
4558
4559{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4560printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4561as_fn_error $? "cannot compute suffix of object files: cannot compile
4562See \`config.log' for more details" "$LINENO" 5; }
4563fi
4564rm -f conftest.$ac_cv_objext conftest.$ac_ext
4565fi
4566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4567printf "%s\n" "$ac_cv_objext" >&6; }
4568OBJEXT=$ac_cv_objext
4569ac_objext=$OBJEXT
4570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4571printf %s "checking whether the compiler supports GNU C... " >&6; }
4572if test ${ac_cv_c_compiler_gnu+y}
4573then :
4574  printf %s "(cached) " >&6
4575else $as_nop
4576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577/* end confdefs.h.  */
4578
4579int
4580main (void)
4581{
4582#ifndef __GNUC__
4583       choke me
4584#endif
4585
4586  ;
4587  return 0;
4588}
4589_ACEOF
4590if ac_fn_c_try_compile "$LINENO"
4591then :
4592  ac_compiler_gnu=yes
4593else $as_nop
4594  ac_compiler_gnu=no
4595fi
4596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4597ac_cv_c_compiler_gnu=$ac_compiler_gnu
4598
4599fi
4600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4601printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4602ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603
4604if test $ac_compiler_gnu = yes; then
4605  GCC=yes
4606else
4607  GCC=
4608fi
4609ac_test_CFLAGS=${CFLAGS+y}
4610ac_save_CFLAGS=$CFLAGS
4611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4612printf %s "checking whether $CC accepts -g... " >&6; }
4613if test ${ac_cv_prog_cc_g+y}
4614then :
4615  printf %s "(cached) " >&6
4616else $as_nop
4617  ac_save_c_werror_flag=$ac_c_werror_flag
4618   ac_c_werror_flag=yes
4619   ac_cv_prog_cc_g=no
4620   CFLAGS="-g"
4621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622/* end confdefs.h.  */
4623
4624int
4625main (void)
4626{
4627
4628  ;
4629  return 0;
4630}
4631_ACEOF
4632if ac_fn_c_try_compile "$LINENO"
4633then :
4634  ac_cv_prog_cc_g=yes
4635else $as_nop
4636  CFLAGS=""
4637      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638/* end confdefs.h.  */
4639
4640int
4641main (void)
4642{
4643
4644  ;
4645  return 0;
4646}
4647_ACEOF
4648if ac_fn_c_try_compile "$LINENO"
4649then :
4650
4651else $as_nop
4652  ac_c_werror_flag=$ac_save_c_werror_flag
4653	 CFLAGS="-g"
4654	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655/* end confdefs.h.  */
4656
4657int
4658main (void)
4659{
4660
4661  ;
4662  return 0;
4663}
4664_ACEOF
4665if ac_fn_c_try_compile "$LINENO"
4666then :
4667  ac_cv_prog_cc_g=yes
4668fi
4669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4670fi
4671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4672fi
4673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4674   ac_c_werror_flag=$ac_save_c_werror_flag
4675fi
4676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4677printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4678if test $ac_test_CFLAGS; then
4679  CFLAGS=$ac_save_CFLAGS
4680elif test $ac_cv_prog_cc_g = yes; then
4681  if test "$GCC" = yes; then
4682    CFLAGS="-g -O2"
4683  else
4684    CFLAGS="-g"
4685  fi
4686else
4687  if test "$GCC" = yes; then
4688    CFLAGS="-O2"
4689  else
4690    CFLAGS=
4691  fi
4692fi
4693ac_prog_cc_stdc=no
4694if test x$ac_prog_cc_stdc = xno
4695then :
4696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4697printf %s "checking for $CC option to enable C11 features... " >&6; }
4698if test ${ac_cv_prog_cc_c11+y}
4699then :
4700  printf %s "(cached) " >&6
4701else $as_nop
4702  ac_cv_prog_cc_c11=no
4703ac_save_CC=$CC
4704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705/* end confdefs.h.  */
4706$ac_c_conftest_c11_program
4707_ACEOF
4708for ac_arg in '' -std=gnu11
4709do
4710  CC="$ac_save_CC $ac_arg"
4711  if ac_fn_c_try_compile "$LINENO"
4712then :
4713  ac_cv_prog_cc_c11=$ac_arg
4714fi
4715rm -f core conftest.err conftest.$ac_objext conftest.beam
4716  test "x$ac_cv_prog_cc_c11" != "xno" && break
4717done
4718rm -f conftest.$ac_ext
4719CC=$ac_save_CC
4720fi
4721
4722if test "x$ac_cv_prog_cc_c11" = xno
4723then :
4724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4725printf "%s\n" "unsupported" >&6; }
4726else $as_nop
4727  if test "x$ac_cv_prog_cc_c11" = x
4728then :
4729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4730printf "%s\n" "none needed" >&6; }
4731else $as_nop
4732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4733printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4734     CC="$CC $ac_cv_prog_cc_c11"
4735fi
4736  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4737  ac_prog_cc_stdc=c11
4738fi
4739fi
4740if test x$ac_prog_cc_stdc = xno
4741then :
4742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4743printf %s "checking for $CC option to enable C99 features... " >&6; }
4744if test ${ac_cv_prog_cc_c99+y}
4745then :
4746  printf %s "(cached) " >&6
4747else $as_nop
4748  ac_cv_prog_cc_c99=no
4749ac_save_CC=$CC
4750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751/* end confdefs.h.  */
4752$ac_c_conftest_c99_program
4753_ACEOF
4754for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4755do
4756  CC="$ac_save_CC $ac_arg"
4757  if ac_fn_c_try_compile "$LINENO"
4758then :
4759  ac_cv_prog_cc_c99=$ac_arg
4760fi
4761rm -f core conftest.err conftest.$ac_objext conftest.beam
4762  test "x$ac_cv_prog_cc_c99" != "xno" && break
4763done
4764rm -f conftest.$ac_ext
4765CC=$ac_save_CC
4766fi
4767
4768if test "x$ac_cv_prog_cc_c99" = xno
4769then :
4770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4771printf "%s\n" "unsupported" >&6; }
4772else $as_nop
4773  if test "x$ac_cv_prog_cc_c99" = x
4774then :
4775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4776printf "%s\n" "none needed" >&6; }
4777else $as_nop
4778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4779printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4780     CC="$CC $ac_cv_prog_cc_c99"
4781fi
4782  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4783  ac_prog_cc_stdc=c99
4784fi
4785fi
4786if test x$ac_prog_cc_stdc = xno
4787then :
4788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4789printf %s "checking for $CC option to enable C89 features... " >&6; }
4790if test ${ac_cv_prog_cc_c89+y}
4791then :
4792  printf %s "(cached) " >&6
4793else $as_nop
4794  ac_cv_prog_cc_c89=no
4795ac_save_CC=$CC
4796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797/* end confdefs.h.  */
4798$ac_c_conftest_c89_program
4799_ACEOF
4800for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4801do
4802  CC="$ac_save_CC $ac_arg"
4803  if ac_fn_c_try_compile "$LINENO"
4804then :
4805  ac_cv_prog_cc_c89=$ac_arg
4806fi
4807rm -f core conftest.err conftest.$ac_objext conftest.beam
4808  test "x$ac_cv_prog_cc_c89" != "xno" && break
4809done
4810rm -f conftest.$ac_ext
4811CC=$ac_save_CC
4812fi
4813
4814if test "x$ac_cv_prog_cc_c89" = xno
4815then :
4816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4817printf "%s\n" "unsupported" >&6; }
4818else $as_nop
4819  if test "x$ac_cv_prog_cc_c89" = x
4820then :
4821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4822printf "%s\n" "none needed" >&6; }
4823else $as_nop
4824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4825printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4826     CC="$CC $ac_cv_prog_cc_c89"
4827fi
4828  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4829  ac_prog_cc_stdc=c89
4830fi
4831fi
4832
4833ac_ext=c
4834ac_cpp='$CPP $CPPFLAGS'
4835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838
4839
4840  ac_ext=c
4841ac_cpp='$CPP $CPPFLAGS'
4842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4846printf %s "checking whether $CC understands -c and -o together... " >&6; }
4847if test ${am_cv_prog_cc_c_o+y}
4848then :
4849  printf %s "(cached) " >&6
4850else $as_nop
4851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852/* end confdefs.h.  */
4853
4854int
4855main (void)
4856{
4857
4858  ;
4859  return 0;
4860}
4861_ACEOF
4862  # Make sure it works both with $CC and with simple cc.
4863  # Following AC_PROG_CC_C_O, we do the test twice because some
4864  # compilers refuse to overwrite an existing .o file with -o,
4865  # though they will create one.
4866  am_cv_prog_cc_c_o=yes
4867  for am_i in 1 2; do
4868    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4869   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4870   ac_status=$?
4871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); } \
4873         && test -f conftest2.$ac_objext; then
4874      : OK
4875    else
4876      am_cv_prog_cc_c_o=no
4877      break
4878    fi
4879  done
4880  rm -f core conftest*
4881  unset am_i
4882fi
4883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4884printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4885if test "$am_cv_prog_cc_c_o" != yes; then
4886   # Losing compiler, so override with the script.
4887   # FIXME: It is wrong to rewrite CC.
4888   # But if we don't then we get into trouble of one sort or another.
4889   # A longer-term fix would be to have automake use am__CC in this case,
4890   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4891   CC="$am_aux_dir/compile $CC"
4892fi
4893ac_ext=c
4894ac_cpp='$CPP $CPPFLAGS'
4895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898
4899DEPDIR="${am__leading_dot}deps"
4900
4901ac_config_commands="$ac_config_commands depfiles"
4902
4903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4904printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4905cat > confinc.mk << 'END'
4906am__doit:
4907	@echo this is the am__doit target >confinc.out
4908.PHONY: am__doit
4909END
4910am__include="#"
4911am__quote=
4912# BSD make does it like this.
4913echo '.include "confinc.mk" # ignored' > confmf.BSD
4914# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4915echo 'include confinc.mk # ignored' > confmf.GNU
4916_am_result=no
4917for s in GNU BSD; do
4918  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4919   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }
4923  case $?:`cat confinc.out 2>/dev/null` in #(
4924  '0:this is the am__doit target') :
4925    case $s in #(
4926  BSD) :
4927    am__include='.include' am__quote='"' ;; #(
4928  *) :
4929    am__include='include' am__quote='' ;;
4930esac ;; #(
4931  *) :
4932     ;;
4933esac
4934  if test "$am__include" != "#"; then
4935    _am_result="yes ($s style)"
4936    break
4937  fi
4938done
4939rm -f confinc.* confmf.*
4940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4941printf "%s\n" "${_am_result}" >&6; }
4942
4943# Check whether --enable-dependency-tracking was given.
4944if test ${enable_dependency_tracking+y}
4945then :
4946  enableval=$enable_dependency_tracking;
4947fi
4948
4949if test "x$enable_dependency_tracking" != xno; then
4950  am_depcomp="$ac_aux_dir/depcomp"
4951  AMDEPBACKSLASH='\'
4952  am__nodep='_no'
4953fi
4954 if test "x$enable_dependency_tracking" != xno; then
4955  AMDEP_TRUE=
4956  AMDEP_FALSE='#'
4957else
4958  AMDEP_TRUE='#'
4959  AMDEP_FALSE=
4960fi
4961
4962
4963
4964depcc="$CC"   am_compiler_list=
4965
4966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4967printf %s "checking dependency style of $depcc... " >&6; }
4968if test ${am_cv_CC_dependencies_compiler_type+y}
4969then :
4970  printf %s "(cached) " >&6
4971else $as_nop
4972  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4973  # We make a subdir and do the tests there.  Otherwise we can end up
4974  # making bogus files that we don't know about and never remove.  For
4975  # instance it was reported that on HP-UX the gcc test will end up
4976  # making a dummy file named 'D' -- because '-MD' means "put the output
4977  # in D".
4978  rm -rf conftest.dir
4979  mkdir conftest.dir
4980  # Copy depcomp to subdir because otherwise we won't find it if we're
4981  # using a relative directory.
4982  cp "$am_depcomp" conftest.dir
4983  cd conftest.dir
4984  # We will build objects and dependencies in a subdirectory because
4985  # it helps to detect inapplicable dependency modes.  For instance
4986  # both Tru64's cc and ICC support -MD to output dependencies as a
4987  # side effect of compilation, but ICC will put the dependencies in
4988  # the current directory while Tru64 will put them in the object
4989  # directory.
4990  mkdir sub
4991
4992  am_cv_CC_dependencies_compiler_type=none
4993  if test "$am_compiler_list" = ""; then
4994     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4995  fi
4996  am__universal=false
4997  case " $depcc " in #(
4998     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4999     esac
5000
5001  for depmode in $am_compiler_list; do
5002    # Setup a source with many dependencies, because some compilers
5003    # like to wrap large dependency lists on column 80 (with \), and
5004    # we should not choose a depcomp mode which is confused by this.
5005    #
5006    # We need to recreate these files for each test, as the compiler may
5007    # overwrite some of them when testing with obscure command lines.
5008    # This happens at least with the AIX C compiler.
5009    : > sub/conftest.c
5010    for i in 1 2 3 4 5 6; do
5011      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5012      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5013      # Solaris 10 /bin/sh.
5014      echo '/* dummy */' > sub/conftst$i.h
5015    done
5016    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5017
5018    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5019    # mode.  It turns out that the SunPro C++ compiler does not properly
5020    # handle '-M -o', and we need to detect this.  Also, some Intel
5021    # versions had trouble with output in subdirs.
5022    am__obj=sub/conftest.${OBJEXT-o}
5023    am__minus_obj="-o $am__obj"
5024    case $depmode in
5025    gcc)
5026      # This depmode causes a compiler race in universal mode.
5027      test "$am__universal" = false || continue
5028      ;;
5029    nosideeffect)
5030      # After this tag, mechanisms are not by side-effect, so they'll
5031      # only be used when explicitly requested.
5032      if test "x$enable_dependency_tracking" = xyes; then
5033	continue
5034      else
5035	break
5036      fi
5037      ;;
5038    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5039      # This compiler won't grok '-c -o', but also, the minuso test has
5040      # not run yet.  These depmodes are late enough in the game, and
5041      # so weak that their functioning should not be impacted.
5042      am__obj=conftest.${OBJEXT-o}
5043      am__minus_obj=
5044      ;;
5045    none) break ;;
5046    esac
5047    if depmode=$depmode \
5048       source=sub/conftest.c object=$am__obj \
5049       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5050       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5051         >/dev/null 2>conftest.err &&
5052       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5053       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5054       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5055       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5056      # icc doesn't choke on unknown options, it will just issue warnings
5057      # or remarks (even with -Werror).  So we grep stderr for any message
5058      # that says an option was ignored or not supported.
5059      # When given -MP, icc 7.0 and 7.1 complain thusly:
5060      #   icc: Command line warning: ignoring option '-M'; no argument required
5061      # The diagnosis changed in icc 8.0:
5062      #   icc: Command line remark: option '-MP' not supported
5063      if (grep 'ignoring option' conftest.err ||
5064          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5065        am_cv_CC_dependencies_compiler_type=$depmode
5066        break
5067      fi
5068    fi
5069  done
5070
5071  cd ..
5072  rm -rf conftest.dir
5073else
5074  am_cv_CC_dependencies_compiler_type=none
5075fi
5076
5077fi
5078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5079printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5080CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5081
5082 if
5083  test "x$enable_dependency_tracking" != xno \
5084  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5085  am__fastdepCC_TRUE=
5086  am__fastdepCC_FALSE='#'
5087else
5088  am__fastdepCC_TRUE='#'
5089  am__fastdepCC_FALSE=
5090fi
5091
5092
5093
5094ac_header= ac_cache=
5095for ac_item in $ac_header_c_list
5096do
5097  if test $ac_cache; then
5098    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5099    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5100      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5101    fi
5102    ac_header= ac_cache=
5103  elif test $ac_header; then
5104    ac_cache=$ac_item
5105  else
5106    ac_header=$ac_item
5107  fi
5108done
5109
5110
5111
5112
5113
5114
5115
5116
5117if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5118then :
5119
5120printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5121
5122fi
5123
5124
5125
5126
5127
5128
5129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5130printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5131if test ${ac_cv_safe_to_define___extensions__+y}
5132then :
5133  printf %s "(cached) " >&6
5134else $as_nop
5135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136/* end confdefs.h.  */
5137
5138#         define __EXTENSIONS__ 1
5139          $ac_includes_default
5140int
5141main (void)
5142{
5143
5144  ;
5145  return 0;
5146}
5147_ACEOF
5148if ac_fn_c_try_compile "$LINENO"
5149then :
5150  ac_cv_safe_to_define___extensions__=yes
5151else $as_nop
5152  ac_cv_safe_to_define___extensions__=no
5153fi
5154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5155fi
5156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5157printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5158
5159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5160printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5161if test ${ac_cv_should_define__xopen_source+y}
5162then :
5163  printf %s "(cached) " >&6
5164else $as_nop
5165  ac_cv_should_define__xopen_source=no
5166    if test $ac_cv_header_wchar_h = yes
5167then :
5168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169/* end confdefs.h.  */
5170
5171          #include <wchar.h>
5172          mbstate_t x;
5173int
5174main (void)
5175{
5176
5177  ;
5178  return 0;
5179}
5180_ACEOF
5181if ac_fn_c_try_compile "$LINENO"
5182then :
5183
5184else $as_nop
5185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186/* end confdefs.h.  */
5187
5188            #define _XOPEN_SOURCE 500
5189            #include <wchar.h>
5190            mbstate_t x;
5191int
5192main (void)
5193{
5194
5195  ;
5196  return 0;
5197}
5198_ACEOF
5199if ac_fn_c_try_compile "$LINENO"
5200then :
5201  ac_cv_should_define__xopen_source=yes
5202fi
5203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5204fi
5205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5206fi
5207fi
5208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5209printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5210
5211  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5212
5213  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5214
5215  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5216
5217  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5218
5219  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5220
5221  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5222
5223  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5224
5225  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5226
5227  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5228
5229  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5230
5231  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5232
5233  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5234
5235  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5236
5237  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5238
5239  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5240
5241  if test $ac_cv_header_minix_config_h = yes
5242then :
5243  MINIX=yes
5244    printf "%s\n" "#define _MINIX 1" >>confdefs.h
5245
5246    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5247
5248    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5249
5250else $as_nop
5251  MINIX=
5252fi
5253  if test $ac_cv_safe_to_define___extensions__ = yes
5254then :
5255  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5256
5257fi
5258  if test $ac_cv_should_define__xopen_source = yes
5259then :
5260  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5261
5262fi
5263
5264
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5266printf %s "checking whether byte ordering is bigendian... " >&6; }
5267if test ${ac_cv_c_bigendian+y}
5268then :
5269  printf %s "(cached) " >&6
5270else $as_nop
5271  ac_cv_c_bigendian=unknown
5272    # See if we're dealing with a universal compiler.
5273    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274/* end confdefs.h.  */
5275#ifndef __APPLE_CC__
5276	       not a universal capable compiler
5277	     #endif
5278	     typedef int dummy;
5279
5280_ACEOF
5281if ac_fn_c_try_compile "$LINENO"
5282then :
5283
5284	# Check for potential -arch flags.  It is not universal unless
5285	# there are at least two -arch flags with different values.
5286	ac_arch=
5287	ac_prev=
5288	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5289	 if test -n "$ac_prev"; then
5290	   case $ac_word in
5291	     i?86 | x86_64 | ppc | ppc64)
5292	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5293		 ac_arch=$ac_word
5294	       else
5295		 ac_cv_c_bigendian=universal
5296		 break
5297	       fi
5298	       ;;
5299	   esac
5300	   ac_prev=
5301	 elif test "x$ac_word" = "x-arch"; then
5302	   ac_prev=arch
5303	 fi
5304       done
5305fi
5306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5307    if test $ac_cv_c_bigendian = unknown; then
5308      # See if sys/param.h defines the BYTE_ORDER macro.
5309      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h.  */
5311#include <sys/types.h>
5312	     #include <sys/param.h>
5313
5314int
5315main (void)
5316{
5317#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5318		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5319		     && LITTLE_ENDIAN)
5320	      bogus endian macros
5321	     #endif
5322
5323  ;
5324  return 0;
5325}
5326_ACEOF
5327if ac_fn_c_try_compile "$LINENO"
5328then :
5329  # It does; now see whether it defined to BIG_ENDIAN or not.
5330	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331/* end confdefs.h.  */
5332#include <sys/types.h>
5333		#include <sys/param.h>
5334
5335int
5336main (void)
5337{
5338#if BYTE_ORDER != BIG_ENDIAN
5339		 not big endian
5340		#endif
5341
5342  ;
5343  return 0;
5344}
5345_ACEOF
5346if ac_fn_c_try_compile "$LINENO"
5347then :
5348  ac_cv_c_bigendian=yes
5349else $as_nop
5350  ac_cv_c_bigendian=no
5351fi
5352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5353fi
5354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5355    fi
5356    if test $ac_cv_c_bigendian = unknown; then
5357      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5358      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359/* end confdefs.h.  */
5360#include <limits.h>
5361
5362int
5363main (void)
5364{
5365#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5366	      bogus endian macros
5367	     #endif
5368
5369  ;
5370  return 0;
5371}
5372_ACEOF
5373if ac_fn_c_try_compile "$LINENO"
5374then :
5375  # It does; now see whether it defined to _BIG_ENDIAN or not.
5376	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378#include <limits.h>
5379
5380int
5381main (void)
5382{
5383#ifndef _BIG_ENDIAN
5384		 not big endian
5385		#endif
5386
5387  ;
5388  return 0;
5389}
5390_ACEOF
5391if ac_fn_c_try_compile "$LINENO"
5392then :
5393  ac_cv_c_bigendian=yes
5394else $as_nop
5395  ac_cv_c_bigendian=no
5396fi
5397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5398fi
5399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5400    fi
5401    if test $ac_cv_c_bigendian = unknown; then
5402      # Compile a test program.
5403      if test "$cross_compiling" = yes
5404then :
5405  # Try to guess by grepping values from an object file.
5406	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h.  */
5408unsigned short int ascii_mm[] =
5409		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5410		unsigned short int ascii_ii[] =
5411		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5412		int use_ascii (int i) {
5413		  return ascii_mm[i] + ascii_ii[i];
5414		}
5415		unsigned short int ebcdic_ii[] =
5416		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5417		unsigned short int ebcdic_mm[] =
5418		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5419		int use_ebcdic (int i) {
5420		  return ebcdic_mm[i] + ebcdic_ii[i];
5421		}
5422		extern int foo;
5423
5424int
5425main (void)
5426{
5427return use_ascii (foo) == use_ebcdic (foo);
5428  ;
5429  return 0;
5430}
5431_ACEOF
5432if ac_fn_c_try_compile "$LINENO"
5433then :
5434  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5435	      ac_cv_c_bigendian=yes
5436	    fi
5437	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5438	      if test "$ac_cv_c_bigendian" = unknown; then
5439		ac_cv_c_bigendian=no
5440	      else
5441		# finding both strings is unlikely to happen, but who knows?
5442		ac_cv_c_bigendian=unknown
5443	      fi
5444	    fi
5445fi
5446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5447else $as_nop
5448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h.  */
5450$ac_includes_default
5451int
5452main (void)
5453{
5454
5455	     /* Are we little or big endian?  From Harbison&Steele.  */
5456	     union
5457	     {
5458	       long int l;
5459	       char c[sizeof (long int)];
5460	     } u;
5461	     u.l = 1;
5462	     return u.c[sizeof (long int) - 1] == 1;
5463
5464  ;
5465  return 0;
5466}
5467_ACEOF
5468if ac_fn_c_try_run "$LINENO"
5469then :
5470  ac_cv_c_bigendian=no
5471else $as_nop
5472  ac_cv_c_bigendian=yes
5473fi
5474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5475  conftest.$ac_objext conftest.beam conftest.$ac_ext
5476fi
5477
5478    fi
5479fi
5480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5481printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5482 case $ac_cv_c_bigendian in #(
5483   yes)
5484     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5485;; #(
5486   no)
5487      ;; #(
5488   universal)
5489
5490printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5491
5492     ;; #(
5493   *)
5494     as_fn_error $? "unknown endianness
5495 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5496 esac
5497
5498
5499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5500printf %s "checking whether ln -s works... " >&6; }
5501LN_S=$as_ln_s
5502if test "$LN_S" = "ln -s"; then
5503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504printf "%s\n" "yes" >&6; }
5505else
5506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5507printf "%s\n" "no, using $LN_S" >&6; }
5508fi
5509
5510case `pwd` in
5511  *\ * | *\	*)
5512    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5513printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5514esac
5515
5516
5517
5518macro_version='2.4.6'
5519macro_revision='2.4.6'
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534ltmain=$ac_aux_dir/ltmain.sh
5535
5536# Backslashify metacharacters that are still active within
5537# double-quoted strings.
5538sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5539
5540# Same as above, but do not quote variable references.
5541double_quote_subst='s/\(["`\\]\)/\\\1/g'
5542
5543# Sed substitution to delay expansion of an escaped shell variable in a
5544# double_quote_subst'ed string.
5545delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5546
5547# Sed substitution to delay expansion of an escaped single quote.
5548delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5549
5550# Sed substitution to avoid accidental globbing in evaled expressions
5551no_glob_subst='s/\*/\\\*/g'
5552
5553ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5554ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5555ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5556
5557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5558printf %s "checking how to print strings... " >&6; }
5559# Test print first, because it will be a builtin if present.
5560if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5561   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5562  ECHO='print -r --'
5563elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5564  ECHO='printf %s\n'
5565else
5566  # Use this function as a fallback that always works.
5567  func_fallback_echo ()
5568  {
5569    eval 'cat <<_LTECHO_EOF
5570$1
5571_LTECHO_EOF'
5572  }
5573  ECHO='func_fallback_echo'
5574fi
5575
5576# func_echo_all arg...
5577# Invoke $ECHO with all args, space-separated.
5578func_echo_all ()
5579{
5580    $ECHO ""
5581}
5582
5583case $ECHO in
5584  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5585printf "%s\n" "printf" >&6; } ;;
5586  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5587printf "%s\n" "print -r" >&6; } ;;
5588  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5589printf "%s\n" "cat" >&6; } ;;
5590esac
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5606printf %s "checking for a sed that does not truncate output... " >&6; }
5607if test ${ac_cv_path_SED+y}
5608then :
5609  printf %s "(cached) " >&6
5610else $as_nop
5611            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5612     for ac_i in 1 2 3 4 5 6 7; do
5613       ac_script="$ac_script$as_nl$ac_script"
5614     done
5615     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5616     { ac_script=; unset ac_script;}
5617     if test -z "$SED"; then
5618  ac_path_SED_found=false
5619  # Loop through the user's path and test for each of PROGNAME-LIST
5620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH
5622do
5623  IFS=$as_save_IFS
5624  case $as_dir in #(((
5625    '') as_dir=./ ;;
5626    */) ;;
5627    *) as_dir=$as_dir/ ;;
5628  esac
5629    for ac_prog in sed gsed
5630   do
5631    for ac_exec_ext in '' $ac_executable_extensions; do
5632      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5633      as_fn_executable_p "$ac_path_SED" || continue
5634# Check for GNU ac_path_SED and select it if it is found.
5635  # Check for GNU $ac_path_SED
5636case `"$ac_path_SED" --version 2>&1` in
5637*GNU*)
5638  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5639*)
5640  ac_count=0
5641  printf %s 0123456789 >"conftest.in"
5642  while :
5643  do
5644    cat "conftest.in" "conftest.in" >"conftest.tmp"
5645    mv "conftest.tmp" "conftest.in"
5646    cp "conftest.in" "conftest.nl"
5647    printf "%s\n" '' >> "conftest.nl"
5648    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5649    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5650    as_fn_arith $ac_count + 1 && ac_count=$as_val
5651    if test $ac_count -gt ${ac_path_SED_max-0}; then
5652      # Best one so far, save it but keep looking for a better one
5653      ac_cv_path_SED="$ac_path_SED"
5654      ac_path_SED_max=$ac_count
5655    fi
5656    # 10*(2^10) chars as input seems more than enough
5657    test $ac_count -gt 10 && break
5658  done
5659  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5660esac
5661
5662      $ac_path_SED_found && break 3
5663    done
5664  done
5665  done
5666IFS=$as_save_IFS
5667  if test -z "$ac_cv_path_SED"; then
5668    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5669  fi
5670else
5671  ac_cv_path_SED=$SED
5672fi
5673
5674fi
5675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5676printf "%s\n" "$ac_cv_path_SED" >&6; }
5677 SED="$ac_cv_path_SED"
5678  rm -f conftest.sed
5679
5680test -z "$SED" && SED=sed
5681Xsed="$SED -e 1s/^X//"
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5694printf %s "checking for grep that handles long lines and -e... " >&6; }
5695if test ${ac_cv_path_GREP+y}
5696then :
5697  printf %s "(cached) " >&6
5698else $as_nop
5699  if test -z "$GREP"; then
5700  ac_path_GREP_found=false
5701  # Loop through the user's path and test for each of PROGNAME-LIST
5702  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5704do
5705  IFS=$as_save_IFS
5706  case $as_dir in #(((
5707    '') as_dir=./ ;;
5708    */) ;;
5709    *) as_dir=$as_dir/ ;;
5710  esac
5711    for ac_prog in grep ggrep
5712   do
5713    for ac_exec_ext in '' $ac_executable_extensions; do
5714      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5715      as_fn_executable_p "$ac_path_GREP" || continue
5716# Check for GNU ac_path_GREP and select it if it is found.
5717  # Check for GNU $ac_path_GREP
5718case `"$ac_path_GREP" --version 2>&1` in
5719*GNU*)
5720  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5721*)
5722  ac_count=0
5723  printf %s 0123456789 >"conftest.in"
5724  while :
5725  do
5726    cat "conftest.in" "conftest.in" >"conftest.tmp"
5727    mv "conftest.tmp" "conftest.in"
5728    cp "conftest.in" "conftest.nl"
5729    printf "%s\n" 'GREP' >> "conftest.nl"
5730    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5731    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5732    as_fn_arith $ac_count + 1 && ac_count=$as_val
5733    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5734      # Best one so far, save it but keep looking for a better one
5735      ac_cv_path_GREP="$ac_path_GREP"
5736      ac_path_GREP_max=$ac_count
5737    fi
5738    # 10*(2^10) chars as input seems more than enough
5739    test $ac_count -gt 10 && break
5740  done
5741  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5742esac
5743
5744      $ac_path_GREP_found && break 3
5745    done
5746  done
5747  done
5748IFS=$as_save_IFS
5749  if test -z "$ac_cv_path_GREP"; then
5750    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5751  fi
5752else
5753  ac_cv_path_GREP=$GREP
5754fi
5755
5756fi
5757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5758printf "%s\n" "$ac_cv_path_GREP" >&6; }
5759 GREP="$ac_cv_path_GREP"
5760
5761
5762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5763printf %s "checking for egrep... " >&6; }
5764if test ${ac_cv_path_EGREP+y}
5765then :
5766  printf %s "(cached) " >&6
5767else $as_nop
5768  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5769   then ac_cv_path_EGREP="$GREP -E"
5770   else
5771     if test -z "$EGREP"; then
5772  ac_path_EGREP_found=false
5773  # Loop through the user's path and test for each of PROGNAME-LIST
5774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5776do
5777  IFS=$as_save_IFS
5778  case $as_dir in #(((
5779    '') as_dir=./ ;;
5780    */) ;;
5781    *) as_dir=$as_dir/ ;;
5782  esac
5783    for ac_prog in egrep
5784   do
5785    for ac_exec_ext in '' $ac_executable_extensions; do
5786      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5787      as_fn_executable_p "$ac_path_EGREP" || continue
5788# Check for GNU ac_path_EGREP and select it if it is found.
5789  # Check for GNU $ac_path_EGREP
5790case `"$ac_path_EGREP" --version 2>&1` in
5791*GNU*)
5792  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5793*)
5794  ac_count=0
5795  printf %s 0123456789 >"conftest.in"
5796  while :
5797  do
5798    cat "conftest.in" "conftest.in" >"conftest.tmp"
5799    mv "conftest.tmp" "conftest.in"
5800    cp "conftest.in" "conftest.nl"
5801    printf "%s\n" 'EGREP' >> "conftest.nl"
5802    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5803    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5804    as_fn_arith $ac_count + 1 && ac_count=$as_val
5805    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5806      # Best one so far, save it but keep looking for a better one
5807      ac_cv_path_EGREP="$ac_path_EGREP"
5808      ac_path_EGREP_max=$ac_count
5809    fi
5810    # 10*(2^10) chars as input seems more than enough
5811    test $ac_count -gt 10 && break
5812  done
5813  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5814esac
5815
5816      $ac_path_EGREP_found && break 3
5817    done
5818  done
5819  done
5820IFS=$as_save_IFS
5821  if test -z "$ac_cv_path_EGREP"; then
5822    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5823  fi
5824else
5825  ac_cv_path_EGREP=$EGREP
5826fi
5827
5828   fi
5829fi
5830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5831printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5832 EGREP="$ac_cv_path_EGREP"
5833
5834
5835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5836printf %s "checking for fgrep... " >&6; }
5837if test ${ac_cv_path_FGREP+y}
5838then :
5839  printf %s "(cached) " >&6
5840else $as_nop
5841  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5842   then ac_cv_path_FGREP="$GREP -F"
5843   else
5844     if test -z "$FGREP"; then
5845  ac_path_FGREP_found=false
5846  # Loop through the user's path and test for each of PROGNAME-LIST
5847  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5849do
5850  IFS=$as_save_IFS
5851  case $as_dir in #(((
5852    '') as_dir=./ ;;
5853    */) ;;
5854    *) as_dir=$as_dir/ ;;
5855  esac
5856    for ac_prog in fgrep
5857   do
5858    for ac_exec_ext in '' $ac_executable_extensions; do
5859      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5860      as_fn_executable_p "$ac_path_FGREP" || continue
5861# Check for GNU ac_path_FGREP and select it if it is found.
5862  # Check for GNU $ac_path_FGREP
5863case `"$ac_path_FGREP" --version 2>&1` in
5864*GNU*)
5865  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5866*)
5867  ac_count=0
5868  printf %s 0123456789 >"conftest.in"
5869  while :
5870  do
5871    cat "conftest.in" "conftest.in" >"conftest.tmp"
5872    mv "conftest.tmp" "conftest.in"
5873    cp "conftest.in" "conftest.nl"
5874    printf "%s\n" 'FGREP' >> "conftest.nl"
5875    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5876    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5877    as_fn_arith $ac_count + 1 && ac_count=$as_val
5878    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5879      # Best one so far, save it but keep looking for a better one
5880      ac_cv_path_FGREP="$ac_path_FGREP"
5881      ac_path_FGREP_max=$ac_count
5882    fi
5883    # 10*(2^10) chars as input seems more than enough
5884    test $ac_count -gt 10 && break
5885  done
5886  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5887esac
5888
5889      $ac_path_FGREP_found && break 3
5890    done
5891  done
5892  done
5893IFS=$as_save_IFS
5894  if test -z "$ac_cv_path_FGREP"; then
5895    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5896  fi
5897else
5898  ac_cv_path_FGREP=$FGREP
5899fi
5900
5901   fi
5902fi
5903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5904printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5905 FGREP="$ac_cv_path_FGREP"
5906
5907
5908test -z "$GREP" && GREP=grep
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928# Check whether --with-gnu-ld was given.
5929if test ${with_gnu_ld+y}
5930then :
5931  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5932else $as_nop
5933  with_gnu_ld=no
5934fi
5935
5936ac_prog=ld
5937if test yes = "$GCC"; then
5938  # Check if gcc -print-prog-name=ld gives a path.
5939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5940printf %s "checking for ld used by $CC... " >&6; }
5941  case $host in
5942  *-*-mingw*)
5943    # gcc leaves a trailing carriage return, which upsets mingw
5944    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5945  *)
5946    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5947  esac
5948  case $ac_prog in
5949    # Accept absolute paths.
5950    [\\/]* | ?:[\\/]*)
5951      re_direlt='/[^/][^/]*/\.\./'
5952      # Canonicalize the pathname of ld
5953      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5954      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5955	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5956      done
5957      test -z "$LD" && LD=$ac_prog
5958      ;;
5959  "")
5960    # If it fails, then pretend we aren't using GCC.
5961    ac_prog=ld
5962    ;;
5963  *)
5964    # If it is relative, then search for the first ld in PATH.
5965    with_gnu_ld=unknown
5966    ;;
5967  esac
5968elif test yes = "$with_gnu_ld"; then
5969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5970printf %s "checking for GNU ld... " >&6; }
5971else
5972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5973printf %s "checking for non-GNU ld... " >&6; }
5974fi
5975if test ${lt_cv_path_LD+y}
5976then :
5977  printf %s "(cached) " >&6
5978else $as_nop
5979  if test -z "$LD"; then
5980  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5981  for ac_dir in $PATH; do
5982    IFS=$lt_save_ifs
5983    test -z "$ac_dir" && ac_dir=.
5984    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5985      lt_cv_path_LD=$ac_dir/$ac_prog
5986      # Check to see if the program is GNU ld.  I'd rather use --version,
5987      # but apparently some variants of GNU ld only accept -v.
5988      # Break only if it was the GNU/non-GNU ld that we prefer.
5989      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5990      *GNU* | *'with BFD'*)
5991	test no != "$with_gnu_ld" && break
5992	;;
5993      *)
5994	test yes != "$with_gnu_ld" && break
5995	;;
5996      esac
5997    fi
5998  done
5999  IFS=$lt_save_ifs
6000else
6001  lt_cv_path_LD=$LD # Let the user override the test with a path.
6002fi
6003fi
6004
6005LD=$lt_cv_path_LD
6006if test -n "$LD"; then
6007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6008printf "%s\n" "$LD" >&6; }
6009else
6010  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011printf "%s\n" "no" >&6; }
6012fi
6013test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6015printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6016if test ${lt_cv_prog_gnu_ld+y}
6017then :
6018  printf %s "(cached) " >&6
6019else $as_nop
6020  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6021case `$LD -v 2>&1 </dev/null` in
6022*GNU* | *'with BFD'*)
6023  lt_cv_prog_gnu_ld=yes
6024  ;;
6025*)
6026  lt_cv_prog_gnu_ld=no
6027  ;;
6028esac
6029fi
6030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6031printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6032with_gnu_ld=$lt_cv_prog_gnu_ld
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6043printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6044if test ${lt_cv_path_NM+y}
6045then :
6046  printf %s "(cached) " >&6
6047else $as_nop
6048  if test -n "$NM"; then
6049  # Let the user override the test.
6050  lt_cv_path_NM=$NM
6051else
6052  lt_nm_to_check=${ac_tool_prefix}nm
6053  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6054    lt_nm_to_check="$lt_nm_to_check nm"
6055  fi
6056  for lt_tmp_nm in $lt_nm_to_check; do
6057    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6058    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6059      IFS=$lt_save_ifs
6060      test -z "$ac_dir" && ac_dir=.
6061      tmp_nm=$ac_dir/$lt_tmp_nm
6062      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6063	# Check to see if the nm accepts a BSD-compat flag.
6064	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6065	#   nm: unknown option "B" ignored
6066	# Tru64's nm complains that /dev/null is an invalid object file
6067	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6068	case $build_os in
6069	mingw*) lt_bad_file=conftest.nm/nofile ;;
6070	*) lt_bad_file=/dev/null ;;
6071	esac
6072	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6073	*$lt_bad_file* | *'Invalid file or object type'*)
6074	  lt_cv_path_NM="$tmp_nm -B"
6075	  break 2
6076	  ;;
6077	*)
6078	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6079	  */dev/null*)
6080	    lt_cv_path_NM="$tmp_nm -p"
6081	    break 2
6082	    ;;
6083	  *)
6084	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6085	    continue # so that we can try to find one that supports BSD flags
6086	    ;;
6087	  esac
6088	  ;;
6089	esac
6090      fi
6091    done
6092    IFS=$lt_save_ifs
6093  done
6094  : ${lt_cv_path_NM=no}
6095fi
6096fi
6097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6098printf "%s\n" "$lt_cv_path_NM" >&6; }
6099if test no != "$lt_cv_path_NM"; then
6100  NM=$lt_cv_path_NM
6101else
6102  # Didn't find any BSD compatible name lister, look for dumpbin.
6103  if test -n "$DUMPBIN"; then :
6104    # Let the user override the test.
6105  else
6106    if test -n "$ac_tool_prefix"; then
6107  for ac_prog in dumpbin "link -dump"
6108  do
6109    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6110set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112printf %s "checking for $ac_word... " >&6; }
6113if test ${ac_cv_prog_DUMPBIN+y}
6114then :
6115  printf %s "(cached) " >&6
6116else $as_nop
6117  if test -n "$DUMPBIN"; then
6118  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6119else
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123  IFS=$as_save_IFS
6124  case $as_dir in #(((
6125    '') as_dir=./ ;;
6126    */) ;;
6127    *) as_dir=$as_dir/ ;;
6128  esac
6129    for ac_exec_ext in '' $ac_executable_extensions; do
6130  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6131    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6132    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6133    break 2
6134  fi
6135done
6136  done
6137IFS=$as_save_IFS
6138
6139fi
6140fi
6141DUMPBIN=$ac_cv_prog_DUMPBIN
6142if test -n "$DUMPBIN"; then
6143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6144printf "%s\n" "$DUMPBIN" >&6; }
6145else
6146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147printf "%s\n" "no" >&6; }
6148fi
6149
6150
6151    test -n "$DUMPBIN" && break
6152  done
6153fi
6154if test -z "$DUMPBIN"; then
6155  ac_ct_DUMPBIN=$DUMPBIN
6156  for ac_prog in dumpbin "link -dump"
6157do
6158  # Extract the first word of "$ac_prog", so it can be a program name with args.
6159set dummy $ac_prog; ac_word=$2
6160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161printf %s "checking for $ac_word... " >&6; }
6162if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6163then :
6164  printf %s "(cached) " >&6
6165else $as_nop
6166  if test -n "$ac_ct_DUMPBIN"; then
6167  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6168else
6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH
6171do
6172  IFS=$as_save_IFS
6173  case $as_dir in #(((
6174    '') as_dir=./ ;;
6175    */) ;;
6176    *) as_dir=$as_dir/ ;;
6177  esac
6178    for ac_exec_ext in '' $ac_executable_extensions; do
6179  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6180    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6181    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6182    break 2
6183  fi
6184done
6185  done
6186IFS=$as_save_IFS
6187
6188fi
6189fi
6190ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6191if test -n "$ac_ct_DUMPBIN"; then
6192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6193printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6194else
6195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196printf "%s\n" "no" >&6; }
6197fi
6198
6199
6200  test -n "$ac_ct_DUMPBIN" && break
6201done
6202
6203  if test "x$ac_ct_DUMPBIN" = x; then
6204    DUMPBIN=":"
6205  else
6206    case $cross_compiling:$ac_tool_warned in
6207yes:)
6208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210ac_tool_warned=yes ;;
6211esac
6212    DUMPBIN=$ac_ct_DUMPBIN
6213  fi
6214fi
6215
6216    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6217    *COFF*)
6218      DUMPBIN="$DUMPBIN -symbols -headers"
6219      ;;
6220    *)
6221      DUMPBIN=:
6222      ;;
6223    esac
6224  fi
6225
6226  if test : != "$DUMPBIN"; then
6227    NM=$DUMPBIN
6228  fi
6229fi
6230test -z "$NM" && NM=nm
6231
6232
6233
6234
6235
6236
6237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6238printf %s "checking the name lister ($NM) interface... " >&6; }
6239if test ${lt_cv_nm_interface+y}
6240then :
6241  printf %s "(cached) " >&6
6242else $as_nop
6243  lt_cv_nm_interface="BSD nm"
6244  echo "int some_variable = 0;" > conftest.$ac_ext
6245  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6246  (eval "$ac_compile" 2>conftest.err)
6247  cat conftest.err >&5
6248  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6249  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6250  cat conftest.err >&5
6251  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6252  cat conftest.out >&5
6253  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6254    lt_cv_nm_interface="MS dumpbin"
6255  fi
6256  rm -f conftest*
6257fi
6258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6259printf "%s\n" "$lt_cv_nm_interface" >&6; }
6260
6261# find the maximum length of command line arguments
6262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6263printf %s "checking the maximum length of command line arguments... " >&6; }
6264if test ${lt_cv_sys_max_cmd_len+y}
6265then :
6266  printf %s "(cached) " >&6
6267else $as_nop
6268    i=0
6269  teststring=ABCD
6270
6271  case $build_os in
6272  msdosdjgpp*)
6273    # On DJGPP, this test can blow up pretty badly due to problems in libc
6274    # (any single argument exceeding 2000 bytes causes a buffer overrun
6275    # during glob expansion).  Even if it were fixed, the result of this
6276    # check would be larger than it should be.
6277    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6278    ;;
6279
6280  gnu*)
6281    # Under GNU Hurd, this test is not required because there is
6282    # no limit to the length of command line arguments.
6283    # Libtool will interpret -1 as no limit whatsoever
6284    lt_cv_sys_max_cmd_len=-1;
6285    ;;
6286
6287  cygwin* | mingw* | cegcc*)
6288    # On Win9x/ME, this test blows up -- it succeeds, but takes
6289    # about 5 minutes as the teststring grows exponentially.
6290    # Worse, since 9x/ME are not pre-emptively multitasking,
6291    # you end up with a "frozen" computer, even though with patience
6292    # the test eventually succeeds (with a max line length of 256k).
6293    # Instead, let's just punt: use the minimum linelength reported by
6294    # all of the supported platforms: 8192 (on NT/2K/XP).
6295    lt_cv_sys_max_cmd_len=8192;
6296    ;;
6297
6298  mint*)
6299    # On MiNT this can take a long time and run out of memory.
6300    lt_cv_sys_max_cmd_len=8192;
6301    ;;
6302
6303  amigaos*)
6304    # On AmigaOS with pdksh, this test takes hours, literally.
6305    # So we just punt and use a minimum line length of 8192.
6306    lt_cv_sys_max_cmd_len=8192;
6307    ;;
6308
6309  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6310    # This has been around since 386BSD, at least.  Likely further.
6311    if test -x /sbin/sysctl; then
6312      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6313    elif test -x /usr/sbin/sysctl; then
6314      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6315    else
6316      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6317    fi
6318    # And add a safety zone
6319    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6320    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6321    ;;
6322
6323  interix*)
6324    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6325    lt_cv_sys_max_cmd_len=196608
6326    ;;
6327
6328  os2*)
6329    # The test takes a long time on OS/2.
6330    lt_cv_sys_max_cmd_len=8192
6331    ;;
6332
6333  osf*)
6334    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6335    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6336    # nice to cause kernel panics so lets avoid the loop below.
6337    # First set a reasonable default.
6338    lt_cv_sys_max_cmd_len=16384
6339    #
6340    if test -x /sbin/sysconfig; then
6341      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6342        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6343      esac
6344    fi
6345    ;;
6346  sco3.2v5*)
6347    lt_cv_sys_max_cmd_len=102400
6348    ;;
6349  sysv5* | sco5v6* | sysv4.2uw2*)
6350    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6351    if test -n "$kargmax"; then
6352      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6353    else
6354      lt_cv_sys_max_cmd_len=32768
6355    fi
6356    ;;
6357  *)
6358    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6359    if test -n "$lt_cv_sys_max_cmd_len" && \
6360       test undefined != "$lt_cv_sys_max_cmd_len"; then
6361      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6362      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6363    else
6364      # Make teststring a little bigger before we do anything with it.
6365      # a 1K string should be a reasonable start.
6366      for i in 1 2 3 4 5 6 7 8; do
6367        teststring=$teststring$teststring
6368      done
6369      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6370      # If test is not a shell built-in, we'll probably end up computing a
6371      # maximum length that is only half of the actual maximum length, but
6372      # we can't tell.
6373      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6374	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6375	      test 17 != "$i" # 1/2 MB should be enough
6376      do
6377        i=`expr $i + 1`
6378        teststring=$teststring$teststring
6379      done
6380      # Only check the string length outside the loop.
6381      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6382      teststring=
6383      # Add a significant safety factor because C++ compilers can tack on
6384      # massive amounts of additional arguments before passing them to the
6385      # linker.  It appears as though 1/2 is a usable value.
6386      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6387    fi
6388    ;;
6389  esac
6390
6391fi
6392
6393if test -n "$lt_cv_sys_max_cmd_len"; then
6394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6395printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6396else
6397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6398printf "%s\n" "none" >&6; }
6399fi
6400max_cmd_len=$lt_cv_sys_max_cmd_len
6401
6402
6403
6404
6405
6406
6407: ${CP="cp -f"}
6408: ${MV="mv -f"}
6409: ${RM="rm -f"}
6410
6411if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6412  lt_unset=unset
6413else
6414  lt_unset=false
6415fi
6416
6417
6418
6419
6420
6421# test EBCDIC or ASCII
6422case `echo X|tr X '\101'` in
6423 A) # ASCII based system
6424    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6425  lt_SP2NL='tr \040 \012'
6426  lt_NL2SP='tr \015\012 \040\040'
6427  ;;
6428 *) # EBCDIC based system
6429  lt_SP2NL='tr \100 \n'
6430  lt_NL2SP='tr \r\n \100\100'
6431  ;;
6432esac
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6443printf %s "checking how to convert $build file names to $host format... " >&6; }
6444if test ${lt_cv_to_host_file_cmd+y}
6445then :
6446  printf %s "(cached) " >&6
6447else $as_nop
6448  case $host in
6449  *-*-mingw* )
6450    case $build in
6451      *-*-mingw* ) # actually msys
6452        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6453        ;;
6454      *-*-cygwin* )
6455        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6456        ;;
6457      * ) # otherwise, assume *nix
6458        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6459        ;;
6460    esac
6461    ;;
6462  *-*-cygwin* )
6463    case $build in
6464      *-*-mingw* ) # actually msys
6465        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6466        ;;
6467      *-*-cygwin* )
6468        lt_cv_to_host_file_cmd=func_convert_file_noop
6469        ;;
6470      * ) # otherwise, assume *nix
6471        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6472        ;;
6473    esac
6474    ;;
6475  * ) # unhandled hosts (and "normal" native builds)
6476    lt_cv_to_host_file_cmd=func_convert_file_noop
6477    ;;
6478esac
6479
6480fi
6481
6482to_host_file_cmd=$lt_cv_to_host_file_cmd
6483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6484printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6485
6486
6487
6488
6489
6490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6491printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6492if test ${lt_cv_to_tool_file_cmd+y}
6493then :
6494  printf %s "(cached) " >&6
6495else $as_nop
6496  #assume ordinary cross tools, or native build.
6497lt_cv_to_tool_file_cmd=func_convert_file_noop
6498case $host in
6499  *-*-mingw* )
6500    case $build in
6501      *-*-mingw* ) # actually msys
6502        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6503        ;;
6504    esac
6505    ;;
6506esac
6507
6508fi
6509
6510to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6512printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6513
6514
6515
6516
6517
6518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6519printf %s "checking for $LD option to reload object files... " >&6; }
6520if test ${lt_cv_ld_reload_flag+y}
6521then :
6522  printf %s "(cached) " >&6
6523else $as_nop
6524  lt_cv_ld_reload_flag='-r'
6525fi
6526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6527printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6528reload_flag=$lt_cv_ld_reload_flag
6529case $reload_flag in
6530"" | " "*) ;;
6531*) reload_flag=" $reload_flag" ;;
6532esac
6533reload_cmds='$LD$reload_flag -o $output$reload_objs'
6534case $host_os in
6535  cygwin* | mingw* | pw32* | cegcc*)
6536    if test yes != "$GCC"; then
6537      reload_cmds=false
6538    fi
6539    ;;
6540  darwin*)
6541    if test yes = "$GCC"; then
6542      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6543    else
6544      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6545    fi
6546    ;;
6547esac
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557if test -n "$ac_tool_prefix"; then
6558  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6559set dummy ${ac_tool_prefix}objdump; ac_word=$2
6560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561printf %s "checking for $ac_word... " >&6; }
6562if test ${ac_cv_prog_OBJDUMP+y}
6563then :
6564  printf %s "(cached) " >&6
6565else $as_nop
6566  if test -n "$OBJDUMP"; then
6567  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6568else
6569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570for as_dir in $PATH
6571do
6572  IFS=$as_save_IFS
6573  case $as_dir in #(((
6574    '') as_dir=./ ;;
6575    */) ;;
6576    *) as_dir=$as_dir/ ;;
6577  esac
6578    for ac_exec_ext in '' $ac_executable_extensions; do
6579  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6580    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6581    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6582    break 2
6583  fi
6584done
6585  done
6586IFS=$as_save_IFS
6587
6588fi
6589fi
6590OBJDUMP=$ac_cv_prog_OBJDUMP
6591if test -n "$OBJDUMP"; then
6592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6593printf "%s\n" "$OBJDUMP" >&6; }
6594else
6595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596printf "%s\n" "no" >&6; }
6597fi
6598
6599
6600fi
6601if test -z "$ac_cv_prog_OBJDUMP"; then
6602  ac_ct_OBJDUMP=$OBJDUMP
6603  # Extract the first word of "objdump", so it can be a program name with args.
6604set dummy objdump; ac_word=$2
6605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606printf %s "checking for $ac_word... " >&6; }
6607if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6608then :
6609  printf %s "(cached) " >&6
6610else $as_nop
6611  if test -n "$ac_ct_OBJDUMP"; then
6612  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6613else
6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617  IFS=$as_save_IFS
6618  case $as_dir in #(((
6619    '') as_dir=./ ;;
6620    */) ;;
6621    *) as_dir=$as_dir/ ;;
6622  esac
6623    for ac_exec_ext in '' $ac_executable_extensions; do
6624  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6625    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6626    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6627    break 2
6628  fi
6629done
6630  done
6631IFS=$as_save_IFS
6632
6633fi
6634fi
6635ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6636if test -n "$ac_ct_OBJDUMP"; then
6637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6638printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6639else
6640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641printf "%s\n" "no" >&6; }
6642fi
6643
6644  if test "x$ac_ct_OBJDUMP" = x; then
6645    OBJDUMP="false"
6646  else
6647    case $cross_compiling:$ac_tool_warned in
6648yes:)
6649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6650printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6651ac_tool_warned=yes ;;
6652esac
6653    OBJDUMP=$ac_ct_OBJDUMP
6654  fi
6655else
6656  OBJDUMP="$ac_cv_prog_OBJDUMP"
6657fi
6658
6659test -z "$OBJDUMP" && OBJDUMP=objdump
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6670printf %s "checking how to recognize dependent libraries... " >&6; }
6671if test ${lt_cv_deplibs_check_method+y}
6672then :
6673  printf %s "(cached) " >&6
6674else $as_nop
6675  lt_cv_file_magic_cmd='$MAGIC_CMD'
6676lt_cv_file_magic_test_file=
6677lt_cv_deplibs_check_method='unknown'
6678# Need to set the preceding variable on all platforms that support
6679# interlibrary dependencies.
6680# 'none' -- dependencies not supported.
6681# 'unknown' -- same as none, but documents that we really don't know.
6682# 'pass_all' -- all dependencies passed with no checks.
6683# 'test_compile' -- check by making test program.
6684# 'file_magic [[regex]]' -- check by looking for files in library path
6685# that responds to the $file_magic_cmd with a given extended regex.
6686# If you have 'file' or equivalent on your system and you're not sure
6687# whether 'pass_all' will *always* work, you probably want this one.
6688
6689case $host_os in
6690aix[4-9]*)
6691  lt_cv_deplibs_check_method=pass_all
6692  ;;
6693
6694beos*)
6695  lt_cv_deplibs_check_method=pass_all
6696  ;;
6697
6698bsdi[45]*)
6699  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6700  lt_cv_file_magic_cmd='/usr/bin/file -L'
6701  lt_cv_file_magic_test_file=/shlib/libc.so
6702  ;;
6703
6704cygwin*)
6705  # func_win32_libid is a shell function defined in ltmain.sh
6706  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6707  lt_cv_file_magic_cmd='func_win32_libid'
6708  ;;
6709
6710mingw* | pw32*)
6711  # Base MSYS/MinGW do not provide the 'file' command needed by
6712  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6713  # unless we find 'file', for example because we are cross-compiling.
6714  if ( file / ) >/dev/null 2>&1; then
6715    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6716    lt_cv_file_magic_cmd='func_win32_libid'
6717  else
6718    # Keep this pattern in sync with the one in func_win32_libid.
6719    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6720    lt_cv_file_magic_cmd='$OBJDUMP -f'
6721  fi
6722  ;;
6723
6724cegcc*)
6725  # use the weaker test based on 'objdump'. See mingw*.
6726  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6727  lt_cv_file_magic_cmd='$OBJDUMP -f'
6728  ;;
6729
6730darwin* | rhapsody*)
6731  lt_cv_deplibs_check_method=pass_all
6732  ;;
6733
6734freebsd* | dragonfly*)
6735  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6736    case $host_cpu in
6737    i*86 )
6738      # Not sure whether the presence of OpenBSD here was a mistake.
6739      # Let's accept both of them until this is cleared up.
6740      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6741      lt_cv_file_magic_cmd=/usr/bin/file
6742      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6743      ;;
6744    esac
6745  else
6746    lt_cv_deplibs_check_method=pass_all
6747  fi
6748  ;;
6749
6750haiku*)
6751  lt_cv_deplibs_check_method=pass_all
6752  ;;
6753
6754hpux10.20* | hpux11*)
6755  lt_cv_file_magic_cmd=/usr/bin/file
6756  case $host_cpu in
6757  ia64*)
6758    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6759    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6760    ;;
6761  hppa*64*)
6762    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]'
6763    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6764    ;;
6765  *)
6766    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6767    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6768    ;;
6769  esac
6770  ;;
6771
6772interix[3-9]*)
6773  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6774  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6775  ;;
6776
6777irix5* | irix6* | nonstopux*)
6778  case $LD in
6779  *-32|*"-32 ") libmagic=32-bit;;
6780  *-n32|*"-n32 ") libmagic=N32;;
6781  *-64|*"-64 ") libmagic=64-bit;;
6782  *) libmagic=never-match;;
6783  esac
6784  lt_cv_deplibs_check_method=pass_all
6785  ;;
6786
6787# This must be glibc/ELF.
6788linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6789  lt_cv_deplibs_check_method=pass_all
6790  ;;
6791
6792netbsd*)
6793  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6794    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6795  else
6796    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6797  fi
6798  ;;
6799
6800newos6*)
6801  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6802  lt_cv_file_magic_cmd=/usr/bin/file
6803  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6804  ;;
6805
6806*nto* | *qnx*)
6807  lt_cv_deplibs_check_method=pass_all
6808  ;;
6809
6810openbsd* | bitrig*)
6811  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6812    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6813  else
6814    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6815  fi
6816  ;;
6817
6818osf3* | osf4* | osf5*)
6819  lt_cv_deplibs_check_method=pass_all
6820  ;;
6821
6822rdos*)
6823  lt_cv_deplibs_check_method=pass_all
6824  ;;
6825
6826solaris*)
6827  lt_cv_deplibs_check_method=pass_all
6828  ;;
6829
6830sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6831  lt_cv_deplibs_check_method=pass_all
6832  ;;
6833
6834sysv4 | sysv4.3*)
6835  case $host_vendor in
6836  motorola)
6837    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]'
6838    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6839    ;;
6840  ncr)
6841    lt_cv_deplibs_check_method=pass_all
6842    ;;
6843  sequent)
6844    lt_cv_file_magic_cmd='/bin/file'
6845    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6846    ;;
6847  sni)
6848    lt_cv_file_magic_cmd='/bin/file'
6849    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6850    lt_cv_file_magic_test_file=/lib/libc.so
6851    ;;
6852  siemens)
6853    lt_cv_deplibs_check_method=pass_all
6854    ;;
6855  pc)
6856    lt_cv_deplibs_check_method=pass_all
6857    ;;
6858  esac
6859  ;;
6860
6861tpf*)
6862  lt_cv_deplibs_check_method=pass_all
6863  ;;
6864os2*)
6865  lt_cv_deplibs_check_method=pass_all
6866  ;;
6867esac
6868
6869fi
6870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6871printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6872
6873file_magic_glob=
6874want_nocaseglob=no
6875if test "$build" = "$host"; then
6876  case $host_os in
6877  mingw* | pw32*)
6878    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6879      want_nocaseglob=yes
6880    else
6881      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6882    fi
6883    ;;
6884  esac
6885fi
6886
6887file_magic_cmd=$lt_cv_file_magic_cmd
6888deplibs_check_method=$lt_cv_deplibs_check_method
6889test -z "$deplibs_check_method" && deplibs_check_method=unknown
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912if test -n "$ac_tool_prefix"; then
6913  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6914set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916printf %s "checking for $ac_word... " >&6; }
6917if test ${ac_cv_prog_DLLTOOL+y}
6918then :
6919  printf %s "(cached) " >&6
6920else $as_nop
6921  if test -n "$DLLTOOL"; then
6922  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6923else
6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927  IFS=$as_save_IFS
6928  case $as_dir in #(((
6929    '') as_dir=./ ;;
6930    */) ;;
6931    *) as_dir=$as_dir/ ;;
6932  esac
6933    for ac_exec_ext in '' $ac_executable_extensions; do
6934  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6935    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6936    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6937    break 2
6938  fi
6939done
6940  done
6941IFS=$as_save_IFS
6942
6943fi
6944fi
6945DLLTOOL=$ac_cv_prog_DLLTOOL
6946if test -n "$DLLTOOL"; then
6947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6948printf "%s\n" "$DLLTOOL" >&6; }
6949else
6950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951printf "%s\n" "no" >&6; }
6952fi
6953
6954
6955fi
6956if test -z "$ac_cv_prog_DLLTOOL"; then
6957  ac_ct_DLLTOOL=$DLLTOOL
6958  # Extract the first word of "dlltool", so it can be a program name with args.
6959set dummy dlltool; ac_word=$2
6960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961printf %s "checking for $ac_word... " >&6; }
6962if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6963then :
6964  printf %s "(cached) " >&6
6965else $as_nop
6966  if test -n "$ac_ct_DLLTOOL"; then
6967  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6968else
6969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970for as_dir in $PATH
6971do
6972  IFS=$as_save_IFS
6973  case $as_dir in #(((
6974    '') as_dir=./ ;;
6975    */) ;;
6976    *) as_dir=$as_dir/ ;;
6977  esac
6978    for ac_exec_ext in '' $ac_executable_extensions; do
6979  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6980    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6981    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6982    break 2
6983  fi
6984done
6985  done
6986IFS=$as_save_IFS
6987
6988fi
6989fi
6990ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6991if test -n "$ac_ct_DLLTOOL"; then
6992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6993printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6994else
6995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996printf "%s\n" "no" >&6; }
6997fi
6998
6999  if test "x$ac_ct_DLLTOOL" = x; then
7000    DLLTOOL="false"
7001  else
7002    case $cross_compiling:$ac_tool_warned in
7003yes:)
7004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7005printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7006ac_tool_warned=yes ;;
7007esac
7008    DLLTOOL=$ac_ct_DLLTOOL
7009  fi
7010else
7011  DLLTOOL="$ac_cv_prog_DLLTOOL"
7012fi
7013
7014test -z "$DLLTOOL" && DLLTOOL=dlltool
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7026printf %s "checking how to associate runtime and link libraries... " >&6; }
7027if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7028then :
7029  printf %s "(cached) " >&6
7030else $as_nop
7031  lt_cv_sharedlib_from_linklib_cmd='unknown'
7032
7033case $host_os in
7034cygwin* | mingw* | pw32* | cegcc*)
7035  # two different shell functions defined in ltmain.sh;
7036  # decide which one to use based on capabilities of $DLLTOOL
7037  case `$DLLTOOL --help 2>&1` in
7038  *--identify-strict*)
7039    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7040    ;;
7041  *)
7042    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7043    ;;
7044  esac
7045  ;;
7046*)
7047  # fallback: assume linklib IS sharedlib
7048  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7049  ;;
7050esac
7051
7052fi
7053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7054printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7055sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7056test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7057
7058
7059
7060
7061
7062
7063
7064if test -n "$ac_tool_prefix"; then
7065  for ac_prog in ar
7066  do
7067    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7068set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070printf %s "checking for $ac_word... " >&6; }
7071if test ${ac_cv_prog_AR+y}
7072then :
7073  printf %s "(cached) " >&6
7074else $as_nop
7075  if test -n "$AR"; then
7076  ac_cv_prog_AR="$AR" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081  IFS=$as_save_IFS
7082  case $as_dir in #(((
7083    '') as_dir=./ ;;
7084    */) ;;
7085    *) as_dir=$as_dir/ ;;
7086  esac
7087    for ac_exec_ext in '' $ac_executable_extensions; do
7088  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7089    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7090    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7091    break 2
7092  fi
7093done
7094  done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099AR=$ac_cv_prog_AR
7100if test -n "$AR"; then
7101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7102printf "%s\n" "$AR" >&6; }
7103else
7104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105printf "%s\n" "no" >&6; }
7106fi
7107
7108
7109    test -n "$AR" && break
7110  done
7111fi
7112if test -z "$AR"; then
7113  ac_ct_AR=$AR
7114  for ac_prog in ar
7115do
7116  # Extract the first word of "$ac_prog", so it can be a program name with args.
7117set dummy $ac_prog; ac_word=$2
7118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119printf %s "checking for $ac_word... " >&6; }
7120if test ${ac_cv_prog_ac_ct_AR+y}
7121then :
7122  printf %s "(cached) " >&6
7123else $as_nop
7124  if test -n "$ac_ct_AR"; then
7125  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7126else
7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130  IFS=$as_save_IFS
7131  case $as_dir in #(((
7132    '') as_dir=./ ;;
7133    */) ;;
7134    *) as_dir=$as_dir/ ;;
7135  esac
7136    for ac_exec_ext in '' $ac_executable_extensions; do
7137  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7138    ac_cv_prog_ac_ct_AR="$ac_prog"
7139    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7140    break 2
7141  fi
7142done
7143  done
7144IFS=$as_save_IFS
7145
7146fi
7147fi
7148ac_ct_AR=$ac_cv_prog_ac_ct_AR
7149if test -n "$ac_ct_AR"; then
7150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7151printf "%s\n" "$ac_ct_AR" >&6; }
7152else
7153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154printf "%s\n" "no" >&6; }
7155fi
7156
7157
7158  test -n "$ac_ct_AR" && break
7159done
7160
7161  if test "x$ac_ct_AR" = x; then
7162    AR="false"
7163  else
7164    case $cross_compiling:$ac_tool_warned in
7165yes:)
7166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7167printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7168ac_tool_warned=yes ;;
7169esac
7170    AR=$ac_ct_AR
7171  fi
7172fi
7173
7174: ${AR=ar}
7175: ${AR_FLAGS=cru}
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7188printf %s "checking for archiver @FILE support... " >&6; }
7189if test ${lt_cv_ar_at_file+y}
7190then :
7191  printf %s "(cached) " >&6
7192else $as_nop
7193  lt_cv_ar_at_file=no
7194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195/* end confdefs.h.  */
7196
7197int
7198main (void)
7199{
7200
7201  ;
7202  return 0;
7203}
7204_ACEOF
7205if ac_fn_c_try_compile "$LINENO"
7206then :
7207  echo conftest.$ac_objext > conftest.lst
7208      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7209      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7210  (eval $lt_ar_try) 2>&5
7211  ac_status=$?
7212  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7213  test $ac_status = 0; }
7214      if test 0 -eq "$ac_status"; then
7215	# Ensure the archiver fails upon bogus file names.
7216	rm -f conftest.$ac_objext libconftest.a
7217	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7218  (eval $lt_ar_try) 2>&5
7219  ac_status=$?
7220  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7221  test $ac_status = 0; }
7222	if test 0 -ne "$ac_status"; then
7223          lt_cv_ar_at_file=@
7224        fi
7225      fi
7226      rm -f conftest.* libconftest.a
7227
7228fi
7229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7230
7231fi
7232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7233printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7234
7235if test no = "$lt_cv_ar_at_file"; then
7236  archiver_list_spec=
7237else
7238  archiver_list_spec=$lt_cv_ar_at_file
7239fi
7240
7241
7242
7243
7244
7245
7246
7247if test -n "$ac_tool_prefix"; then
7248  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7249set dummy ${ac_tool_prefix}strip; ac_word=$2
7250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251printf %s "checking for $ac_word... " >&6; }
7252if test ${ac_cv_prog_STRIP+y}
7253then :
7254  printf %s "(cached) " >&6
7255else $as_nop
7256  if test -n "$STRIP"; then
7257  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7258else
7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262  IFS=$as_save_IFS
7263  case $as_dir in #(((
7264    '') as_dir=./ ;;
7265    */) ;;
7266    *) as_dir=$as_dir/ ;;
7267  esac
7268    for ac_exec_ext in '' $ac_executable_extensions; do
7269  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7270    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7271    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7272    break 2
7273  fi
7274done
7275  done
7276IFS=$as_save_IFS
7277
7278fi
7279fi
7280STRIP=$ac_cv_prog_STRIP
7281if test -n "$STRIP"; then
7282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7283printf "%s\n" "$STRIP" >&6; }
7284else
7285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286printf "%s\n" "no" >&6; }
7287fi
7288
7289
7290fi
7291if test -z "$ac_cv_prog_STRIP"; then
7292  ac_ct_STRIP=$STRIP
7293  # Extract the first word of "strip", so it can be a program name with args.
7294set dummy strip; ac_word=$2
7295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296printf %s "checking for $ac_word... " >&6; }
7297if test ${ac_cv_prog_ac_ct_STRIP+y}
7298then :
7299  printf %s "(cached) " >&6
7300else $as_nop
7301  if test -n "$ac_ct_STRIP"; then
7302  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7303else
7304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307  IFS=$as_save_IFS
7308  case $as_dir in #(((
7309    '') as_dir=./ ;;
7310    */) ;;
7311    *) as_dir=$as_dir/ ;;
7312  esac
7313    for ac_exec_ext in '' $ac_executable_extensions; do
7314  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7315    ac_cv_prog_ac_ct_STRIP="strip"
7316    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7317    break 2
7318  fi
7319done
7320  done
7321IFS=$as_save_IFS
7322
7323fi
7324fi
7325ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7326if test -n "$ac_ct_STRIP"; then
7327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7328printf "%s\n" "$ac_ct_STRIP" >&6; }
7329else
7330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331printf "%s\n" "no" >&6; }
7332fi
7333
7334  if test "x$ac_ct_STRIP" = x; then
7335    STRIP=":"
7336  else
7337    case $cross_compiling:$ac_tool_warned in
7338yes:)
7339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7340printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341ac_tool_warned=yes ;;
7342esac
7343    STRIP=$ac_ct_STRIP
7344  fi
7345else
7346  STRIP="$ac_cv_prog_STRIP"
7347fi
7348
7349test -z "$STRIP" && STRIP=:
7350
7351
7352
7353
7354
7355
7356if test -n "$ac_tool_prefix"; then
7357  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7358set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360printf %s "checking for $ac_word... " >&6; }
7361if test ${ac_cv_prog_RANLIB+y}
7362then :
7363  printf %s "(cached) " >&6
7364else $as_nop
7365  if test -n "$RANLIB"; then
7366  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7367else
7368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371  IFS=$as_save_IFS
7372  case $as_dir in #(((
7373    '') as_dir=./ ;;
7374    */) ;;
7375    *) as_dir=$as_dir/ ;;
7376  esac
7377    for ac_exec_ext in '' $ac_executable_extensions; do
7378  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7379    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7380    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7381    break 2
7382  fi
7383done
7384  done
7385IFS=$as_save_IFS
7386
7387fi
7388fi
7389RANLIB=$ac_cv_prog_RANLIB
7390if test -n "$RANLIB"; then
7391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7392printf "%s\n" "$RANLIB" >&6; }
7393else
7394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395printf "%s\n" "no" >&6; }
7396fi
7397
7398
7399fi
7400if test -z "$ac_cv_prog_RANLIB"; then
7401  ac_ct_RANLIB=$RANLIB
7402  # Extract the first word of "ranlib", so it can be a program name with args.
7403set dummy ranlib; ac_word=$2
7404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405printf %s "checking for $ac_word... " >&6; }
7406if test ${ac_cv_prog_ac_ct_RANLIB+y}
7407then :
7408  printf %s "(cached) " >&6
7409else $as_nop
7410  if test -n "$ac_ct_RANLIB"; then
7411  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7412else
7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416  IFS=$as_save_IFS
7417  case $as_dir in #(((
7418    '') as_dir=./ ;;
7419    */) ;;
7420    *) as_dir=$as_dir/ ;;
7421  esac
7422    for ac_exec_ext in '' $ac_executable_extensions; do
7423  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7424    ac_cv_prog_ac_ct_RANLIB="ranlib"
7425    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7426    break 2
7427  fi
7428done
7429  done
7430IFS=$as_save_IFS
7431
7432fi
7433fi
7434ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7435if test -n "$ac_ct_RANLIB"; then
7436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7437printf "%s\n" "$ac_ct_RANLIB" >&6; }
7438else
7439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440printf "%s\n" "no" >&6; }
7441fi
7442
7443  if test "x$ac_ct_RANLIB" = x; then
7444    RANLIB=":"
7445  else
7446    case $cross_compiling:$ac_tool_warned in
7447yes:)
7448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7449printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7450ac_tool_warned=yes ;;
7451esac
7452    RANLIB=$ac_ct_RANLIB
7453  fi
7454else
7455  RANLIB="$ac_cv_prog_RANLIB"
7456fi
7457
7458test -z "$RANLIB" && RANLIB=:
7459
7460
7461
7462
7463
7464
7465# Determine commands to create old-style static archives.
7466old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7467old_postinstall_cmds='chmod 644 $oldlib'
7468old_postuninstall_cmds=
7469
7470if test -n "$RANLIB"; then
7471  case $host_os in
7472  bitrig* | openbsd*)
7473    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7474    ;;
7475  *)
7476    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7477    ;;
7478  esac
7479  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7480fi
7481
7482case $host_os in
7483  darwin*)
7484    lock_old_archive_extraction=yes ;;
7485  *)
7486    lock_old_archive_extraction=no ;;
7487esac
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527# If no C compiler was specified, use CC.
7528LTCC=${LTCC-"$CC"}
7529
7530# If no C compiler flags were specified, use CFLAGS.
7531LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7532
7533# Allow CC to be a program name with arguments.
7534compiler=$CC
7535
7536
7537# Check for command to grab the raw symbol name followed by C symbol from nm.
7538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7539printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7540if test ${lt_cv_sys_global_symbol_pipe+y}
7541then :
7542  printf %s "(cached) " >&6
7543else $as_nop
7544
7545# These are sane defaults that work on at least a few old systems.
7546# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7547
7548# Character class describing NM global symbol codes.
7549symcode='[BCDEGRST]'
7550
7551# Regexp to match symbols that can be accessed directly from C.
7552sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7553
7554# Define system-specific variables.
7555case $host_os in
7556aix*)
7557  symcode='[BCDT]'
7558  ;;
7559cygwin* | mingw* | pw32* | cegcc*)
7560  symcode='[ABCDGISTW]'
7561  ;;
7562hpux*)
7563  if test ia64 = "$host_cpu"; then
7564    symcode='[ABCDEGRST]'
7565  fi
7566  ;;
7567irix* | nonstopux*)
7568  symcode='[BCDEGRST]'
7569  ;;
7570osf*)
7571  symcode='[BCDEGQRST]'
7572  ;;
7573solaris*)
7574  symcode='[BDRT]'
7575  ;;
7576sco3.2v5*)
7577  symcode='[DT]'
7578  ;;
7579sysv4.2uw2*)
7580  symcode='[DT]'
7581  ;;
7582sysv5* | sco5v6* | unixware* | OpenUNIX*)
7583  symcode='[ABDT]'
7584  ;;
7585sysv4)
7586  symcode='[DFNSTU]'
7587  ;;
7588esac
7589
7590# If we're using GNU nm, then use its standard symbol codes.
7591case `$NM -V 2>&1` in
7592*GNU* | *'with BFD'*)
7593  symcode='[ABCDGIRSTW]' ;;
7594esac
7595
7596if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7597  # Gets list of data symbols to import.
7598  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7599  # Adjust the below global symbol transforms to fixup imported variables.
7600  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7601  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7602  lt_c_name_lib_hook="\
7603  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7604  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7605else
7606  # Disable hooks by default.
7607  lt_cv_sys_global_symbol_to_import=
7608  lt_cdecl_hook=
7609  lt_c_name_hook=
7610  lt_c_name_lib_hook=
7611fi
7612
7613# Transform an extracted symbol line into a proper C declaration.
7614# Some systems (esp. on ia64) link data and code symbols differently,
7615# so use this general approach.
7616lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7617$lt_cdecl_hook\
7618" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7619" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7620
7621# Transform an extracted symbol line into symbol name and symbol address
7622lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7623$lt_c_name_hook\
7624" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7625" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7626
7627# Transform an extracted symbol line into symbol name with lib prefix and
7628# symbol address.
7629lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7630$lt_c_name_lib_hook\
7631" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7632" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7633" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7634
7635# Handle CRLF in mingw tool chain
7636opt_cr=
7637case $build_os in
7638mingw*)
7639  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7640  ;;
7641esac
7642
7643# Try without a prefix underscore, then with it.
7644for ac_symprfx in "" "_"; do
7645
7646  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7647  symxfrm="\\1 $ac_symprfx\\2 \\2"
7648
7649  # Write the raw and C identifiers.
7650  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7651    # Fake it for dumpbin and say T for any non-static function,
7652    # D for any global variable and I for any imported variable.
7653    # Also find C++ and __fastcall symbols from MSVC++,
7654    # which start with @ or ?.
7655    lt_cv_sys_global_symbol_pipe="$AWK '"\
7656"     {last_section=section; section=\$ 3};"\
7657"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7658"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7659"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7660"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7661"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7662"     \$ 0!~/External *\|/{next};"\
7663"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7664"     {if(hide[section]) next};"\
7665"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7666"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7667"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7668"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7669"     ' prfx=^$ac_symprfx"
7670  else
7671    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7672  fi
7673  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7674
7675  # Check to see that the pipe works correctly.
7676  pipe_works=no
7677
7678  rm -f conftest*
7679  cat > conftest.$ac_ext <<_LT_EOF
7680#ifdef __cplusplus
7681extern "C" {
7682#endif
7683char nm_test_var;
7684void nm_test_func(void);
7685void nm_test_func(void){}
7686#ifdef __cplusplus
7687}
7688#endif
7689int main(){nm_test_var='a';nm_test_func();return(0);}
7690_LT_EOF
7691
7692  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7693  (eval $ac_compile) 2>&5
7694  ac_status=$?
7695  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696  test $ac_status = 0; }; then
7697    # Now try to grab the symbols.
7698    nlist=conftest.nm
7699    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7700  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7701  ac_status=$?
7702  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703  test $ac_status = 0; } && test -s "$nlist"; then
7704      # Try sorting and uniquifying the output.
7705      if sort "$nlist" | uniq > "$nlist"T; then
7706	mv -f "$nlist"T "$nlist"
7707      else
7708	rm -f "$nlist"T
7709      fi
7710
7711      # Make sure that we snagged all the symbols we need.
7712      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7713	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7714	  cat <<_LT_EOF > conftest.$ac_ext
7715/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7716#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7717/* DATA imports from DLLs on WIN32 can't be const, because runtime
7718   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7719# define LT_DLSYM_CONST
7720#elif defined __osf__
7721/* This system does not cope well with relocations in const data.  */
7722# define LT_DLSYM_CONST
7723#else
7724# define LT_DLSYM_CONST const
7725#endif
7726
7727#ifdef __cplusplus
7728extern "C" {
7729#endif
7730
7731_LT_EOF
7732	  # Now generate the symbol file.
7733	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7734
7735	  cat <<_LT_EOF >> conftest.$ac_ext
7736
7737/* The mapping between symbol names and symbols.  */
7738LT_DLSYM_CONST struct {
7739  const char *name;
7740  void       *address;
7741}
7742lt__PROGRAM__LTX_preloaded_symbols[] =
7743{
7744  { "@PROGRAM@", (void *) 0 },
7745_LT_EOF
7746	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7747	  cat <<\_LT_EOF >> conftest.$ac_ext
7748  {0, (void *) 0}
7749};
7750
7751/* This works around a problem in FreeBSD linker */
7752#ifdef FREEBSD_WORKAROUND
7753static const void *lt_preloaded_setup() {
7754  return lt__PROGRAM__LTX_preloaded_symbols;
7755}
7756#endif
7757
7758#ifdef __cplusplus
7759}
7760#endif
7761_LT_EOF
7762	  # Now try linking the two files.
7763	  mv conftest.$ac_objext conftstm.$ac_objext
7764	  lt_globsym_save_LIBS=$LIBS
7765	  lt_globsym_save_CFLAGS=$CFLAGS
7766	  LIBS=conftstm.$ac_objext
7767	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7768	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7769  (eval $ac_link) 2>&5
7770  ac_status=$?
7771  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7772  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7773	    pipe_works=yes
7774	  fi
7775	  LIBS=$lt_globsym_save_LIBS
7776	  CFLAGS=$lt_globsym_save_CFLAGS
7777	else
7778	  echo "cannot find nm_test_func in $nlist" >&5
7779	fi
7780      else
7781	echo "cannot find nm_test_var in $nlist" >&5
7782      fi
7783    else
7784      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7785    fi
7786  else
7787    echo "$progname: failed program was:" >&5
7788    cat conftest.$ac_ext >&5
7789  fi
7790  rm -rf conftest* conftst*
7791
7792  # Do not use the global_symbol_pipe unless it works.
7793  if test yes = "$pipe_works"; then
7794    break
7795  else
7796    lt_cv_sys_global_symbol_pipe=
7797  fi
7798done
7799
7800fi
7801
7802if test -z "$lt_cv_sys_global_symbol_pipe"; then
7803  lt_cv_sys_global_symbol_to_cdecl=
7804fi
7805if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7807printf "%s\n" "failed" >&6; }
7808else
7809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7810printf "%s\n" "ok" >&6; }
7811fi
7812
7813# Response file support.
7814if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7815  nm_file_list_spec='@'
7816elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7817  nm_file_list_spec='@'
7818fi
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7857printf %s "checking for sysroot... " >&6; }
7858
7859# Check whether --with-sysroot was given.
7860if test ${with_sysroot+y}
7861then :
7862  withval=$with_sysroot;
7863else $as_nop
7864  with_sysroot=no
7865fi
7866
7867
7868lt_sysroot=
7869case $with_sysroot in #(
7870 yes)
7871   if test yes = "$GCC"; then
7872     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7873   fi
7874   ;; #(
7875 /*)
7876   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7877   ;; #(
7878 no|'')
7879   ;; #(
7880 *)
7881   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7882printf "%s\n" "$with_sysroot" >&6; }
7883   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7884   ;;
7885esac
7886
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7888printf "%s\n" "${lt_sysroot:-no}" >&6; }
7889
7890
7891
7892
7893
7894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7895printf %s "checking for a working dd... " >&6; }
7896if test ${ac_cv_path_lt_DD+y}
7897then :
7898  printf %s "(cached) " >&6
7899else $as_nop
7900  printf 0123456789abcdef0123456789abcdef >conftest.i
7901cat conftest.i conftest.i >conftest2.i
7902: ${lt_DD:=$DD}
7903if test -z "$lt_DD"; then
7904  ac_path_lt_DD_found=false
7905  # Loop through the user's path and test for each of PROGNAME-LIST
7906  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907for as_dir in $PATH
7908do
7909  IFS=$as_save_IFS
7910  case $as_dir in #(((
7911    '') as_dir=./ ;;
7912    */) ;;
7913    *) as_dir=$as_dir/ ;;
7914  esac
7915    for ac_prog in dd
7916   do
7917    for ac_exec_ext in '' $ac_executable_extensions; do
7918      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7919      as_fn_executable_p "$ac_path_lt_DD" || continue
7920if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7921  cmp -s conftest.i conftest.out \
7922  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7923fi
7924      $ac_path_lt_DD_found && break 3
7925    done
7926  done
7927  done
7928IFS=$as_save_IFS
7929  if test -z "$ac_cv_path_lt_DD"; then
7930    :
7931  fi
7932else
7933  ac_cv_path_lt_DD=$lt_DD
7934fi
7935
7936rm -f conftest.i conftest2.i conftest.out
7937fi
7938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7939printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7940
7941
7942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7943printf %s "checking how to truncate binary pipes... " >&6; }
7944if test ${lt_cv_truncate_bin+y}
7945then :
7946  printf %s "(cached) " >&6
7947else $as_nop
7948  printf 0123456789abcdef0123456789abcdef >conftest.i
7949cat conftest.i conftest.i >conftest2.i
7950lt_cv_truncate_bin=
7951if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7952  cmp -s conftest.i conftest.out \
7953  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7954fi
7955rm -f conftest.i conftest2.i conftest.out
7956test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7957fi
7958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7959printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7960
7961
7962
7963
7964
7965
7966
7967# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7968func_cc_basename ()
7969{
7970    for cc_temp in $*""; do
7971      case $cc_temp in
7972        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7973        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7974        \-*) ;;
7975        *) break;;
7976      esac
7977    done
7978    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7979}
7980
7981# Check whether --enable-libtool-lock was given.
7982if test ${enable_libtool_lock+y}
7983then :
7984  enableval=$enable_libtool_lock;
7985fi
7986
7987test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7988
7989# Some flags need to be propagated to the compiler or linker for good
7990# libtool support.
7991case $host in
7992ia64-*-hpux*)
7993  # Find out what ABI is being produced by ac_compile, and set mode
7994  # options accordingly.
7995  echo 'int i;' > conftest.$ac_ext
7996  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7997  (eval $ac_compile) 2>&5
7998  ac_status=$?
7999  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8000  test $ac_status = 0; }; then
8001    case `/usr/bin/file conftest.$ac_objext` in
8002      *ELF-32*)
8003	HPUX_IA64_MODE=32
8004	;;
8005      *ELF-64*)
8006	HPUX_IA64_MODE=64
8007	;;
8008    esac
8009  fi
8010  rm -rf conftest*
8011  ;;
8012*-*-irix6*)
8013  # Find out what ABI is being produced by ac_compile, and set linker
8014  # options accordingly.
8015  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8016  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8017  (eval $ac_compile) 2>&5
8018  ac_status=$?
8019  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8020  test $ac_status = 0; }; then
8021    if test yes = "$lt_cv_prog_gnu_ld"; then
8022      case `/usr/bin/file conftest.$ac_objext` in
8023	*32-bit*)
8024	  LD="${LD-ld} -melf32bsmip"
8025	  ;;
8026	*N32*)
8027	  LD="${LD-ld} -melf32bmipn32"
8028	  ;;
8029	*64-bit*)
8030	  LD="${LD-ld} -melf64bmip"
8031	;;
8032      esac
8033    else
8034      case `/usr/bin/file conftest.$ac_objext` in
8035	*32-bit*)
8036	  LD="${LD-ld} -32"
8037	  ;;
8038	*N32*)
8039	  LD="${LD-ld} -n32"
8040	  ;;
8041	*64-bit*)
8042	  LD="${LD-ld} -64"
8043	  ;;
8044      esac
8045    fi
8046  fi
8047  rm -rf conftest*
8048  ;;
8049
8050mips64*-*linux*)
8051  # Find out what ABI is being produced by ac_compile, and set linker
8052  # options accordingly.
8053  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8054  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8055  (eval $ac_compile) 2>&5
8056  ac_status=$?
8057  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8058  test $ac_status = 0; }; then
8059    emul=elf
8060    case `/usr/bin/file conftest.$ac_objext` in
8061      *32-bit*)
8062	emul="${emul}32"
8063	;;
8064      *64-bit*)
8065	emul="${emul}64"
8066	;;
8067    esac
8068    case `/usr/bin/file conftest.$ac_objext` in
8069      *MSB*)
8070	emul="${emul}btsmip"
8071	;;
8072      *LSB*)
8073	emul="${emul}ltsmip"
8074	;;
8075    esac
8076    case `/usr/bin/file conftest.$ac_objext` in
8077      *N32*)
8078	emul="${emul}n32"
8079	;;
8080    esac
8081    LD="${LD-ld} -m $emul"
8082  fi
8083  rm -rf conftest*
8084  ;;
8085
8086x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8087s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8088  # Find out what ABI is being produced by ac_compile, and set linker
8089  # options accordingly.  Note that the listed cases only cover the
8090  # situations where additional linker options are needed (such as when
8091  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8092  # vice versa); the common cases where no linker options are needed do
8093  # not appear in the list.
8094  echo 'int i;' > conftest.$ac_ext
8095  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8096  (eval $ac_compile) 2>&5
8097  ac_status=$?
8098  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8099  test $ac_status = 0; }; then
8100    case `/usr/bin/file conftest.o` in
8101      *32-bit*)
8102	case $host in
8103	  x86_64-*kfreebsd*-gnu)
8104	    LD="${LD-ld} -m elf_i386_fbsd"
8105	    ;;
8106	  x86_64-*linux*)
8107	    case `/usr/bin/file conftest.o` in
8108	      *x86-64*)
8109		LD="${LD-ld} -m elf32_x86_64"
8110		;;
8111	      *)
8112		LD="${LD-ld} -m elf_i386"
8113		;;
8114	    esac
8115	    ;;
8116	  powerpc64le-*linux*)
8117	    LD="${LD-ld} -m elf32lppclinux"
8118	    ;;
8119	  powerpc64-*linux*)
8120	    LD="${LD-ld} -m elf32ppclinux"
8121	    ;;
8122	  s390x-*linux*)
8123	    LD="${LD-ld} -m elf_s390"
8124	    ;;
8125	  sparc64-*linux*)
8126	    LD="${LD-ld} -m elf32_sparc"
8127	    ;;
8128	esac
8129	;;
8130      *64-bit*)
8131	case $host in
8132	  x86_64-*kfreebsd*-gnu)
8133	    LD="${LD-ld} -m elf_x86_64_fbsd"
8134	    ;;
8135	  x86_64-*linux*)
8136	    LD="${LD-ld} -m elf_x86_64"
8137	    ;;
8138	  powerpcle-*linux*)
8139	    LD="${LD-ld} -m elf64lppc"
8140	    ;;
8141	  powerpc-*linux*)
8142	    LD="${LD-ld} -m elf64ppc"
8143	    ;;
8144	  s390*-*linux*|s390*-*tpf*)
8145	    LD="${LD-ld} -m elf64_s390"
8146	    ;;
8147	  sparc*-*linux*)
8148	    LD="${LD-ld} -m elf64_sparc"
8149	    ;;
8150	esac
8151	;;
8152    esac
8153  fi
8154  rm -rf conftest*
8155  ;;
8156
8157*-*-sco3.2v5*)
8158  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8159  SAVE_CFLAGS=$CFLAGS
8160  CFLAGS="$CFLAGS -belf"
8161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8162printf %s "checking whether the C compiler needs -belf... " >&6; }
8163if test ${lt_cv_cc_needs_belf+y}
8164then :
8165  printf %s "(cached) " >&6
8166else $as_nop
8167  ac_ext=c
8168ac_cpp='$CPP $CPPFLAGS'
8169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8171ac_compiler_gnu=$ac_cv_c_compiler_gnu
8172
8173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174/* end confdefs.h.  */
8175
8176int
8177main (void)
8178{
8179
8180  ;
8181  return 0;
8182}
8183_ACEOF
8184if ac_fn_c_try_link "$LINENO"
8185then :
8186  lt_cv_cc_needs_belf=yes
8187else $as_nop
8188  lt_cv_cc_needs_belf=no
8189fi
8190rm -f core conftest.err conftest.$ac_objext conftest.beam \
8191    conftest$ac_exeext conftest.$ac_ext
8192     ac_ext=c
8193ac_cpp='$CPP $CPPFLAGS'
8194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8196ac_compiler_gnu=$ac_cv_c_compiler_gnu
8197
8198fi
8199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8200printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8201  if test yes != "$lt_cv_cc_needs_belf"; then
8202    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8203    CFLAGS=$SAVE_CFLAGS
8204  fi
8205  ;;
8206*-*solaris*)
8207  # Find out what ABI is being produced by ac_compile, and set linker
8208  # options accordingly.
8209  echo 'int i;' > conftest.$ac_ext
8210  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8211  (eval $ac_compile) 2>&5
8212  ac_status=$?
8213  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8214  test $ac_status = 0; }; then
8215    case `/usr/bin/file conftest.o` in
8216    *64-bit*)
8217      case $lt_cv_prog_gnu_ld in
8218      yes*)
8219        case $host in
8220        i?86-*-solaris*|x86_64-*-solaris*)
8221          LD="${LD-ld} -m elf_x86_64"
8222          ;;
8223        sparc*-*-solaris*)
8224          LD="${LD-ld} -m elf64_sparc"
8225          ;;
8226        esac
8227        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8228        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8229          LD=${LD-ld}_sol2
8230        fi
8231        ;;
8232      *)
8233	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8234	  LD="${LD-ld} -64"
8235	fi
8236	;;
8237      esac
8238      ;;
8239    esac
8240  fi
8241  rm -rf conftest*
8242  ;;
8243esac
8244
8245need_locks=$enable_libtool_lock
8246
8247if test -n "$ac_tool_prefix"; then
8248  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8249set dummy ${ac_tool_prefix}mt; ac_word=$2
8250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8251printf %s "checking for $ac_word... " >&6; }
8252if test ${ac_cv_prog_MANIFEST_TOOL+y}
8253then :
8254  printf %s "(cached) " >&6
8255else $as_nop
8256  if test -n "$MANIFEST_TOOL"; then
8257  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8258else
8259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260for as_dir in $PATH
8261do
8262  IFS=$as_save_IFS
8263  case $as_dir in #(((
8264    '') as_dir=./ ;;
8265    */) ;;
8266    *) as_dir=$as_dir/ ;;
8267  esac
8268    for ac_exec_ext in '' $ac_executable_extensions; do
8269  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8270    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8271    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8272    break 2
8273  fi
8274done
8275  done
8276IFS=$as_save_IFS
8277
8278fi
8279fi
8280MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8281if test -n "$MANIFEST_TOOL"; then
8282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8283printf "%s\n" "$MANIFEST_TOOL" >&6; }
8284else
8285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286printf "%s\n" "no" >&6; }
8287fi
8288
8289
8290fi
8291if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8292  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8293  # Extract the first word of "mt", so it can be a program name with args.
8294set dummy mt; ac_word=$2
8295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296printf %s "checking for $ac_word... " >&6; }
8297if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8298then :
8299  printf %s "(cached) " >&6
8300else $as_nop
8301  if test -n "$ac_ct_MANIFEST_TOOL"; then
8302  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8303else
8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307  IFS=$as_save_IFS
8308  case $as_dir in #(((
8309    '') as_dir=./ ;;
8310    */) ;;
8311    *) as_dir=$as_dir/ ;;
8312  esac
8313    for ac_exec_ext in '' $ac_executable_extensions; do
8314  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8315    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8316    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8317    break 2
8318  fi
8319done
8320  done
8321IFS=$as_save_IFS
8322
8323fi
8324fi
8325ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8326if test -n "$ac_ct_MANIFEST_TOOL"; then
8327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8328printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8329else
8330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331printf "%s\n" "no" >&6; }
8332fi
8333
8334  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8335    MANIFEST_TOOL=":"
8336  else
8337    case $cross_compiling:$ac_tool_warned in
8338yes:)
8339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8340printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8341ac_tool_warned=yes ;;
8342esac
8343    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8344  fi
8345else
8346  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8347fi
8348
8349test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8351printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8352if test ${lt_cv_path_mainfest_tool+y}
8353then :
8354  printf %s "(cached) " >&6
8355else $as_nop
8356  lt_cv_path_mainfest_tool=no
8357  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8358  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8359  cat conftest.err >&5
8360  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8361    lt_cv_path_mainfest_tool=yes
8362  fi
8363  rm -f conftest*
8364fi
8365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8366printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8367if test yes != "$lt_cv_path_mainfest_tool"; then
8368  MANIFEST_TOOL=:
8369fi
8370
8371
8372
8373
8374
8375
8376  case $host_os in
8377    rhapsody* | darwin*)
8378    if test -n "$ac_tool_prefix"; then
8379  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8380set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382printf %s "checking for $ac_word... " >&6; }
8383if test ${ac_cv_prog_DSYMUTIL+y}
8384then :
8385  printf %s "(cached) " >&6
8386else $as_nop
8387  if test -n "$DSYMUTIL"; then
8388  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8389else
8390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391for as_dir in $PATH
8392do
8393  IFS=$as_save_IFS
8394  case $as_dir in #(((
8395    '') as_dir=./ ;;
8396    */) ;;
8397    *) as_dir=$as_dir/ ;;
8398  esac
8399    for ac_exec_ext in '' $ac_executable_extensions; do
8400  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8401    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8402    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8403    break 2
8404  fi
8405done
8406  done
8407IFS=$as_save_IFS
8408
8409fi
8410fi
8411DSYMUTIL=$ac_cv_prog_DSYMUTIL
8412if test -n "$DSYMUTIL"; then
8413  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8414printf "%s\n" "$DSYMUTIL" >&6; }
8415else
8416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417printf "%s\n" "no" >&6; }
8418fi
8419
8420
8421fi
8422if test -z "$ac_cv_prog_DSYMUTIL"; then
8423  ac_ct_DSYMUTIL=$DSYMUTIL
8424  # Extract the first word of "dsymutil", so it can be a program name with args.
8425set dummy dsymutil; ac_word=$2
8426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427printf %s "checking for $ac_word... " >&6; }
8428if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8429then :
8430  printf %s "(cached) " >&6
8431else $as_nop
8432  if test -n "$ac_ct_DSYMUTIL"; then
8433  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8434else
8435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436for as_dir in $PATH
8437do
8438  IFS=$as_save_IFS
8439  case $as_dir in #(((
8440    '') as_dir=./ ;;
8441    */) ;;
8442    *) as_dir=$as_dir/ ;;
8443  esac
8444    for ac_exec_ext in '' $ac_executable_extensions; do
8445  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8446    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8447    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8448    break 2
8449  fi
8450done
8451  done
8452IFS=$as_save_IFS
8453
8454fi
8455fi
8456ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8457if test -n "$ac_ct_DSYMUTIL"; then
8458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8459printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8460else
8461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462printf "%s\n" "no" >&6; }
8463fi
8464
8465  if test "x$ac_ct_DSYMUTIL" = x; then
8466    DSYMUTIL=":"
8467  else
8468    case $cross_compiling:$ac_tool_warned in
8469yes:)
8470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8471printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8472ac_tool_warned=yes ;;
8473esac
8474    DSYMUTIL=$ac_ct_DSYMUTIL
8475  fi
8476else
8477  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8478fi
8479
8480    if test -n "$ac_tool_prefix"; then
8481  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8482set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484printf %s "checking for $ac_word... " >&6; }
8485if test ${ac_cv_prog_NMEDIT+y}
8486then :
8487  printf %s "(cached) " >&6
8488else $as_nop
8489  if test -n "$NMEDIT"; then
8490  ac_cv_prog_NMEDIT="$NMEDIT" # 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  case $as_dir in #(((
8497    '') as_dir=./ ;;
8498    */) ;;
8499    *) as_dir=$as_dir/ ;;
8500  esac
8501    for ac_exec_ext in '' $ac_executable_extensions; do
8502  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8503    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8504    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8505    break 2
8506  fi
8507done
8508  done
8509IFS=$as_save_IFS
8510
8511fi
8512fi
8513NMEDIT=$ac_cv_prog_NMEDIT
8514if test -n "$NMEDIT"; then
8515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8516printf "%s\n" "$NMEDIT" >&6; }
8517else
8518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519printf "%s\n" "no" >&6; }
8520fi
8521
8522
8523fi
8524if test -z "$ac_cv_prog_NMEDIT"; then
8525  ac_ct_NMEDIT=$NMEDIT
8526  # Extract the first word of "nmedit", so it can be a program name with args.
8527set dummy nmedit; ac_word=$2
8528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529printf %s "checking for $ac_word... " >&6; }
8530if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8531then :
8532  printf %s "(cached) " >&6
8533else $as_nop
8534  if test -n "$ac_ct_NMEDIT"; then
8535  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8536else
8537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538for as_dir in $PATH
8539do
8540  IFS=$as_save_IFS
8541  case $as_dir in #(((
8542    '') as_dir=./ ;;
8543    */) ;;
8544    *) as_dir=$as_dir/ ;;
8545  esac
8546    for ac_exec_ext in '' $ac_executable_extensions; do
8547  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8548    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8549    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8550    break 2
8551  fi
8552done
8553  done
8554IFS=$as_save_IFS
8555
8556fi
8557fi
8558ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8559if test -n "$ac_ct_NMEDIT"; then
8560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8561printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8562else
8563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564printf "%s\n" "no" >&6; }
8565fi
8566
8567  if test "x$ac_ct_NMEDIT" = x; then
8568    NMEDIT=":"
8569  else
8570    case $cross_compiling:$ac_tool_warned in
8571yes:)
8572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8573printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8574ac_tool_warned=yes ;;
8575esac
8576    NMEDIT=$ac_ct_NMEDIT
8577  fi
8578else
8579  NMEDIT="$ac_cv_prog_NMEDIT"
8580fi
8581
8582    if test -n "$ac_tool_prefix"; then
8583  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8584set dummy ${ac_tool_prefix}lipo; ac_word=$2
8585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586printf %s "checking for $ac_word... " >&6; }
8587if test ${ac_cv_prog_LIPO+y}
8588then :
8589  printf %s "(cached) " >&6
8590else $as_nop
8591  if test -n "$LIPO"; then
8592  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8593else
8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597  IFS=$as_save_IFS
8598  case $as_dir in #(((
8599    '') as_dir=./ ;;
8600    */) ;;
8601    *) as_dir=$as_dir/ ;;
8602  esac
8603    for ac_exec_ext in '' $ac_executable_extensions; do
8604  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8605    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8606    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8607    break 2
8608  fi
8609done
8610  done
8611IFS=$as_save_IFS
8612
8613fi
8614fi
8615LIPO=$ac_cv_prog_LIPO
8616if test -n "$LIPO"; then
8617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8618printf "%s\n" "$LIPO" >&6; }
8619else
8620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621printf "%s\n" "no" >&6; }
8622fi
8623
8624
8625fi
8626if test -z "$ac_cv_prog_LIPO"; then
8627  ac_ct_LIPO=$LIPO
8628  # Extract the first word of "lipo", so it can be a program name with args.
8629set dummy lipo; ac_word=$2
8630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8631printf %s "checking for $ac_word... " >&6; }
8632if test ${ac_cv_prog_ac_ct_LIPO+y}
8633then :
8634  printf %s "(cached) " >&6
8635else $as_nop
8636  if test -n "$ac_ct_LIPO"; then
8637  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8638else
8639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640for as_dir in $PATH
8641do
8642  IFS=$as_save_IFS
8643  case $as_dir in #(((
8644    '') as_dir=./ ;;
8645    */) ;;
8646    *) as_dir=$as_dir/ ;;
8647  esac
8648    for ac_exec_ext in '' $ac_executable_extensions; do
8649  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8650    ac_cv_prog_ac_ct_LIPO="lipo"
8651    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8652    break 2
8653  fi
8654done
8655  done
8656IFS=$as_save_IFS
8657
8658fi
8659fi
8660ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8661if test -n "$ac_ct_LIPO"; then
8662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8663printf "%s\n" "$ac_ct_LIPO" >&6; }
8664else
8665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666printf "%s\n" "no" >&6; }
8667fi
8668
8669  if test "x$ac_ct_LIPO" = x; then
8670    LIPO=":"
8671  else
8672    case $cross_compiling:$ac_tool_warned in
8673yes:)
8674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8675printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8676ac_tool_warned=yes ;;
8677esac
8678    LIPO=$ac_ct_LIPO
8679  fi
8680else
8681  LIPO="$ac_cv_prog_LIPO"
8682fi
8683
8684    if test -n "$ac_tool_prefix"; then
8685  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8686set dummy ${ac_tool_prefix}otool; ac_word=$2
8687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688printf %s "checking for $ac_word... " >&6; }
8689if test ${ac_cv_prog_OTOOL+y}
8690then :
8691  printf %s "(cached) " >&6
8692else $as_nop
8693  if test -n "$OTOOL"; then
8694  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8695else
8696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697for as_dir in $PATH
8698do
8699  IFS=$as_save_IFS
8700  case $as_dir in #(((
8701    '') as_dir=./ ;;
8702    */) ;;
8703    *) as_dir=$as_dir/ ;;
8704  esac
8705    for ac_exec_ext in '' $ac_executable_extensions; do
8706  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8707    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8708    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8709    break 2
8710  fi
8711done
8712  done
8713IFS=$as_save_IFS
8714
8715fi
8716fi
8717OTOOL=$ac_cv_prog_OTOOL
8718if test -n "$OTOOL"; then
8719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8720printf "%s\n" "$OTOOL" >&6; }
8721else
8722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723printf "%s\n" "no" >&6; }
8724fi
8725
8726
8727fi
8728if test -z "$ac_cv_prog_OTOOL"; then
8729  ac_ct_OTOOL=$OTOOL
8730  # Extract the first word of "otool", so it can be a program name with args.
8731set dummy otool; ac_word=$2
8732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733printf %s "checking for $ac_word... " >&6; }
8734if test ${ac_cv_prog_ac_ct_OTOOL+y}
8735then :
8736  printf %s "(cached) " >&6
8737else $as_nop
8738  if test -n "$ac_ct_OTOOL"; then
8739  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8740else
8741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742for as_dir in $PATH
8743do
8744  IFS=$as_save_IFS
8745  case $as_dir in #(((
8746    '') as_dir=./ ;;
8747    */) ;;
8748    *) as_dir=$as_dir/ ;;
8749  esac
8750    for ac_exec_ext in '' $ac_executable_extensions; do
8751  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8752    ac_cv_prog_ac_ct_OTOOL="otool"
8753    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8754    break 2
8755  fi
8756done
8757  done
8758IFS=$as_save_IFS
8759
8760fi
8761fi
8762ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8763if test -n "$ac_ct_OTOOL"; then
8764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8765printf "%s\n" "$ac_ct_OTOOL" >&6; }
8766else
8767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768printf "%s\n" "no" >&6; }
8769fi
8770
8771  if test "x$ac_ct_OTOOL" = x; then
8772    OTOOL=":"
8773  else
8774    case $cross_compiling:$ac_tool_warned in
8775yes:)
8776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8777printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8778ac_tool_warned=yes ;;
8779esac
8780    OTOOL=$ac_ct_OTOOL
8781  fi
8782else
8783  OTOOL="$ac_cv_prog_OTOOL"
8784fi
8785
8786    if test -n "$ac_tool_prefix"; then
8787  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8788set dummy ${ac_tool_prefix}otool64; ac_word=$2
8789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790printf %s "checking for $ac_word... " >&6; }
8791if test ${ac_cv_prog_OTOOL64+y}
8792then :
8793  printf %s "(cached) " >&6
8794else $as_nop
8795  if test -n "$OTOOL64"; then
8796  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8797else
8798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799for as_dir in $PATH
8800do
8801  IFS=$as_save_IFS
8802  case $as_dir in #(((
8803    '') as_dir=./ ;;
8804    */) ;;
8805    *) as_dir=$as_dir/ ;;
8806  esac
8807    for ac_exec_ext in '' $ac_executable_extensions; do
8808  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8809    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8810    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8811    break 2
8812  fi
8813done
8814  done
8815IFS=$as_save_IFS
8816
8817fi
8818fi
8819OTOOL64=$ac_cv_prog_OTOOL64
8820if test -n "$OTOOL64"; then
8821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8822printf "%s\n" "$OTOOL64" >&6; }
8823else
8824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825printf "%s\n" "no" >&6; }
8826fi
8827
8828
8829fi
8830if test -z "$ac_cv_prog_OTOOL64"; then
8831  ac_ct_OTOOL64=$OTOOL64
8832  # Extract the first word of "otool64", so it can be a program name with args.
8833set dummy otool64; ac_word=$2
8834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835printf %s "checking for $ac_word... " >&6; }
8836if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8837then :
8838  printf %s "(cached) " >&6
8839else $as_nop
8840  if test -n "$ac_ct_OTOOL64"; then
8841  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8842else
8843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844for as_dir in $PATH
8845do
8846  IFS=$as_save_IFS
8847  case $as_dir in #(((
8848    '') as_dir=./ ;;
8849    */) ;;
8850    *) as_dir=$as_dir/ ;;
8851  esac
8852    for ac_exec_ext in '' $ac_executable_extensions; do
8853  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8854    ac_cv_prog_ac_ct_OTOOL64="otool64"
8855    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8856    break 2
8857  fi
8858done
8859  done
8860IFS=$as_save_IFS
8861
8862fi
8863fi
8864ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8865if test -n "$ac_ct_OTOOL64"; then
8866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8867printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8868else
8869  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870printf "%s\n" "no" >&6; }
8871fi
8872
8873  if test "x$ac_ct_OTOOL64" = x; then
8874    OTOOL64=":"
8875  else
8876    case $cross_compiling:$ac_tool_warned in
8877yes:)
8878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8879printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8880ac_tool_warned=yes ;;
8881esac
8882    OTOOL64=$ac_ct_OTOOL64
8883  fi
8884else
8885  OTOOL64="$ac_cv_prog_OTOOL64"
8886fi
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8915printf %s "checking for -single_module linker flag... " >&6; }
8916if test ${lt_cv_apple_cc_single_mod+y}
8917then :
8918  printf %s "(cached) " >&6
8919else $as_nop
8920  lt_cv_apple_cc_single_mod=no
8921      if test -z "$LT_MULTI_MODULE"; then
8922	# By default we will add the -single_module flag. You can override
8923	# by either setting the environment variable LT_MULTI_MODULE
8924	# non-empty at configure time, or by adding -multi_module to the
8925	# link flags.
8926	rm -rf libconftest.dylib*
8927	echo "int foo(void){return 1;}" > conftest.c
8928	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8929-dynamiclib -Wl,-single_module conftest.c" >&5
8930	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8931	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8932        _lt_result=$?
8933	# If there is a non-empty error log, and "single_module"
8934	# appears in it, assume the flag caused a linker warning
8935        if test -s conftest.err && $GREP single_module conftest.err; then
8936	  cat conftest.err >&5
8937	# Otherwise, if the output was created with a 0 exit code from
8938	# the compiler, it worked.
8939	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8940	  lt_cv_apple_cc_single_mod=yes
8941	else
8942	  cat conftest.err >&5
8943	fi
8944	rm -rf libconftest.dylib*
8945	rm -f conftest.*
8946      fi
8947fi
8948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8949printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8950
8951    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8952printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8953if test ${lt_cv_ld_exported_symbols_list+y}
8954then :
8955  printf %s "(cached) " >&6
8956else $as_nop
8957  lt_cv_ld_exported_symbols_list=no
8958      save_LDFLAGS=$LDFLAGS
8959      echo "_main" > conftest.sym
8960      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8961      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962/* end confdefs.h.  */
8963
8964int
8965main (void)
8966{
8967
8968  ;
8969  return 0;
8970}
8971_ACEOF
8972if ac_fn_c_try_link "$LINENO"
8973then :
8974  lt_cv_ld_exported_symbols_list=yes
8975else $as_nop
8976  lt_cv_ld_exported_symbols_list=no
8977fi
8978rm -f core conftest.err conftest.$ac_objext conftest.beam \
8979    conftest$ac_exeext conftest.$ac_ext
8980	LDFLAGS=$save_LDFLAGS
8981
8982fi
8983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8984printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8985
8986    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8987printf %s "checking for -force_load linker flag... " >&6; }
8988if test ${lt_cv_ld_force_load+y}
8989then :
8990  printf %s "(cached) " >&6
8991else $as_nop
8992  lt_cv_ld_force_load=no
8993      cat > conftest.c << _LT_EOF
8994int forced_loaded() { return 2;}
8995_LT_EOF
8996      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8997      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8998      echo "$AR cru libconftest.a conftest.o" >&5
8999      $AR cru libconftest.a conftest.o 2>&5
9000      echo "$RANLIB libconftest.a" >&5
9001      $RANLIB libconftest.a 2>&5
9002      cat > conftest.c << _LT_EOF
9003int main() { return 0;}
9004_LT_EOF
9005      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9006      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9007      _lt_result=$?
9008      if test -s conftest.err && $GREP force_load conftest.err; then
9009	cat conftest.err >&5
9010      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9011	lt_cv_ld_force_load=yes
9012      else
9013	cat conftest.err >&5
9014      fi
9015        rm -f conftest.err libconftest.a conftest conftest.c
9016        rm -rf conftest.dSYM
9017
9018fi
9019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9020printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9021    case $host_os in
9022    rhapsody* | darwin1.[012])
9023      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9024    darwin1.*)
9025      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9026    darwin*) # darwin 5.x on
9027      # if running on 10.5 or later, the deployment target defaults
9028      # to the OS version, if on x86, and 10.4, the deployment
9029      # target defaults to 10.4. Don't you love it?
9030      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9031	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9032	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9033	10.[012][,.]*)
9034	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9035	10.*)
9036	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9037      esac
9038    ;;
9039  esac
9040    if test yes = "$lt_cv_apple_cc_single_mod"; then
9041      _lt_dar_single_mod='$single_module'
9042    fi
9043    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9044      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9045    else
9046      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9047    fi
9048    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9049      _lt_dsymutil='~$DSYMUTIL $lib || :'
9050    else
9051      _lt_dsymutil=
9052    fi
9053    ;;
9054  esac
9055
9056# func_munge_path_list VARIABLE PATH
9057# -----------------------------------
9058# VARIABLE is name of variable containing _space_ separated list of
9059# directories to be munged by the contents of PATH, which is string
9060# having a format:
9061# "DIR[:DIR]:"
9062#       string "DIR[ DIR]" will be prepended to VARIABLE
9063# ":DIR[:DIR]"
9064#       string "DIR[ DIR]" will be appended to VARIABLE
9065# "DIRP[:DIRP]::[DIRA:]DIRA"
9066#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9067#       "DIRA[ DIRA]" will be appended to VARIABLE
9068# "DIR[:DIR]"
9069#       VARIABLE will be replaced by "DIR[ DIR]"
9070func_munge_path_list ()
9071{
9072    case x$2 in
9073    x)
9074        ;;
9075    *:)
9076        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9077        ;;
9078    x:*)
9079        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9080        ;;
9081    *::*)
9082        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9083        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9084        ;;
9085    *)
9086        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9087        ;;
9088    esac
9089}
9090
9091ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9092"
9093if test "x$ac_cv_header_dlfcn_h" = xyes
9094then :
9095  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9096
9097fi
9098
9099
9100
9101
9102
9103# Set options
9104# Check whether --enable-static was given.
9105if test ${enable_static+y}
9106then :
9107  enableval=$enable_static; p=${PACKAGE-default}
9108    case $enableval in
9109    yes) enable_static=yes ;;
9110    no) enable_static=no ;;
9111    *)
9112     enable_static=no
9113      # Look at the argument we got.  We use all the common list separators.
9114      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9115      for pkg in $enableval; do
9116	IFS=$lt_save_ifs
9117	if test "X$pkg" = "X$p"; then
9118	  enable_static=yes
9119	fi
9120      done
9121      IFS=$lt_save_ifs
9122      ;;
9123    esac
9124else $as_nop
9125  enable_static=no
9126fi
9127
9128
9129
9130
9131
9132
9133
9134
9135# Check whether --with-pic was given.
9136if test ${with_pic+y}
9137then :
9138  withval=$with_pic; lt_p=${PACKAGE-default}
9139    case $withval in
9140    yes|no) pic_mode=$withval ;;
9141    *)
9142      pic_mode=default
9143      # Look at the argument we got.  We use all the common list separators.
9144      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9145      for lt_pkg in $withval; do
9146	IFS=$lt_save_ifs
9147	if test "X$lt_pkg" = "X$lt_p"; then
9148	  pic_mode=yes
9149	fi
9150      done
9151      IFS=$lt_save_ifs
9152      ;;
9153    esac
9154else $as_nop
9155  pic_mode=yes
9156fi
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166        enable_dlopen=no
9167
9168
9169  enable_win32_dll=no
9170
9171
9172            # Check whether --enable-shared was given.
9173if test ${enable_shared+y}
9174then :
9175  enableval=$enable_shared; p=${PACKAGE-default}
9176    case $enableval in
9177    yes) enable_shared=yes ;;
9178    no) enable_shared=no ;;
9179    *)
9180      enable_shared=no
9181      # Look at the argument we got.  We use all the common list separators.
9182      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9183      for pkg in $enableval; do
9184	IFS=$lt_save_ifs
9185	if test "X$pkg" = "X$p"; then
9186	  enable_shared=yes
9187	fi
9188      done
9189      IFS=$lt_save_ifs
9190      ;;
9191    esac
9192else $as_nop
9193  enable_shared=yes
9194fi
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206  # Check whether --enable-fast-install was given.
9207if test ${enable_fast_install+y}
9208then :
9209  enableval=$enable_fast_install; p=${PACKAGE-default}
9210    case $enableval in
9211    yes) enable_fast_install=yes ;;
9212    no) enable_fast_install=no ;;
9213    *)
9214      enable_fast_install=no
9215      # Look at the argument we got.  We use all the common list separators.
9216      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9217      for pkg in $enableval; do
9218	IFS=$lt_save_ifs
9219	if test "X$pkg" = "X$p"; then
9220	  enable_fast_install=yes
9221	fi
9222      done
9223      IFS=$lt_save_ifs
9224      ;;
9225    esac
9226else $as_nop
9227  enable_fast_install=yes
9228fi
9229
9230
9231
9232
9233
9234
9235
9236
9237  shared_archive_member_spec=
9238case $host,$enable_shared in
9239power*-*-aix[5-9]*,yes)
9240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9241printf %s "checking which variant of shared library versioning to provide... " >&6; }
9242
9243# Check whether --with-aix-soname was given.
9244if test ${with_aix_soname+y}
9245then :
9246  withval=$with_aix_soname; case $withval in
9247    aix|svr4|both)
9248      ;;
9249    *)
9250      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9251      ;;
9252    esac
9253    lt_cv_with_aix_soname=$with_aix_soname
9254else $as_nop
9255  if test ${lt_cv_with_aix_soname+y}
9256then :
9257  printf %s "(cached) " >&6
9258else $as_nop
9259  lt_cv_with_aix_soname=aix
9260fi
9261
9262    with_aix_soname=$lt_cv_with_aix_soname
9263fi
9264
9265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9266printf "%s\n" "$with_aix_soname" >&6; }
9267  if test aix != "$with_aix_soname"; then
9268    # For the AIX way of multilib, we name the shared archive member
9269    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9270    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9271    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9272    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9273    if test 64 = "${OBJECT_MODE-32}"; then
9274      shared_archive_member_spec=shr_64
9275    else
9276      shared_archive_member_spec=shr
9277    fi
9278  fi
9279  ;;
9280*)
9281  with_aix_soname=aix
9282  ;;
9283esac
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294# This can be used to rebuild libtool when needed
9295LIBTOOL_DEPS=$ltmain
9296
9297# Always use our own libtool.
9298LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329test -z "$LN_S" && LN_S="ln -s"
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344if test -n "${ZSH_VERSION+set}"; then
9345   setopt NO_GLOB_SUBST
9346fi
9347
9348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9349printf %s "checking for objdir... " >&6; }
9350if test ${lt_cv_objdir+y}
9351then :
9352  printf %s "(cached) " >&6
9353else $as_nop
9354  rm -f .libs 2>/dev/null
9355mkdir .libs 2>/dev/null
9356if test -d .libs; then
9357  lt_cv_objdir=.libs
9358else
9359  # MS-DOS does not allow filenames that begin with a dot.
9360  lt_cv_objdir=_libs
9361fi
9362rmdir .libs 2>/dev/null
9363fi
9364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9365printf "%s\n" "$lt_cv_objdir" >&6; }
9366objdir=$lt_cv_objdir
9367
9368
9369
9370
9371
9372printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9373
9374
9375
9376
9377case $host_os in
9378aix3*)
9379  # AIX sometimes has problems with the GCC collect2 program.  For some
9380  # reason, if we set the COLLECT_NAMES environment variable, the problems
9381  # vanish in a puff of smoke.
9382  if test set != "${COLLECT_NAMES+set}"; then
9383    COLLECT_NAMES=
9384    export COLLECT_NAMES
9385  fi
9386  ;;
9387esac
9388
9389# Global variables:
9390ofile=libtool
9391can_build_shared=yes
9392
9393# All known linkers require a '.a' archive for static linking (except MSVC,
9394# which needs '.lib').
9395libext=a
9396
9397with_gnu_ld=$lt_cv_prog_gnu_ld
9398
9399old_CC=$CC
9400old_CFLAGS=$CFLAGS
9401
9402# Set sane defaults for various variables
9403test -z "$CC" && CC=cc
9404test -z "$LTCC" && LTCC=$CC
9405test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9406test -z "$LD" && LD=ld
9407test -z "$ac_objext" && ac_objext=o
9408
9409func_cc_basename $compiler
9410cc_basename=$func_cc_basename_result
9411
9412
9413# Only perform the check for file, if the check method requires it
9414test -z "$MAGIC_CMD" && MAGIC_CMD=file
9415case $deplibs_check_method in
9416file_magic*)
9417  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9418    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9419printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9420if test ${lt_cv_path_MAGIC_CMD+y}
9421then :
9422  printf %s "(cached) " >&6
9423else $as_nop
9424  case $MAGIC_CMD in
9425[\\/*] |  ?:[\\/]*)
9426  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9427  ;;
9428*)
9429  lt_save_MAGIC_CMD=$MAGIC_CMD
9430  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9431  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9432  for ac_dir in $ac_dummy; do
9433    IFS=$lt_save_ifs
9434    test -z "$ac_dir" && ac_dir=.
9435    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9436      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9437      if test -n "$file_magic_test_file"; then
9438	case $deplibs_check_method in
9439	"file_magic "*)
9440	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9441	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9442	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9443	    $EGREP "$file_magic_regex" > /dev/null; then
9444	    :
9445	  else
9446	    cat <<_LT_EOF 1>&2
9447
9448*** Warning: the command libtool uses to detect shared libraries,
9449*** $file_magic_cmd, produces output that libtool cannot recognize.
9450*** The result is that libtool may fail to recognize shared libraries
9451*** as such.  This will affect the creation of libtool libraries that
9452*** depend on shared libraries, but programs linked with such libtool
9453*** libraries will work regardless of this problem.  Nevertheless, you
9454*** may want to report the problem to your system manager and/or to
9455*** bug-libtool@gnu.org
9456
9457_LT_EOF
9458	  fi ;;
9459	esac
9460      fi
9461      break
9462    fi
9463  done
9464  IFS=$lt_save_ifs
9465  MAGIC_CMD=$lt_save_MAGIC_CMD
9466  ;;
9467esac
9468fi
9469
9470MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9471if test -n "$MAGIC_CMD"; then
9472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9473printf "%s\n" "$MAGIC_CMD" >&6; }
9474else
9475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476printf "%s\n" "no" >&6; }
9477fi
9478
9479
9480
9481
9482
9483if test -z "$lt_cv_path_MAGIC_CMD"; then
9484  if test -n "$ac_tool_prefix"; then
9485    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9486printf %s "checking for file... " >&6; }
9487if test ${lt_cv_path_MAGIC_CMD+y}
9488then :
9489  printf %s "(cached) " >&6
9490else $as_nop
9491  case $MAGIC_CMD in
9492[\\/*] |  ?:[\\/]*)
9493  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9494  ;;
9495*)
9496  lt_save_MAGIC_CMD=$MAGIC_CMD
9497  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9498  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9499  for ac_dir in $ac_dummy; do
9500    IFS=$lt_save_ifs
9501    test -z "$ac_dir" && ac_dir=.
9502    if test -f "$ac_dir/file"; then
9503      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9504      if test -n "$file_magic_test_file"; then
9505	case $deplibs_check_method in
9506	"file_magic "*)
9507	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9508	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9509	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9510	    $EGREP "$file_magic_regex" > /dev/null; then
9511	    :
9512	  else
9513	    cat <<_LT_EOF 1>&2
9514
9515*** Warning: the command libtool uses to detect shared libraries,
9516*** $file_magic_cmd, produces output that libtool cannot recognize.
9517*** The result is that libtool may fail to recognize shared libraries
9518*** as such.  This will affect the creation of libtool libraries that
9519*** depend on shared libraries, but programs linked with such libtool
9520*** libraries will work regardless of this problem.  Nevertheless, you
9521*** may want to report the problem to your system manager and/or to
9522*** bug-libtool@gnu.org
9523
9524_LT_EOF
9525	  fi ;;
9526	esac
9527      fi
9528      break
9529    fi
9530  done
9531  IFS=$lt_save_ifs
9532  MAGIC_CMD=$lt_save_MAGIC_CMD
9533  ;;
9534esac
9535fi
9536
9537MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9538if test -n "$MAGIC_CMD"; then
9539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9540printf "%s\n" "$MAGIC_CMD" >&6; }
9541else
9542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543printf "%s\n" "no" >&6; }
9544fi
9545
9546
9547  else
9548    MAGIC_CMD=:
9549  fi
9550fi
9551
9552  fi
9553  ;;
9554esac
9555
9556# Use C for the default configuration in the libtool script
9557
9558lt_save_CC=$CC
9559ac_ext=c
9560ac_cpp='$CPP $CPPFLAGS'
9561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9563ac_compiler_gnu=$ac_cv_c_compiler_gnu
9564
9565
9566# Source file extension for C test sources.
9567ac_ext=c
9568
9569# Object file extension for compiled C test sources.
9570objext=o
9571objext=$objext
9572
9573# Code to be used in simple compile tests
9574lt_simple_compile_test_code="int some_variable = 0;"
9575
9576# Code to be used in simple link tests
9577lt_simple_link_test_code='int main(){return(0);}'
9578
9579
9580
9581
9582
9583
9584
9585# If no C compiler was specified, use CC.
9586LTCC=${LTCC-"$CC"}
9587
9588# If no C compiler flags were specified, use CFLAGS.
9589LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9590
9591# Allow CC to be a program name with arguments.
9592compiler=$CC
9593
9594# Save the default compiler, since it gets overwritten when the other
9595# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9596compiler_DEFAULT=$CC
9597
9598# save warnings/boilerplate of simple test code
9599ac_outfile=conftest.$ac_objext
9600echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9601eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9602_lt_compiler_boilerplate=`cat conftest.err`
9603$RM conftest*
9604
9605ac_outfile=conftest.$ac_objext
9606echo "$lt_simple_link_test_code" >conftest.$ac_ext
9607eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9608_lt_linker_boilerplate=`cat conftest.err`
9609$RM -r conftest*
9610
9611
9612## CAVEAT EMPTOR:
9613## There is no encapsulation within the following macros, do not change
9614## the running order or otherwise move them around unless you know exactly
9615## what you are doing...
9616if test -n "$compiler"; then
9617
9618lt_prog_compiler_no_builtin_flag=
9619
9620if test yes = "$GCC"; then
9621  case $cc_basename in
9622  nvcc*)
9623    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9624  *)
9625    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9626  esac
9627
9628  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9629printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9630if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9631then :
9632  printf %s "(cached) " >&6
9633else $as_nop
9634  lt_cv_prog_compiler_rtti_exceptions=no
9635   ac_outfile=conftest.$ac_objext
9636   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9637   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9638   # Insert the option either (1) after the last *FLAGS variable, or
9639   # (2) before a word containing "conftest.", or (3) at the end.
9640   # Note that $ac_compile itself does not contain backslashes and begins
9641   # with a dollar sign (not a hyphen), so the echo should work correctly.
9642   # The option is referenced via a variable to avoid confusing sed.
9643   lt_compile=`echo "$ac_compile" | $SED \
9644   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9645   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9646   -e 's:$: $lt_compiler_flag:'`
9647   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9648   (eval "$lt_compile" 2>conftest.err)
9649   ac_status=$?
9650   cat conftest.err >&5
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   if (exit $ac_status) && test -s "$ac_outfile"; then
9653     # The compiler can only warn and ignore the option if not recognized
9654     # So say no if there are warnings other than the usual output.
9655     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9656     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9657     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9658       lt_cv_prog_compiler_rtti_exceptions=yes
9659     fi
9660   fi
9661   $RM conftest*
9662
9663fi
9664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9665printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9666
9667if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9668    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9669else
9670    :
9671fi
9672
9673fi
9674
9675
9676
9677
9678
9679
9680  lt_prog_compiler_wl=
9681lt_prog_compiler_pic=
9682lt_prog_compiler_static=
9683
9684
9685  if test yes = "$GCC"; then
9686    lt_prog_compiler_wl='-Wl,'
9687    lt_prog_compiler_static='-static'
9688
9689    case $host_os in
9690      aix*)
9691      # All AIX code is PIC.
9692      if test ia64 = "$host_cpu"; then
9693	# AIX 5 now supports IA64 processor
9694	lt_prog_compiler_static='-Bstatic'
9695      fi
9696      lt_prog_compiler_pic='-fPIC'
9697      ;;
9698
9699    amigaos*)
9700      case $host_cpu in
9701      powerpc)
9702            # see comment about AmigaOS4 .so support
9703            lt_prog_compiler_pic='-fPIC'
9704        ;;
9705      m68k)
9706            # FIXME: we need at least 68020 code to build shared libraries, but
9707            # adding the '-m68020' flag to GCC prevents building anything better,
9708            # like '-m68040'.
9709            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9710        ;;
9711      esac
9712      ;;
9713
9714    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9715      # PIC is the default for these OSes.
9716      ;;
9717
9718    mingw* | cygwin* | pw32* | os2* | cegcc*)
9719      # This hack is so that the source file can tell whether it is being
9720      # built for inclusion in a dll (and should export symbols for example).
9721      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9722      # (--disable-auto-import) libraries
9723      lt_prog_compiler_pic='-DDLL_EXPORT'
9724      case $host_os in
9725      os2*)
9726	lt_prog_compiler_static='$wl-static'
9727	;;
9728      esac
9729      ;;
9730
9731    darwin* | rhapsody*)
9732      # PIC is the default on this platform
9733      # Common symbols not allowed in MH_DYLIB files
9734      lt_prog_compiler_pic='-fno-common'
9735      ;;
9736
9737    haiku*)
9738      # PIC is the default for Haiku.
9739      # The "-static" flag exists, but is broken.
9740      lt_prog_compiler_static=
9741      ;;
9742
9743    hpux*)
9744      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9745      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9746      # sets the default TLS model and affects inlining.
9747      case $host_cpu in
9748      hppa*64*)
9749	# +Z the default
9750	;;
9751      *)
9752	lt_prog_compiler_pic='-fPIC'
9753	;;
9754      esac
9755      ;;
9756
9757    interix[3-9]*)
9758      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9759      # Instead, we relocate shared libraries at runtime.
9760      ;;
9761
9762    msdosdjgpp*)
9763      # Just because we use GCC doesn't mean we suddenly get shared libraries
9764      # on systems that don't support them.
9765      lt_prog_compiler_can_build_shared=no
9766      enable_shared=no
9767      ;;
9768
9769    *nto* | *qnx*)
9770      # QNX uses GNU C++, but need to define -shared option too, otherwise
9771      # it will coredump.
9772      lt_prog_compiler_pic='-fPIC -shared'
9773      ;;
9774
9775    sysv4*MP*)
9776      if test -d /usr/nec; then
9777	lt_prog_compiler_pic=-Kconform_pic
9778      fi
9779      ;;
9780
9781    *)
9782      lt_prog_compiler_pic='-fPIC'
9783      ;;
9784    esac
9785
9786    case $cc_basename in
9787    nvcc*) # Cuda Compiler Driver 2.2
9788      lt_prog_compiler_wl='-Xlinker '
9789      if test -n "$lt_prog_compiler_pic"; then
9790        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9791      fi
9792      ;;
9793    esac
9794  else
9795    # PORTME Check for flag to pass linker flags through the system compiler.
9796    case $host_os in
9797    aix*)
9798      lt_prog_compiler_wl='-Wl,'
9799      if test ia64 = "$host_cpu"; then
9800	# AIX 5 now supports IA64 processor
9801	lt_prog_compiler_static='-Bstatic'
9802      else
9803	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9804      fi
9805      ;;
9806
9807    darwin* | rhapsody*)
9808      # PIC is the default on this platform
9809      # Common symbols not allowed in MH_DYLIB files
9810      lt_prog_compiler_pic='-fno-common'
9811      case $cc_basename in
9812      nagfor*)
9813        # NAG Fortran compiler
9814        lt_prog_compiler_wl='-Wl,-Wl,,'
9815        lt_prog_compiler_pic='-PIC'
9816        lt_prog_compiler_static='-Bstatic'
9817        ;;
9818      esac
9819      ;;
9820
9821    mingw* | cygwin* | pw32* | os2* | cegcc*)
9822      # This hack is so that the source file can tell whether it is being
9823      # built for inclusion in a dll (and should export symbols for example).
9824      lt_prog_compiler_pic='-DDLL_EXPORT'
9825      case $host_os in
9826      os2*)
9827	lt_prog_compiler_static='$wl-static'
9828	;;
9829      esac
9830      ;;
9831
9832    hpux9* | hpux10* | hpux11*)
9833      lt_prog_compiler_wl='-Wl,'
9834      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9835      # not for PA HP-UX.
9836      case $host_cpu in
9837      hppa*64*|ia64*)
9838	# +Z the default
9839	;;
9840      *)
9841	lt_prog_compiler_pic='+Z'
9842	;;
9843      esac
9844      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9845      lt_prog_compiler_static='$wl-a ${wl}archive'
9846      ;;
9847
9848    irix5* | irix6* | nonstopux*)
9849      lt_prog_compiler_wl='-Wl,'
9850      # PIC (with -KPIC) is the default.
9851      lt_prog_compiler_static='-non_shared'
9852      ;;
9853
9854    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9855      case $cc_basename in
9856      # old Intel for x86_64, which still supported -KPIC.
9857      ecc*)
9858	lt_prog_compiler_wl='-Wl,'
9859	lt_prog_compiler_pic='-KPIC'
9860	lt_prog_compiler_static='-static'
9861        ;;
9862      # icc used to be incompatible with GCC.
9863      # ICC 10 doesn't accept -KPIC any more.
9864      icc* | ifort*)
9865	lt_prog_compiler_wl='-Wl,'
9866	lt_prog_compiler_pic='-fPIC'
9867	lt_prog_compiler_static='-static'
9868        ;;
9869      # Lahey Fortran 8.1.
9870      lf95*)
9871	lt_prog_compiler_wl='-Wl,'
9872	lt_prog_compiler_pic='--shared'
9873	lt_prog_compiler_static='--static'
9874	;;
9875      nagfor*)
9876	# NAG Fortran compiler
9877	lt_prog_compiler_wl='-Wl,-Wl,,'
9878	lt_prog_compiler_pic='-PIC'
9879	lt_prog_compiler_static='-Bstatic'
9880	;;
9881      tcc*)
9882	# Fabrice Bellard et al's Tiny C Compiler
9883	lt_prog_compiler_wl='-Wl,'
9884	lt_prog_compiler_pic='-fPIC'
9885	lt_prog_compiler_static='-static'
9886	;;
9887      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9888        # Portland Group compilers (*not* the Pentium gcc compiler,
9889	# which looks to be a dead project)
9890	lt_prog_compiler_wl='-Wl,'
9891	lt_prog_compiler_pic='-fpic'
9892	lt_prog_compiler_static='-Bstatic'
9893        ;;
9894      ccc*)
9895        lt_prog_compiler_wl='-Wl,'
9896        # All Alpha code is PIC.
9897        lt_prog_compiler_static='-non_shared'
9898        ;;
9899      xl* | bgxl* | bgf* | mpixl*)
9900	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9901	lt_prog_compiler_wl='-Wl,'
9902	lt_prog_compiler_pic='-qpic'
9903	lt_prog_compiler_static='-qstaticlink'
9904	;;
9905      *)
9906	case `$CC -V 2>&1 | sed 5q` in
9907	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9908	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9909	  lt_prog_compiler_pic='-KPIC'
9910	  lt_prog_compiler_static='-Bstatic'
9911	  lt_prog_compiler_wl=''
9912	  ;;
9913	*Sun\ F* | *Sun*Fortran*)
9914	  lt_prog_compiler_pic='-KPIC'
9915	  lt_prog_compiler_static='-Bstatic'
9916	  lt_prog_compiler_wl='-Qoption ld '
9917	  ;;
9918	*Sun\ C*)
9919	  # Sun C 5.9
9920	  lt_prog_compiler_pic='-KPIC'
9921	  lt_prog_compiler_static='-Bstatic'
9922	  lt_prog_compiler_wl='-Wl,'
9923	  ;;
9924        *Intel*\ [CF]*Compiler*)
9925	  lt_prog_compiler_wl='-Wl,'
9926	  lt_prog_compiler_pic='-fPIC'
9927	  lt_prog_compiler_static='-static'
9928	  ;;
9929	*Portland\ Group*)
9930	  lt_prog_compiler_wl='-Wl,'
9931	  lt_prog_compiler_pic='-fpic'
9932	  lt_prog_compiler_static='-Bstatic'
9933	  ;;
9934	esac
9935	;;
9936      esac
9937      ;;
9938
9939    newsos6)
9940      lt_prog_compiler_pic='-KPIC'
9941      lt_prog_compiler_static='-Bstatic'
9942      ;;
9943
9944    *nto* | *qnx*)
9945      # QNX uses GNU C++, but need to define -shared option too, otherwise
9946      # it will coredump.
9947      lt_prog_compiler_pic='-fPIC -shared'
9948      ;;
9949
9950    osf3* | osf4* | osf5*)
9951      lt_prog_compiler_wl='-Wl,'
9952      # All OSF/1 code is PIC.
9953      lt_prog_compiler_static='-non_shared'
9954      ;;
9955
9956    rdos*)
9957      lt_prog_compiler_static='-non_shared'
9958      ;;
9959
9960    solaris*)
9961      lt_prog_compiler_pic='-KPIC'
9962      lt_prog_compiler_static='-Bstatic'
9963      case $cc_basename in
9964      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9965	lt_prog_compiler_wl='-Qoption ld ';;
9966      *)
9967	lt_prog_compiler_wl='-Wl,';;
9968      esac
9969      ;;
9970
9971    sunos4*)
9972      lt_prog_compiler_wl='-Qoption ld '
9973      lt_prog_compiler_pic='-PIC'
9974      lt_prog_compiler_static='-Bstatic'
9975      ;;
9976
9977    sysv4 | sysv4.2uw2* | sysv4.3*)
9978      lt_prog_compiler_wl='-Wl,'
9979      lt_prog_compiler_pic='-KPIC'
9980      lt_prog_compiler_static='-Bstatic'
9981      ;;
9982
9983    sysv4*MP*)
9984      if test -d /usr/nec; then
9985	lt_prog_compiler_pic='-Kconform_pic'
9986	lt_prog_compiler_static='-Bstatic'
9987      fi
9988      ;;
9989
9990    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9991      lt_prog_compiler_wl='-Wl,'
9992      lt_prog_compiler_pic='-KPIC'
9993      lt_prog_compiler_static='-Bstatic'
9994      ;;
9995
9996    unicos*)
9997      lt_prog_compiler_wl='-Wl,'
9998      lt_prog_compiler_can_build_shared=no
9999      ;;
10000
10001    uts4*)
10002      lt_prog_compiler_pic='-pic'
10003      lt_prog_compiler_static='-Bstatic'
10004      ;;
10005
10006    *)
10007      lt_prog_compiler_can_build_shared=no
10008      ;;
10009    esac
10010  fi
10011
10012case $host_os in
10013  # For platforms that do not support PIC, -DPIC is meaningless:
10014  *djgpp*)
10015    lt_prog_compiler_pic=
10016    ;;
10017  *)
10018    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10019    ;;
10020esac
10021
10022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10023printf %s "checking for $compiler option to produce PIC... " >&6; }
10024if test ${lt_cv_prog_compiler_pic+y}
10025then :
10026  printf %s "(cached) " >&6
10027else $as_nop
10028  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10029fi
10030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10031printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10032lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10033
10034#
10035# Check to make sure the PIC flag actually works.
10036#
10037if test -n "$lt_prog_compiler_pic"; then
10038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10039printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10040if test ${lt_cv_prog_compiler_pic_works+y}
10041then :
10042  printf %s "(cached) " >&6
10043else $as_nop
10044  lt_cv_prog_compiler_pic_works=no
10045   ac_outfile=conftest.$ac_objext
10046   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10047   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10048   # Insert the option either (1) after the last *FLAGS variable, or
10049   # (2) before a word containing "conftest.", or (3) at the end.
10050   # Note that $ac_compile itself does not contain backslashes and begins
10051   # with a dollar sign (not a hyphen), so the echo should work correctly.
10052   # The option is referenced via a variable to avoid confusing sed.
10053   lt_compile=`echo "$ac_compile" | $SED \
10054   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10055   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10056   -e 's:$: $lt_compiler_flag:'`
10057   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10058   (eval "$lt_compile" 2>conftest.err)
10059   ac_status=$?
10060   cat conftest.err >&5
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   if (exit $ac_status) && test -s "$ac_outfile"; then
10063     # The compiler can only warn and ignore the option if not recognized
10064     # So say no if there are warnings other than the usual output.
10065     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10066     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10067     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10068       lt_cv_prog_compiler_pic_works=yes
10069     fi
10070   fi
10071   $RM conftest*
10072
10073fi
10074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10075printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10076
10077if test yes = "$lt_cv_prog_compiler_pic_works"; then
10078    case $lt_prog_compiler_pic in
10079     "" | " "*) ;;
10080     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10081     esac
10082else
10083    lt_prog_compiler_pic=
10084     lt_prog_compiler_can_build_shared=no
10085fi
10086
10087fi
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099#
10100# Check to make sure the static flag actually works.
10101#
10102wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10104printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10105if test ${lt_cv_prog_compiler_static_works+y}
10106then :
10107  printf %s "(cached) " >&6
10108else $as_nop
10109  lt_cv_prog_compiler_static_works=no
10110   save_LDFLAGS=$LDFLAGS
10111   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10112   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10113   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10114     # The linker can only warn and ignore the option if not recognized
10115     # So say no if there are warnings
10116     if test -s conftest.err; then
10117       # Append any errors to the config.log.
10118       cat conftest.err 1>&5
10119       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10120       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10121       if diff conftest.exp conftest.er2 >/dev/null; then
10122         lt_cv_prog_compiler_static_works=yes
10123       fi
10124     else
10125       lt_cv_prog_compiler_static_works=yes
10126     fi
10127   fi
10128   $RM -r conftest*
10129   LDFLAGS=$save_LDFLAGS
10130
10131fi
10132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10133printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10134
10135if test yes = "$lt_cv_prog_compiler_static_works"; then
10136    :
10137else
10138    lt_prog_compiler_static=
10139fi
10140
10141
10142
10143
10144
10145
10146
10147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10148printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10149if test ${lt_cv_prog_compiler_c_o+y}
10150then :
10151  printf %s "(cached) " >&6
10152else $as_nop
10153  lt_cv_prog_compiler_c_o=no
10154   $RM -r conftest 2>/dev/null
10155   mkdir conftest
10156   cd conftest
10157   mkdir out
10158   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10159
10160   lt_compiler_flag="-o out/conftest2.$ac_objext"
10161   # Insert the option either (1) after the last *FLAGS variable, or
10162   # (2) before a word containing "conftest.", or (3) at the end.
10163   # Note that $ac_compile itself does not contain backslashes and begins
10164   # with a dollar sign (not a hyphen), so the echo should work correctly.
10165   lt_compile=`echo "$ac_compile" | $SED \
10166   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10168   -e 's:$: $lt_compiler_flag:'`
10169   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10170   (eval "$lt_compile" 2>out/conftest.err)
10171   ac_status=$?
10172   cat out/conftest.err >&5
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10175   then
10176     # The compiler can only warn and ignore the option if not recognized
10177     # So say no if there are warnings
10178     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10179     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10180     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10181       lt_cv_prog_compiler_c_o=yes
10182     fi
10183   fi
10184   chmod u+w . 2>&5
10185   $RM conftest*
10186   # SGI C++ compiler will create directory out/ii_files/ for
10187   # template instantiation
10188   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10189   $RM out/* && rmdir out
10190   cd ..
10191   $RM -r conftest
10192   $RM conftest*
10193
10194fi
10195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10196printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10197
10198
10199
10200
10201
10202
10203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10204printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10205if test ${lt_cv_prog_compiler_c_o+y}
10206then :
10207  printf %s "(cached) " >&6
10208else $as_nop
10209  lt_cv_prog_compiler_c_o=no
10210   $RM -r conftest 2>/dev/null
10211   mkdir conftest
10212   cd conftest
10213   mkdir out
10214   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10215
10216   lt_compiler_flag="-o out/conftest2.$ac_objext"
10217   # Insert the option either (1) after the last *FLAGS variable, or
10218   # (2) before a word containing "conftest.", or (3) at the end.
10219   # Note that $ac_compile itself does not contain backslashes and begins
10220   # with a dollar sign (not a hyphen), so the echo should work correctly.
10221   lt_compile=`echo "$ac_compile" | $SED \
10222   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10223   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10224   -e 's:$: $lt_compiler_flag:'`
10225   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10226   (eval "$lt_compile" 2>out/conftest.err)
10227   ac_status=$?
10228   cat out/conftest.err >&5
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10231   then
10232     # The compiler can only warn and ignore the option if not recognized
10233     # So say no if there are warnings
10234     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10235     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10236     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10237       lt_cv_prog_compiler_c_o=yes
10238     fi
10239   fi
10240   chmod u+w . 2>&5
10241   $RM conftest*
10242   # SGI C++ compiler will create directory out/ii_files/ for
10243   # template instantiation
10244   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10245   $RM out/* && rmdir out
10246   cd ..
10247   $RM -r conftest
10248   $RM conftest*
10249
10250fi
10251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10252printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10253
10254
10255
10256
10257hard_links=nottested
10258if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10259  # do not overwrite the value of need_locks provided by the user
10260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10261printf %s "checking if we can lock with hard links... " >&6; }
10262  hard_links=yes
10263  $RM conftest*
10264  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10265  touch conftest.a
10266  ln conftest.a conftest.b 2>&5 || hard_links=no
10267  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10269printf "%s\n" "$hard_links" >&6; }
10270  if test no = "$hard_links"; then
10271    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10272printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10273    need_locks=warn
10274  fi
10275else
10276  need_locks=no
10277fi
10278
10279
10280
10281
10282
10283
10284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10285printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10286
10287  runpath_var=
10288  allow_undefined_flag=
10289  always_export_symbols=no
10290  archive_cmds=
10291  archive_expsym_cmds=
10292  compiler_needs_object=no
10293  enable_shared_with_static_runtimes=no
10294  export_dynamic_flag_spec=
10295  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10296  hardcode_automatic=no
10297  hardcode_direct=no
10298  hardcode_direct_absolute=no
10299  hardcode_libdir_flag_spec=
10300  hardcode_libdir_separator=
10301  hardcode_minus_L=no
10302  hardcode_shlibpath_var=unsupported
10303  inherit_rpath=no
10304  link_all_deplibs=unknown
10305  module_cmds=
10306  module_expsym_cmds=
10307  old_archive_from_new_cmds=
10308  old_archive_from_expsyms_cmds=
10309  thread_safe_flag_spec=
10310  whole_archive_flag_spec=
10311  # include_expsyms should be a list of space-separated symbols to be *always*
10312  # included in the symbol list
10313  include_expsyms=
10314  # exclude_expsyms can be an extended regexp of symbols to exclude
10315  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10316  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10317  # as well as any symbol that contains 'd'.
10318  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10319  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10320  # platforms (ab)use it in PIC code, but their linkers get confused if
10321  # the symbol is explicitly referenced.  Since portable code cannot
10322  # rely on this symbol name, it's probably fine to never include it in
10323  # preloaded symbol tables.
10324  # Exclude shared library initialization/finalization symbols.
10325  extract_expsyms_cmds=
10326
10327  case $host_os in
10328  cygwin* | mingw* | pw32* | cegcc*)
10329    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10330    # When not using gcc, we currently assume that we are using
10331    # Microsoft Visual C++.
10332    if test yes != "$GCC"; then
10333      with_gnu_ld=no
10334    fi
10335    ;;
10336  interix*)
10337    # we just hope/assume this is gcc and not c89 (= MSVC++)
10338    with_gnu_ld=yes
10339    ;;
10340  openbsd* | bitrig*)
10341    with_gnu_ld=no
10342    ;;
10343  esac
10344
10345  ld_shlibs=yes
10346
10347  # On some targets, GNU ld is compatible enough with the native linker
10348  # that we're better off using the native interface for both.
10349  lt_use_gnu_ld_interface=no
10350  if test yes = "$with_gnu_ld"; then
10351    case $host_os in
10352      aix*)
10353	# The AIX port of GNU ld has always aspired to compatibility
10354	# with the native linker.  However, as the warning in the GNU ld
10355	# block says, versions before 2.19.5* couldn't really create working
10356	# shared libraries, regardless of the interface used.
10357	case `$LD -v 2>&1` in
10358	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10359	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10360	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10361	  *)
10362	    lt_use_gnu_ld_interface=yes
10363	    ;;
10364	esac
10365	;;
10366      *)
10367	lt_use_gnu_ld_interface=yes
10368	;;
10369    esac
10370  fi
10371
10372  if test yes = "$lt_use_gnu_ld_interface"; then
10373    # If archive_cmds runs LD, not CC, wlarc should be empty
10374    wlarc='$wl'
10375
10376    # Set some defaults for GNU ld with shared library support. These
10377    # are reset later if shared libraries are not supported. Putting them
10378    # here allows them to be overridden if necessary.
10379    runpath_var=LD_RUN_PATH
10380    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10381    export_dynamic_flag_spec='$wl--export-dynamic'
10382    # ancient GNU ld didn't support --whole-archive et. al.
10383    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10384      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10385    else
10386      whole_archive_flag_spec=
10387    fi
10388    supports_anon_versioning=no
10389    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10390      *GNU\ gold*) supports_anon_versioning=yes ;;
10391      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10392      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10393      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10394      *\ 2.11.*) ;; # other 2.11 versions
10395      *) supports_anon_versioning=yes ;;
10396    esac
10397
10398    # See if GNU ld supports shared libraries.
10399    case $host_os in
10400    aix[3-9]*)
10401      # On AIX/PPC, the GNU linker is very broken
10402      if test ia64 != "$host_cpu"; then
10403	ld_shlibs=no
10404	cat <<_LT_EOF 1>&2
10405
10406*** Warning: the GNU linker, at least up to release 2.19, is reported
10407*** to be unable to reliably create shared libraries on AIX.
10408*** Therefore, libtool is disabling shared libraries support.  If you
10409*** really care for shared libraries, you may want to install binutils
10410*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10411*** You will then need to restart the configuration process.
10412
10413_LT_EOF
10414      fi
10415      ;;
10416
10417    amigaos*)
10418      case $host_cpu in
10419      powerpc)
10420            # see comment about AmigaOS4 .so support
10421            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10422            archive_expsym_cmds=''
10423        ;;
10424      m68k)
10425            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)'
10426            hardcode_libdir_flag_spec='-L$libdir'
10427            hardcode_minus_L=yes
10428        ;;
10429      esac
10430      ;;
10431
10432    beos*)
10433      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10434	allow_undefined_flag=unsupported
10435	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10436	# support --undefined.  This deserves some investigation.  FIXME
10437	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10438      else
10439	ld_shlibs=no
10440      fi
10441      ;;
10442
10443    cygwin* | mingw* | pw32* | cegcc*)
10444      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10445      # as there is no search path for DLLs.
10446      hardcode_libdir_flag_spec='-L$libdir'
10447      export_dynamic_flag_spec='$wl--export-all-symbols'
10448      allow_undefined_flag=unsupported
10449      always_export_symbols=no
10450      enable_shared_with_static_runtimes=yes
10451      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'
10452      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10453
10454      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10455        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10456	# If the export-symbols file already is a .def file, use it as
10457	# is; otherwise, prepend EXPORTS...
10458	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10459          cp $export_symbols $output_objdir/$soname.def;
10460        else
10461          echo EXPORTS > $output_objdir/$soname.def;
10462          cat $export_symbols >> $output_objdir/$soname.def;
10463        fi~
10464        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10465      else
10466	ld_shlibs=no
10467      fi
10468      ;;
10469
10470    haiku*)
10471      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10472      link_all_deplibs=yes
10473      ;;
10474
10475    os2*)
10476      hardcode_libdir_flag_spec='-L$libdir'
10477      hardcode_minus_L=yes
10478      allow_undefined_flag=unsupported
10479      shrext_cmds=.dll
10480      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10481	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10482	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10483	$ECHO EXPORTS >> $output_objdir/$libname.def~
10484	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10485	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10486	emximp -o $lib $output_objdir/$libname.def'
10487      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10488	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10489	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10490	$ECHO EXPORTS >> $output_objdir/$libname.def~
10491	prefix_cmds="$SED"~
10492	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10493	  prefix_cmds="$prefix_cmds -e 1d";
10494	fi~
10495	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10496	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10497	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10498	emximp -o $lib $output_objdir/$libname.def'
10499      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10500      enable_shared_with_static_runtimes=yes
10501      ;;
10502
10503    interix[3-9]*)
10504      hardcode_direct=no
10505      hardcode_shlibpath_var=no
10506      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10507      export_dynamic_flag_spec='$wl-E'
10508      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10509      # Instead, shared libraries are loaded at an image base (0x10000000 by
10510      # default) and relocated if they conflict, which is a slow very memory
10511      # consuming and fragmenting process.  To avoid this, we pick a random,
10512      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10513      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10514      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10515      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'
10516      ;;
10517
10518    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10519      tmp_diet=no
10520      if test linux-dietlibc = "$host_os"; then
10521	case $cc_basename in
10522	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10523	esac
10524      fi
10525      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10526	 && test no = "$tmp_diet"
10527      then
10528	tmp_addflag=' $pic_flag'
10529	tmp_sharedflag='-shared'
10530	case $cc_basename,$host_cpu in
10531        pgcc*)				# Portland Group C compiler
10532	  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'
10533	  tmp_addflag=' $pic_flag'
10534	  ;;
10535	pgf77* | pgf90* | pgf95* | pgfortran*)
10536					# Portland Group f77 and f90 compilers
10537	  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'
10538	  tmp_addflag=' $pic_flag -Mnomain' ;;
10539	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10540	  tmp_addflag=' -i_dynamic' ;;
10541	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10542	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10543	ifc* | ifort*)			# Intel Fortran compiler
10544	  tmp_addflag=' -nofor_main' ;;
10545	lf95*)				# Lahey Fortran 8.1
10546	  whole_archive_flag_spec=
10547	  tmp_sharedflag='--shared' ;;
10548        nagfor*)                        # NAGFOR 5.3
10549          tmp_sharedflag='-Wl,-shared' ;;
10550	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10551	  tmp_sharedflag='-qmkshrobj'
10552	  tmp_addflag= ;;
10553	nvcc*)	# Cuda Compiler Driver 2.2
10554	  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'
10555	  compiler_needs_object=yes
10556	  ;;
10557	esac
10558	case `$CC -V 2>&1 | sed 5q` in
10559	*Sun\ C*)			# Sun C 5.9
10560	  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'
10561	  compiler_needs_object=yes
10562	  tmp_sharedflag='-G' ;;
10563	*Sun\ F*)			# Sun Fortran 8.3
10564	  tmp_sharedflag='-G' ;;
10565	esac
10566	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10567
10568        if test yes = "$supports_anon_versioning"; then
10569          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10570            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10571            echo "local: *; };" >> $output_objdir/$libname.ver~
10572            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10573        fi
10574
10575	case $cc_basename in
10576	tcc*)
10577	  export_dynamic_flag_spec='-rdynamic'
10578	  ;;
10579	xlf* | bgf* | bgxlf* | mpixlf*)
10580	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10581	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10582	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10583	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10584	  if test yes = "$supports_anon_versioning"; then
10585	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10586              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10587              echo "local: *; };" >> $output_objdir/$libname.ver~
10588              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10589	  fi
10590	  ;;
10591	esac
10592      else
10593        ld_shlibs=no
10594      fi
10595      ;;
10596
10597    netbsd*)
10598      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10599	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10600	wlarc=
10601      else
10602	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10603	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10604      fi
10605      ;;
10606
10607    solaris*)
10608      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10609	ld_shlibs=no
10610	cat <<_LT_EOF 1>&2
10611
10612*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10613*** create shared libraries on Solaris systems.  Therefore, libtool
10614*** is disabling shared libraries support.  We urge you to upgrade GNU
10615*** binutils to release 2.9.1 or newer.  Another option is to modify
10616*** your PATH or compiler configuration so that the native linker is
10617*** used, and then restart.
10618
10619_LT_EOF
10620      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10621	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10622	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10623      else
10624	ld_shlibs=no
10625      fi
10626      ;;
10627
10628    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10629      case `$LD -v 2>&1` in
10630        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10631	ld_shlibs=no
10632	cat <<_LT_EOF 1>&2
10633
10634*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10635*** reliably create shared libraries on SCO systems.  Therefore, libtool
10636*** is disabling shared libraries support.  We urge you to upgrade GNU
10637*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10638*** your PATH or compiler configuration so that the native linker is
10639*** used, and then restart.
10640
10641_LT_EOF
10642	;;
10643	*)
10644	  # For security reasons, it is highly recommended that you always
10645	  # use absolute paths for naming shared libraries, and exclude the
10646	  # DT_RUNPATH tag from executables and libraries.  But doing so
10647	  # requires that you compile everything twice, which is a pain.
10648	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10649	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10650	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10651	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10652	  else
10653	    ld_shlibs=no
10654	  fi
10655	;;
10656      esac
10657      ;;
10658
10659    sunos4*)
10660      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10661      wlarc=
10662      hardcode_direct=yes
10663      hardcode_shlibpath_var=no
10664      ;;
10665
10666    *)
10667      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10668	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10669	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10670      else
10671	ld_shlibs=no
10672      fi
10673      ;;
10674    esac
10675
10676    if test no = "$ld_shlibs"; then
10677      runpath_var=
10678      hardcode_libdir_flag_spec=
10679      export_dynamic_flag_spec=
10680      whole_archive_flag_spec=
10681    fi
10682  else
10683    # PORTME fill in a description of your system's linker (not GNU ld)
10684    case $host_os in
10685    aix3*)
10686      allow_undefined_flag=unsupported
10687      always_export_symbols=yes
10688      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'
10689      # Note: this linker hardcodes the directories in LIBPATH if there
10690      # are no directories specified by -L.
10691      hardcode_minus_L=yes
10692      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10693	# Neither direct hardcoding nor static linking is supported with a
10694	# broken collect2.
10695	hardcode_direct=unsupported
10696      fi
10697      ;;
10698
10699    aix[4-9]*)
10700      if test ia64 = "$host_cpu"; then
10701	# On IA64, the linker does run time linking by default, so we don't
10702	# have to do anything special.
10703	aix_use_runtimelinking=no
10704	exp_sym_flag='-Bexport'
10705	no_entry_flag=
10706      else
10707	# If we're using GNU nm, then we don't want the "-C" option.
10708	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10709	# Without the "-l" option, or with the "-B" option, AIX nm treats
10710	# weak defined symbols like other global defined symbols, whereas
10711	# GNU nm marks them as "W".
10712	# While the 'weak' keyword is ignored in the Export File, we need
10713	# it in the Import File for the 'aix-soname' feature, so we have
10714	# to replace the "-B" option with "-P" for AIX nm.
10715	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10716	  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'
10717	else
10718	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10719	fi
10720	aix_use_runtimelinking=no
10721
10722	# Test if we are trying to use run time linking or normal
10723	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10724	# have runtime linking enabled, and use it for executables.
10725	# For shared libraries, we enable/disable runtime linking
10726	# depending on the kind of the shared library created -
10727	# when "with_aix_soname,aix_use_runtimelinking" is:
10728	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10729	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10730	#            lib.a           static archive
10731	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10732	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10733	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10734	#            lib.a(lib.so.V) shared, rtl:no
10735	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10736	#            lib.a           static archive
10737	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10738	  for ld_flag in $LDFLAGS; do
10739	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10740	    aix_use_runtimelinking=yes
10741	    break
10742	  fi
10743	  done
10744	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10745	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10746	    # so we don't have lib.a shared libs to link our executables.
10747	    # We have to force runtime linking in this case.
10748	    aix_use_runtimelinking=yes
10749	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10750	  fi
10751	  ;;
10752	esac
10753
10754	exp_sym_flag='-bexport'
10755	no_entry_flag='-bnoentry'
10756      fi
10757
10758      # When large executables or shared objects are built, AIX ld can
10759      # have problems creating the table of contents.  If linking a library
10760      # or program results in "error TOC overflow" add -mminimal-toc to
10761      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10762      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10763
10764      archive_cmds=''
10765      hardcode_direct=yes
10766      hardcode_direct_absolute=yes
10767      hardcode_libdir_separator=':'
10768      link_all_deplibs=yes
10769      file_list_spec='$wl-f,'
10770      case $with_aix_soname,$aix_use_runtimelinking in
10771      aix,*) ;; # traditional, no import file
10772      svr4,* | *,yes) # use import file
10773	# The Import File defines what to hardcode.
10774	hardcode_direct=no
10775	hardcode_direct_absolute=no
10776	;;
10777      esac
10778
10779      if test yes = "$GCC"; then
10780	case $host_os in aix4.[012]|aix4.[012].*)
10781	# We only want to do this on AIX 4.2 and lower, the check
10782	# below for broken collect2 doesn't work under 4.3+
10783	  collect2name=`$CC -print-prog-name=collect2`
10784	  if test -f "$collect2name" &&
10785	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10786	  then
10787	  # We have reworked collect2
10788	  :
10789	  else
10790	  # We have old collect2
10791	  hardcode_direct=unsupported
10792	  # It fails to find uninstalled libraries when the uninstalled
10793	  # path is not listed in the libpath.  Setting hardcode_minus_L
10794	  # to unsupported forces relinking
10795	  hardcode_minus_L=yes
10796	  hardcode_libdir_flag_spec='-L$libdir'
10797	  hardcode_libdir_separator=
10798	  fi
10799	  ;;
10800	esac
10801	shared_flag='-shared'
10802	if test yes = "$aix_use_runtimelinking"; then
10803	  shared_flag="$shared_flag "'$wl-G'
10804	fi
10805	# Need to ensure runtime linking is disabled for the traditional
10806	# shared library, or the linker may eventually find shared libraries
10807	# /with/ Import File - we do not want to mix them.
10808	shared_flag_aix='-shared'
10809	shared_flag_svr4='-shared $wl-G'
10810      else
10811	# not using gcc
10812	if test ia64 = "$host_cpu"; then
10813	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10814	# chokes on -Wl,-G. The following line is correct:
10815	  shared_flag='-G'
10816	else
10817	  if test yes = "$aix_use_runtimelinking"; then
10818	    shared_flag='$wl-G'
10819	  else
10820	    shared_flag='$wl-bM:SRE'
10821	  fi
10822	  shared_flag_aix='$wl-bM:SRE'
10823	  shared_flag_svr4='$wl-G'
10824	fi
10825      fi
10826
10827      export_dynamic_flag_spec='$wl-bexpall'
10828      # It seems that -bexpall does not export symbols beginning with
10829      # underscore (_), so it is better to generate a list of symbols to export.
10830      always_export_symbols=yes
10831      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10832	# Warning - without using the other runtime loading flags (-brtl),
10833	# -berok will link without error, but may produce a broken library.
10834	allow_undefined_flag='-berok'
10835        # Determine the default libpath from the value encoded in an
10836        # empty executable.
10837        if test set = "${lt_cv_aix_libpath+set}"; then
10838  aix_libpath=$lt_cv_aix_libpath
10839else
10840  if test ${lt_cv_aix_libpath_+y}
10841then :
10842  printf %s "(cached) " >&6
10843else $as_nop
10844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845/* end confdefs.h.  */
10846
10847int
10848main (void)
10849{
10850
10851  ;
10852  return 0;
10853}
10854_ACEOF
10855if ac_fn_c_try_link "$LINENO"
10856then :
10857
10858  lt_aix_libpath_sed='
10859      /Import File Strings/,/^$/ {
10860	  /^0/ {
10861	      s/^0  *\([^ ]*\) *$/\1/
10862	      p
10863	  }
10864      }'
10865  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10866  # Check for a 64-bit object if we didn't find anything.
10867  if test -z "$lt_cv_aix_libpath_"; then
10868    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10869  fi
10870fi
10871rm -f core conftest.err conftest.$ac_objext conftest.beam \
10872    conftest$ac_exeext conftest.$ac_ext
10873  if test -z "$lt_cv_aix_libpath_"; then
10874    lt_cv_aix_libpath_=/usr/lib:/lib
10875  fi
10876
10877fi
10878
10879  aix_libpath=$lt_cv_aix_libpath_
10880fi
10881
10882        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10883        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
10884      else
10885	if test ia64 = "$host_cpu"; then
10886	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10887	  allow_undefined_flag="-z nodefs"
10888	  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"
10889	else
10890	 # Determine the default libpath from the value encoded in an
10891	 # empty executable.
10892	 if test set = "${lt_cv_aix_libpath+set}"; then
10893  aix_libpath=$lt_cv_aix_libpath
10894else
10895  if test ${lt_cv_aix_libpath_+y}
10896then :
10897  printf %s "(cached) " >&6
10898else $as_nop
10899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900/* end confdefs.h.  */
10901
10902int
10903main (void)
10904{
10905
10906  ;
10907  return 0;
10908}
10909_ACEOF
10910if ac_fn_c_try_link "$LINENO"
10911then :
10912
10913  lt_aix_libpath_sed='
10914      /Import File Strings/,/^$/ {
10915	  /^0/ {
10916	      s/^0  *\([^ ]*\) *$/\1/
10917	      p
10918	  }
10919      }'
10920  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10921  # Check for a 64-bit object if we didn't find anything.
10922  if test -z "$lt_cv_aix_libpath_"; then
10923    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10924  fi
10925fi
10926rm -f core conftest.err conftest.$ac_objext conftest.beam \
10927    conftest$ac_exeext conftest.$ac_ext
10928  if test -z "$lt_cv_aix_libpath_"; then
10929    lt_cv_aix_libpath_=/usr/lib:/lib
10930  fi
10931
10932fi
10933
10934  aix_libpath=$lt_cv_aix_libpath_
10935fi
10936
10937	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10938	  # Warning - without using the other run time loading flags,
10939	  # -berok will link without error, but may produce a broken library.
10940	  no_undefined_flag=' $wl-bernotok'
10941	  allow_undefined_flag=' $wl-berok'
10942	  if test yes = "$with_gnu_ld"; then
10943	    # We only use this code for GNU lds that support --whole-archive.
10944	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10945	  else
10946	    # Exported symbols can be pulled into shared objects from archives
10947	    whole_archive_flag_spec='$convenience'
10948	  fi
10949	  archive_cmds_need_lc=yes
10950	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10951	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10952	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10953	  if test svr4 != "$with_aix_soname"; then
10954	    # This is similar to how AIX traditionally builds its shared libraries.
10955	    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'
10956	  fi
10957	  if test aix != "$with_aix_soname"; then
10958	    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'
10959	  else
10960	    # used by -dlpreopen to get the symbols
10961	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10962	  fi
10963	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10964	fi
10965      fi
10966      ;;
10967
10968    amigaos*)
10969      case $host_cpu in
10970      powerpc)
10971            # see comment about AmigaOS4 .so support
10972            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10973            archive_expsym_cmds=''
10974        ;;
10975      m68k)
10976            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)'
10977            hardcode_libdir_flag_spec='-L$libdir'
10978            hardcode_minus_L=yes
10979        ;;
10980      esac
10981      ;;
10982
10983    bsdi[45]*)
10984      export_dynamic_flag_spec=-rdynamic
10985      ;;
10986
10987    cygwin* | mingw* | pw32* | cegcc*)
10988      # When not using gcc, we currently assume that we are using
10989      # Microsoft Visual C++.
10990      # hardcode_libdir_flag_spec is actually meaningless, as there is
10991      # no search path for DLLs.
10992      case $cc_basename in
10993      cl*)
10994	# Native MSVC
10995	hardcode_libdir_flag_spec=' '
10996	allow_undefined_flag=unsupported
10997	always_export_symbols=yes
10998	file_list_spec='@'
10999	# Tell ltmain to make .lib files, not .a files.
11000	libext=lib
11001	# Tell ltmain to make .dll files, not .so files.
11002	shrext_cmds=.dll
11003	# FIXME: Setting linknames here is a bad hack.
11004	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11005	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11006            cp "$export_symbols" "$output_objdir/$soname.def";
11007            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11008          else
11009            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11010          fi~
11011          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11012          linknames='
11013	# The linker will not automatically build a static lib if we build a DLL.
11014	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11015	enable_shared_with_static_runtimes=yes
11016	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11017	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11018	# Don't use ranlib
11019	old_postinstall_cmds='chmod 644 $oldlib'
11020	postlink_cmds='lt_outputfile="@OUTPUT@"~
11021          lt_tool_outputfile="@TOOL_OUTPUT@"~
11022          case $lt_outputfile in
11023            *.exe|*.EXE) ;;
11024            *)
11025              lt_outputfile=$lt_outputfile.exe
11026              lt_tool_outputfile=$lt_tool_outputfile.exe
11027              ;;
11028          esac~
11029          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11030            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11031            $RM "$lt_outputfile.manifest";
11032          fi'
11033	;;
11034      *)
11035	# Assume MSVC wrapper
11036	hardcode_libdir_flag_spec=' '
11037	allow_undefined_flag=unsupported
11038	# Tell ltmain to make .lib files, not .a files.
11039	libext=lib
11040	# Tell ltmain to make .dll files, not .so files.
11041	shrext_cmds=.dll
11042	# FIXME: Setting linknames here is a bad hack.
11043	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11044	# The linker will automatically build a .lib file if we build a DLL.
11045	old_archive_from_new_cmds='true'
11046	# FIXME: Should let the user specify the lib program.
11047	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11048	enable_shared_with_static_runtimes=yes
11049	;;
11050      esac
11051      ;;
11052
11053    darwin* | rhapsody*)
11054
11055
11056  archive_cmds_need_lc=no
11057  hardcode_direct=no
11058  hardcode_automatic=yes
11059  hardcode_shlibpath_var=unsupported
11060  if test yes = "$lt_cv_ld_force_load"; then
11061    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\"`'
11062
11063  else
11064    whole_archive_flag_spec=''
11065  fi
11066  link_all_deplibs=yes
11067  allow_undefined_flag=$_lt_dar_allow_undefined
11068  case $cc_basename in
11069     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11070     *) _lt_dar_can_shared=$GCC ;;
11071  esac
11072  if test yes = "$_lt_dar_can_shared"; then
11073    output_verbose_link_cmd=func_echo_all
11074    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11075    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11076    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"
11077    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"
11078
11079  else
11080  ld_shlibs=no
11081  fi
11082
11083      ;;
11084
11085    dgux*)
11086      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11087      hardcode_libdir_flag_spec='-L$libdir'
11088      hardcode_shlibpath_var=no
11089      ;;
11090
11091    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11092    # support.  Future versions do this automatically, but an explicit c++rt0.o
11093    # does not break anything, and helps significantly (at the cost of a little
11094    # extra space).
11095    freebsd2.2*)
11096      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11097      hardcode_libdir_flag_spec='-R$libdir'
11098      hardcode_direct=yes
11099      hardcode_shlibpath_var=no
11100      ;;
11101
11102    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11103    freebsd2.*)
11104      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11105      hardcode_direct=yes
11106      hardcode_minus_L=yes
11107      hardcode_shlibpath_var=no
11108      ;;
11109
11110    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11111    freebsd* | dragonfly*)
11112      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11113      hardcode_libdir_flag_spec='-R$libdir'
11114      hardcode_direct=yes
11115      hardcode_shlibpath_var=no
11116      ;;
11117
11118    hpux9*)
11119      if test yes = "$GCC"; then
11120	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'
11121      else
11122	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'
11123      fi
11124      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11125      hardcode_libdir_separator=:
11126      hardcode_direct=yes
11127
11128      # hardcode_minus_L: Not really in the search PATH,
11129      # but as the default location of the library.
11130      hardcode_minus_L=yes
11131      export_dynamic_flag_spec='$wl-E'
11132      ;;
11133
11134    hpux10*)
11135      if test yes,no = "$GCC,$with_gnu_ld"; then
11136	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11137      else
11138	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11139      fi
11140      if test no = "$with_gnu_ld"; then
11141	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11142	hardcode_libdir_separator=:
11143	hardcode_direct=yes
11144	hardcode_direct_absolute=yes
11145	export_dynamic_flag_spec='$wl-E'
11146	# hardcode_minus_L: Not really in the search PATH,
11147	# but as the default location of the library.
11148	hardcode_minus_L=yes
11149      fi
11150      ;;
11151
11152    hpux11*)
11153      if test yes,no = "$GCC,$with_gnu_ld"; then
11154	case $host_cpu in
11155	hppa*64*)
11156	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11157	  ;;
11158	ia64*)
11159	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11160	  ;;
11161	*)
11162	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11163	  ;;
11164	esac
11165      else
11166	case $host_cpu in
11167	hppa*64*)
11168	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11169	  ;;
11170	ia64*)
11171	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11172	  ;;
11173	*)
11174
11175	  # Older versions of the 11.00 compiler do not understand -b yet
11176	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11177	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11178printf %s "checking if $CC understands -b... " >&6; }
11179if test ${lt_cv_prog_compiler__b+y}
11180then :
11181  printf %s "(cached) " >&6
11182else $as_nop
11183  lt_cv_prog_compiler__b=no
11184   save_LDFLAGS=$LDFLAGS
11185   LDFLAGS="$LDFLAGS -b"
11186   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11187   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11188     # The linker can only warn and ignore the option if not recognized
11189     # So say no if there are warnings
11190     if test -s conftest.err; then
11191       # Append any errors to the config.log.
11192       cat conftest.err 1>&5
11193       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11194       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11195       if diff conftest.exp conftest.er2 >/dev/null; then
11196         lt_cv_prog_compiler__b=yes
11197       fi
11198     else
11199       lt_cv_prog_compiler__b=yes
11200     fi
11201   fi
11202   $RM -r conftest*
11203   LDFLAGS=$save_LDFLAGS
11204
11205fi
11206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11207printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11208
11209if test yes = "$lt_cv_prog_compiler__b"; then
11210    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11211else
11212    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11213fi
11214
11215	  ;;
11216	esac
11217      fi
11218      if test no = "$with_gnu_ld"; then
11219	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11220	hardcode_libdir_separator=:
11221
11222	case $host_cpu in
11223	hppa*64*|ia64*)
11224	  hardcode_direct=no
11225	  hardcode_shlibpath_var=no
11226	  ;;
11227	*)
11228	  hardcode_direct=yes
11229	  hardcode_direct_absolute=yes
11230	  export_dynamic_flag_spec='$wl-E'
11231
11232	  # hardcode_minus_L: Not really in the search PATH,
11233	  # but as the default location of the library.
11234	  hardcode_minus_L=yes
11235	  ;;
11236	esac
11237      fi
11238      ;;
11239
11240    irix5* | irix6* | nonstopux*)
11241      if test yes = "$GCC"; then
11242	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'
11243	# Try to use the -exported_symbol ld option, if it does not
11244	# work, assume that -exports_file does not work either and
11245	# implicitly export all symbols.
11246	# This should be the same for all languages, so no per-tag cache variable.
11247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11248printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11249if test ${lt_cv_irix_exported_symbol+y}
11250then :
11251  printf %s "(cached) " >&6
11252else $as_nop
11253  save_LDFLAGS=$LDFLAGS
11254	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11255	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256/* end confdefs.h.  */
11257int foo (void) { return 0; }
11258_ACEOF
11259if ac_fn_c_try_link "$LINENO"
11260then :
11261  lt_cv_irix_exported_symbol=yes
11262else $as_nop
11263  lt_cv_irix_exported_symbol=no
11264fi
11265rm -f core conftest.err conftest.$ac_objext conftest.beam \
11266    conftest$ac_exeext conftest.$ac_ext
11267           LDFLAGS=$save_LDFLAGS
11268fi
11269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11270printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11271	if test yes = "$lt_cv_irix_exported_symbol"; then
11272          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'
11273	fi
11274      else
11275	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'
11276	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'
11277      fi
11278      archive_cmds_need_lc='no'
11279      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11280      hardcode_libdir_separator=:
11281      inherit_rpath=yes
11282      link_all_deplibs=yes
11283      ;;
11284
11285    linux*)
11286      case $cc_basename in
11287      tcc*)
11288	# Fabrice Bellard et al's Tiny C Compiler
11289	ld_shlibs=yes
11290	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11291	;;
11292      esac
11293      ;;
11294
11295    netbsd*)
11296      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11297	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11298      else
11299	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11300      fi
11301      hardcode_libdir_flag_spec='-R$libdir'
11302      hardcode_direct=yes
11303      hardcode_shlibpath_var=no
11304      ;;
11305
11306    newsos6)
11307      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11308      hardcode_direct=yes
11309      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11310      hardcode_libdir_separator=:
11311      hardcode_shlibpath_var=no
11312      ;;
11313
11314    *nto* | *qnx*)
11315      ;;
11316
11317    openbsd* | bitrig*)
11318      if test -f /usr/libexec/ld.so; then
11319	hardcode_direct=yes
11320	hardcode_shlibpath_var=no
11321	hardcode_direct_absolute=yes
11322	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11323	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11324	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11325	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11326	  export_dynamic_flag_spec='$wl-E'
11327	else
11328	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11329	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11330	fi
11331      else
11332	ld_shlibs=no
11333      fi
11334      ;;
11335
11336    os2*)
11337      hardcode_libdir_flag_spec='-L$libdir'
11338      hardcode_minus_L=yes
11339      allow_undefined_flag=unsupported
11340      shrext_cmds=.dll
11341      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11342	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11343	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11344	$ECHO EXPORTS >> $output_objdir/$libname.def~
11345	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11346	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11347	emximp -o $lib $output_objdir/$libname.def'
11348      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11349	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11350	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11351	$ECHO EXPORTS >> $output_objdir/$libname.def~
11352	prefix_cmds="$SED"~
11353	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11354	  prefix_cmds="$prefix_cmds -e 1d";
11355	fi~
11356	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11357	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11358	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11359	emximp -o $lib $output_objdir/$libname.def'
11360      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11361      enable_shared_with_static_runtimes=yes
11362      ;;
11363
11364    osf3*)
11365      if test yes = "$GCC"; then
11366	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11367	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'
11368      else
11369	allow_undefined_flag=' -expect_unresolved \*'
11370	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'
11371      fi
11372      archive_cmds_need_lc='no'
11373      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11374      hardcode_libdir_separator=:
11375      ;;
11376
11377    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11378      if test yes = "$GCC"; then
11379	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11380	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'
11381	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11382      else
11383	allow_undefined_flag=' -expect_unresolved \*'
11384	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'
11385	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~
11386          $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'
11387
11388	# Both c and cxx compiler support -rpath directly
11389	hardcode_libdir_flag_spec='-rpath $libdir'
11390      fi
11391      archive_cmds_need_lc='no'
11392      hardcode_libdir_separator=:
11393      ;;
11394
11395    solaris*)
11396      no_undefined_flag=' -z defs'
11397      if test yes = "$GCC"; then
11398	wlarc='$wl'
11399	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11400	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11401          $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'
11402      else
11403	case `$CC -V 2>&1` in
11404	*"Compilers 5.0"*)
11405	  wlarc=''
11406	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11407	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11408            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11409	  ;;
11410	*)
11411	  wlarc='$wl'
11412	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11413	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11414            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11415	  ;;
11416	esac
11417      fi
11418      hardcode_libdir_flag_spec='-R$libdir'
11419      hardcode_shlibpath_var=no
11420      case $host_os in
11421      solaris2.[0-5] | solaris2.[0-5].*) ;;
11422      *)
11423	# The compiler driver will combine and reorder linker options,
11424	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11425	# but is careful enough not to reorder.
11426	# Supported since Solaris 2.6 (maybe 2.5.1?)
11427	if test yes = "$GCC"; then
11428	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11429	else
11430	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11431	fi
11432	;;
11433      esac
11434      link_all_deplibs=yes
11435      ;;
11436
11437    sunos4*)
11438      if test sequent = "$host_vendor"; then
11439	# Use $CC to link under sequent, because it throws in some extra .o
11440	# files that make .init and .fini sections work.
11441	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11442      else
11443	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11444      fi
11445      hardcode_libdir_flag_spec='-L$libdir'
11446      hardcode_direct=yes
11447      hardcode_minus_L=yes
11448      hardcode_shlibpath_var=no
11449      ;;
11450
11451    sysv4)
11452      case $host_vendor in
11453	sni)
11454	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11455	  hardcode_direct=yes # is this really true???
11456	;;
11457	siemens)
11458	  ## LD is ld it makes a PLAMLIB
11459	  ## CC just makes a GrossModule.
11460	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11461	  reload_cmds='$CC -r -o $output$reload_objs'
11462	  hardcode_direct=no
11463        ;;
11464	motorola)
11465	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11466	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11467	;;
11468      esac
11469      runpath_var='LD_RUN_PATH'
11470      hardcode_shlibpath_var=no
11471      ;;
11472
11473    sysv4.3*)
11474      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11475      hardcode_shlibpath_var=no
11476      export_dynamic_flag_spec='-Bexport'
11477      ;;
11478
11479    sysv4*MP*)
11480      if test -d /usr/nec; then
11481	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11482	hardcode_shlibpath_var=no
11483	runpath_var=LD_RUN_PATH
11484	hardcode_runpath_var=yes
11485	ld_shlibs=yes
11486      fi
11487      ;;
11488
11489    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11490      no_undefined_flag='$wl-z,text'
11491      archive_cmds_need_lc=no
11492      hardcode_shlibpath_var=no
11493      runpath_var='LD_RUN_PATH'
11494
11495      if test yes = "$GCC"; then
11496	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11497	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11498      else
11499	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11500	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11501      fi
11502      ;;
11503
11504    sysv5* | sco3.2v5* | sco5v6*)
11505      # Note: We CANNOT use -z defs as we might desire, because we do not
11506      # link with -lc, and that would cause any symbols used from libc to
11507      # always be unresolved, which means just about no library would
11508      # ever link correctly.  If we're not using GNU ld we use -z text
11509      # though, which does catch some bad symbols but isn't as heavy-handed
11510      # as -z defs.
11511      no_undefined_flag='$wl-z,text'
11512      allow_undefined_flag='$wl-z,nodefs'
11513      archive_cmds_need_lc=no
11514      hardcode_shlibpath_var=no
11515      hardcode_libdir_flag_spec='$wl-R,$libdir'
11516      hardcode_libdir_separator=':'
11517      link_all_deplibs=yes
11518      export_dynamic_flag_spec='$wl-Bexport'
11519      runpath_var='LD_RUN_PATH'
11520
11521      if test yes = "$GCC"; then
11522	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11523	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11524      else
11525	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11526	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11527      fi
11528      ;;
11529
11530    uts4*)
11531      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11532      hardcode_libdir_flag_spec='-L$libdir'
11533      hardcode_shlibpath_var=no
11534      ;;
11535
11536    *)
11537      ld_shlibs=no
11538      ;;
11539    esac
11540
11541    if test sni = "$host_vendor"; then
11542      case $host in
11543      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11544	export_dynamic_flag_spec='$wl-Blargedynsym'
11545	;;
11546      esac
11547    fi
11548  fi
11549
11550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11551printf "%s\n" "$ld_shlibs" >&6; }
11552test no = "$ld_shlibs" && can_build_shared=no
11553
11554with_gnu_ld=$with_gnu_ld
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570#
11571# Do we need to explicitly link libc?
11572#
11573case "x$archive_cmds_need_lc" in
11574x|xyes)
11575  # Assume -lc should be added
11576  archive_cmds_need_lc=yes
11577
11578  if test yes,yes = "$GCC,$enable_shared"; then
11579    case $archive_cmds in
11580    *'~'*)
11581      # FIXME: we may have to deal with multi-command sequences.
11582      ;;
11583    '$CC '*)
11584      # Test whether the compiler implicitly links with -lc since on some
11585      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11586      # to ld, don't add -lc before -lgcc.
11587      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11588printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11589if test ${lt_cv_archive_cmds_need_lc+y}
11590then :
11591  printf %s "(cached) " >&6
11592else $as_nop
11593  $RM conftest*
11594	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11595
11596	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11597  (eval $ac_compile) 2>&5
11598  ac_status=$?
11599  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11600  test $ac_status = 0; } 2>conftest.err; then
11601	  soname=conftest
11602	  lib=conftest
11603	  libobjs=conftest.$ac_objext
11604	  deplibs=
11605	  wl=$lt_prog_compiler_wl
11606	  pic_flag=$lt_prog_compiler_pic
11607	  compiler_flags=-v
11608	  linker_flags=-v
11609	  verstring=
11610	  output_objdir=.
11611	  libname=conftest
11612	  lt_save_allow_undefined_flag=$allow_undefined_flag
11613	  allow_undefined_flag=
11614	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11615  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11616  ac_status=$?
11617  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11618  test $ac_status = 0; }
11619	  then
11620	    lt_cv_archive_cmds_need_lc=no
11621	  else
11622	    lt_cv_archive_cmds_need_lc=yes
11623	  fi
11624	  allow_undefined_flag=$lt_save_allow_undefined_flag
11625	else
11626	  cat conftest.err 1>&5
11627	fi
11628	$RM conftest*
11629
11630fi
11631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11632printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11633      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11634      ;;
11635    esac
11636  fi
11637  ;;
11638esac
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11792printf %s "checking dynamic linker characteristics... " >&6; }
11793
11794if test yes = "$GCC"; then
11795  case $host_os in
11796    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11797    *) lt_awk_arg='/^libraries:/' ;;
11798  esac
11799  case $host_os in
11800    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11801    *) lt_sed_strip_eq='s|=/|/|g' ;;
11802  esac
11803  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11804  case $lt_search_path_spec in
11805  *\;*)
11806    # if the path contains ";" then we assume it to be the separator
11807    # otherwise default to the standard path separator (i.e. ":") - it is
11808    # assumed that no part of a normal pathname contains ";" but that should
11809    # okay in the real world where ";" in dirpaths is itself problematic.
11810    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11811    ;;
11812  *)
11813    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11814    ;;
11815  esac
11816  # Ok, now we have the path, separated by spaces, we can step through it
11817  # and add multilib dir if necessary...
11818  lt_tmp_lt_search_path_spec=
11819  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11820  # ...but if some path component already ends with the multilib dir we assume
11821  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11822  case "$lt_multi_os_dir; $lt_search_path_spec " in
11823  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11824    lt_multi_os_dir=
11825    ;;
11826  esac
11827  for lt_sys_path in $lt_search_path_spec; do
11828    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11829      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11830    elif test -n "$lt_multi_os_dir"; then
11831      test -d "$lt_sys_path" && \
11832	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11833    fi
11834  done
11835  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11836BEGIN {RS = " "; FS = "/|\n";} {
11837  lt_foo = "";
11838  lt_count = 0;
11839  for (lt_i = NF; lt_i > 0; lt_i--) {
11840    if ($lt_i != "" && $lt_i != ".") {
11841      if ($lt_i == "..") {
11842        lt_count++;
11843      } else {
11844        if (lt_count == 0) {
11845          lt_foo = "/" $lt_i lt_foo;
11846        } else {
11847          lt_count--;
11848        }
11849      }
11850    }
11851  }
11852  if (lt_foo != "") { lt_freq[lt_foo]++; }
11853  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11854}'`
11855  # AWK program above erroneously prepends '/' to C:/dos/paths
11856  # for these hosts.
11857  case $host_os in
11858    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11859      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11860  esac
11861  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11862else
11863  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11864fi
11865library_names_spec=
11866libname_spec='lib$name'
11867soname_spec=
11868shrext_cmds=.so
11869postinstall_cmds=
11870postuninstall_cmds=
11871finish_cmds=
11872finish_eval=
11873shlibpath_var=
11874shlibpath_overrides_runpath=unknown
11875version_type=none
11876dynamic_linker="$host_os ld.so"
11877sys_lib_dlsearch_path_spec="/lib /usr/lib"
11878need_lib_prefix=unknown
11879hardcode_into_libs=no
11880
11881# when you set need_version to no, make sure it does not cause -set_version
11882# flags to be left without arguments
11883need_version=unknown
11884
11885
11886
11887case $host_os in
11888aix3*)
11889  version_type=linux # correct to gnu/linux during the next big refactor
11890  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11891  shlibpath_var=LIBPATH
11892
11893  # AIX 3 has no versioning support, so we append a major version to the name.
11894  soname_spec='$libname$release$shared_ext$major'
11895  ;;
11896
11897aix[4-9]*)
11898  version_type=linux # correct to gnu/linux during the next big refactor
11899  need_lib_prefix=no
11900  need_version=no
11901  hardcode_into_libs=yes
11902  if test ia64 = "$host_cpu"; then
11903    # AIX 5 supports IA64
11904    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11905    shlibpath_var=LD_LIBRARY_PATH
11906  else
11907    # With GCC up to 2.95.x, collect2 would create an import file
11908    # for dependence libraries.  The import file would start with
11909    # the line '#! .'.  This would cause the generated library to
11910    # depend on '.', always an invalid library.  This was fixed in
11911    # development snapshots of GCC prior to 3.0.
11912    case $host_os in
11913      aix4 | aix4.[01] | aix4.[01].*)
11914      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11915	   echo ' yes '
11916	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11917	:
11918      else
11919	can_build_shared=no
11920      fi
11921      ;;
11922    esac
11923    # Using Import Files as archive members, it is possible to support
11924    # filename-based versioning of shared library archives on AIX. While
11925    # this would work for both with and without runtime linking, it will
11926    # prevent static linking of such archives. So we do filename-based
11927    # shared library versioning with .so extension only, which is used
11928    # when both runtime linking and shared linking is enabled.
11929    # Unfortunately, runtime linking may impact performance, so we do
11930    # not want this to be the default eventually. Also, we use the
11931    # versioned .so libs for executables only if there is the -brtl
11932    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11933    # To allow for filename-based versioning support, we need to create
11934    # libNAME.so.V as an archive file, containing:
11935    # *) an Import File, referring to the versioned filename of the
11936    #    archive as well as the shared archive member, telling the
11937    #    bitwidth (32 or 64) of that shared object, and providing the
11938    #    list of exported symbols of that shared object, eventually
11939    #    decorated with the 'weak' keyword
11940    # *) the shared object with the F_LOADONLY flag set, to really avoid
11941    #    it being seen by the linker.
11942    # At run time we better use the real file rather than another symlink,
11943    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11944
11945    case $with_aix_soname,$aix_use_runtimelinking in
11946    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11947    # soname into executable. Probably we can add versioning support to
11948    # collect2, so additional links can be useful in future.
11949    aix,yes) # traditional libtool
11950      dynamic_linker='AIX unversionable lib.so'
11951      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11952      # instead of lib<name>.a to let people know that these are not
11953      # typical AIX shared libraries.
11954      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11955      ;;
11956    aix,no) # traditional AIX only
11957      dynamic_linker='AIX lib.a(lib.so.V)'
11958      # We preserve .a as extension for shared libraries through AIX4.2
11959      # and later when we are not doing run time linking.
11960      library_names_spec='$libname$release.a $libname.a'
11961      soname_spec='$libname$release$shared_ext$major'
11962      ;;
11963    svr4,*) # full svr4 only
11964      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11965      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11966      # We do not specify a path in Import Files, so LIBPATH fires.
11967      shlibpath_overrides_runpath=yes
11968      ;;
11969    *,yes) # both, prefer svr4
11970      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11971      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11972      # unpreferred sharedlib libNAME.a needs extra handling
11973      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"'
11974      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"'
11975      # We do not specify a path in Import Files, so LIBPATH fires.
11976      shlibpath_overrides_runpath=yes
11977      ;;
11978    *,no) # both, prefer aix
11979      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11980      library_names_spec='$libname$release.a $libname.a'
11981      soname_spec='$libname$release$shared_ext$major'
11982      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11983      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)'
11984      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"'
11985      ;;
11986    esac
11987    shlibpath_var=LIBPATH
11988  fi
11989  ;;
11990
11991amigaos*)
11992  case $host_cpu in
11993  powerpc)
11994    # Since July 2007 AmigaOS4 officially supports .so libraries.
11995    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11996    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11997    ;;
11998  m68k)
11999    library_names_spec='$libname.ixlibrary $libname.a'
12000    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12001    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'
12002    ;;
12003  esac
12004  ;;
12005
12006beos*)
12007  library_names_spec='$libname$shared_ext'
12008  dynamic_linker="$host_os ld.so"
12009  shlibpath_var=LIBRARY_PATH
12010  ;;
12011
12012bsdi[45]*)
12013  version_type=linux # correct to gnu/linux during the next big refactor
12014  need_version=no
12015  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12016  soname_spec='$libname$release$shared_ext$major'
12017  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12018  shlibpath_var=LD_LIBRARY_PATH
12019  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12020  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12021  # the default ld.so.conf also contains /usr/contrib/lib and
12022  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12023  # libtool to hard-code these into programs
12024  ;;
12025
12026cygwin* | mingw* | pw32* | cegcc*)
12027  version_type=windows
12028  shrext_cmds=.dll
12029  need_version=no
12030  need_lib_prefix=no
12031
12032  case $GCC,$cc_basename in
12033  yes,*)
12034    # gcc
12035    library_names_spec='$libname.dll.a'
12036    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12037    postinstall_cmds='base_file=`basename \$file`~
12038      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12039      dldir=$destdir/`dirname \$dlpath`~
12040      test -d \$dldir || mkdir -p \$dldir~
12041      $install_prog $dir/$dlname \$dldir/$dlname~
12042      chmod a+x \$dldir/$dlname~
12043      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12044        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12045      fi'
12046    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12047      dlpath=$dir/\$dldll~
12048       $RM \$dlpath'
12049    shlibpath_overrides_runpath=yes
12050
12051    case $host_os in
12052    cygwin*)
12053      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12054      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12055
12056      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12057      ;;
12058    mingw* | cegcc*)
12059      # MinGW DLLs use traditional 'lib' prefix
12060      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12061      ;;
12062    pw32*)
12063      # pw32 DLLs use 'pw' prefix rather than 'lib'
12064      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12065      ;;
12066    esac
12067    dynamic_linker='Win32 ld.exe'
12068    ;;
12069
12070  *,cl*)
12071    # Native MSVC
12072    libname_spec='$name'
12073    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12074    library_names_spec='$libname.dll.lib'
12075
12076    case $build_os in
12077    mingw*)
12078      sys_lib_search_path_spec=
12079      lt_save_ifs=$IFS
12080      IFS=';'
12081      for lt_path in $LIB
12082      do
12083        IFS=$lt_save_ifs
12084        # Let DOS variable expansion print the short 8.3 style file name.
12085        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12086        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12087      done
12088      IFS=$lt_save_ifs
12089      # Convert to MSYS style.
12090      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12091      ;;
12092    cygwin*)
12093      # Convert to unix form, then to dos form, then back to unix form
12094      # but this time dos style (no spaces!) so that the unix form looks
12095      # like /cygdrive/c/PROGRA~1:/cygdr...
12096      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12097      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12098      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12099      ;;
12100    *)
12101      sys_lib_search_path_spec=$LIB
12102      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12103        # It is most probably a Windows format PATH.
12104        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12105      else
12106        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12107      fi
12108      # FIXME: find the short name or the path components, as spaces are
12109      # common. (e.g. "Program Files" -> "PROGRA~1")
12110      ;;
12111    esac
12112
12113    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12114    postinstall_cmds='base_file=`basename \$file`~
12115      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12116      dldir=$destdir/`dirname \$dlpath`~
12117      test -d \$dldir || mkdir -p \$dldir~
12118      $install_prog $dir/$dlname \$dldir/$dlname'
12119    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12120      dlpath=$dir/\$dldll~
12121       $RM \$dlpath'
12122    shlibpath_overrides_runpath=yes
12123    dynamic_linker='Win32 link.exe'
12124    ;;
12125
12126  *)
12127    # Assume MSVC wrapper
12128    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12129    dynamic_linker='Win32 ld.exe'
12130    ;;
12131  esac
12132  # FIXME: first we should search . and the directory the executable is in
12133  shlibpath_var=PATH
12134  ;;
12135
12136darwin* | rhapsody*)
12137  dynamic_linker="$host_os dyld"
12138  version_type=darwin
12139  need_lib_prefix=no
12140  need_version=no
12141  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12142  soname_spec='$libname$release$major$shared_ext'
12143  shlibpath_overrides_runpath=yes
12144  shlibpath_var=DYLD_LIBRARY_PATH
12145  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12146
12147  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12148  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12149  ;;
12150
12151dgux*)
12152  version_type=linux # correct to gnu/linux during the next big refactor
12153  need_lib_prefix=no
12154  need_version=no
12155  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12156  soname_spec='$libname$release$shared_ext$major'
12157  shlibpath_var=LD_LIBRARY_PATH
12158  ;;
12159
12160freebsd* | dragonfly*)
12161  # DragonFly does not have aout.  When/if they implement a new
12162  # versioning mechanism, adjust this.
12163  if test -x /usr/bin/objformat; then
12164    objformat=`/usr/bin/objformat`
12165  else
12166    case $host_os in
12167    freebsd[23].*) objformat=aout ;;
12168    *) objformat=elf ;;
12169    esac
12170  fi
12171  version_type=freebsd-$objformat
12172  case $version_type in
12173    freebsd-elf*)
12174      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12175      soname_spec='$libname$release$shared_ext$major'
12176      need_version=no
12177      need_lib_prefix=no
12178      ;;
12179    freebsd-*)
12180      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12181      need_version=yes
12182      ;;
12183  esac
12184  shlibpath_var=LD_LIBRARY_PATH
12185  case $host_os in
12186  freebsd2.*)
12187    shlibpath_overrides_runpath=yes
12188    ;;
12189  freebsd3.[01]* | freebsdelf3.[01]*)
12190    shlibpath_overrides_runpath=yes
12191    hardcode_into_libs=yes
12192    ;;
12193  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12194  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12195    shlibpath_overrides_runpath=no
12196    hardcode_into_libs=yes
12197    ;;
12198  *) # from 4.6 on, and DragonFly
12199    shlibpath_overrides_runpath=yes
12200    hardcode_into_libs=yes
12201    ;;
12202  esac
12203  ;;
12204
12205haiku*)
12206  version_type=linux # correct to gnu/linux during the next big refactor
12207  need_lib_prefix=no
12208  need_version=no
12209  dynamic_linker="$host_os runtime_loader"
12210  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12211  soname_spec='$libname$release$shared_ext$major'
12212  shlibpath_var=LIBRARY_PATH
12213  shlibpath_overrides_runpath=no
12214  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12215  hardcode_into_libs=yes
12216  ;;
12217
12218hpux9* | hpux10* | hpux11*)
12219  # Give a soname corresponding to the major version so that dld.sl refuses to
12220  # link against other versions.
12221  version_type=sunos
12222  need_lib_prefix=no
12223  need_version=no
12224  case $host_cpu in
12225  ia64*)
12226    shrext_cmds='.so'
12227    hardcode_into_libs=yes
12228    dynamic_linker="$host_os dld.so"
12229    shlibpath_var=LD_LIBRARY_PATH
12230    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12231    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12232    soname_spec='$libname$release$shared_ext$major'
12233    if test 32 = "$HPUX_IA64_MODE"; then
12234      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12235      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12236    else
12237      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12238      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12239    fi
12240    ;;
12241  hppa*64*)
12242    shrext_cmds='.sl'
12243    hardcode_into_libs=yes
12244    dynamic_linker="$host_os dld.sl"
12245    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12246    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12247    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12248    soname_spec='$libname$release$shared_ext$major'
12249    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12250    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12251    ;;
12252  *)
12253    shrext_cmds='.sl'
12254    dynamic_linker="$host_os dld.sl"
12255    shlibpath_var=SHLIB_PATH
12256    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12257    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12258    soname_spec='$libname$release$shared_ext$major'
12259    ;;
12260  esac
12261  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12262  postinstall_cmds='chmod 555 $lib'
12263  # or fails outright, so override atomically:
12264  install_override_mode=555
12265  ;;
12266
12267interix[3-9]*)
12268  version_type=linux # correct to gnu/linux during the next big refactor
12269  need_lib_prefix=no
12270  need_version=no
12271  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12272  soname_spec='$libname$release$shared_ext$major'
12273  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12274  shlibpath_var=LD_LIBRARY_PATH
12275  shlibpath_overrides_runpath=no
12276  hardcode_into_libs=yes
12277  ;;
12278
12279irix5* | irix6* | nonstopux*)
12280  case $host_os in
12281    nonstopux*) version_type=nonstopux ;;
12282    *)
12283	if test yes = "$lt_cv_prog_gnu_ld"; then
12284		version_type=linux # correct to gnu/linux during the next big refactor
12285	else
12286		version_type=irix
12287	fi ;;
12288  esac
12289  need_lib_prefix=no
12290  need_version=no
12291  soname_spec='$libname$release$shared_ext$major'
12292  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12293  case $host_os in
12294  irix5* | nonstopux*)
12295    libsuff= shlibsuff=
12296    ;;
12297  *)
12298    case $LD in # libtool.m4 will add one of these switches to LD
12299    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12300      libsuff= shlibsuff= libmagic=32-bit;;
12301    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12302      libsuff=32 shlibsuff=N32 libmagic=N32;;
12303    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12304      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12305    *) libsuff= shlibsuff= libmagic=never-match;;
12306    esac
12307    ;;
12308  esac
12309  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12310  shlibpath_overrides_runpath=no
12311  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12312  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12313  hardcode_into_libs=yes
12314  ;;
12315
12316# No shared lib support for Linux oldld, aout, or coff.
12317linux*oldld* | linux*aout* | linux*coff*)
12318  dynamic_linker=no
12319  ;;
12320
12321linux*android*)
12322  version_type=none # Android doesn't support versioned libraries.
12323  need_lib_prefix=no
12324  need_version=no
12325  library_names_spec='$libname$release$shared_ext'
12326  soname_spec='$libname$release$shared_ext'
12327  finish_cmds=
12328  shlibpath_var=LD_LIBRARY_PATH
12329  shlibpath_overrides_runpath=yes
12330
12331  # This implies no fast_install, which is unacceptable.
12332  # Some rework will be needed to allow for fast_install
12333  # before this can be enabled.
12334  hardcode_into_libs=yes
12335
12336  dynamic_linker='Android linker'
12337  # Don't embed -rpath directories since the linker doesn't support them.
12338  hardcode_libdir_flag_spec='-L$libdir'
12339  ;;
12340
12341# This must be glibc/ELF.
12342linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12343  version_type=linux # correct to gnu/linux during the next big refactor
12344  need_lib_prefix=no
12345  need_version=no
12346  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12347  soname_spec='$libname$release$shared_ext$major'
12348  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12349  shlibpath_var=LD_LIBRARY_PATH
12350  shlibpath_overrides_runpath=no
12351
12352  # Some binutils ld are patched to set DT_RUNPATH
12353  if test ${lt_cv_shlibpath_overrides_runpath+y}
12354then :
12355  printf %s "(cached) " >&6
12356else $as_nop
12357  lt_cv_shlibpath_overrides_runpath=no
12358    save_LDFLAGS=$LDFLAGS
12359    save_libdir=$libdir
12360    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12361	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12362    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363/* end confdefs.h.  */
12364
12365int
12366main (void)
12367{
12368
12369  ;
12370  return 0;
12371}
12372_ACEOF
12373if ac_fn_c_try_link "$LINENO"
12374then :
12375  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12376then :
12377  lt_cv_shlibpath_overrides_runpath=yes
12378fi
12379fi
12380rm -f core conftest.err conftest.$ac_objext conftest.beam \
12381    conftest$ac_exeext conftest.$ac_ext
12382    LDFLAGS=$save_LDFLAGS
12383    libdir=$save_libdir
12384
12385fi
12386
12387  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12388
12389  # This implies no fast_install, which is unacceptable.
12390  # Some rework will be needed to allow for fast_install
12391  # before this can be enabled.
12392  hardcode_into_libs=yes
12393
12394  # Ideally, we could use ldconfig to report *all* directores which are
12395  # searched for libraries, however this is still not possible.  Aside from not
12396  # being certain /sbin/ldconfig is available, command
12397  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12398  # even though it is searched at run-time.  Try to do the best guess by
12399  # appending ld.so.conf contents (and includes) to the search path.
12400  if test -f /etc/ld.so.conf; then
12401    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' ' '`
12402    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12403  fi
12404
12405  # We used to test for /lib/ld.so.1 and disable shared libraries on
12406  # powerpc, because MkLinux only supported shared libraries with the
12407  # GNU dynamic linker.  Since this was broken with cross compilers,
12408  # most powerpc-linux boxes support dynamic linking these days and
12409  # people can always --disable-shared, the test was removed, and we
12410  # assume the GNU/Linux dynamic linker is in use.
12411  dynamic_linker='GNU/Linux ld.so'
12412  ;;
12413
12414netbsd*)
12415  version_type=sunos
12416  need_lib_prefix=no
12417  need_version=no
12418  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12419    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12420    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12421    dynamic_linker='NetBSD (a.out) ld.so'
12422  else
12423    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12424    soname_spec='$libname$release$shared_ext$major'
12425    dynamic_linker='NetBSD ld.elf_so'
12426  fi
12427  shlibpath_var=LD_LIBRARY_PATH
12428  shlibpath_overrides_runpath=yes
12429  hardcode_into_libs=yes
12430  ;;
12431
12432newsos6)
12433  version_type=linux # correct to gnu/linux during the next big refactor
12434  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12435  shlibpath_var=LD_LIBRARY_PATH
12436  shlibpath_overrides_runpath=yes
12437  ;;
12438
12439*nto* | *qnx*)
12440  version_type=qnx
12441  need_lib_prefix=no
12442  need_version=no
12443  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12444  soname_spec='$libname$release$shared_ext$major'
12445  shlibpath_var=LD_LIBRARY_PATH
12446  shlibpath_overrides_runpath=no
12447  hardcode_into_libs=yes
12448  dynamic_linker='ldqnx.so'
12449  ;;
12450
12451openbsd* | bitrig*)
12452  version_type=sunos
12453  sys_lib_dlsearch_path_spec=/usr/lib
12454  need_lib_prefix=no
12455  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12456    need_version=no
12457  else
12458    need_version=yes
12459  fi
12460  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12461  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12462  shlibpath_var=LD_LIBRARY_PATH
12463  shlibpath_overrides_runpath=yes
12464  ;;
12465
12466os2*)
12467  libname_spec='$name'
12468  version_type=windows
12469  shrext_cmds=.dll
12470  need_version=no
12471  need_lib_prefix=no
12472  # OS/2 can only load a DLL with a base name of 8 characters or less.
12473  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12474    v=$($ECHO $release$versuffix | tr -d .-);
12475    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12476    $ECHO $n$v`$shared_ext'
12477  library_names_spec='${libname}_dll.$libext'
12478  dynamic_linker='OS/2 ld.exe'
12479  shlibpath_var=BEGINLIBPATH
12480  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12481  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12482  postinstall_cmds='base_file=`basename \$file`~
12483    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12484    dldir=$destdir/`dirname \$dlpath`~
12485    test -d \$dldir || mkdir -p \$dldir~
12486    $install_prog $dir/$dlname \$dldir/$dlname~
12487    chmod a+x \$dldir/$dlname~
12488    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12489      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12490    fi'
12491  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12492    dlpath=$dir/\$dldll~
12493    $RM \$dlpath'
12494  ;;
12495
12496osf3* | osf4* | osf5*)
12497  version_type=osf
12498  need_lib_prefix=no
12499  need_version=no
12500  soname_spec='$libname$release$shared_ext$major'
12501  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12502  shlibpath_var=LD_LIBRARY_PATH
12503  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12504  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12505  ;;
12506
12507rdos*)
12508  dynamic_linker=no
12509  ;;
12510
12511solaris*)
12512  version_type=linux # correct to gnu/linux during the next big refactor
12513  need_lib_prefix=no
12514  need_version=no
12515  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12516  soname_spec='$libname$release$shared_ext$major'
12517  shlibpath_var=LD_LIBRARY_PATH
12518  shlibpath_overrides_runpath=yes
12519  hardcode_into_libs=yes
12520  # ldd complains unless libraries are executable
12521  postinstall_cmds='chmod +x $lib'
12522  ;;
12523
12524sunos4*)
12525  version_type=sunos
12526  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12527  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12528  shlibpath_var=LD_LIBRARY_PATH
12529  shlibpath_overrides_runpath=yes
12530  if test yes = "$with_gnu_ld"; then
12531    need_lib_prefix=no
12532  fi
12533  need_version=yes
12534  ;;
12535
12536sysv4 | sysv4.3*)
12537  version_type=linux # correct to gnu/linux during the next big refactor
12538  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12539  soname_spec='$libname$release$shared_ext$major'
12540  shlibpath_var=LD_LIBRARY_PATH
12541  case $host_vendor in
12542    sni)
12543      shlibpath_overrides_runpath=no
12544      need_lib_prefix=no
12545      runpath_var=LD_RUN_PATH
12546      ;;
12547    siemens)
12548      need_lib_prefix=no
12549      ;;
12550    motorola)
12551      need_lib_prefix=no
12552      need_version=no
12553      shlibpath_overrides_runpath=no
12554      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12555      ;;
12556  esac
12557  ;;
12558
12559sysv4*MP*)
12560  if test -d /usr/nec; then
12561    version_type=linux # correct to gnu/linux during the next big refactor
12562    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12563    soname_spec='$libname$shared_ext.$major'
12564    shlibpath_var=LD_LIBRARY_PATH
12565  fi
12566  ;;
12567
12568sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12569  version_type=sco
12570  need_lib_prefix=no
12571  need_version=no
12572  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12573  soname_spec='$libname$release$shared_ext$major'
12574  shlibpath_var=LD_LIBRARY_PATH
12575  shlibpath_overrides_runpath=yes
12576  hardcode_into_libs=yes
12577  if test yes = "$with_gnu_ld"; then
12578    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12579  else
12580    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12581    case $host_os in
12582      sco3.2v5*)
12583        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12584	;;
12585    esac
12586  fi
12587  sys_lib_dlsearch_path_spec='/usr/lib'
12588  ;;
12589
12590tpf*)
12591  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12592  version_type=linux # correct to gnu/linux during the next big refactor
12593  need_lib_prefix=no
12594  need_version=no
12595  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12596  shlibpath_var=LD_LIBRARY_PATH
12597  shlibpath_overrides_runpath=no
12598  hardcode_into_libs=yes
12599  ;;
12600
12601uts4*)
12602  version_type=linux # correct to gnu/linux during the next big refactor
12603  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12604  soname_spec='$libname$release$shared_ext$major'
12605  shlibpath_var=LD_LIBRARY_PATH
12606  ;;
12607
12608*)
12609  dynamic_linker=no
12610  ;;
12611esac
12612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12613printf "%s\n" "$dynamic_linker" >&6; }
12614test no = "$dynamic_linker" && can_build_shared=no
12615
12616variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12617if test yes = "$GCC"; then
12618  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12619fi
12620
12621if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12622  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12623fi
12624
12625if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12626  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12627fi
12628
12629# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12630configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12631
12632# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12633func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12634
12635# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12636configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12735printf %s "checking how to hardcode library paths into programs... " >&6; }
12736hardcode_action=
12737if test -n "$hardcode_libdir_flag_spec" ||
12738   test -n "$runpath_var" ||
12739   test yes = "$hardcode_automatic"; then
12740
12741  # We can hardcode non-existent directories.
12742  if test no != "$hardcode_direct" &&
12743     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12744     # have to relink, otherwise we might link with an installed library
12745     # when we should be linking with a yet-to-be-installed one
12746     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12747     test no != "$hardcode_minus_L"; then
12748    # Linking always hardcodes the temporary library directory.
12749    hardcode_action=relink
12750  else
12751    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12752    hardcode_action=immediate
12753  fi
12754else
12755  # We cannot hardcode anything, or else we can only hardcode existing
12756  # directories.
12757  hardcode_action=unsupported
12758fi
12759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12760printf "%s\n" "$hardcode_action" >&6; }
12761
12762if test relink = "$hardcode_action" ||
12763   test yes = "$inherit_rpath"; then
12764  # Fast installation is not supported
12765  enable_fast_install=no
12766elif test yes = "$shlibpath_overrides_runpath" ||
12767     test no = "$enable_shared"; then
12768  # Fast installation is not necessary
12769  enable_fast_install=needless
12770fi
12771
12772
12773
12774
12775
12776
12777  if test yes != "$enable_dlopen"; then
12778  enable_dlopen=unknown
12779  enable_dlopen_self=unknown
12780  enable_dlopen_self_static=unknown
12781else
12782  lt_cv_dlopen=no
12783  lt_cv_dlopen_libs=
12784
12785  case $host_os in
12786  beos*)
12787    lt_cv_dlopen=load_add_on
12788    lt_cv_dlopen_libs=
12789    lt_cv_dlopen_self=yes
12790    ;;
12791
12792  mingw* | pw32* | cegcc*)
12793    lt_cv_dlopen=LoadLibrary
12794    lt_cv_dlopen_libs=
12795    ;;
12796
12797  cygwin*)
12798    lt_cv_dlopen=dlopen
12799    lt_cv_dlopen_libs=
12800    ;;
12801
12802  darwin*)
12803    # if libdl is installed we need to link against it
12804    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12805printf %s "checking for dlopen in -ldl... " >&6; }
12806if test ${ac_cv_lib_dl_dlopen+y}
12807then :
12808  printf %s "(cached) " >&6
12809else $as_nop
12810  ac_check_lib_save_LIBS=$LIBS
12811LIBS="-ldl  $LIBS"
12812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813/* end confdefs.h.  */
12814
12815/* Override any GCC internal prototype to avoid an error.
12816   Use char because int might match the return type of a GCC
12817   builtin and then its argument prototype would still apply.  */
12818char dlopen ();
12819int
12820main (void)
12821{
12822return dlopen ();
12823  ;
12824  return 0;
12825}
12826_ACEOF
12827if ac_fn_c_try_link "$LINENO"
12828then :
12829  ac_cv_lib_dl_dlopen=yes
12830else $as_nop
12831  ac_cv_lib_dl_dlopen=no
12832fi
12833rm -f core conftest.err conftest.$ac_objext conftest.beam \
12834    conftest$ac_exeext conftest.$ac_ext
12835LIBS=$ac_check_lib_save_LIBS
12836fi
12837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12838printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12839if test "x$ac_cv_lib_dl_dlopen" = xyes
12840then :
12841  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12842else $as_nop
12843
12844    lt_cv_dlopen=dyld
12845    lt_cv_dlopen_libs=
12846    lt_cv_dlopen_self=yes
12847
12848fi
12849
12850    ;;
12851
12852  tpf*)
12853    # Don't try to run any link tests for TPF.  We know it's impossible
12854    # because TPF is a cross-compiler, and we know how we open DSOs.
12855    lt_cv_dlopen=dlopen
12856    lt_cv_dlopen_libs=
12857    lt_cv_dlopen_self=no
12858    ;;
12859
12860  *)
12861    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12862if test "x$ac_cv_func_shl_load" = xyes
12863then :
12864  lt_cv_dlopen=shl_load
12865else $as_nop
12866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12867printf %s "checking for shl_load in -ldld... " >&6; }
12868if test ${ac_cv_lib_dld_shl_load+y}
12869then :
12870  printf %s "(cached) " >&6
12871else $as_nop
12872  ac_check_lib_save_LIBS=$LIBS
12873LIBS="-ldld  $LIBS"
12874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875/* end confdefs.h.  */
12876
12877/* Override any GCC internal prototype to avoid an error.
12878   Use char because int might match the return type of a GCC
12879   builtin and then its argument prototype would still apply.  */
12880char shl_load ();
12881int
12882main (void)
12883{
12884return shl_load ();
12885  ;
12886  return 0;
12887}
12888_ACEOF
12889if ac_fn_c_try_link "$LINENO"
12890then :
12891  ac_cv_lib_dld_shl_load=yes
12892else $as_nop
12893  ac_cv_lib_dld_shl_load=no
12894fi
12895rm -f core conftest.err conftest.$ac_objext conftest.beam \
12896    conftest$ac_exeext conftest.$ac_ext
12897LIBS=$ac_check_lib_save_LIBS
12898fi
12899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12900printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12901if test "x$ac_cv_lib_dld_shl_load" = xyes
12902then :
12903  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12904else $as_nop
12905  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12906if test "x$ac_cv_func_dlopen" = xyes
12907then :
12908  lt_cv_dlopen=dlopen
12909else $as_nop
12910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12911printf %s "checking for dlopen in -ldl... " >&6; }
12912if test ${ac_cv_lib_dl_dlopen+y}
12913then :
12914  printf %s "(cached) " >&6
12915else $as_nop
12916  ac_check_lib_save_LIBS=$LIBS
12917LIBS="-ldl  $LIBS"
12918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919/* end confdefs.h.  */
12920
12921/* Override any GCC internal prototype to avoid an error.
12922   Use char because int might match the return type of a GCC
12923   builtin and then its argument prototype would still apply.  */
12924char dlopen ();
12925int
12926main (void)
12927{
12928return dlopen ();
12929  ;
12930  return 0;
12931}
12932_ACEOF
12933if ac_fn_c_try_link "$LINENO"
12934then :
12935  ac_cv_lib_dl_dlopen=yes
12936else $as_nop
12937  ac_cv_lib_dl_dlopen=no
12938fi
12939rm -f core conftest.err conftest.$ac_objext conftest.beam \
12940    conftest$ac_exeext conftest.$ac_ext
12941LIBS=$ac_check_lib_save_LIBS
12942fi
12943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12944printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12945if test "x$ac_cv_lib_dl_dlopen" = xyes
12946then :
12947  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12948else $as_nop
12949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12950printf %s "checking for dlopen in -lsvld... " >&6; }
12951if test ${ac_cv_lib_svld_dlopen+y}
12952then :
12953  printf %s "(cached) " >&6
12954else $as_nop
12955  ac_check_lib_save_LIBS=$LIBS
12956LIBS="-lsvld  $LIBS"
12957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958/* end confdefs.h.  */
12959
12960/* Override any GCC internal prototype to avoid an error.
12961   Use char because int might match the return type of a GCC
12962   builtin and then its argument prototype would still apply.  */
12963char dlopen ();
12964int
12965main (void)
12966{
12967return dlopen ();
12968  ;
12969  return 0;
12970}
12971_ACEOF
12972if ac_fn_c_try_link "$LINENO"
12973then :
12974  ac_cv_lib_svld_dlopen=yes
12975else $as_nop
12976  ac_cv_lib_svld_dlopen=no
12977fi
12978rm -f core conftest.err conftest.$ac_objext conftest.beam \
12979    conftest$ac_exeext conftest.$ac_ext
12980LIBS=$ac_check_lib_save_LIBS
12981fi
12982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12983printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12984if test "x$ac_cv_lib_svld_dlopen" = xyes
12985then :
12986  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12987else $as_nop
12988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12989printf %s "checking for dld_link in -ldld... " >&6; }
12990if test ${ac_cv_lib_dld_dld_link+y}
12991then :
12992  printf %s "(cached) " >&6
12993else $as_nop
12994  ac_check_lib_save_LIBS=$LIBS
12995LIBS="-ldld  $LIBS"
12996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997/* end confdefs.h.  */
12998
12999/* Override any GCC internal prototype to avoid an error.
13000   Use char because int might match the return type of a GCC
13001   builtin and then its argument prototype would still apply.  */
13002char dld_link ();
13003int
13004main (void)
13005{
13006return dld_link ();
13007  ;
13008  return 0;
13009}
13010_ACEOF
13011if ac_fn_c_try_link "$LINENO"
13012then :
13013  ac_cv_lib_dld_dld_link=yes
13014else $as_nop
13015  ac_cv_lib_dld_dld_link=no
13016fi
13017rm -f core conftest.err conftest.$ac_objext conftest.beam \
13018    conftest$ac_exeext conftest.$ac_ext
13019LIBS=$ac_check_lib_save_LIBS
13020fi
13021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13022printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13023if test "x$ac_cv_lib_dld_dld_link" = xyes
13024then :
13025  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13026fi
13027
13028
13029fi
13030
13031
13032fi
13033
13034
13035fi
13036
13037
13038fi
13039
13040
13041fi
13042
13043    ;;
13044  esac
13045
13046  if test no = "$lt_cv_dlopen"; then
13047    enable_dlopen=no
13048  else
13049    enable_dlopen=yes
13050  fi
13051
13052  case $lt_cv_dlopen in
13053  dlopen)
13054    save_CPPFLAGS=$CPPFLAGS
13055    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13056
13057    save_LDFLAGS=$LDFLAGS
13058    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13059
13060    save_LIBS=$LIBS
13061    LIBS="$lt_cv_dlopen_libs $LIBS"
13062
13063    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13064printf %s "checking whether a program can dlopen itself... " >&6; }
13065if test ${lt_cv_dlopen_self+y}
13066then :
13067  printf %s "(cached) " >&6
13068else $as_nop
13069  	  if test yes = "$cross_compiling"; then :
13070  lt_cv_dlopen_self=cross
13071else
13072  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13073  lt_status=$lt_dlunknown
13074  cat > conftest.$ac_ext <<_LT_EOF
13075#line $LINENO "configure"
13076#include "confdefs.h"
13077
13078#if HAVE_DLFCN_H
13079#include <dlfcn.h>
13080#endif
13081
13082#include <stdio.h>
13083
13084#ifdef RTLD_GLOBAL
13085#  define LT_DLGLOBAL		RTLD_GLOBAL
13086#else
13087#  ifdef DL_GLOBAL
13088#    define LT_DLGLOBAL		DL_GLOBAL
13089#  else
13090#    define LT_DLGLOBAL		0
13091#  endif
13092#endif
13093
13094/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13095   find out it does not work in some platform. */
13096#ifndef LT_DLLAZY_OR_NOW
13097#  ifdef RTLD_LAZY
13098#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13099#  else
13100#    ifdef DL_LAZY
13101#      define LT_DLLAZY_OR_NOW		DL_LAZY
13102#    else
13103#      ifdef RTLD_NOW
13104#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13105#      else
13106#        ifdef DL_NOW
13107#          define LT_DLLAZY_OR_NOW	DL_NOW
13108#        else
13109#          define LT_DLLAZY_OR_NOW	0
13110#        endif
13111#      endif
13112#    endif
13113#  endif
13114#endif
13115
13116/* When -fvisibility=hidden is used, assume the code has been annotated
13117   correspondingly for the symbols needed.  */
13118#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13119int fnord () __attribute__((visibility("default")));
13120#endif
13121
13122int fnord () { return 42; }
13123int main ()
13124{
13125  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13126  int status = $lt_dlunknown;
13127
13128  if (self)
13129    {
13130      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13131      else
13132        {
13133	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13134          else puts (dlerror ());
13135	}
13136      /* dlclose (self); */
13137    }
13138  else
13139    puts (dlerror ());
13140
13141  return status;
13142}
13143_LT_EOF
13144  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13145  (eval $ac_link) 2>&5
13146  ac_status=$?
13147  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13148  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13149    (./conftest; exit; ) >&5 2>/dev/null
13150    lt_status=$?
13151    case x$lt_status in
13152      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13153      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13154      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13155    esac
13156  else :
13157    # compilation failed
13158    lt_cv_dlopen_self=no
13159  fi
13160fi
13161rm -fr conftest*
13162
13163
13164fi
13165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13166printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13167
13168    if test yes = "$lt_cv_dlopen_self"; then
13169      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13170      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13171printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13172if test ${lt_cv_dlopen_self_static+y}
13173then :
13174  printf %s "(cached) " >&6
13175else $as_nop
13176  	  if test yes = "$cross_compiling"; then :
13177  lt_cv_dlopen_self_static=cross
13178else
13179  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13180  lt_status=$lt_dlunknown
13181  cat > conftest.$ac_ext <<_LT_EOF
13182#line $LINENO "configure"
13183#include "confdefs.h"
13184
13185#if HAVE_DLFCN_H
13186#include <dlfcn.h>
13187#endif
13188
13189#include <stdio.h>
13190
13191#ifdef RTLD_GLOBAL
13192#  define LT_DLGLOBAL		RTLD_GLOBAL
13193#else
13194#  ifdef DL_GLOBAL
13195#    define LT_DLGLOBAL		DL_GLOBAL
13196#  else
13197#    define LT_DLGLOBAL		0
13198#  endif
13199#endif
13200
13201/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13202   find out it does not work in some platform. */
13203#ifndef LT_DLLAZY_OR_NOW
13204#  ifdef RTLD_LAZY
13205#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13206#  else
13207#    ifdef DL_LAZY
13208#      define LT_DLLAZY_OR_NOW		DL_LAZY
13209#    else
13210#      ifdef RTLD_NOW
13211#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13212#      else
13213#        ifdef DL_NOW
13214#          define LT_DLLAZY_OR_NOW	DL_NOW
13215#        else
13216#          define LT_DLLAZY_OR_NOW	0
13217#        endif
13218#      endif
13219#    endif
13220#  endif
13221#endif
13222
13223/* When -fvisibility=hidden is used, assume the code has been annotated
13224   correspondingly for the symbols needed.  */
13225#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13226int fnord () __attribute__((visibility("default")));
13227#endif
13228
13229int fnord () { return 42; }
13230int main ()
13231{
13232  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13233  int status = $lt_dlunknown;
13234
13235  if (self)
13236    {
13237      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13238      else
13239        {
13240	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13241          else puts (dlerror ());
13242	}
13243      /* dlclose (self); */
13244    }
13245  else
13246    puts (dlerror ());
13247
13248  return status;
13249}
13250_LT_EOF
13251  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13252  (eval $ac_link) 2>&5
13253  ac_status=$?
13254  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13255  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13256    (./conftest; exit; ) >&5 2>/dev/null
13257    lt_status=$?
13258    case x$lt_status in
13259      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13260      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13261      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13262    esac
13263  else :
13264    # compilation failed
13265    lt_cv_dlopen_self_static=no
13266  fi
13267fi
13268rm -fr conftest*
13269
13270
13271fi
13272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13273printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13274    fi
13275
13276    CPPFLAGS=$save_CPPFLAGS
13277    LDFLAGS=$save_LDFLAGS
13278    LIBS=$save_LIBS
13279    ;;
13280  esac
13281
13282  case $lt_cv_dlopen_self in
13283  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13284  *) enable_dlopen_self=unknown ;;
13285  esac
13286
13287  case $lt_cv_dlopen_self_static in
13288  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13289  *) enable_dlopen_self_static=unknown ;;
13290  esac
13291fi
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309striplib=
13310old_striplib=
13311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13312printf %s "checking whether stripping libraries is possible... " >&6; }
13313if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13314  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13315  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13317printf "%s\n" "yes" >&6; }
13318else
13319# FIXME - insert some real tests, host_os isn't really good enough
13320  case $host_os in
13321  darwin*)
13322    if test -n "$STRIP"; then
13323      striplib="$STRIP -x"
13324      old_striplib="$STRIP -S"
13325      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13326printf "%s\n" "yes" >&6; }
13327    else
13328      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13329printf "%s\n" "no" >&6; }
13330    fi
13331    ;;
13332  *)
13333    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334printf "%s\n" "no" >&6; }
13335    ;;
13336  esac
13337fi
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350  # Report what library types will actually be built
13351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13352printf %s "checking if libtool supports shared libraries... " >&6; }
13353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13354printf "%s\n" "$can_build_shared" >&6; }
13355
13356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13357printf %s "checking whether to build shared libraries... " >&6; }
13358  test no = "$can_build_shared" && enable_shared=no
13359
13360  # On AIX, shared libraries and static libraries use the same namespace, and
13361  # are all built from PIC.
13362  case $host_os in
13363  aix3*)
13364    test yes = "$enable_shared" && enable_static=no
13365    if test -n "$RANLIB"; then
13366      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13367      postinstall_cmds='$RANLIB $lib'
13368    fi
13369    ;;
13370
13371  aix[4-9]*)
13372    if test ia64 != "$host_cpu"; then
13373      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13374      yes,aix,yes) ;;			# shared object as lib.so file only
13375      yes,svr4,*) ;;			# shared object as lib.so archive member only
13376      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13377      esac
13378    fi
13379    ;;
13380  esac
13381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13382printf "%s\n" "$enable_shared" >&6; }
13383
13384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13385printf %s "checking whether to build static libraries... " >&6; }
13386  # Make sure either enable_shared or enable_static is yes.
13387  test yes = "$enable_shared" || enable_static=yes
13388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13389printf "%s\n" "$enable_static" >&6; }
13390
13391
13392
13393
13394fi
13395ac_ext=c
13396ac_cpp='$CPP $CPPFLAGS'
13397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13399ac_compiler_gnu=$ac_cv_c_compiler_gnu
13400
13401CC=$lt_save_CC
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417        ac_config_commands="$ac_config_commands libtool"
13418
13419
13420
13421
13422# Only expand once:
13423
13424
13425
13426
13427  CFLAG_VISIBILITY=
13428  HAVE_VISIBILITY=0
13429  if test -n "$GCC"; then
13430                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
13431printf %s "checking whether the -Werror option is usable... " >&6; }
13432    if test ${gl_cv_cc_vis_werror+y}
13433then :
13434  printf %s "(cached) " >&6
13435else $as_nop
13436
13437      gl_save_CFLAGS="$CFLAGS"
13438      CFLAGS="$CFLAGS -Werror"
13439      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440/* end confdefs.h.  */
13441
13442int
13443main (void)
13444{
13445
13446  ;
13447  return 0;
13448}
13449_ACEOF
13450if ac_fn_c_try_compile "$LINENO"
13451then :
13452  gl_cv_cc_vis_werror=yes
13453else $as_nop
13454  gl_cv_cc_vis_werror=no
13455fi
13456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13457      CFLAGS="$gl_save_CFLAGS"
13458fi
13459
13460    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
13461printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
13462        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
13463printf %s "checking for simple visibility declarations... " >&6; }
13464    if test ${gl_cv_cc_visibility+y}
13465then :
13466  printf %s "(cached) " >&6
13467else $as_nop
13468
13469      gl_save_CFLAGS="$CFLAGS"
13470      CFLAGS="$CFLAGS -fvisibility=hidden"
13471                                    if test $gl_cv_cc_vis_werror = yes; then
13472        CFLAGS="$CFLAGS -Werror"
13473      fi
13474      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475/* end confdefs.h.  */
13476extern __attribute__((__visibility__("hidden"))) int hiddenvar;
13477             extern __attribute__((__visibility__("default"))) int exportedvar;
13478             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
13479             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
13480             void dummyfunc (void) {}
13481
13482int
13483main (void)
13484{
13485
13486  ;
13487  return 0;
13488}
13489_ACEOF
13490if ac_fn_c_try_compile "$LINENO"
13491then :
13492  gl_cv_cc_visibility=yes
13493else $as_nop
13494  gl_cv_cc_visibility=no
13495fi
13496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13497      CFLAGS="$gl_save_CFLAGS"
13498fi
13499
13500    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
13501printf "%s\n" "$gl_cv_cc_visibility" >&6; }
13502    if test $gl_cv_cc_visibility = yes; then
13503      CFLAG_VISIBILITY="-fvisibility=hidden"
13504      HAVE_VISIBILITY=1
13505    fi
13506  fi
13507
13508
13509
13510printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
13511
13512
13513
13514ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
13515if test "x$ac_cv_header_sys_mkdev_h" = xyes
13516then :
13517
13518printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
13519
13520fi
13521
13522if test $ac_cv_header_sys_mkdev_h = no; then
13523  ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13524if test "x$ac_cv_header_sys_sysmacros_h" = xyes
13525then :
13526
13527printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
13528
13529fi
13530
13531fi
13532
13533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13534printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13535if test ${ac_cv_header_sys_wait_h+y}
13536then :
13537  printf %s "(cached) " >&6
13538else $as_nop
13539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540/* end confdefs.h.  */
13541#include <sys/types.h>
13542#include <sys/wait.h>
13543#ifndef WEXITSTATUS
13544# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13545#endif
13546#ifndef WIFEXITED
13547# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13548#endif
13549
13550int
13551main (void)
13552{
13553  int s;
13554  wait (&s);
13555  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13556  ;
13557  return 0;
13558}
13559_ACEOF
13560if ac_fn_c_try_compile "$LINENO"
13561then :
13562  ac_cv_header_sys_wait_h=yes
13563else $as_nop
13564  ac_cv_header_sys_wait_h=no
13565fi
13566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13567fi
13568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13569printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
13570if test $ac_cv_header_sys_wait_h = yes; then
13571
13572printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13573
13574fi
13575
13576ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13577if test "x$ac_cv_header_stdint_h" = xyes
13578then :
13579  printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
13580
13581fi
13582ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13583if test "x$ac_cv_header_fcntl_h" = xyes
13584then :
13585  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
13586
13587fi
13588ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13589if test "x$ac_cv_header_inttypes_h" = xyes
13590then :
13591  printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
13592
13593fi
13594ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13595if test "x$ac_cv_header_unistd_h" = xyes
13596then :
13597  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13598
13599fi
13600ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
13601if test "x$ac_cv_header_byteswap_h" = xyes
13602then :
13603  printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
13604
13605fi
13606
13607ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
13608if test "x$ac_cv_header_spawn_h" = xyes
13609then :
13610  printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
13611
13612fi
13613ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
13614if test "x$ac_cv_header_utime_h" = xyes
13615then :
13616  printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
13617
13618fi
13619ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
13620if test "x$ac_cv_header_wchar_h" = xyes
13621then :
13622  printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
13623
13624fi
13625ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
13626if test "x$ac_cv_header_wctype_h" = xyes
13627then :
13628  printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
13629
13630fi
13631
13632ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13633if test "x$ac_cv_header_getopt_h" = xyes
13634then :
13635  printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
13636
13637fi
13638ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
13639if test "x$ac_cv_header_err_h" = xyes
13640then :
13641  printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
13642
13643fi
13644ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
13645if test "x$ac_cv_header_xlocale_h" = xyes
13646then :
13647  printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h
13648
13649fi
13650
13651ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default"
13652if test "x$ac_cv_header_sys_bswap_h" = xyes
13653then :
13654  printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h
13655
13656fi
13657ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13658if test "x$ac_cv_header_sys_mman_h" = xyes
13659then :
13660  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
13661
13662fi
13663ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
13664if test "x$ac_cv_header_sys_stat_h" = xyes
13665then :
13666  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
13667
13668fi
13669ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
13670if test "x$ac_cv_header_sys_types_h" = xyes
13671then :
13672  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
13673
13674fi
13675ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"
13676if test "x$ac_cv_header_sys_utime_h" = xyes
13677then :
13678  printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
13679
13680fi
13681ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13682if test "x$ac_cv_header_sys_time_h" = xyes
13683then :
13684  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
13685
13686fi
13687ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13688if test "x$ac_cv_header_sys_sysmacros_h" = xyes
13689then :
13690  printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
13691
13692fi
13693ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13694if test "x$ac_cv_header_sys_ioctl_h" = xyes
13695then :
13696  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
13697
13698fi
13699
13700if test "$enable_zlib" != "no"; then
13701  ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13702if test "x$ac_cv_header_zlib_h" = xyes
13703then :
13704  printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
13705
13706fi
13707
13708fi
13709if test "$enable_bzlib" != "no"; then
13710  ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13711if test "x$ac_cv_header_bzlib_h" = xyes
13712then :
13713  printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
13714
13715fi
13716
13717fi
13718if test "$enable_xzlib" != "no"; then
13719  ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
13720if test "x$ac_cv_header_lzma_h" = xyes
13721then :
13722  printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
13723
13724fi
13725
13726fi
13727if test "$enable_zstdlib" != "no"; then
13728  ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
13729if test "x$ac_cv_header_zstd_h" = xyes
13730then :
13731  printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
13732
13733fi
13734ac_fn_c_check_header_compile "$LINENO" "zstd_errors.h" "ac_cv_header_zstd_errors_h" "$ac_includes_default"
13735if test "x$ac_cv_header_zstd_errors_h" = xyes
13736then :
13737  printf "%s\n" "#define HAVE_ZSTD_ERRORS_H 1" >>confdefs.h
13738
13739fi
13740
13741fi
13742if test "$enable_lzlib" != "no"; then
13743  ac_fn_c_check_header_compile "$LINENO" "lzlib.h" "ac_cv_header_lzlib_h" "$ac_includes_default"
13744if test "x$ac_cv_header_lzlib_h" = xyes
13745then :
13746  printf "%s\n" "#define HAVE_LZLIB_H 1" >>confdefs.h
13747
13748fi
13749
13750fi
13751ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
13752"
13753if test "x$ac_cv_type_sig_t" = xyes
13754then :
13755
13756printf "%s\n" "#define HAVE_SIG_T 1" >>confdefs.h
13757
13758fi
13759
13760
13761ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13762if test "x$ac_cv_type_off_t" = xyes
13763then :
13764
13765else $as_nop
13766
13767printf "%s\n" "#define off_t long int" >>confdefs.h
13768
13769fi
13770
13771ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13772if test "x$ac_cv_type_size_t" = xyes
13773then :
13774
13775else $as_nop
13776
13777printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13778
13779fi
13780
13781ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
13782if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
13783then :
13784
13785printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
13786
13787
13788fi
13789
13790
13791ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
13792"
13793if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
13794then :
13795
13796printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
13797
13798
13799fi
13800
13801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13802printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13803if test ${ac_cv_struct_tm+y}
13804then :
13805  printf %s "(cached) " >&6
13806else $as_nop
13807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808/* end confdefs.h.  */
13809#include <sys/types.h>
13810#include <time.h>
13811
13812int
13813main (void)
13814{
13815struct tm tm;
13816				     int *p = &tm.tm_sec;
13817				     return !p;
13818  ;
13819  return 0;
13820}
13821_ACEOF
13822if ac_fn_c_try_compile "$LINENO"
13823then :
13824  ac_cv_struct_tm=time.h
13825else $as_nop
13826  ac_cv_struct_tm=sys/time.h
13827fi
13828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13829fi
13830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13831printf "%s\n" "$ac_cv_struct_tm" >&6; }
13832if test $ac_cv_struct_tm = sys/time.h; then
13833
13834printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
13835
13836fi
13837
13838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13839printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13840if test ${ac_cv_c_undeclared_builtin_options+y}
13841then :
13842  printf %s "(cached) " >&6
13843else $as_nop
13844  ac_save_CFLAGS=$CFLAGS
13845   ac_cv_c_undeclared_builtin_options='cannot detect'
13846   for ac_arg in '' -fno-builtin; do
13847     CFLAGS="$ac_save_CFLAGS $ac_arg"
13848     # This test program should *not* compile successfully.
13849     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850/* end confdefs.h.  */
13851
13852int
13853main (void)
13854{
13855(void) strchr;
13856  ;
13857  return 0;
13858}
13859_ACEOF
13860if ac_fn_c_try_compile "$LINENO"
13861then :
13862
13863else $as_nop
13864  # This test program should compile successfully.
13865        # No library function is consistently available on
13866        # freestanding implementations, so test against a dummy
13867        # declaration.  Include always-available headers on the
13868        # off chance that they somehow elicit warnings.
13869        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870/* end confdefs.h.  */
13871#include <float.h>
13872#include <limits.h>
13873#include <stdarg.h>
13874#include <stddef.h>
13875extern void ac_decl (int, char *);
13876
13877int
13878main (void)
13879{
13880(void) ac_decl (0, (char *) 0);
13881  (void) ac_decl;
13882
13883  ;
13884  return 0;
13885}
13886_ACEOF
13887if ac_fn_c_try_compile "$LINENO"
13888then :
13889  if test x"$ac_arg" = x
13890then :
13891  ac_cv_c_undeclared_builtin_options='none needed'
13892else $as_nop
13893  ac_cv_c_undeclared_builtin_options=$ac_arg
13894fi
13895          break
13896fi
13897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13898fi
13899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13900    done
13901    CFLAGS=$ac_save_CFLAGS
13902
13903fi
13904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13905printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13906  case $ac_cv_c_undeclared_builtin_options in #(
13907  'cannot detect') :
13908    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13909printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13910as_fn_error $? "cannot make $CC report undeclared builtins
13911See \`config.log' for more details" "$LINENO" 5; } ;; #(
13912  'none needed') :
13913    ac_c_undeclared_builtin_options='' ;; #(
13914  *) :
13915    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13916esac
13917
13918ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13919#include <$ac_cv_struct_tm>
13920
13921"
13922if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
13923then :
13924
13925printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
13926
13927
13928fi
13929
13930if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13931
13932printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
13933
13934else
13935  ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13936" "$ac_c_undeclared_builtin_options" "CFLAGS"
13937if test "x$ac_cv_have_decl_tzname" = xyes
13938then :
13939  ac_have_decl=1
13940else $as_nop
13941  ac_have_decl=0
13942fi
13943printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
13944
13945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13946printf %s "checking for tzname... " >&6; }
13947if test ${ac_cv_var_tzname+y}
13948then :
13949  printf %s "(cached) " >&6
13950else $as_nop
13951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952/* end confdefs.h.  */
13953#include <time.h>
13954#if !HAVE_DECL_TZNAME
13955extern char *tzname[];
13956#endif
13957
13958int
13959main (void)
13960{
13961return tzname[0][0];
13962  ;
13963  return 0;
13964}
13965_ACEOF
13966if ac_fn_c_try_link "$LINENO"
13967then :
13968  ac_cv_var_tzname=yes
13969else $as_nop
13970  ac_cv_var_tzname=no
13971fi
13972rm -f core conftest.err conftest.$ac_objext conftest.beam \
13973    conftest$ac_exeext conftest.$ac_ext
13974fi
13975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13976printf "%s\n" "$ac_cv_var_tzname" >&6; }
13977  if test $ac_cv_var_tzname = yes; then
13978
13979printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
13980
13981  fi
13982fi
13983
13984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13985printf %s "checking for tm_zone in struct tm... " >&6; }
13986if test ${ac_cv_struct_tm_zone+y}
13987then :
13988  printf %s "(cached) " >&6
13989else $as_nop
13990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13991/* end confdefs.h.  */
13992#include <sys/types.h>
13993#include <$ac_cv_struct_tm>
13994int
13995main (void)
13996{
13997struct tm tm; tm.tm_zone;
13998  ;
13999  return 0;
14000}
14001_ACEOF
14002if ac_fn_c_try_compile "$LINENO"
14003then :
14004  ac_cv_struct_tm_zone=yes
14005else $as_nop
14006  ac_cv_struct_tm_zone=no
14007fi
14008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14009fi
14010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
14011printf "%s\n" "$ac_cv_struct_tm_zone" >&6; }
14012if test "$ac_cv_struct_tm_zone" = yes; then
14013
14014printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
14015
14016fi
14017
14018# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
14019# consider it declared and we won't give our own extern.
14020ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
14021" "$ac_c_undeclared_builtin_options" "CFLAGS"
14022if test "x$ac_cv_have_decl_tzname" = xyes
14023then :
14024  ac_have_decl=1
14025else $as_nop
14026  ac_have_decl=0
14027fi
14028printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
14029
14030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
14031printf %s "checking for tzname... " >&6; }
14032if test ${ac_cv_var_tzname+y}
14033then :
14034  printf %s "(cached) " >&6
14035else $as_nop
14036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037/* end confdefs.h.  */
14038#include <time.h>
14039int
14040main (void)
14041{
14042#if !HAVE_DECL_TZNAME
14043extern char *tzname[];
14044#endif
14045return tzname[0][0];
14046  ;
14047  return 0;
14048}
14049_ACEOF
14050if ac_fn_c_try_link "$LINENO"
14051then :
14052  ac_cv_var_tzname=yes
14053else $as_nop
14054  ac_cv_var_tzname=no
14055fi
14056rm -f core conftest.err conftest.$ac_objext conftest.beam \
14057    conftest$ac_exeext conftest.$ac_ext
14058fi
14059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
14060printf "%s\n" "$ac_cv_var_tzname" >&6; }
14061  if test $ac_cv_var_tzname = yes; then
14062
14063printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
14064
14065  fi
14066
14067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
14068printf %s "checking for tm_isdst in struct tm... " >&6; }
14069if test ${ac_cv_struct_tm_isdst+y}
14070then :
14071  printf %s "(cached) " >&6
14072else $as_nop
14073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074/* end confdefs.h.  */
14075#include <sys/types.h>
14076#include <$ac_cv_struct_tm>
14077int
14078main (void)
14079{
14080struct tm tm; tm.tm_isdst;
14081  ;
14082  return 0;
14083}
14084_ACEOF
14085if ac_fn_c_try_compile "$LINENO"
14086then :
14087  ac_cv_struct_tm_isdst=yes
14088else $as_nop
14089  ac_cv_struct_tm_isdst=no
14090fi
14091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14092fi
14093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
14094printf "%s\n" "$ac_cv_struct_tm_isdst" >&6; }
14095if test "$ac_cv_struct_tm_isdst" = yes; then
14096
14097printf "%s\n" "#define HAVE_TM_ISDST 1" >>confdefs.h
14098
14099fi
14100
14101
14102ac_fn_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
14103#include <stdlib.h>
14104" "$ac_c_undeclared_builtin_options" "CFLAGS"
14105if test "x$ac_cv_have_decl_daylight" = xyes
14106then :
14107  ac_have_decl=1
14108else $as_nop
14109  ac_have_decl=0
14110fi
14111printf "%s\n" "#define HAVE_DECL_DAYLIGHT $ac_have_decl" >>confdefs.h
14112
14113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
14114printf %s "checking for daylight... " >&6; }
14115if test ${ac_cv_var_daylight+y}
14116then :
14117  printf %s "(cached) " >&6
14118else $as_nop
14119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120/* end confdefs.h.  */
14121#include <time.h>
14122#include <stdlib.h>
14123int
14124main (void)
14125{
14126#if !HAVE_DECL_DAYLIGHT
14127extern int daylight;
14128#endif
14129daylight = atoi("1");
14130  ;
14131  return 0;
14132}
14133_ACEOF
14134if ac_fn_c_try_link "$LINENO"
14135then :
14136  ac_cv_var_daylight=yes
14137else $as_nop
14138  ac_cv_var_daylight=no
14139fi
14140rm -f core conftest.err conftest.$ac_objext conftest.beam \
14141    conftest$ac_exeext conftest.$ac_ext
14142fi
14143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
14144printf "%s\n" "$ac_cv_var_daylight" >&6; }
14145  if test $ac_cv_var_daylight = yes; then
14146
14147printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h
14148
14149  fi
14150
14151# Check whether --enable-largefile was given.
14152if test ${enable_largefile+y}
14153then :
14154  enableval=$enable_largefile;
14155fi
14156
14157if test "$enable_largefile" != no; then
14158
14159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14160printf %s "checking for special C compiler options needed for large files... " >&6; }
14161if test ${ac_cv_sys_largefile_CC+y}
14162then :
14163  printf %s "(cached) " >&6
14164else $as_nop
14165  ac_cv_sys_largefile_CC=no
14166     if test "$GCC" != yes; then
14167       ac_save_CC=$CC
14168       while :; do
14169	 # IRIX 6.2 and later do not support large files by default,
14170	 # so use the C compiler's -n32 option if that helps.
14171	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172/* end confdefs.h.  */
14173#include <sys/types.h>
14174 /* Check that off_t can represent 2**63 - 1 correctly.
14175    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14176    since some C++ compilers masquerading as C compilers
14177    incorrectly reject 9223372036854775807.  */
14178#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14179  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14180		       && LARGE_OFF_T % 2147483647 == 1)
14181		      ? 1 : -1];
14182int
14183main (void)
14184{
14185
14186  ;
14187  return 0;
14188}
14189_ACEOF
14190	 if ac_fn_c_try_compile "$LINENO"
14191then :
14192  break
14193fi
14194rm -f core conftest.err conftest.$ac_objext conftest.beam
14195	 CC="$CC -n32"
14196	 if ac_fn_c_try_compile "$LINENO"
14197then :
14198  ac_cv_sys_largefile_CC=' -n32'; break
14199fi
14200rm -f core conftest.err conftest.$ac_objext conftest.beam
14201	 break
14202       done
14203       CC=$ac_save_CC
14204       rm -f conftest.$ac_ext
14205    fi
14206fi
14207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14208printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
14209  if test "$ac_cv_sys_largefile_CC" != no; then
14210    CC=$CC$ac_cv_sys_largefile_CC
14211  fi
14212
14213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14214printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14215if test ${ac_cv_sys_file_offset_bits+y}
14216then :
14217  printf %s "(cached) " >&6
14218else $as_nop
14219  while :; do
14220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221/* end confdefs.h.  */
14222#include <sys/types.h>
14223 /* Check that off_t can represent 2**63 - 1 correctly.
14224    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14225    since some C++ compilers masquerading as C compilers
14226    incorrectly reject 9223372036854775807.  */
14227#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14228  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14229		       && LARGE_OFF_T % 2147483647 == 1)
14230		      ? 1 : -1];
14231int
14232main (void)
14233{
14234
14235  ;
14236  return 0;
14237}
14238_ACEOF
14239if ac_fn_c_try_compile "$LINENO"
14240then :
14241  ac_cv_sys_file_offset_bits=no; break
14242fi
14243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245/* end confdefs.h.  */
14246#define _FILE_OFFSET_BITS 64
14247#include <sys/types.h>
14248 /* Check that off_t can represent 2**63 - 1 correctly.
14249    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14250    since some C++ compilers masquerading as C compilers
14251    incorrectly reject 9223372036854775807.  */
14252#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14253  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14254		       && LARGE_OFF_T % 2147483647 == 1)
14255		      ? 1 : -1];
14256int
14257main (void)
14258{
14259
14260  ;
14261  return 0;
14262}
14263_ACEOF
14264if ac_fn_c_try_compile "$LINENO"
14265then :
14266  ac_cv_sys_file_offset_bits=64; break
14267fi
14268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14269  ac_cv_sys_file_offset_bits=unknown
14270  break
14271done
14272fi
14273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14274printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
14275case $ac_cv_sys_file_offset_bits in #(
14276  no | unknown) ;;
14277  *)
14278printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
14279;;
14280esac
14281rm -rf conftest*
14282  if test $ac_cv_sys_file_offset_bits = unknown; then
14283    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14284printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
14285if test ${ac_cv_sys_large_files+y}
14286then :
14287  printf %s "(cached) " >&6
14288else $as_nop
14289  while :; do
14290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291/* end confdefs.h.  */
14292#include <sys/types.h>
14293 /* Check that off_t can represent 2**63 - 1 correctly.
14294    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14295    since some C++ compilers masquerading as C compilers
14296    incorrectly reject 9223372036854775807.  */
14297#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14298  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14299		       && LARGE_OFF_T % 2147483647 == 1)
14300		      ? 1 : -1];
14301int
14302main (void)
14303{
14304
14305  ;
14306  return 0;
14307}
14308_ACEOF
14309if ac_fn_c_try_compile "$LINENO"
14310then :
14311  ac_cv_sys_large_files=no; break
14312fi
14313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315/* end confdefs.h.  */
14316#define _LARGE_FILES 1
14317#include <sys/types.h>
14318 /* Check that off_t can represent 2**63 - 1 correctly.
14319    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14320    since some C++ compilers masquerading as C compilers
14321    incorrectly reject 9223372036854775807.  */
14322#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14323  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14324		       && LARGE_OFF_T % 2147483647 == 1)
14325		      ? 1 : -1];
14326int
14327main (void)
14328{
14329
14330  ;
14331  return 0;
14332}
14333_ACEOF
14334if ac_fn_c_try_compile "$LINENO"
14335then :
14336  ac_cv_sys_large_files=1; break
14337fi
14338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14339  ac_cv_sys_large_files=unknown
14340  break
14341done
14342fi
14343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14344printf "%s\n" "$ac_cv_sys_large_files" >&6; }
14345case $ac_cv_sys_large_files in #(
14346  no | unknown) ;;
14347  *)
14348printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
14349;;
14350esac
14351rm -rf conftest*
14352  fi
14353fi
14354
14355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14356printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14357if test ${ac_cv_sys_largefile_source+y}
14358then :
14359  printf %s "(cached) " >&6
14360else $as_nop
14361  while :; do
14362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363/* end confdefs.h.  */
14364#include <sys/types.h> /* for off_t */
14365     #include <stdio.h>
14366int
14367main (void)
14368{
14369int (*fp) (FILE *, off_t, int) = fseeko;
14370     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14371  ;
14372  return 0;
14373}
14374_ACEOF
14375if ac_fn_c_try_link "$LINENO"
14376then :
14377  ac_cv_sys_largefile_source=no; break
14378fi
14379rm -f core conftest.err conftest.$ac_objext conftest.beam \
14380    conftest$ac_exeext conftest.$ac_ext
14381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382/* end confdefs.h.  */
14383#define _LARGEFILE_SOURCE 1
14384#include <sys/types.h> /* for off_t */
14385     #include <stdio.h>
14386int
14387main (void)
14388{
14389int (*fp) (FILE *, off_t, int) = fseeko;
14390     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14391  ;
14392  return 0;
14393}
14394_ACEOF
14395if ac_fn_c_try_link "$LINENO"
14396then :
14397  ac_cv_sys_largefile_source=1; break
14398fi
14399rm -f core conftest.err conftest.$ac_objext conftest.beam \
14400    conftest$ac_exeext conftest.$ac_ext
14401  ac_cv_sys_largefile_source=unknown
14402  break
14403done
14404fi
14405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14406printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
14407case $ac_cv_sys_largefile_source in #(
14408  no | unknown) ;;
14409  *)
14410printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
14411;;
14412esac
14413rm -rf conftest*
14414
14415# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14416# in glibc 2.1.3, but that breaks too many other things.
14417# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14418if test $ac_cv_sys_largefile_source != unknown; then
14419
14420printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
14421
14422fi
14423
14424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14425printf %s "checking for mbstate_t... " >&6; }
14426if test ${ac_cv_type_mbstate_t+y}
14427then :
14428  printf %s "(cached) " >&6
14429else $as_nop
14430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14431/* end confdefs.h.  */
14432$ac_includes_default
14433#	    include <wchar.h>
14434int
14435main (void)
14436{
14437mbstate_t x; return sizeof x;
14438  ;
14439  return 0;
14440}
14441_ACEOF
14442if ac_fn_c_try_compile "$LINENO"
14443then :
14444  ac_cv_type_mbstate_t=yes
14445else $as_nop
14446  ac_cv_type_mbstate_t=no
14447fi
14448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14449fi
14450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14451printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
14452   if test $ac_cv_type_mbstate_t = yes; then
14453
14454printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
14455
14456   else
14457
14458printf "%s\n" "#define mbstate_t int" >>confdefs.h
14459
14460   fi
14461
14462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
14463printf %s "checking for struct option in getopt... " >&6; }
14464if test ${ac_cv_struct_option_getopt_h+y}
14465then :
14466  printf %s "(cached) " >&6
14467else $as_nop
14468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469/* end confdefs.h.  */
14470#include <getopt.h>
14471int
14472main (void)
14473{
14474struct option op; op.name;
14475  ;
14476  return 0;
14477}
14478_ACEOF
14479if ac_fn_c_try_compile "$LINENO"
14480then :
14481  ac_cv_struct_option_getopt_h=yes
14482else $as_nop
14483  ac_cv_struct_option_getopt_h=no
14484fi
14485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14486fi
14487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
14488printf "%s\n" "$ac_cv_struct_option_getopt_h" >&6; }
14489if test "$ac_cv_struct_option_getopt_h" = yes; then
14490
14491printf "%s\n" "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
14492
14493fi
14494
14495
14496  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
14497"
14498if test "x$ac_cv_type_pid_t" = xyes
14499then :
14500
14501else $as_nop
14502                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503/* end confdefs.h.  */
14504
14505          #if defined _WIN64 && !defined __CYGWIN__
14506          LLP64
14507          #endif
14508
14509int
14510main (void)
14511{
14512
14513  ;
14514  return 0;
14515}
14516
14517_ACEOF
14518if ac_fn_c_try_compile "$LINENO"
14519then :
14520  ac_pid_type='int'
14521else $as_nop
14522  ac_pid_type='__int64'
14523fi
14524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14525
14526printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
14527
14528
14529fi
14530
14531
14532ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14533case $ac_cv_c_uint8_t in #(
14534  no|yes) ;; #(
14535  *)
14536
14537printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
14538
14539
14540printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
14541;;
14542  esac
14543
14544ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14545case $ac_cv_c_uint16_t in #(
14546  no|yes) ;; #(
14547  *)
14548
14549
14550printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
14551;;
14552  esac
14553
14554ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14555case $ac_cv_c_uint32_t in #(
14556  no|yes) ;; #(
14557  *)
14558
14559printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
14560
14561
14562printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
14563;;
14564  esac
14565
14566ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14567case $ac_cv_c_int32_t in #(
14568  no|yes) ;; #(
14569  *)
14570
14571printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
14572;;
14573esac
14574
14575ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14576case $ac_cv_c_uint64_t in #(
14577  no|yes) ;; #(
14578  *)
14579
14580printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
14581
14582
14583printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
14584;;
14585  esac
14586
14587ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14588case $ac_cv_c_int64_t in #(
14589  no|yes) ;; #(
14590  *)
14591
14592printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
14593;;
14594esac
14595
14596
14597  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14598if test "x$ac_cv_type_intptr_t" = xyes
14599then :
14600
14601printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
14602
14603else $as_nop
14604  for ac_type in 'int' 'long int' 'long long int'; do
14605       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606/* end confdefs.h.  */
14607$ac_includes_default
14608int
14609main (void)
14610{
14611static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14612test_array [0] = 0;
14613return test_array [0];
14614
14615  ;
14616  return 0;
14617}
14618_ACEOF
14619if ac_fn_c_try_compile "$LINENO"
14620then :
14621
14622printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h
14623
14624	  ac_type=
14625fi
14626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14627       test -z "$ac_type" && break
14628     done
14629fi
14630
14631
14632
14633  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14634if test "x$ac_cv_type_uintptr_t" = xyes
14635then :
14636
14637printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
14638
14639else $as_nop
14640  for ac_type in 'unsigned int' 'unsigned long int' \
14641	'unsigned long long int'; do
14642       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643/* end confdefs.h.  */
14644$ac_includes_default
14645int
14646main (void)
14647{
14648static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14649test_array [0] = 0;
14650return test_array [0];
14651
14652  ;
14653  return 0;
14654}
14655_ACEOF
14656if ac_fn_c_try_compile "$LINENO"
14657then :
14658
14659printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
14660
14661	  ac_type=
14662fi
14663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14664       test -z "$ac_type" && break
14665     done
14666fi
14667
14668
14669
14670ac_func=
14671for ac_item in $ac_func_c_list
14672do
14673  if test $ac_func; then
14674    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
14675    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
14676      echo "#define $ac_item 1" >> confdefs.h
14677    fi
14678    ac_func=
14679  else
14680    ac_func=$ac_item
14681  fi
14682done
14683
14684
14685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14686printf %s "checking for working mmap... " >&6; }
14687if test ${ac_cv_func_mmap_fixed_mapped+y}
14688then :
14689  printf %s "(cached) " >&6
14690else $as_nop
14691  if test "$cross_compiling" = yes
14692then :
14693  case "$host_os" in # ((
14694			  # Guess yes on platforms where we know the result.
14695		  linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
14696			  # If we don't know, assume the worst.
14697		  *)      ac_cv_func_mmap_fixed_mapped=no ;;
14698		esac
14699else $as_nop
14700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701/* end confdefs.h.  */
14702$ac_includes_default
14703/* malloc might have been renamed as rpl_malloc. */
14704#undef malloc
14705
14706/* Thanks to Mike Haertel and Jim Avera for this test.
14707   Here is a matrix of mmap possibilities:
14708	mmap private not fixed
14709	mmap private fixed at somewhere currently unmapped
14710	mmap private fixed at somewhere already mapped
14711	mmap shared not fixed
14712	mmap shared fixed at somewhere currently unmapped
14713	mmap shared fixed at somewhere already mapped
14714   For private mappings, we should verify that changes cannot be read()
14715   back from the file, nor mmap's back from the file at a different
14716   address.  (There have been systems where private was not correctly
14717   implemented like the infamous i386 svr4.0, and systems where the
14718   VM page cache was not coherent with the file system buffer cache
14719   like early versions of FreeBSD and possibly contemporary NetBSD.)
14720   For shared mappings, we should conversely verify that changes get
14721   propagated back to all the places they're supposed to be.
14722
14723   Grep wants private fixed already mapped.
14724   The main things grep needs to know about mmap are:
14725   * does it exist and is it safe to write into the mmap'd area
14726   * how to use it (BSD variants)  */
14727
14728#include <fcntl.h>
14729#include <sys/mman.h>
14730
14731/* This mess was copied from the GNU getpagesize.h.  */
14732#ifndef HAVE_GETPAGESIZE
14733# ifdef _SC_PAGESIZE
14734#  define getpagesize() sysconf(_SC_PAGESIZE)
14735# else /* no _SC_PAGESIZE */
14736#  ifdef HAVE_SYS_PARAM_H
14737#   include <sys/param.h>
14738#   ifdef EXEC_PAGESIZE
14739#    define getpagesize() EXEC_PAGESIZE
14740#   else /* no EXEC_PAGESIZE */
14741#    ifdef NBPG
14742#     define getpagesize() NBPG * CLSIZE
14743#     ifndef CLSIZE
14744#      define CLSIZE 1
14745#     endif /* no CLSIZE */
14746#    else /* no NBPG */
14747#     ifdef NBPC
14748#      define getpagesize() NBPC
14749#     else /* no NBPC */
14750#      ifdef PAGESIZE
14751#       define getpagesize() PAGESIZE
14752#      endif /* PAGESIZE */
14753#     endif /* no NBPC */
14754#    endif /* no NBPG */
14755#   endif /* no EXEC_PAGESIZE */
14756#  else /* no HAVE_SYS_PARAM_H */
14757#   define getpagesize() 8192	/* punt totally */
14758#  endif /* no HAVE_SYS_PARAM_H */
14759# endif /* no _SC_PAGESIZE */
14760
14761#endif /* no HAVE_GETPAGESIZE */
14762
14763int
14764main (void)
14765{
14766  char *data, *data2, *data3;
14767  const char *cdata2;
14768  int i, pagesize;
14769  int fd, fd2;
14770
14771  pagesize = getpagesize ();
14772
14773  /* First, make a file with some known garbage in it. */
14774  data = (char *) malloc (pagesize);
14775  if (!data)
14776    return 1;
14777  for (i = 0; i < pagesize; ++i)
14778    *(data + i) = rand ();
14779  umask (0);
14780  fd = creat ("conftest.mmap", 0600);
14781  if (fd < 0)
14782    return 2;
14783  if (write (fd, data, pagesize) != pagesize)
14784    return 3;
14785  close (fd);
14786
14787  /* Next, check that the tail of a page is zero-filled.  File must have
14788     non-zero length, otherwise we risk SIGBUS for entire page.  */
14789  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14790  if (fd2 < 0)
14791    return 4;
14792  cdata2 = "";
14793  if (write (fd2, cdata2, 1) != 1)
14794    return 5;
14795  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14796  if (data2 == MAP_FAILED)
14797    return 6;
14798  for (i = 0; i < pagesize; ++i)
14799    if (*(data2 + i))
14800      return 7;
14801  close (fd2);
14802  if (munmap (data2, pagesize))
14803    return 8;
14804
14805  /* Next, try to mmap the file at a fixed address which already has
14806     something else allocated at it.  If we can, also make sure that
14807     we see the same garbage.  */
14808  fd = open ("conftest.mmap", O_RDWR);
14809  if (fd < 0)
14810    return 9;
14811  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14812		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
14813    return 10;
14814  for (i = 0; i < pagesize; ++i)
14815    if (*(data + i) != *(data2 + i))
14816      return 11;
14817
14818  /* Finally, make sure that changes to the mapped area do not
14819     percolate back to the file as seen by read().  (This is a bug on
14820     some variants of i386 svr4.0.)  */
14821  for (i = 0; i < pagesize; ++i)
14822    *(data2 + i) = *(data2 + i) + 1;
14823  data3 = (char *) malloc (pagesize);
14824  if (!data3)
14825    return 12;
14826  if (read (fd, data3, pagesize) != pagesize)
14827    return 13;
14828  for (i = 0; i < pagesize; ++i)
14829    if (*(data + i) != *(data3 + i))
14830      return 14;
14831  close (fd);
14832  free (data);
14833  free (data3);
14834  return 0;
14835}
14836_ACEOF
14837if ac_fn_c_try_run "$LINENO"
14838then :
14839  ac_cv_func_mmap_fixed_mapped=yes
14840else $as_nop
14841  ac_cv_func_mmap_fixed_mapped=no
14842fi
14843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14844  conftest.$ac_objext conftest.beam conftest.$ac_ext
14845fi
14846
14847fi
14848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14849printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
14850if test $ac_cv_func_mmap_fixed_mapped = yes; then
14851
14852printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
14853
14854fi
14855rm -f conftest.mmap conftest.txt
14856
14857
14858
14859
14860
14861
14862if test "x$ac_cv_func_fork" = xyes; then
14863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14864printf %s "checking for working fork... " >&6; }
14865if test ${ac_cv_func_fork_works+y}
14866then :
14867  printf %s "(cached) " >&6
14868else $as_nop
14869  if test "$cross_compiling" = yes
14870then :
14871  ac_cv_func_fork_works=cross
14872else $as_nop
14873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874/* end confdefs.h.  */
14875$ac_includes_default
14876int
14877main (void)
14878{
14879
14880	  /* By Ruediger Kuhlmann. */
14881	  return fork () < 0;
14882
14883  ;
14884  return 0;
14885}
14886_ACEOF
14887if ac_fn_c_try_run "$LINENO"
14888then :
14889  ac_cv_func_fork_works=yes
14890else $as_nop
14891  ac_cv_func_fork_works=no
14892fi
14893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14894  conftest.$ac_objext conftest.beam conftest.$ac_ext
14895fi
14896
14897fi
14898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14899printf "%s\n" "$ac_cv_func_fork_works" >&6; }
14900
14901else
14902  ac_cv_func_fork_works=$ac_cv_func_fork
14903fi
14904if test "x$ac_cv_func_fork_works" = xcross; then
14905  case $host in
14906    *-*-amigaos* | *-*-msdosdjgpp*)
14907      # Override, as these systems have only a dummy fork() stub
14908      ac_cv_func_fork_works=no
14909      ;;
14910    *)
14911      ac_cv_func_fork_works=yes
14912      ;;
14913  esac
14914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14915printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14916fi
14917ac_cv_func_vfork_works=$ac_cv_func_vfork
14918if test "x$ac_cv_func_vfork" = xyes; then
14919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14920printf %s "checking for working vfork... " >&6; }
14921if test ${ac_cv_func_vfork_works+y}
14922then :
14923  printf %s "(cached) " >&6
14924else $as_nop
14925  if test "$cross_compiling" = yes
14926then :
14927  ac_cv_func_vfork_works=cross
14928else $as_nop
14929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930/* end confdefs.h.  */
14931/* Thanks to Paul Eggert for this test.  */
14932$ac_includes_default
14933#include <signal.h>
14934#include <sys/wait.h>
14935#ifdef HAVE_VFORK_H
14936# include <vfork.h>
14937#endif
14938
14939static void
14940do_nothing (int sig)
14941{
14942  (void) sig;
14943}
14944
14945/* On some sparc systems, changes by the child to local and incoming
14946   argument registers are propagated back to the parent.  The compiler
14947   is told about this with #include <vfork.h>, but some compilers
14948   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14949   static variable whose address is put into a register that is
14950   clobbered by the vfork.  */
14951static void
14952sparc_address_test (int arg)
14953{
14954  static pid_t child;
14955  if (!child) {
14956    child = vfork ();
14957    if (child < 0) {
14958      perror ("vfork");
14959      _exit(2);
14960    }
14961    if (!child) {
14962      arg = getpid();
14963      write(-1, "", 0);
14964      _exit (arg);
14965    }
14966  }
14967}
14968
14969int
14970main (void)
14971{
14972  pid_t parent = getpid ();
14973  pid_t child;
14974
14975  sparc_address_test (0);
14976
14977  /* On Solaris 2.4, changes by the child to the signal handler
14978     also munge signal handlers in the parent.  To detect this,
14979     start by putting the parent's handler in a known state.  */
14980  signal (SIGTERM, SIG_DFL);
14981
14982  child = vfork ();
14983
14984  if (child == 0) {
14985    /* Here is another test for sparc vfork register problems.  This
14986       test uses lots of local variables, at least as many local
14987       variables as main has allocated so far including compiler
14988       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14989       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14990       reuse the register of parent for one of the local variables,
14991       since it will think that parent can't possibly be used any more
14992       in this routine.  Assigning to the local variable will thus
14993       munge parent in the parent process.  */
14994    pid_t
14995      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14996      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14997    /* Convince the compiler that p..p7 are live; otherwise, it might
14998       use the same hardware register for all 8 local variables.  */
14999    if (p != p1 || p != p2 || p != p3 || p != p4
15000	|| p != p5 || p != p6 || p != p7)
15001      _exit(1);
15002
15003    /* Alter the child's signal handler.  */
15004    if (signal (SIGTERM, do_nothing) != SIG_DFL)
15005      _exit(1);
15006
15007    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15008       from child file descriptors.  If the child closes a descriptor
15009       before it execs or exits, this munges the parent's descriptor
15010       as well.  Test for this by closing stdout in the child.  */
15011    _exit(close(fileno(stdout)) != 0);
15012  } else {
15013    int status;
15014    struct stat st;
15015
15016    while (wait(&status) != child)
15017      ;
15018    return (
15019	 /* Was there some problem with vforking?  */
15020	 child < 0
15021
15022	 /* Did the child munge the parent's signal handler?  */
15023	 || signal (SIGTERM, SIG_DFL) != SIG_DFL
15024
15025	 /* Did the child fail?  (This shouldn't happen.)  */
15026	 || status
15027
15028	 /* Did the vfork/compiler bug occur?  */
15029	 || parent != getpid()
15030
15031	 /* Did the file descriptor bug occur?  */
15032	 || fstat(fileno(stdout), &st) != 0
15033	 );
15034  }
15035}
15036_ACEOF
15037if ac_fn_c_try_run "$LINENO"
15038then :
15039  ac_cv_func_vfork_works=yes
15040else $as_nop
15041  ac_cv_func_vfork_works=no
15042fi
15043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15044  conftest.$ac_objext conftest.beam conftest.$ac_ext
15045fi
15046
15047fi
15048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15049printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
15050
15051fi;
15052if test "x$ac_cv_func_fork_works" = xcross; then
15053  ac_cv_func_vfork_works=$ac_cv_func_vfork
15054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15055printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15056fi
15057
15058if test "x$ac_cv_func_vfork_works" = xyes; then
15059
15060printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15061
15062else
15063
15064printf "%s\n" "#define vfork fork" >>confdefs.h
15065
15066fi
15067if test "x$ac_cv_func_fork_works" = xyes; then
15068
15069printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
15070
15071fi
15072
15073
15074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
15075printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
15076if test ${ac_cv_func_mbrtowc+y}
15077then :
15078  printf %s "(cached) " >&6
15079else $as_nop
15080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081/* end confdefs.h.  */
15082#include <wchar.h>
15083int
15084main (void)
15085{
15086wchar_t wc;
15087	      char const s[] = "";
15088	      size_t n = 1;
15089	      mbstate_t state;
15090	      return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
15091  ;
15092  return 0;
15093}
15094_ACEOF
15095if ac_fn_c_try_link "$LINENO"
15096then :
15097  ac_cv_func_mbrtowc=yes
15098else $as_nop
15099  ac_cv_func_mbrtowc=no
15100fi
15101rm -f core conftest.err conftest.$ac_objext conftest.beam \
15102    conftest$ac_exeext conftest.$ac_ext
15103fi
15104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
15105printf "%s\n" "$ac_cv_func_mbrtowc" >&6; }
15106  if test $ac_cv_func_mbrtowc = yes; then
15107
15108printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
15109
15110  fi
15111
15112
15113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
15114printf %s "checking for gcc compiler warnings... " >&6; }
15115# Check whether --enable-warnings was given.
15116if test ${enable_warnings+y}
15117then :
15118  enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
15119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15120printf "%s\n" "no" >&6; }
15121   WARNINGS=
15122else
15123   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15124printf "%s\n" "yes" >&6; }
15125   WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
15126       -Wmissing-declarations -Wredundant-decls -Wnested-externs \
15127       -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
15128       -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
15129fi
15130else $as_nop
15131
15132if test "$GCC" = yes; then
15133   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15134printf "%s\n" "yes" >&6; }
15135   WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
15136       -Wmissing-declarations -Wredundant-decls -Wnested-externs \
15137       -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
15138       -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
15139else
15140   WARNINGS=
15141   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15142printf "%s\n" "no" >&6; }
15143fi
15144fi
15145
15146
15147ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
15148if test "x$ac_cv_func_strndup" = xyes
15149then :
15150  printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
15151
15152fi
15153ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15154if test "x$ac_cv_func_mkstemp" = xyes
15155then :
15156  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15157
15158fi
15159ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
15160if test "x$ac_cv_func_mkostemp" = xyes
15161then :
15162  printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
15163
15164fi
15165ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
15166if test "x$ac_cv_func_utimes" = xyes
15167then :
15168  printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
15169
15170fi
15171ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
15172if test "x$ac_cv_func_utime" = xyes
15173then :
15174  printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
15175
15176fi
15177ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
15178if test "x$ac_cv_func_wcwidth" = xyes
15179then :
15180  printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h
15181
15182fi
15183ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
15184if test "x$ac_cv_func_strtof" = xyes
15185then :
15186  printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h
15187
15188fi
15189ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
15190if test "x$ac_cv_func_newlocale" = xyes
15191then :
15192  printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h
15193
15194fi
15195ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
15196if test "x$ac_cv_func_uselocale" = xyes
15197then :
15198  printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
15199
15200fi
15201ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale"
15202if test "x$ac_cv_func_freelocale" = xyes
15203then :
15204  printf "%s\n" "#define HAVE_FREELOCALE 1" >>confdefs.h
15205
15206fi
15207ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15208if test "x$ac_cv_func_memmem" = xyes
15209then :
15210  printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h
15211
15212fi
15213ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
15214if test "x$ac_cv_func_pipe2" = xyes
15215then :
15216  printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
15217
15218fi
15219ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
15220if test "x$ac_cv_func_posix_spawnp" = xyes
15221then :
15222  printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
15223
15224fi
15225
15226
15227ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15228if test "x$ac_cv_func_getopt_long" = xyes
15229then :
15230  printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
15231
15232else $as_nop
15233  case " $LIBOBJS " in
15234  *" getopt_long.$ac_objext "* ) ;;
15235  *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
15236 ;;
15237esac
15238
15239fi
15240ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
15241if test "x$ac_cv_func_asprintf" = xyes
15242then :
15243  printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
15244
15245else $as_nop
15246  case " $LIBOBJS " in
15247  *" asprintf.$ac_objext "* ) ;;
15248  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
15249 ;;
15250esac
15251
15252fi
15253ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
15254if test "x$ac_cv_func_vasprintf" = xyes
15255then :
15256  printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
15257
15258else $as_nop
15259  case " $LIBOBJS " in
15260  *" vasprintf.$ac_objext "* ) ;;
15261  *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
15262 ;;
15263esac
15264
15265fi
15266ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15267if test "x$ac_cv_func_strlcpy" = xyes
15268then :
15269  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
15270
15271else $as_nop
15272  case " $LIBOBJS " in
15273  *" strlcpy.$ac_objext "* ) ;;
15274  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
15275 ;;
15276esac
15277
15278fi
15279ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
15280if test "x$ac_cv_func_strlcat" = xyes
15281then :
15282  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
15283
15284else $as_nop
15285  case " $LIBOBJS " in
15286  *" strlcat.$ac_objext "* ) ;;
15287  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
15288 ;;
15289esac
15290
15291fi
15292ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
15293if test "x$ac_cv_func_getline" = xyes
15294then :
15295  printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
15296
15297else $as_nop
15298  case " $LIBOBJS " in
15299  *" getline.$ac_objext "* ) ;;
15300  *) LIBOBJS="$LIBOBJS getline.$ac_objext"
15301 ;;
15302esac
15303
15304fi
15305ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
15306if test "x$ac_cv_func_ctime_r" = xyes
15307then :
15308  printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
15309
15310else $as_nop
15311  case " $LIBOBJS " in
15312  *" ctime_r.$ac_objext "* ) ;;
15313  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
15314 ;;
15315esac
15316
15317fi
15318ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
15319if test "x$ac_cv_func_asctime_r" = xyes
15320then :
15321  printf "%s\n" "#define HAVE_ASCTIME_R 1" >>confdefs.h
15322
15323else $as_nop
15324  case " $LIBOBJS " in
15325  *" asctime_r.$ac_objext "* ) ;;
15326  *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
15327 ;;
15328esac
15329
15330fi
15331ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
15332if test "x$ac_cv_func_localtime_r" = xyes
15333then :
15334  printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
15335
15336else $as_nop
15337  case " $LIBOBJS " in
15338  *" localtime_r.$ac_objext "* ) ;;
15339  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
15340 ;;
15341esac
15342
15343fi
15344ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
15345if test "x$ac_cv_func_gmtime_r" = xyes
15346then :
15347  printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
15348
15349else $as_nop
15350  case " $LIBOBJS " in
15351  *" gmtime_r.$ac_objext "* ) ;;
15352  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
15353 ;;
15354esac
15355
15356fi
15357ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
15358if test "x$ac_cv_func_pread" = xyes
15359then :
15360  printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
15361
15362else $as_nop
15363  case " $LIBOBJS " in
15364  *" pread.$ac_objext "* ) ;;
15365  *) LIBOBJS="$LIBOBJS pread.$ac_objext"
15366 ;;
15367esac
15368
15369fi
15370ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
15371if test "x$ac_cv_func_strcasestr" = xyes
15372then :
15373  printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
15374
15375else $as_nop
15376  case " $LIBOBJS " in
15377  *" strcasestr.$ac_objext "* ) ;;
15378  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
15379 ;;
15380esac
15381
15382fi
15383ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
15384if test "x$ac_cv_func_fmtcheck" = xyes
15385then :
15386  printf "%s\n" "#define HAVE_FMTCHECK 1" >>confdefs.h
15387
15388else $as_nop
15389  case " $LIBOBJS " in
15390  *" fmtcheck.$ac_objext "* ) ;;
15391  *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
15392 ;;
15393esac
15394
15395fi
15396ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
15397if test "x$ac_cv_func_dprintf" = xyes
15398then :
15399  printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h
15400
15401else $as_nop
15402  case " $LIBOBJS " in
15403  *" dprintf.$ac_objext "* ) ;;
15404  *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
15405 ;;
15406esac
15407
15408fi
15409
15410
15411if test "$enable_zlib" != "no"; then
15412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
15413printf %s "checking for gzopen in -lz... " >&6; }
15414if test ${ac_cv_lib_z_gzopen+y}
15415then :
15416  printf %s "(cached) " >&6
15417else $as_nop
15418  ac_check_lib_save_LIBS=$LIBS
15419LIBS="-lz  $LIBS"
15420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421/* end confdefs.h.  */
15422
15423/* Override any GCC internal prototype to avoid an error.
15424   Use char because int might match the return type of a GCC
15425   builtin and then its argument prototype would still apply.  */
15426char gzopen ();
15427int
15428main (void)
15429{
15430return gzopen ();
15431  ;
15432  return 0;
15433}
15434_ACEOF
15435if ac_fn_c_try_link "$LINENO"
15436then :
15437  ac_cv_lib_z_gzopen=yes
15438else $as_nop
15439  ac_cv_lib_z_gzopen=no
15440fi
15441rm -f core conftest.err conftest.$ac_objext conftest.beam \
15442    conftest$ac_exeext conftest.$ac_ext
15443LIBS=$ac_check_lib_save_LIBS
15444fi
15445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
15446printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
15447if test "x$ac_cv_lib_z_gzopen" = xyes
15448then :
15449  printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
15450
15451  LIBS="-lz $LIBS"
15452
15453fi
15454
15455fi
15456if test "$enable_bzlib" != "no"; then
15457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15458printf %s "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15459if test ${ac_cv_lib_bz2_BZ2_bzCompressInit+y}
15460then :
15461  printf %s "(cached) " >&6
15462else $as_nop
15463  ac_check_lib_save_LIBS=$LIBS
15464LIBS="-lbz2  $LIBS"
15465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466/* end confdefs.h.  */
15467
15468/* Override any GCC internal prototype to avoid an error.
15469   Use char because int might match the return type of a GCC
15470   builtin and then its argument prototype would still apply.  */
15471char BZ2_bzCompressInit ();
15472int
15473main (void)
15474{
15475return BZ2_bzCompressInit ();
15476  ;
15477  return 0;
15478}
15479_ACEOF
15480if ac_fn_c_try_link "$LINENO"
15481then :
15482  ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15483else $as_nop
15484  ac_cv_lib_bz2_BZ2_bzCompressInit=no
15485fi
15486rm -f core conftest.err conftest.$ac_objext conftest.beam \
15487    conftest$ac_exeext conftest.$ac_ext
15488LIBS=$ac_check_lib_save_LIBS
15489fi
15490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15491printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15492if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes
15493then :
15494  printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
15495
15496  LIBS="-lbz2 $LIBS"
15497
15498fi
15499
15500fi
15501if test "$enable_xzlib" != "no"; then
15502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
15503printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }
15504if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}
15505then :
15506  printf %s "(cached) " >&6
15507else $as_nop
15508  ac_check_lib_save_LIBS=$LIBS
15509LIBS="-llzma  $LIBS"
15510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511/* end confdefs.h.  */
15512
15513/* Override any GCC internal prototype to avoid an error.
15514   Use char because int might match the return type of a GCC
15515   builtin and then its argument prototype would still apply.  */
15516char lzma_stream_decoder ();
15517int
15518main (void)
15519{
15520return lzma_stream_decoder ();
15521  ;
15522  return 0;
15523}
15524_ACEOF
15525if ac_fn_c_try_link "$LINENO"
15526then :
15527  ac_cv_lib_lzma_lzma_stream_decoder=yes
15528else $as_nop
15529  ac_cv_lib_lzma_lzma_stream_decoder=no
15530fi
15531rm -f core conftest.err conftest.$ac_objext conftest.beam \
15532    conftest$ac_exeext conftest.$ac_ext
15533LIBS=$ac_check_lib_save_LIBS
15534fi
15535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
15536printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
15537if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes
15538then :
15539  printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h
15540
15541  LIBS="-llzma $LIBS"
15542
15543fi
15544
15545fi
15546if test "$enable_zstdlib" != "no"; then
15547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
15548printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
15549if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
15550then :
15551  printf %s "(cached) " >&6
15552else $as_nop
15553  ac_check_lib_save_LIBS=$LIBS
15554LIBS="-lzstd  $LIBS"
15555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556/* end confdefs.h.  */
15557
15558/* Override any GCC internal prototype to avoid an error.
15559   Use char because int might match the return type of a GCC
15560   builtin and then its argument prototype would still apply.  */
15561char ZSTD_createDStream ();
15562int
15563main (void)
15564{
15565return ZSTD_createDStream ();
15566  ;
15567  return 0;
15568}
15569_ACEOF
15570if ac_fn_c_try_link "$LINENO"
15571then :
15572  ac_cv_lib_zstd_ZSTD_createDStream=yes
15573else $as_nop
15574  ac_cv_lib_zstd_ZSTD_createDStream=no
15575fi
15576rm -f core conftest.err conftest.$ac_objext conftest.beam \
15577    conftest$ac_exeext conftest.$ac_ext
15578LIBS=$ac_check_lib_save_LIBS
15579fi
15580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
15581printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
15582if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
15583then :
15584  printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
15585
15586  LIBS="-lzstd $LIBS"
15587
15588fi
15589
15590fi
15591if test "$enable_lzlib" != "no"; then
15592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LZ_decompress_open in -llz" >&5
15593printf %s "checking for LZ_decompress_open in -llz... " >&6; }
15594if test ${ac_cv_lib_lz_LZ_decompress_open+y}
15595then :
15596  printf %s "(cached) " >&6
15597else $as_nop
15598  ac_check_lib_save_LIBS=$LIBS
15599LIBS="-llz  $LIBS"
15600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601/* end confdefs.h.  */
15602
15603/* Override any GCC internal prototype to avoid an error.
15604   Use char because int might match the return type of a GCC
15605   builtin and then its argument prototype would still apply.  */
15606char LZ_decompress_open ();
15607int
15608main (void)
15609{
15610return LZ_decompress_open ();
15611  ;
15612  return 0;
15613}
15614_ACEOF
15615if ac_fn_c_try_link "$LINENO"
15616then :
15617  ac_cv_lib_lz_LZ_decompress_open=yes
15618else $as_nop
15619  ac_cv_lib_lz_LZ_decompress_open=no
15620fi
15621rm -f core conftest.err conftest.$ac_objext conftest.beam \
15622    conftest$ac_exeext conftest.$ac_ext
15623LIBS=$ac_check_lib_save_LIBS
15624fi
15625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz_LZ_decompress_open" >&5
15626printf "%s\n" "$ac_cv_lib_lz_LZ_decompress_open" >&6; }
15627if test "x$ac_cv_lib_lz_LZ_decompress_open" = xyes
15628then :
15629  printf "%s\n" "#define HAVE_LIBLZ 1" >>confdefs.h
15630
15631  LIBS="-llz $LIBS"
15632
15633fi
15634
15635fi
15636if test "$enable_libseccomp" != "no"; then
15637    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
15638printf %s "checking for seccomp_init in -lseccomp... " >&6; }
15639if test ${ac_cv_lib_seccomp_seccomp_init+y}
15640then :
15641  printf %s "(cached) " >&6
15642else $as_nop
15643  ac_check_lib_save_LIBS=$LIBS
15644LIBS="-lseccomp  $LIBS"
15645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646/* end confdefs.h.  */
15647
15648/* Override any GCC internal prototype to avoid an error.
15649   Use char because int might match the return type of a GCC
15650   builtin and then its argument prototype would still apply.  */
15651char seccomp_init ();
15652int
15653main (void)
15654{
15655return seccomp_init ();
15656  ;
15657  return 0;
15658}
15659_ACEOF
15660if ac_fn_c_try_link "$LINENO"
15661then :
15662  ac_cv_lib_seccomp_seccomp_init=yes
15663else $as_nop
15664  ac_cv_lib_seccomp_seccomp_init=no
15665fi
15666rm -f core conftest.err conftest.$ac_objext conftest.beam \
15667    conftest$ac_exeext conftest.$ac_ext
15668LIBS=$ac_check_lib_save_LIBS
15669fi
15670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
15671printf "%s\n" "$ac_cv_lib_seccomp_seccomp_init" >&6; }
15672if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes
15673then :
15674  printf "%s\n" "#define HAVE_LIBSECCOMP 1" >>confdefs.h
15675
15676  LIBS="-lseccomp $LIBS"
15677
15678fi
15679
15680fi
15681if test "$MINGW" = 1; then
15682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
15683printf %s "checking for regexec in -lgnurx... " >&6; }
15684if test ${ac_cv_lib_gnurx_regexec+y}
15685then :
15686  printf %s "(cached) " >&6
15687else $as_nop
15688  ac_check_lib_save_LIBS=$LIBS
15689LIBS="-lgnurx  $LIBS"
15690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691/* end confdefs.h.  */
15692
15693/* Override any GCC internal prototype to avoid an error.
15694   Use char because int might match the return type of a GCC
15695   builtin and then its argument prototype would still apply.  */
15696char regexec ();
15697int
15698main (void)
15699{
15700return regexec ();
15701  ;
15702  return 0;
15703}
15704_ACEOF
15705if ac_fn_c_try_link "$LINENO"
15706then :
15707  ac_cv_lib_gnurx_regexec=yes
15708else $as_nop
15709  ac_cv_lib_gnurx_regexec=no
15710fi
15711rm -f core conftest.err conftest.$ac_objext conftest.beam \
15712    conftest$ac_exeext conftest.$ac_ext
15713LIBS=$ac_check_lib_save_LIBS
15714fi
15715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
15716printf "%s\n" "$ac_cv_lib_gnurx_regexec" >&6; }
15717if test "x$ac_cv_lib_gnurx_regexec" = xyes
15718then :
15719  printf "%s\n" "#define HAVE_LIBGNURX 1" >>confdefs.h
15720
15721  LIBS="-lgnurx $LIBS"
15722
15723else $as_nop
15724  as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
15725fi
15726
15727fi
15728
15729 if test "$cross_compiling" = yes; then
15730  IS_CROSS_COMPILE_TRUE=
15731  IS_CROSS_COMPILE_FALSE='#'
15732else
15733  IS_CROSS_COMPILE_TRUE='#'
15734  IS_CROSS_COMPILE_FALSE=
15735fi
15736
15737
15738if test "$enable_zlib" = "yes"; then
15739  if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
15740    as_fn_error $? "zlib support requested but not found" "$LINENO" 5
15741  fi
15742fi
15743if  test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
15744
15745printf "%s\n" "#define ZLIBSUPPORT 1" >>confdefs.h
15746
15747fi
15748if test "$enable_bzlib" = "yes"; then
15749  if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
15750    as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
15751  fi
15752fi
15753if  test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
15754
15755printf "%s\n" "#define BZLIBSUPPORT 1" >>confdefs.h
15756
15757fi
15758if test "$enable_xzlib" = "yes"; then
15759  if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
15760    as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
15761  fi
15762fi
15763if  test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
15764
15765printf "%s\n" "#define XZLIBSUPPORT 1" >>confdefs.h
15766
15767fi
15768if test "$enable_zstdlib" = "yes"; then
15769  if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" != "yesyes"; then
15770    as_fn_error $? "zstdlib support requested but not found" "$LINENO" 5
15771  fi
15772fi
15773if  test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" = "yesyes"; then
15774
15775printf "%s\n" "#define ZSTDLIBSUPPORT 1" >>confdefs.h
15776
15777fi
15778if test "$enable_lzlib" = "yes"; then
15779  if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" != "yesyes"; then
15780    as_fn_error $? "lzlib support requested but not found" "$LINENO" 5
15781  fi
15782fi
15783if  test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" = "yesyes"; then
15784
15785printf "%s\n" "#define LZLIBSUPPORT 1" >>confdefs.h
15786
15787fi
15788
15789ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
15790
15791cat >confcache <<\_ACEOF
15792# This file is a shell script that caches the results of configure
15793# tests run on this system so they can be shared between configure
15794# scripts and configure runs, see configure's option --config-cache.
15795# It is not useful on other systems.  If it contains results you don't
15796# want to keep, you may remove or edit it.
15797#
15798# config.status only pays attention to the cache file if you give it
15799# the --recheck option to rerun configure.
15800#
15801# `ac_cv_env_foo' variables (set or unset) will be overridden when
15802# loading this file, other *unset* `ac_cv_foo' will be assigned the
15803# following values.
15804
15805_ACEOF
15806
15807# The following way of writing the cache mishandles newlines in values,
15808# but we know of no workaround that is simple, portable, and efficient.
15809# So, we kill variables containing newlines.
15810# Ultrix sh set writes to stderr and can't be redirected directly,
15811# and sets the high bit in the cache file unless we assign to the vars.
15812(
15813  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15814    eval ac_val=\$$ac_var
15815    case $ac_val in #(
15816    *${as_nl}*)
15817      case $ac_var in #(
15818      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15819printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15820      esac
15821      case $ac_var in #(
15822      _ | IFS | as_nl) ;; #(
15823      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15824      *) { eval $ac_var=; unset $ac_var;} ;;
15825      esac ;;
15826    esac
15827  done
15828
15829  (set) 2>&1 |
15830    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15831    *${as_nl}ac_space=\ *)
15832      # `set' does not quote correctly, so add quotes: double-quote
15833      # substitution turns \\\\ into \\, and sed turns \\ into \.
15834      sed -n \
15835	"s/'/'\\\\''/g;
15836	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15837      ;; #(
15838    *)
15839      # `set' quotes correctly as required by POSIX, so do not add quotes.
15840      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15841      ;;
15842    esac |
15843    sort
15844) |
15845  sed '
15846     /^ac_cv_env_/b end
15847     t clear
15848     :clear
15849     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15850     t end
15851     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15852     :end' >>confcache
15853if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15854  if test -w "$cache_file"; then
15855    if test "x$cache_file" != "x/dev/null"; then
15856      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15857printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15858      if test ! -f "$cache_file" || test -h "$cache_file"; then
15859	cat confcache >"$cache_file"
15860      else
15861        case $cache_file in #(
15862        */* | ?:*)
15863	  mv -f confcache "$cache_file"$$ &&
15864	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15865        *)
15866	  mv -f confcache "$cache_file" ;;
15867	esac
15868      fi
15869    fi
15870  else
15871    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15872printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15873  fi
15874fi
15875rm -f confcache
15876
15877test "x$prefix" = xNONE && prefix=$ac_default_prefix
15878# Let make expand exec_prefix.
15879test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15880
15881DEFS=-DHAVE_CONFIG_H
15882
15883ac_libobjs=
15884ac_ltlibobjs=
15885U=
15886for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15887  # 1. Remove the extension, and $U if already installed.
15888  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15889  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15890  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15891  #    will be set to the directory where LIBOBJS objects are built.
15892  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15893  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15894done
15895LIBOBJS=$ac_libobjs
15896
15897LTLIBOBJS=$ac_ltlibobjs
15898
15899
15900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15901printf %s "checking that generated files are newer than configure... " >&6; }
15902   if test -n "$am_sleep_pid"; then
15903     # Hide warnings about reused PIDs.
15904     wait $am_sleep_pid 2>/dev/null
15905   fi
15906   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15907printf "%s\n" "done" >&6; }
15908 if test -n "$EXEEXT"; then
15909  am__EXEEXT_TRUE=
15910  am__EXEEXT_FALSE='#'
15911else
15912  am__EXEEXT_TRUE='#'
15913  am__EXEEXT_FALSE=
15914fi
15915
15916if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15917  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15918Usually this means the macro was only invoked conditionally." "$LINENO" 5
15919fi
15920if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
15921  as_fn_error $? "conditional \"MINGW\" was never defined.
15922Usually this means the macro was only invoked conditionally." "$LINENO" 5
15923fi
15924if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
15925  as_fn_error $? "conditional \"FSECT5\" was never defined.
15926Usually this means the macro was only invoked conditionally." "$LINENO" 5
15927fi
15928if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15929  as_fn_error $? "conditional \"AMDEP\" was never defined.
15930Usually this means the macro was only invoked conditionally." "$LINENO" 5
15931fi
15932if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15933  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15934Usually this means the macro was only invoked conditionally." "$LINENO" 5
15935fi
15936
15937if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
15938  as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
15939Usually this means the macro was only invoked conditionally." "$LINENO" 5
15940fi
15941
15942: "${CONFIG_STATUS=./config.status}"
15943ac_write_fail=0
15944ac_clean_files_save=$ac_clean_files
15945ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15947printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15948as_write_fail=0
15949cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15950#! $SHELL
15951# Generated by $as_me.
15952# Run this file to recreate the current configuration.
15953# Compiler output produced by configure, useful for debugging
15954# configure, is in config.log if it exists.
15955
15956debug=false
15957ac_cs_recheck=false
15958ac_cs_silent=false
15959
15960SHELL=\${CONFIG_SHELL-$SHELL}
15961export SHELL
15962_ASEOF
15963cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15964## -------------------- ##
15965## M4sh Initialization. ##
15966## -------------------- ##
15967
15968# Be more Bourne compatible
15969DUALCASE=1; export DUALCASE # for MKS sh
15970as_nop=:
15971if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15972then :
15973  emulate sh
15974  NULLCMD=:
15975  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15976  # is contrary to our usage.  Disable this feature.
15977  alias -g '${1+"$@"}'='"$@"'
15978  setopt NO_GLOB_SUBST
15979else $as_nop
15980  case `(set -o) 2>/dev/null` in #(
15981  *posix*) :
15982    set -o posix ;; #(
15983  *) :
15984     ;;
15985esac
15986fi
15987
15988
15989
15990# Reset variables that may have inherited troublesome values from
15991# the environment.
15992
15993# IFS needs to be set, to space, tab, and newline, in precisely that order.
15994# (If _AS_PATH_WALK were called with IFS unset, it would have the
15995# side effect of setting IFS to empty, thus disabling word splitting.)
15996# Quoting is to prevent editors from complaining about space-tab.
15997as_nl='
15998'
15999export as_nl
16000IFS=" ""	$as_nl"
16001
16002PS1='$ '
16003PS2='> '
16004PS4='+ '
16005
16006# Ensure predictable behavior from utilities with locale-dependent output.
16007LC_ALL=C
16008export LC_ALL
16009LANGUAGE=C
16010export LANGUAGE
16011
16012# We cannot yet rely on "unset" to work, but we need these variables
16013# to be unset--not just set to an empty or harmless value--now, to
16014# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
16015# also avoids known problems related to "unset" and subshell syntax
16016# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16017for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16018do eval test \${$as_var+y} \
16019  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16020done
16021
16022# Ensure that fds 0, 1, and 2 are open.
16023if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16024if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16025if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
16026
16027# The user is always right.
16028if ${PATH_SEPARATOR+false} :; then
16029  PATH_SEPARATOR=:
16030  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16031    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16032      PATH_SEPARATOR=';'
16033  }
16034fi
16035
16036
16037# Find who we are.  Look in the path if we contain no directory separator.
16038as_myself=
16039case $0 in #((
16040  *[\\/]* ) as_myself=$0 ;;
16041  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16042for as_dir in $PATH
16043do
16044  IFS=$as_save_IFS
16045  case $as_dir in #(((
16046    '') as_dir=./ ;;
16047    */) ;;
16048    *) as_dir=$as_dir/ ;;
16049  esac
16050    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16051  done
16052IFS=$as_save_IFS
16053
16054     ;;
16055esac
16056# We did not find ourselves, most probably we were run as `sh COMMAND'
16057# in which case we are not to be found in the path.
16058if test "x$as_myself" = x; then
16059  as_myself=$0
16060fi
16061if test ! -f "$as_myself"; then
16062  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16063  exit 1
16064fi
16065
16066
16067
16068# as_fn_error STATUS ERROR [LINENO LOG_FD]
16069# ----------------------------------------
16070# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16071# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16072# script with STATUS, using 1 if that was 0.
16073as_fn_error ()
16074{
16075  as_status=$1; test $as_status -eq 0 && as_status=1
16076  if test "$4"; then
16077    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16078    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16079  fi
16080  printf "%s\n" "$as_me: error: $2" >&2
16081  as_fn_exit $as_status
16082} # as_fn_error
16083
16084
16085
16086# as_fn_set_status STATUS
16087# -----------------------
16088# Set $? to STATUS, without forking.
16089as_fn_set_status ()
16090{
16091  return $1
16092} # as_fn_set_status
16093
16094# as_fn_exit STATUS
16095# -----------------
16096# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16097as_fn_exit ()
16098{
16099  set +e
16100  as_fn_set_status $1
16101  exit $1
16102} # as_fn_exit
16103
16104# as_fn_unset VAR
16105# ---------------
16106# Portably unset VAR.
16107as_fn_unset ()
16108{
16109  { eval $1=; unset $1;}
16110}
16111as_unset=as_fn_unset
16112
16113# as_fn_append VAR VALUE
16114# ----------------------
16115# Append the text in VALUE to the end of the definition contained in VAR. Take
16116# advantage of any shell optimizations that allow amortized linear growth over
16117# repeated appends, instead of the typical quadratic growth present in naive
16118# implementations.
16119if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16120then :
16121  eval 'as_fn_append ()
16122  {
16123    eval $1+=\$2
16124  }'
16125else $as_nop
16126  as_fn_append ()
16127  {
16128    eval $1=\$$1\$2
16129  }
16130fi # as_fn_append
16131
16132# as_fn_arith ARG...
16133# ------------------
16134# Perform arithmetic evaluation on the ARGs, and store the result in the
16135# global $as_val. Take advantage of shells that can avoid forks. The arguments
16136# must be portable across $(()) and expr.
16137if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16138then :
16139  eval 'as_fn_arith ()
16140  {
16141    as_val=$(( $* ))
16142  }'
16143else $as_nop
16144  as_fn_arith ()
16145  {
16146    as_val=`expr "$@" || test $? -eq 1`
16147  }
16148fi # as_fn_arith
16149
16150
16151if expr a : '\(a\)' >/dev/null 2>&1 &&
16152   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16153  as_expr=expr
16154else
16155  as_expr=false
16156fi
16157
16158if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16159  as_basename=basename
16160else
16161  as_basename=false
16162fi
16163
16164if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16165  as_dirname=dirname
16166else
16167  as_dirname=false
16168fi
16169
16170as_me=`$as_basename -- "$0" ||
16171$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16172	 X"$0" : 'X\(//\)$' \| \
16173	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16174printf "%s\n" X/"$0" |
16175    sed '/^.*\/\([^/][^/]*\)\/*$/{
16176	    s//\1/
16177	    q
16178	  }
16179	  /^X\/\(\/\/\)$/{
16180	    s//\1/
16181	    q
16182	  }
16183	  /^X\/\(\/\).*/{
16184	    s//\1/
16185	    q
16186	  }
16187	  s/.*/./; q'`
16188
16189# Avoid depending upon Character Ranges.
16190as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16191as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16192as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16193as_cr_digits='0123456789'
16194as_cr_alnum=$as_cr_Letters$as_cr_digits
16195
16196
16197# Determine whether it's possible to make 'echo' print without a newline.
16198# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16199# for compatibility with existing Makefiles.
16200ECHO_C= ECHO_N= ECHO_T=
16201case `echo -n x` in #(((((
16202-n*)
16203  case `echo 'xy\c'` in
16204  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16205  xy)  ECHO_C='\c';;
16206  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16207       ECHO_T='	';;
16208  esac;;
16209*)
16210  ECHO_N='-n';;
16211esac
16212
16213# For backward compatibility with old third-party macros, we provide
16214# the shell variables $as_echo and $as_echo_n.  New code should use
16215# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16216as_echo='printf %s\n'
16217as_echo_n='printf %s'
16218
16219rm -f conf$$ conf$$.exe conf$$.file
16220if test -d conf$$.dir; then
16221  rm -f conf$$.dir/conf$$.file
16222else
16223  rm -f conf$$.dir
16224  mkdir conf$$.dir 2>/dev/null
16225fi
16226if (echo >conf$$.file) 2>/dev/null; then
16227  if ln -s conf$$.file conf$$ 2>/dev/null; then
16228    as_ln_s='ln -s'
16229    # ... but there are two gotchas:
16230    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16231    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16232    # In both cases, we have to default to `cp -pR'.
16233    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16234      as_ln_s='cp -pR'
16235  elif ln conf$$.file conf$$ 2>/dev/null; then
16236    as_ln_s=ln
16237  else
16238    as_ln_s='cp -pR'
16239  fi
16240else
16241  as_ln_s='cp -pR'
16242fi
16243rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16244rmdir conf$$.dir 2>/dev/null
16245
16246
16247# as_fn_mkdir_p
16248# -------------
16249# Create "$as_dir" as a directory, including parents if necessary.
16250as_fn_mkdir_p ()
16251{
16252
16253  case $as_dir in #(
16254  -*) as_dir=./$as_dir;;
16255  esac
16256  test -d "$as_dir" || eval $as_mkdir_p || {
16257    as_dirs=
16258    while :; do
16259      case $as_dir in #(
16260      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16261      *) as_qdir=$as_dir;;
16262      esac
16263      as_dirs="'$as_qdir' $as_dirs"
16264      as_dir=`$as_dirname -- "$as_dir" ||
16265$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16266	 X"$as_dir" : 'X\(//\)[^/]' \| \
16267	 X"$as_dir" : 'X\(//\)$' \| \
16268	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16269printf "%s\n" X"$as_dir" |
16270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16271	    s//\1/
16272	    q
16273	  }
16274	  /^X\(\/\/\)[^/].*/{
16275	    s//\1/
16276	    q
16277	  }
16278	  /^X\(\/\/\)$/{
16279	    s//\1/
16280	    q
16281	  }
16282	  /^X\(\/\).*/{
16283	    s//\1/
16284	    q
16285	  }
16286	  s/.*/./; q'`
16287      test -d "$as_dir" && break
16288    done
16289    test -z "$as_dirs" || eval "mkdir $as_dirs"
16290  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16291
16292
16293} # as_fn_mkdir_p
16294if mkdir -p . 2>/dev/null; then
16295  as_mkdir_p='mkdir -p "$as_dir"'
16296else
16297  test -d ./-p && rmdir ./-p
16298  as_mkdir_p=false
16299fi
16300
16301
16302# as_fn_executable_p FILE
16303# -----------------------
16304# Test if FILE is an executable regular file.
16305as_fn_executable_p ()
16306{
16307  test -f "$1" && test -x "$1"
16308} # as_fn_executable_p
16309as_test_x='test -x'
16310as_executable_p=as_fn_executable_p
16311
16312# Sed expression to map a string onto a valid CPP name.
16313as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16314
16315# Sed expression to map a string onto a valid variable name.
16316as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16317
16318
16319exec 6>&1
16320## ----------------------------------- ##
16321## Main body of $CONFIG_STATUS script. ##
16322## ----------------------------------- ##
16323_ASEOF
16324test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16325
16326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16327# Save the log message, to keep $0 and so on meaningful, and to
16328# report actual input values of CONFIG_FILES etc. instead of their
16329# values after options handling.
16330ac_log="
16331This file was extended by file $as_me 5.45, which was
16332generated by GNU Autoconf 2.71.  Invocation command line was
16333
16334  CONFIG_FILES    = $CONFIG_FILES
16335  CONFIG_HEADERS  = $CONFIG_HEADERS
16336  CONFIG_LINKS    = $CONFIG_LINKS
16337  CONFIG_COMMANDS = $CONFIG_COMMANDS
16338  $ $0 $@
16339
16340on `(hostname || uname -n) 2>/dev/null | sed 1q`
16341"
16342
16343_ACEOF
16344
16345case $ac_config_files in *"
16346"*) set x $ac_config_files; shift; ac_config_files=$*;;
16347esac
16348
16349case $ac_config_headers in *"
16350"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16351esac
16352
16353
16354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16355# Files that config.status was made for.
16356config_files="$ac_config_files"
16357config_headers="$ac_config_headers"
16358config_commands="$ac_config_commands"
16359
16360_ACEOF
16361
16362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16363ac_cs_usage="\
16364\`$as_me' instantiates files and other configuration actions
16365from templates according to the current configuration.  Unless the files
16366and actions are specified as TAGs, all are instantiated by default.
16367
16368Usage: $0 [OPTION]... [TAG]...
16369
16370  -h, --help       print this help, then exit
16371  -V, --version    print version number and configuration settings, then exit
16372      --config     print configuration, then exit
16373  -q, --quiet, --silent
16374                   do not print progress messages
16375  -d, --debug      don't remove temporary files
16376      --recheck    update $as_me by reconfiguring in the same conditions
16377      --file=FILE[:TEMPLATE]
16378                   instantiate the configuration file FILE
16379      --header=FILE[:TEMPLATE]
16380                   instantiate the configuration header FILE
16381
16382Configuration files:
16383$config_files
16384
16385Configuration headers:
16386$config_headers
16387
16388Configuration commands:
16389$config_commands
16390
16391Report bugs to <christos@astron.com>."
16392
16393_ACEOF
16394ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16395ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16397ac_cs_config='$ac_cs_config_escaped'
16398ac_cs_version="\\
16399file config.status 5.45
16400configured by $0, generated by GNU Autoconf 2.71,
16401  with options \\"\$ac_cs_config\\"
16402
16403Copyright (C) 2021 Free Software Foundation, Inc.
16404This config.status script is free software; the Free Software Foundation
16405gives unlimited permission to copy, distribute and modify it."
16406
16407ac_pwd='$ac_pwd'
16408srcdir='$srcdir'
16409INSTALL='$INSTALL'
16410MKDIR_P='$MKDIR_P'
16411AWK='$AWK'
16412test -n "\$AWK" || AWK=awk
16413_ACEOF
16414
16415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16416# The default lists apply if the user does not specify any file.
16417ac_need_defaults=:
16418while test $# != 0
16419do
16420  case $1 in
16421  --*=?*)
16422    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16423    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16424    ac_shift=:
16425    ;;
16426  --*=)
16427    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16428    ac_optarg=
16429    ac_shift=:
16430    ;;
16431  *)
16432    ac_option=$1
16433    ac_optarg=$2
16434    ac_shift=shift
16435    ;;
16436  esac
16437
16438  case $ac_option in
16439  # Handling of the options.
16440  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16441    ac_cs_recheck=: ;;
16442  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16443    printf "%s\n" "$ac_cs_version"; exit ;;
16444  --config | --confi | --conf | --con | --co | --c )
16445    printf "%s\n" "$ac_cs_config"; exit ;;
16446  --debug | --debu | --deb | --de | --d | -d )
16447    debug=: ;;
16448  --file | --fil | --fi | --f )
16449    $ac_shift
16450    case $ac_optarg in
16451    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16452    '') as_fn_error $? "missing file argument" ;;
16453    esac
16454    as_fn_append CONFIG_FILES " '$ac_optarg'"
16455    ac_need_defaults=false;;
16456  --header | --heade | --head | --hea )
16457    $ac_shift
16458    case $ac_optarg in
16459    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16460    esac
16461    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16462    ac_need_defaults=false;;
16463  --he | --h)
16464    # Conflict between --help and --header
16465    as_fn_error $? "ambiguous option: \`$1'
16466Try \`$0 --help' for more information.";;
16467  --help | --hel | -h )
16468    printf "%s\n" "$ac_cs_usage"; exit ;;
16469  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16470  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16471    ac_cs_silent=: ;;
16472
16473  # This is an error.
16474  -*) as_fn_error $? "unrecognized option: \`$1'
16475Try \`$0 --help' for more information." ;;
16476
16477  *) as_fn_append ac_config_targets " $1"
16478     ac_need_defaults=false ;;
16479
16480  esac
16481  shift
16482done
16483
16484ac_configure_extra_args=
16485
16486if $ac_cs_silent; then
16487  exec 6>/dev/null
16488  ac_configure_extra_args="$ac_configure_extra_args --silent"
16489fi
16490
16491_ACEOF
16492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16493if \$ac_cs_recheck; then
16494  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16495  shift
16496  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16497  CONFIG_SHELL='$SHELL'
16498  export CONFIG_SHELL
16499  exec "\$@"
16500fi
16501
16502_ACEOF
16503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504exec 5>>config.log
16505{
16506  echo
16507  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16508## Running $as_me. ##
16509_ASBOX
16510  printf "%s\n" "$ac_log"
16511} >&5
16512
16513_ACEOF
16514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16515#
16516# INIT-COMMANDS
16517#
16518AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16519
16520
16521# The HP-UX ksh and POSIX shell print the target directory to stdout
16522# if CDPATH is set.
16523(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16524
16525sed_quote_subst='$sed_quote_subst'
16526double_quote_subst='$double_quote_subst'
16527delay_variable_subst='$delay_variable_subst'
16528macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16529macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16530enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16531pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16532enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16533enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16534shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16535SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16536ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16537PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16538host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16539host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16540host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16541build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16542build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16543build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16544SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16545Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16546GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16547EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16548FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16549LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16550NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16551LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16552max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16553ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16554exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16555lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16556lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16557lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16558lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16559lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16560reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16561reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16562OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16563deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16564file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16565file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16566want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16567DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16568sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16569AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16570AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16571archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16572STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16573RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16574old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16575old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16576old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16577lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16578CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16579CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16580compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16581GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16582lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16583lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16584lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16585lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16586lt_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"`'
16587lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16588nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16589lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16590lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16591objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16592MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16593lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16594lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16595lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16596lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16597lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16598need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16599MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16600DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16601NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16602LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16603OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16604OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16605libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16606shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16607extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16608archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16609enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16610export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16611whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16612compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16613old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16614old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16615archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16616archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16617module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16618module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16619with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16620allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16621no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16622hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16623hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16624hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16625hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16626hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16627hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16628hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16629inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16630link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16631always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16632export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16633exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16634include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16635prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16636postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16637file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16638variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16639need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16640need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16641version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16642runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16643shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16644shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16645libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16646library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16647soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16648install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16649postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16650postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16651finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16652finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16653hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16654sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16655configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16656configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16657hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16658enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16659enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16660enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16661old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16662striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16663
16664LTCC='$LTCC'
16665LTCFLAGS='$LTCFLAGS'
16666compiler='$compiler_DEFAULT'
16667
16668# A function that is used when there is no print builtin or printf.
16669func_fallback_echo ()
16670{
16671  eval 'cat <<_LTECHO_EOF
16672\$1
16673_LTECHO_EOF'
16674}
16675
16676# Quote evaled strings.
16677for var in SHELL \
16678ECHO \
16679PATH_SEPARATOR \
16680SED \
16681GREP \
16682EGREP \
16683FGREP \
16684LD \
16685NM \
16686LN_S \
16687lt_SP2NL \
16688lt_NL2SP \
16689reload_flag \
16690OBJDUMP \
16691deplibs_check_method \
16692file_magic_cmd \
16693file_magic_glob \
16694want_nocaseglob \
16695DLLTOOL \
16696sharedlib_from_linklib_cmd \
16697AR \
16698AR_FLAGS \
16699archiver_list_spec \
16700STRIP \
16701RANLIB \
16702CC \
16703CFLAGS \
16704compiler \
16705lt_cv_sys_global_symbol_pipe \
16706lt_cv_sys_global_symbol_to_cdecl \
16707lt_cv_sys_global_symbol_to_import \
16708lt_cv_sys_global_symbol_to_c_name_address \
16709lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16710lt_cv_nm_interface \
16711nm_file_list_spec \
16712lt_cv_truncate_bin \
16713lt_prog_compiler_no_builtin_flag \
16714lt_prog_compiler_pic \
16715lt_prog_compiler_wl \
16716lt_prog_compiler_static \
16717lt_cv_prog_compiler_c_o \
16718need_locks \
16719MANIFEST_TOOL \
16720DSYMUTIL \
16721NMEDIT \
16722LIPO \
16723OTOOL \
16724OTOOL64 \
16725shrext_cmds \
16726export_dynamic_flag_spec \
16727whole_archive_flag_spec \
16728compiler_needs_object \
16729with_gnu_ld \
16730allow_undefined_flag \
16731no_undefined_flag \
16732hardcode_libdir_flag_spec \
16733hardcode_libdir_separator \
16734exclude_expsyms \
16735include_expsyms \
16736file_list_spec \
16737variables_saved_for_relink \
16738libname_spec \
16739library_names_spec \
16740soname_spec \
16741install_override_mode \
16742finish_eval \
16743old_striplib \
16744striplib; do
16745    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16746    *[\\\\\\\`\\"\\\$]*)
16747      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16748      ;;
16749    *)
16750      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16751      ;;
16752    esac
16753done
16754
16755# Double-quote double-evaled strings.
16756for var in reload_cmds \
16757old_postinstall_cmds \
16758old_postuninstall_cmds \
16759old_archive_cmds \
16760extract_expsyms_cmds \
16761old_archive_from_new_cmds \
16762old_archive_from_expsyms_cmds \
16763archive_cmds \
16764archive_expsym_cmds \
16765module_cmds \
16766module_expsym_cmds \
16767export_symbols_cmds \
16768prelink_cmds \
16769postlink_cmds \
16770postinstall_cmds \
16771postuninstall_cmds \
16772finish_cmds \
16773sys_lib_search_path_spec \
16774configure_time_dlsearch_path \
16775configure_time_lt_sys_library_path; do
16776    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16777    *[\\\\\\\`\\"\\\$]*)
16778      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16779      ;;
16780    *)
16781      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16782      ;;
16783    esac
16784done
16785
16786ac_aux_dir='$ac_aux_dir'
16787
16788# See if we are running on zsh, and set the options that allow our
16789# commands through without removal of \ escapes INIT.
16790if test -n "\${ZSH_VERSION+set}"; then
16791   setopt NO_GLOB_SUBST
16792fi
16793
16794
16795    PACKAGE='$PACKAGE'
16796    VERSION='$VERSION'
16797    RM='$RM'
16798    ofile='$ofile'
16799
16800
16801
16802
16803_ACEOF
16804
16805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16806
16807# Handling of arguments.
16808for ac_config_target in $ac_config_targets
16809do
16810  case $ac_config_target in
16811    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16812    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16813    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16814    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16815    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16816    "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
16817    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16818    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16819    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16820    "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
16821
16822  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16823  esac
16824done
16825
16826
16827# If the user did not use the arguments to specify the items to instantiate,
16828# then the envvar interface is used.  Set only those that are not.
16829# We use the long form for the default assignment because of an extremely
16830# bizarre bug on SunOS 4.1.3.
16831if $ac_need_defaults; then
16832  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16833  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16834  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16835fi
16836
16837# Have a temporary directory for convenience.  Make it in the build tree
16838# simply because there is no reason against having it here, and in addition,
16839# creating and moving files from /tmp can sometimes cause problems.
16840# Hook for its removal unless debugging.
16841# Note that there is a small window in which the directory will not be cleaned:
16842# after its creation but before its name has been assigned to `$tmp'.
16843$debug ||
16844{
16845  tmp= ac_tmp=
16846  trap 'exit_status=$?
16847  : "${ac_tmp:=$tmp}"
16848  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16849' 0
16850  trap 'as_fn_exit 1' 1 2 13 15
16851}
16852# Create a (secure) tmp directory for tmp files.
16853
16854{
16855  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16856  test -d "$tmp"
16857}  ||
16858{
16859  tmp=./conf$$-$RANDOM
16860  (umask 077 && mkdir "$tmp")
16861} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16862ac_tmp=$tmp
16863
16864# Set up the scripts for CONFIG_FILES section.
16865# No need to generate them if there are no CONFIG_FILES.
16866# This happens for instance with `./config.status config.h'.
16867if test -n "$CONFIG_FILES"; then
16868
16869
16870ac_cr=`echo X | tr X '\015'`
16871# On cygwin, bash can eat \r inside `` if the user requested igncr.
16872# But we know of no other shell where ac_cr would be empty at this
16873# point, so we can use a bashism as a fallback.
16874if test "x$ac_cr" = x; then
16875  eval ac_cr=\$\'\\r\'
16876fi
16877ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16878if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16879  ac_cs_awk_cr='\\r'
16880else
16881  ac_cs_awk_cr=$ac_cr
16882fi
16883
16884echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16885_ACEOF
16886
16887
16888{
16889  echo "cat >conf$$subs.awk <<_ACEOF" &&
16890  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16891  echo "_ACEOF"
16892} >conf$$subs.sh ||
16893  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16894ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16895ac_delim='%!_!# '
16896for ac_last_try in false false false false false :; do
16897  . ./conf$$subs.sh ||
16898    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16899
16900  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16901  if test $ac_delim_n = $ac_delim_num; then
16902    break
16903  elif $ac_last_try; then
16904    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16905  else
16906    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16907  fi
16908done
16909rm -f conf$$subs.sh
16910
16911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16912cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16913_ACEOF
16914sed -n '
16915h
16916s/^/S["/; s/!.*/"]=/
16917p
16918g
16919s/^[^!]*!//
16920:repl
16921t repl
16922s/'"$ac_delim"'$//
16923t delim
16924:nl
16925h
16926s/\(.\{148\}\)..*/\1/
16927t more1
16928s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16929p
16930n
16931b repl
16932:more1
16933s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16934p
16935g
16936s/.\{148\}//
16937t nl
16938:delim
16939h
16940s/\(.\{148\}\)..*/\1/
16941t more2
16942s/["\\]/\\&/g; s/^/"/; s/$/"/
16943p
16944b
16945:more2
16946s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16947p
16948g
16949s/.\{148\}//
16950t delim
16951' <conf$$subs.awk | sed '
16952/^[^""]/{
16953  N
16954  s/\n//
16955}
16956' >>$CONFIG_STATUS || ac_write_fail=1
16957rm -f conf$$subs.awk
16958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16959_ACAWK
16960cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16961  for (key in S) S_is_set[key] = 1
16962  FS = ""
16963
16964}
16965{
16966  line = $ 0
16967  nfields = split(line, field, "@")
16968  substed = 0
16969  len = length(field[1])
16970  for (i = 2; i < nfields; i++) {
16971    key = field[i]
16972    keylen = length(key)
16973    if (S_is_set[key]) {
16974      value = S[key]
16975      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16976      len += length(value) + length(field[++i])
16977      substed = 1
16978    } else
16979      len += 1 + keylen
16980  }
16981
16982  print line
16983}
16984
16985_ACAWK
16986_ACEOF
16987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16988if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16989  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16990else
16991  cat
16992fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16993  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16994_ACEOF
16995
16996# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16997# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16998# trailing colons and then remove the whole line if VPATH becomes empty
16999# (actually we leave an empty line to preserve line numbers).
17000if test "x$srcdir" = x.; then
17001  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17002h
17003s///
17004s/^/:/
17005s/[	 ]*$/:/
17006s/:\$(srcdir):/:/g
17007s/:\${srcdir}:/:/g
17008s/:@srcdir@:/:/g
17009s/^:*//
17010s/:*$//
17011x
17012s/\(=[	 ]*\).*/\1/
17013G
17014s/\n//
17015s/^[^=]*=[	 ]*$//
17016}'
17017fi
17018
17019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17020fi # test -n "$CONFIG_FILES"
17021
17022# Set up the scripts for CONFIG_HEADERS section.
17023# No need to generate them if there are no CONFIG_HEADERS.
17024# This happens for instance with `./config.status Makefile'.
17025if test -n "$CONFIG_HEADERS"; then
17026cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17027BEGIN {
17028_ACEOF
17029
17030# Transform confdefs.h into an awk script `defines.awk', embedded as
17031# here-document in config.status, that substitutes the proper values into
17032# config.h.in to produce config.h.
17033
17034# Create a delimiter string that does not exist in confdefs.h, to ease
17035# handling of long lines.
17036ac_delim='%!_!# '
17037for ac_last_try in false false :; do
17038  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17039  if test -z "$ac_tt"; then
17040    break
17041  elif $ac_last_try; then
17042    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17043  else
17044    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17045  fi
17046done
17047
17048# For the awk script, D is an array of macro values keyed by name,
17049# likewise P contains macro parameters if any.  Preserve backslash
17050# newline sequences.
17051
17052ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17053sed -n '
17054s/.\{148\}/&'"$ac_delim"'/g
17055t rset
17056:rset
17057s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17058t def
17059d
17060:def
17061s/\\$//
17062t bsnl
17063s/["\\]/\\&/g
17064s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17065D["\1"]=" \3"/p
17066s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17067d
17068:bsnl
17069s/["\\]/\\&/g
17070s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17071D["\1"]=" \3\\\\\\n"\\/p
17072t cont
17073s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17074t cont
17075d
17076:cont
17077n
17078s/.\{148\}/&'"$ac_delim"'/g
17079t clear
17080:clear
17081s/\\$//
17082t bsnlc
17083s/["\\]/\\&/g; s/^/"/; s/$/"/p
17084d
17085:bsnlc
17086s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17087b cont
17088' <confdefs.h | sed '
17089s/'"$ac_delim"'/"\\\
17090"/g' >>$CONFIG_STATUS || ac_write_fail=1
17091
17092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17093  for (key in D) D_is_set[key] = 1
17094  FS = ""
17095}
17096/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17097  line = \$ 0
17098  split(line, arg, " ")
17099  if (arg[1] == "#") {
17100    defundef = arg[2]
17101    mac1 = arg[3]
17102  } else {
17103    defundef = substr(arg[1], 2)
17104    mac1 = arg[2]
17105  }
17106  split(mac1, mac2, "(") #)
17107  macro = mac2[1]
17108  prefix = substr(line, 1, index(line, defundef) - 1)
17109  if (D_is_set[macro]) {
17110    # Preserve the white space surrounding the "#".
17111    print prefix "define", macro P[macro] D[macro]
17112    next
17113  } else {
17114    # Replace #undef with comments.  This is necessary, for example,
17115    # in the case of _POSIX_SOURCE, which is predefined and required
17116    # on some systems where configure will not decide to define it.
17117    if (defundef == "undef") {
17118      print "/*", prefix defundef, macro, "*/"
17119      next
17120    }
17121  }
17122}
17123{ print }
17124_ACAWK
17125_ACEOF
17126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17127  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17128fi # test -n "$CONFIG_HEADERS"
17129
17130
17131eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17132shift
17133for ac_tag
17134do
17135  case $ac_tag in
17136  :[FHLC]) ac_mode=$ac_tag; continue;;
17137  esac
17138  case $ac_mode$ac_tag in
17139  :[FHL]*:*);;
17140  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17141  :[FH]-) ac_tag=-:-;;
17142  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17143  esac
17144  ac_save_IFS=$IFS
17145  IFS=:
17146  set x $ac_tag
17147  IFS=$ac_save_IFS
17148  shift
17149  ac_file=$1
17150  shift
17151
17152  case $ac_mode in
17153  :L) ac_source=$1;;
17154  :[FH])
17155    ac_file_inputs=
17156    for ac_f
17157    do
17158      case $ac_f in
17159      -) ac_f="$ac_tmp/stdin";;
17160      *) # Look for the file first in the build tree, then in the source tree
17161	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17162	 # because $ac_f cannot contain `:'.
17163	 test -f "$ac_f" ||
17164	   case $ac_f in
17165	   [\\/$]*) false;;
17166	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17167	   esac ||
17168	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17169      esac
17170      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17171      as_fn_append ac_file_inputs " '$ac_f'"
17172    done
17173
17174    # Let's still pretend it is `configure' which instantiates (i.e., don't
17175    # use $as_me), people would be surprised to read:
17176    #    /* config.h.  Generated by config.status.  */
17177    configure_input='Generated from '`
17178	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17179	`' by configure.'
17180    if test x"$ac_file" != x-; then
17181      configure_input="$ac_file.  $configure_input"
17182      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17183printf "%s\n" "$as_me: creating $ac_file" >&6;}
17184    fi
17185    # Neutralize special characters interpreted by sed in replacement strings.
17186    case $configure_input in #(
17187    *\&* | *\|* | *\\* )
17188       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17189       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17190    *) ac_sed_conf_input=$configure_input;;
17191    esac
17192
17193    case $ac_tag in
17194    *:-:* | *:-) cat >"$ac_tmp/stdin" \
17195      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17196    esac
17197    ;;
17198  esac
17199
17200  ac_dir=`$as_dirname -- "$ac_file" ||
17201$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17202	 X"$ac_file" : 'X\(//\)[^/]' \| \
17203	 X"$ac_file" : 'X\(//\)$' \| \
17204	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17205printf "%s\n" X"$ac_file" |
17206    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17207	    s//\1/
17208	    q
17209	  }
17210	  /^X\(\/\/\)[^/].*/{
17211	    s//\1/
17212	    q
17213	  }
17214	  /^X\(\/\/\)$/{
17215	    s//\1/
17216	    q
17217	  }
17218	  /^X\(\/\).*/{
17219	    s//\1/
17220	    q
17221	  }
17222	  s/.*/./; q'`
17223  as_dir="$ac_dir"; as_fn_mkdir_p
17224  ac_builddir=.
17225
17226case "$ac_dir" in
17227.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17228*)
17229  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17230  # A ".." for each directory in $ac_dir_suffix.
17231  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17232  case $ac_top_builddir_sub in
17233  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17234  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17235  esac ;;
17236esac
17237ac_abs_top_builddir=$ac_pwd
17238ac_abs_builddir=$ac_pwd$ac_dir_suffix
17239# for backward compatibility:
17240ac_top_builddir=$ac_top_build_prefix
17241
17242case $srcdir in
17243  .)  # We are building in place.
17244    ac_srcdir=.
17245    ac_top_srcdir=$ac_top_builddir_sub
17246    ac_abs_top_srcdir=$ac_pwd ;;
17247  [\\/]* | ?:[\\/]* )  # Absolute name.
17248    ac_srcdir=$srcdir$ac_dir_suffix;
17249    ac_top_srcdir=$srcdir
17250    ac_abs_top_srcdir=$srcdir ;;
17251  *) # Relative name.
17252    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17253    ac_top_srcdir=$ac_top_build_prefix$srcdir
17254    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17255esac
17256ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17257
17258
17259  case $ac_mode in
17260  :F)
17261  #
17262  # CONFIG_FILE
17263  #
17264
17265  case $INSTALL in
17266  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17267  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17268  esac
17269  ac_MKDIR_P=$MKDIR_P
17270  case $MKDIR_P in
17271  [\\/$]* | ?:[\\/]* ) ;;
17272  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17273  esac
17274_ACEOF
17275
17276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17277# If the template does not know about datarootdir, expand it.
17278# FIXME: This hack should be removed a few years after 2.60.
17279ac_datarootdir_hack=; ac_datarootdir_seen=
17280ac_sed_dataroot='
17281/datarootdir/ {
17282  p
17283  q
17284}
17285/@datadir@/p
17286/@docdir@/p
17287/@infodir@/p
17288/@localedir@/p
17289/@mandir@/p'
17290case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17291*datarootdir*) ac_datarootdir_seen=yes;;
17292*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17294printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17295_ACEOF
17296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17297  ac_datarootdir_hack='
17298  s&@datadir@&$datadir&g
17299  s&@docdir@&$docdir&g
17300  s&@infodir@&$infodir&g
17301  s&@localedir@&$localedir&g
17302  s&@mandir@&$mandir&g
17303  s&\\\${datarootdir}&$datarootdir&g' ;;
17304esac
17305_ACEOF
17306
17307# Neutralize VPATH when `$srcdir' = `.'.
17308# Shell code in configure.ac might set extrasub.
17309# FIXME: do we really want to maintain this feature?
17310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17311ac_sed_extra="$ac_vpsub
17312$extrasub
17313_ACEOF
17314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17315:t
17316/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17317s|@configure_input@|$ac_sed_conf_input|;t t
17318s&@top_builddir@&$ac_top_builddir_sub&;t t
17319s&@top_build_prefix@&$ac_top_build_prefix&;t t
17320s&@srcdir@&$ac_srcdir&;t t
17321s&@abs_srcdir@&$ac_abs_srcdir&;t t
17322s&@top_srcdir@&$ac_top_srcdir&;t t
17323s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17324s&@builddir@&$ac_builddir&;t t
17325s&@abs_builddir@&$ac_abs_builddir&;t t
17326s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17327s&@INSTALL@&$ac_INSTALL&;t t
17328s&@MKDIR_P@&$ac_MKDIR_P&;t t
17329$ac_datarootdir_hack
17330"
17331eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17332  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17333
17334test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17335  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17336  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17337      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17339which seems to be undefined.  Please make sure it is defined" >&5
17340printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17341which seems to be undefined.  Please make sure it is defined" >&2;}
17342
17343  rm -f "$ac_tmp/stdin"
17344  case $ac_file in
17345  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17346  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17347  esac \
17348  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17349 ;;
17350  :H)
17351  #
17352  # CONFIG_HEADER
17353  #
17354  if test x"$ac_file" != x-; then
17355    {
17356      printf "%s\n" "/* $configure_input  */" >&1 \
17357      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17358    } >"$ac_tmp/config.h" \
17359      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17360    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17361      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17362printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17363    else
17364      rm -f "$ac_file"
17365      mv "$ac_tmp/config.h" "$ac_file" \
17366	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17367    fi
17368  else
17369    printf "%s\n" "/* $configure_input  */" >&1 \
17370      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17371      || as_fn_error $? "could not create -" "$LINENO" 5
17372  fi
17373# Compute "$ac_file"'s index in $config_headers.
17374_am_arg="$ac_file"
17375_am_stamp_count=1
17376for _am_header in $config_headers :; do
17377  case $_am_header in
17378    $_am_arg | $_am_arg:* )
17379      break ;;
17380    * )
17381      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17382  esac
17383done
17384echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17385$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17386	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17387	 X"$_am_arg" : 'X\(//\)$' \| \
17388	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17389printf "%s\n" X"$_am_arg" |
17390    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17391	    s//\1/
17392	    q
17393	  }
17394	  /^X\(\/\/\)[^/].*/{
17395	    s//\1/
17396	    q
17397	  }
17398	  /^X\(\/\/\)$/{
17399	    s//\1/
17400	    q
17401	  }
17402	  /^X\(\/\).*/{
17403	    s//\1/
17404	    q
17405	  }
17406	  s/.*/./; q'`/stamp-h$_am_stamp_count
17407 ;;
17408
17409  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17410printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17411 ;;
17412  esac
17413
17414
17415  case $ac_file$ac_mode in
17416    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17417  # Older Autoconf quotes --file arguments for eval, but not when files
17418  # are listed without --file.  Let's play safe and only enable the eval
17419  # if we detect the quoting.
17420  # TODO: see whether this extra hack can be removed once we start
17421  # requiring Autoconf 2.70 or later.
17422  case $CONFIG_FILES in #(
17423  *\'*) :
17424    eval set x "$CONFIG_FILES" ;; #(
17425  *) :
17426    set x $CONFIG_FILES ;; #(
17427  *) :
17428     ;;
17429esac
17430  shift
17431  # Used to flag and report bootstrapping failures.
17432  am_rc=0
17433  for am_mf
17434  do
17435    # Strip MF so we end up with the name of the file.
17436    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17437    # Check whether this is an Automake generated Makefile which includes
17438    # dependency-tracking related rules and includes.
17439    # Grep'ing the whole file directly is not great: AIX grep has a line
17440    # limit of 2048, but all sed's we know have understand at least 4000.
17441    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17442      || continue
17443    am_dirpart=`$as_dirname -- "$am_mf" ||
17444$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17445	 X"$am_mf" : 'X\(//\)[^/]' \| \
17446	 X"$am_mf" : 'X\(//\)$' \| \
17447	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17448printf "%s\n" X"$am_mf" |
17449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17450	    s//\1/
17451	    q
17452	  }
17453	  /^X\(\/\/\)[^/].*/{
17454	    s//\1/
17455	    q
17456	  }
17457	  /^X\(\/\/\)$/{
17458	    s//\1/
17459	    q
17460	  }
17461	  /^X\(\/\).*/{
17462	    s//\1/
17463	    q
17464	  }
17465	  s/.*/./; q'`
17466    am_filepart=`$as_basename -- "$am_mf" ||
17467$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17468	 X"$am_mf" : 'X\(//\)$' \| \
17469	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17470printf "%s\n" X/"$am_mf" |
17471    sed '/^.*\/\([^/][^/]*\)\/*$/{
17472	    s//\1/
17473	    q
17474	  }
17475	  /^X\/\(\/\/\)$/{
17476	    s//\1/
17477	    q
17478	  }
17479	  /^X\/\(\/\).*/{
17480	    s//\1/
17481	    q
17482	  }
17483	  s/.*/./; q'`
17484    { echo "$as_me:$LINENO: cd "$am_dirpart" \
17485      && sed -e '/# am--include-marker/d' "$am_filepart" \
17486        | $MAKE -f - am--depfiles" >&5
17487   (cd "$am_dirpart" \
17488      && sed -e '/# am--include-marker/d' "$am_filepart" \
17489        | $MAKE -f - am--depfiles) >&5 2>&5
17490   ac_status=$?
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); } || am_rc=$?
17493  done
17494  if test $am_rc -ne 0; then
17495    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17496printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17497as_fn_error $? "Something went wrong bootstrapping makefile fragments
17498    for automatic dependency tracking.  If GNU make was not used, consider
17499    re-running the configure script with MAKE=\"gmake\" (or whatever is
17500    necessary).  You can also try re-running configure with the
17501    '--disable-dependency-tracking' option to at least be able to build
17502    the package (albeit without support for automatic dependency tracking).
17503See \`config.log' for more details" "$LINENO" 5; }
17504  fi
17505  { am_dirpart=; unset am_dirpart;}
17506  { am_filepart=; unset am_filepart;}
17507  { am_mf=; unset am_mf;}
17508  { am_rc=; unset am_rc;}
17509  rm -f conftest-deps.mk
17510}
17511 ;;
17512    "libtool":C)
17513
17514    # See if we are running on zsh, and set the options that allow our
17515    # commands through without removal of \ escapes.
17516    if test -n "${ZSH_VERSION+set}"; then
17517      setopt NO_GLOB_SUBST
17518    fi
17519
17520    cfgfile=${ofile}T
17521    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17522    $RM "$cfgfile"
17523
17524    cat <<_LT_EOF >> "$cfgfile"
17525#! $SHELL
17526# Generated automatically by $as_me ($PACKAGE) $VERSION
17527# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17528# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17529
17530# Provide generalized library-building support services.
17531# Written by Gordon Matzigkeit, 1996
17532
17533# Copyright (C) 2014 Free Software Foundation, Inc.
17534# This is free software; see the source for copying conditions.  There is NO
17535# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17536
17537# GNU Libtool is free software; you can redistribute it and/or modify
17538# it under the terms of the GNU General Public License as published by
17539# the Free Software Foundation; either version 2 of of the License, or
17540# (at your option) any later version.
17541#
17542# As a special exception to the GNU General Public License, if you
17543# distribute this file as part of a program or library that is built
17544# using GNU Libtool, you may include this file under the  same
17545# distribution terms that you use for the rest of that program.
17546#
17547# GNU Libtool is distributed in the hope that it will be useful, but
17548# WITHOUT ANY WARRANTY; without even the implied warranty of
17549# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17550# GNU General Public License for more details.
17551#
17552# You should have received a copy of the GNU General Public License
17553# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17554
17555
17556# The names of the tagged configurations supported by this script.
17557available_tags=''
17558
17559# Configured defaults for sys_lib_dlsearch_path munging.
17560: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17561
17562# ### BEGIN LIBTOOL CONFIG
17563
17564# Which release of libtool.m4 was used?
17565macro_version=$macro_version
17566macro_revision=$macro_revision
17567
17568# Whether or not to build static libraries.
17569build_old_libs=$enable_static
17570
17571# What type of objects to build.
17572pic_mode=$pic_mode
17573
17574# Whether or not to build shared libraries.
17575build_libtool_libs=$enable_shared
17576
17577# Whether or not to optimize for fast installation.
17578fast_install=$enable_fast_install
17579
17580# Shared archive member basename,for filename based shared library versioning on AIX.
17581shared_archive_member_spec=$shared_archive_member_spec
17582
17583# Shell to use when invoking shell scripts.
17584SHELL=$lt_SHELL
17585
17586# An echo program that protects backslashes.
17587ECHO=$lt_ECHO
17588
17589# The PATH separator for the build system.
17590PATH_SEPARATOR=$lt_PATH_SEPARATOR
17591
17592# The host system.
17593host_alias=$host_alias
17594host=$host
17595host_os=$host_os
17596
17597# The build system.
17598build_alias=$build_alias
17599build=$build
17600build_os=$build_os
17601
17602# A sed program that does not truncate output.
17603SED=$lt_SED
17604
17605# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17606Xsed="\$SED -e 1s/^X//"
17607
17608# A grep program that handles long lines.
17609GREP=$lt_GREP
17610
17611# An ERE matcher.
17612EGREP=$lt_EGREP
17613
17614# A literal string matcher.
17615FGREP=$lt_FGREP
17616
17617# A BSD- or MS-compatible name lister.
17618NM=$lt_NM
17619
17620# Whether we need soft or hard links.
17621LN_S=$lt_LN_S
17622
17623# What is the maximum length of a command?
17624max_cmd_len=$max_cmd_len
17625
17626# Object file suffix (normally "o").
17627objext=$ac_objext
17628
17629# Executable file suffix (normally "").
17630exeext=$exeext
17631
17632# whether the shell understands "unset".
17633lt_unset=$lt_unset
17634
17635# turn spaces into newlines.
17636SP2NL=$lt_lt_SP2NL
17637
17638# turn newlines into spaces.
17639NL2SP=$lt_lt_NL2SP
17640
17641# convert \$build file names to \$host format.
17642to_host_file_cmd=$lt_cv_to_host_file_cmd
17643
17644# convert \$build files to toolchain format.
17645to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17646
17647# An object symbol dumper.
17648OBJDUMP=$lt_OBJDUMP
17649
17650# Method to check whether dependent libraries are shared objects.
17651deplibs_check_method=$lt_deplibs_check_method
17652
17653# Command to use when deplibs_check_method = "file_magic".
17654file_magic_cmd=$lt_file_magic_cmd
17655
17656# How to find potential files when deplibs_check_method = "file_magic".
17657file_magic_glob=$lt_file_magic_glob
17658
17659# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17660want_nocaseglob=$lt_want_nocaseglob
17661
17662# DLL creation program.
17663DLLTOOL=$lt_DLLTOOL
17664
17665# Command to associate shared and link libraries.
17666sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17667
17668# The archiver.
17669AR=$lt_AR
17670
17671# Flags to create an archive.
17672AR_FLAGS=$lt_AR_FLAGS
17673
17674# How to feed a file listing to the archiver.
17675archiver_list_spec=$lt_archiver_list_spec
17676
17677# A symbol stripping program.
17678STRIP=$lt_STRIP
17679
17680# Commands used to install an old-style archive.
17681RANLIB=$lt_RANLIB
17682old_postinstall_cmds=$lt_old_postinstall_cmds
17683old_postuninstall_cmds=$lt_old_postuninstall_cmds
17684
17685# Whether to use a lock for old archive extraction.
17686lock_old_archive_extraction=$lock_old_archive_extraction
17687
17688# A C compiler.
17689LTCC=$lt_CC
17690
17691# LTCC compiler flags.
17692LTCFLAGS=$lt_CFLAGS
17693
17694# Take the output of nm and produce a listing of raw symbols and C names.
17695global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17696
17697# Transform the output of nm in a proper C declaration.
17698global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17699
17700# Transform the output of nm into a list of symbols to manually relocate.
17701global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17702
17703# Transform the output of nm in a C name address pair.
17704global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17705
17706# Transform the output of nm in a C name address pair when lib prefix is needed.
17707global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17708
17709# The name lister interface.
17710nm_interface=$lt_lt_cv_nm_interface
17711
17712# Specify filename containing input files for \$NM.
17713nm_file_list_spec=$lt_nm_file_list_spec
17714
17715# The root where to search for dependent libraries,and where our libraries should be installed.
17716lt_sysroot=$lt_sysroot
17717
17718# Command to truncate a binary pipe.
17719lt_truncate_bin=$lt_lt_cv_truncate_bin
17720
17721# The name of the directory that contains temporary libtool files.
17722objdir=$objdir
17723
17724# Used to examine libraries when file_magic_cmd begins with "file".
17725MAGIC_CMD=$MAGIC_CMD
17726
17727# Must we lock files when doing compilation?
17728need_locks=$lt_need_locks
17729
17730# Manifest tool.
17731MANIFEST_TOOL=$lt_MANIFEST_TOOL
17732
17733# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17734DSYMUTIL=$lt_DSYMUTIL
17735
17736# Tool to change global to local symbols on Mac OS X.
17737NMEDIT=$lt_NMEDIT
17738
17739# Tool to manipulate fat objects and archives on Mac OS X.
17740LIPO=$lt_LIPO
17741
17742# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17743OTOOL=$lt_OTOOL
17744
17745# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17746OTOOL64=$lt_OTOOL64
17747
17748# Old archive suffix (normally "a").
17749libext=$libext
17750
17751# Shared library suffix (normally ".so").
17752shrext_cmds=$lt_shrext_cmds
17753
17754# The commands to extract the exported symbol list from a shared archive.
17755extract_expsyms_cmds=$lt_extract_expsyms_cmds
17756
17757# Variables whose values should be saved in libtool wrapper scripts and
17758# restored at link time.
17759variables_saved_for_relink=$lt_variables_saved_for_relink
17760
17761# Do we need the "lib" prefix for modules?
17762need_lib_prefix=$need_lib_prefix
17763
17764# Do we need a version for libraries?
17765need_version=$need_version
17766
17767# Library versioning type.
17768version_type=$version_type
17769
17770# Shared library runtime path variable.
17771runpath_var=$runpath_var
17772
17773# Shared library path variable.
17774shlibpath_var=$shlibpath_var
17775
17776# Is shlibpath searched before the hard-coded library search path?
17777shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17778
17779# Format of library name prefix.
17780libname_spec=$lt_libname_spec
17781
17782# List of archive names.  First name is the real one, the rest are links.
17783# The last name is the one that the linker finds with -lNAME
17784library_names_spec=$lt_library_names_spec
17785
17786# The coded name of the library, if different from the real name.
17787soname_spec=$lt_soname_spec
17788
17789# Permission mode override for installation of shared libraries.
17790install_override_mode=$lt_install_override_mode
17791
17792# Command to use after installation of a shared archive.
17793postinstall_cmds=$lt_postinstall_cmds
17794
17795# Command to use after uninstallation of a shared archive.
17796postuninstall_cmds=$lt_postuninstall_cmds
17797
17798# Commands used to finish a libtool library installation in a directory.
17799finish_cmds=$lt_finish_cmds
17800
17801# As "finish_cmds", except a single script fragment to be evaled but
17802# not shown.
17803finish_eval=$lt_finish_eval
17804
17805# Whether we should hardcode library paths into libraries.
17806hardcode_into_libs=$hardcode_into_libs
17807
17808# Compile-time system search path for libraries.
17809sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17810
17811# Detected run-time system search path for libraries.
17812sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17813
17814# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17815configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17816
17817# Whether dlopen is supported.
17818dlopen_support=$enable_dlopen
17819
17820# Whether dlopen of programs is supported.
17821dlopen_self=$enable_dlopen_self
17822
17823# Whether dlopen of statically linked programs is supported.
17824dlopen_self_static=$enable_dlopen_self_static
17825
17826# Commands to strip libraries.
17827old_striplib=$lt_old_striplib
17828striplib=$lt_striplib
17829
17830
17831# The linker used to build libraries.
17832LD=$lt_LD
17833
17834# How to create reloadable object files.
17835reload_flag=$lt_reload_flag
17836reload_cmds=$lt_reload_cmds
17837
17838# Commands used to build an old-style archive.
17839old_archive_cmds=$lt_old_archive_cmds
17840
17841# A language specific compiler.
17842CC=$lt_compiler
17843
17844# Is the compiler the GNU compiler?
17845with_gcc=$GCC
17846
17847# Compiler flag to turn off builtin functions.
17848no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17849
17850# Additional compiler flags for building library objects.
17851pic_flag=$lt_lt_prog_compiler_pic
17852
17853# How to pass a linker flag through the compiler.
17854wl=$lt_lt_prog_compiler_wl
17855
17856# Compiler flag to prevent dynamic linking.
17857link_static_flag=$lt_lt_prog_compiler_static
17858
17859# Does compiler simultaneously support -c and -o options?
17860compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17861
17862# Whether or not to add -lc for building shared libraries.
17863build_libtool_need_lc=$archive_cmds_need_lc
17864
17865# Whether or not to disallow shared libs when runtime libs are static.
17866allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17867
17868# Compiler flag to allow reflexive dlopens.
17869export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17870
17871# Compiler flag to generate shared objects directly from archives.
17872whole_archive_flag_spec=$lt_whole_archive_flag_spec
17873
17874# Whether the compiler copes with passing no objects directly.
17875compiler_needs_object=$lt_compiler_needs_object
17876
17877# Create an old-style archive from a shared archive.
17878old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17879
17880# Create a temporary old-style archive to link instead of a shared archive.
17881old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17882
17883# Commands used to build a shared archive.
17884archive_cmds=$lt_archive_cmds
17885archive_expsym_cmds=$lt_archive_expsym_cmds
17886
17887# Commands used to build a loadable module if different from building
17888# a shared archive.
17889module_cmds=$lt_module_cmds
17890module_expsym_cmds=$lt_module_expsym_cmds
17891
17892# Whether we are building with GNU ld or not.
17893with_gnu_ld=$lt_with_gnu_ld
17894
17895# Flag that allows shared libraries with undefined symbols to be built.
17896allow_undefined_flag=$lt_allow_undefined_flag
17897
17898# Flag that enforces no undefined symbols.
17899no_undefined_flag=$lt_no_undefined_flag
17900
17901# Flag to hardcode \$libdir into a binary during linking.
17902# This must work even if \$libdir does not exist
17903hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17904
17905# Whether we need a single "-rpath" flag with a separated argument.
17906hardcode_libdir_separator=$lt_hardcode_libdir_separator
17907
17908# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17909# DIR into the resulting binary.
17910hardcode_direct=$hardcode_direct
17911
17912# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17913# DIR into the resulting binary and the resulting library dependency is
17914# "absolute",i.e impossible to change by setting \$shlibpath_var if the
17915# library is relocated.
17916hardcode_direct_absolute=$hardcode_direct_absolute
17917
17918# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17919# into the resulting binary.
17920hardcode_minus_L=$hardcode_minus_L
17921
17922# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17923# into the resulting binary.
17924hardcode_shlibpath_var=$hardcode_shlibpath_var
17925
17926# Set to "yes" if building a shared library automatically hardcodes DIR
17927# into the library and all subsequent libraries and executables linked
17928# against it.
17929hardcode_automatic=$hardcode_automatic
17930
17931# Set to yes if linker adds runtime paths of dependent libraries
17932# to runtime path list.
17933inherit_rpath=$inherit_rpath
17934
17935# Whether libtool must link a program against all its dependency libraries.
17936link_all_deplibs=$link_all_deplibs
17937
17938# Set to "yes" if exported symbols are required.
17939always_export_symbols=$always_export_symbols
17940
17941# The commands to list exported symbols.
17942export_symbols_cmds=$lt_export_symbols_cmds
17943
17944# Symbols that should not be listed in the preloaded symbols.
17945exclude_expsyms=$lt_exclude_expsyms
17946
17947# Symbols that must always be exported.
17948include_expsyms=$lt_include_expsyms
17949
17950# Commands necessary for linking programs (against libraries) with templates.
17951prelink_cmds=$lt_prelink_cmds
17952
17953# Commands necessary for finishing linking programs.
17954postlink_cmds=$lt_postlink_cmds
17955
17956# Specify filename containing input files.
17957file_list_spec=$lt_file_list_spec
17958
17959# How to hardcode a shared library path into an executable.
17960hardcode_action=$hardcode_action
17961
17962# ### END LIBTOOL CONFIG
17963
17964_LT_EOF
17965
17966    cat <<'_LT_EOF' >> "$cfgfile"
17967
17968# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17969
17970# func_munge_path_list VARIABLE PATH
17971# -----------------------------------
17972# VARIABLE is name of variable containing _space_ separated list of
17973# directories to be munged by the contents of PATH, which is string
17974# having a format:
17975# "DIR[:DIR]:"
17976#       string "DIR[ DIR]" will be prepended to VARIABLE
17977# ":DIR[:DIR]"
17978#       string "DIR[ DIR]" will be appended to VARIABLE
17979# "DIRP[:DIRP]::[DIRA:]DIRA"
17980#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17981#       "DIRA[ DIRA]" will be appended to VARIABLE
17982# "DIR[:DIR]"
17983#       VARIABLE will be replaced by "DIR[ DIR]"
17984func_munge_path_list ()
17985{
17986    case x$2 in
17987    x)
17988        ;;
17989    *:)
17990        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17991        ;;
17992    x:*)
17993        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17994        ;;
17995    *::*)
17996        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17997        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17998        ;;
17999    *)
18000        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18001        ;;
18002    esac
18003}
18004
18005
18006# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18007func_cc_basename ()
18008{
18009    for cc_temp in $*""; do
18010      case $cc_temp in
18011        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18012        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18013        \-*) ;;
18014        *) break;;
18015      esac
18016    done
18017    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18018}
18019
18020
18021# ### END FUNCTIONS SHARED WITH CONFIGURE
18022
18023_LT_EOF
18024
18025  case $host_os in
18026  aix3*)
18027    cat <<\_LT_EOF >> "$cfgfile"
18028# AIX sometimes has problems with the GCC collect2 program.  For some
18029# reason, if we set the COLLECT_NAMES environment variable, the problems
18030# vanish in a puff of smoke.
18031if test set != "${COLLECT_NAMES+set}"; then
18032  COLLECT_NAMES=
18033  export COLLECT_NAMES
18034fi
18035_LT_EOF
18036    ;;
18037  esac
18038
18039
18040
18041ltmain=$ac_aux_dir/ltmain.sh
18042
18043
18044  # We use sed instead of cat because bash on DJGPP gets confused if
18045  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18046  # text mode, it properly converts lines to CR/LF.  This bash problem
18047  # is reportedly fixed, but why not run on old versions too?
18048  sed '$q' "$ltmain" >> "$cfgfile" \
18049     || (rm -f "$cfgfile"; exit 1)
18050
18051   mv -f "$cfgfile" "$ofile" ||
18052    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18053  chmod +x "$ofile"
18054
18055 ;;
18056
18057  esac
18058done # for ac_tag
18059
18060
18061as_fn_exit 0
18062_ACEOF
18063ac_clean_files=$ac_clean_files_save
18064
18065test $ac_write_fail = 0 ||
18066  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18067
18068
18069# configure is writing to config.log, and then calls config.status.
18070# config.status does its own redirection, appending to config.log.
18071# Unfortunately, on DOS this fails, as config.log is still kept open
18072# by configure, so config.status won't be able to write to it; its
18073# output is simply discarded.  So we exec the FD to /dev/null,
18074# effectively closing config.log, so it can be properly (re)opened and
18075# appended to by config.status.  When coming back to configure, we
18076# need to make the FD available again.
18077if test "$no_create" != yes; then
18078  ac_cs_success=:
18079  ac_config_status_args=
18080  test "$silent" = yes &&
18081    ac_config_status_args="$ac_config_status_args --quiet"
18082  exec 5>/dev/null
18083  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18084  exec 5>>config.log
18085  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18086  # would make configure fail if this is the last instruction.
18087  $ac_cs_success || as_fn_exit 1
18088fi
18089if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18091printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18092fi
18093
18094
18095