xref: /freebsd/contrib/file/configure (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for file 5.43.
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.43'
625PACKAGE_STRING='file 5.43'
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
724AM_BACKSLASH
725AM_DEFAULT_VERBOSITY
726AM_DEFAULT_V
727AM_V
728CSCOPE
729ETAGS
730CTAGS
731am__untar
732am__tar
733AMTAR
734am__leading_dot
735SET_MAKE
736AWK
737mkdir_p
738MKDIR_P
739INSTALL_STRIP_PROGRAM
740STRIP
741install_sh
742MAKEINFO
743AUTOHEADER
744AUTOMAKE
745AUTOCONF
746ACLOCAL
747VERSION
748PACKAGE
749CYGPATH_W
750am__isrc
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773runstatedir
774localstatedir
775sharedstatedir
776sysconfdir
777datadir
778datarootdir
779libexecdir
780sbindir
781bindir
782program_transform_name
783prefix
784exec_prefix
785PACKAGE_URL
786PACKAGE_BUGREPORT
787PACKAGE_STRING
788PACKAGE_VERSION
789PACKAGE_TARNAME
790PACKAGE_NAME
791PATH_SEPARATOR
792SHELL
793am__quote'
794ac_subst_files=''
795ac_user_opts='
796enable_option_checking
797enable_silent_rules
798enable_elf
799enable_elf_core
800enable_zlib
801enable_bzlib
802enable_xzlib
803enable_libseccomp
804enable_fsect_man5
805enable_dependency_tracking
806enable_static
807with_pic
808enable_shared
809enable_fast_install
810with_aix_soname
811with_gnu_ld
812with_sysroot
813enable_libtool_lock
814enable_largefile
815enable_warnings
816'
817      ac_precious_vars='build_alias
818host_alias
819target_alias
820CC
821CFLAGS
822LDFLAGS
823LIBS
824CPPFLAGS
825LT_SYS_LIBRARY_PATH'
826
827
828# Initialize some variables set by options.
829ac_init_help=
830ac_init_version=false
831ac_unrecognized_opts=
832ac_unrecognized_sep=
833# The variables have the same names as the options, with
834# dashes changed to underlines.
835cache_file=/dev/null
836exec_prefix=NONE
837no_create=
838no_recursion=
839prefix=NONE
840program_prefix=NONE
841program_suffix=NONE
842program_transform_name=s,x,x,
843silent=
844site=
845srcdir=
846verbose=
847x_includes=NONE
848x_libraries=NONE
849
850# Installation directory options.
851# These are left unexpanded so users can "make install exec_prefix=/foo"
852# and all the variables that are supposed to be based on exec_prefix
853# by default will actually change.
854# Use braces instead of parens because sh, perl, etc. also accept them.
855# (The list follows the same order as the GNU Coding Standards.)
856bindir='${exec_prefix}/bin'
857sbindir='${exec_prefix}/sbin'
858libexecdir='${exec_prefix}/libexec'
859datarootdir='${prefix}/share'
860datadir='${datarootdir}'
861sysconfdir='${prefix}/etc'
862sharedstatedir='${prefix}/com'
863localstatedir='${prefix}/var'
864runstatedir='${localstatedir}/run'
865includedir='${prefix}/include'
866oldincludedir='/usr/include'
867docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
876
877ac_prev=
878ac_dashdash=
879for ac_option
880do
881  # If the previous option needs an argument, assign it.
882  if test -n "$ac_prev"; then
883    eval $ac_prev=\$ac_option
884    ac_prev=
885    continue
886  fi
887
888  case $ac_option in
889  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890  *=)   ac_optarg= ;;
891  *)    ac_optarg=yes ;;
892  esac
893
894  case $ac_dashdash$ac_option in
895  --)
896    ac_dashdash=yes ;;
897
898  -bindir | --bindir | --bindi | --bind | --bin | --bi)
899    ac_prev=bindir ;;
900  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901    bindir=$ac_optarg ;;
902
903  -build | --build | --buil | --bui | --bu)
904    ac_prev=build_alias ;;
905  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906    build_alias=$ac_optarg ;;
907
908  -cache-file | --cache-file | --cache-fil | --cache-fi \
909  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910    ac_prev=cache_file ;;
911  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913    cache_file=$ac_optarg ;;
914
915  --config-cache | -C)
916    cache_file=config.cache ;;
917
918  -datadir | --datadir | --datadi | --datad)
919    ac_prev=datadir ;;
920  -datadir=* | --datadir=* | --datadi=* | --datad=*)
921    datadir=$ac_optarg ;;
922
923  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924  | --dataroo | --dataro | --datar)
925    ac_prev=datarootdir ;;
926  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928    datarootdir=$ac_optarg ;;
929
930  -disable-* | --disable-*)
931    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932    # Reject names that are not valid shell variable names.
933    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934      as_fn_error $? "invalid feature name: \`$ac_useropt'"
935    ac_useropt_orig=$ac_useropt
936    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
937    case $ac_user_opts in
938      *"
939"enable_$ac_useropt"
940"*) ;;
941      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942	 ac_unrecognized_sep=', ';;
943    esac
944    eval enable_$ac_useropt=no ;;
945
946  -docdir | --docdir | --docdi | --doc | --do)
947    ac_prev=docdir ;;
948  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949    docdir=$ac_optarg ;;
950
951  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952    ac_prev=dvidir ;;
953  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954    dvidir=$ac_optarg ;;
955
956  -enable-* | --enable-*)
957    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958    # Reject names that are not valid shell variable names.
959    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960      as_fn_error $? "invalid feature name: \`$ac_useropt'"
961    ac_useropt_orig=$ac_useropt
962    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
963    case $ac_user_opts in
964      *"
965"enable_$ac_useropt"
966"*) ;;
967      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968	 ac_unrecognized_sep=', ';;
969    esac
970    eval enable_$ac_useropt=\$ac_optarg ;;
971
972  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974  | --exec | --exe | --ex)
975    ac_prev=exec_prefix ;;
976  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978  | --exec=* | --exe=* | --ex=*)
979    exec_prefix=$ac_optarg ;;
980
981  -gas | --gas | --ga | --g)
982    # Obsolete; use --with-gas.
983    with_gas=yes ;;
984
985  -help | --help | --hel | --he | -h)
986    ac_init_help=long ;;
987  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988    ac_init_help=recursive ;;
989  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990    ac_init_help=short ;;
991
992  -host | --host | --hos | --ho)
993    ac_prev=host_alias ;;
994  -host=* | --host=* | --hos=* | --ho=*)
995    host_alias=$ac_optarg ;;
996
997  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998    ac_prev=htmldir ;;
999  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000  | --ht=*)
1001    htmldir=$ac_optarg ;;
1002
1003  -includedir | --includedir | --includedi | --included | --include \
1004  | --includ | --inclu | --incl | --inc)
1005    ac_prev=includedir ;;
1006  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007  | --includ=* | --inclu=* | --incl=* | --inc=*)
1008    includedir=$ac_optarg ;;
1009
1010  -infodir | --infodir | --infodi | --infod | --info | --inf)
1011    ac_prev=infodir ;;
1012  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013    infodir=$ac_optarg ;;
1014
1015  -libdir | --libdir | --libdi | --libd)
1016    ac_prev=libdir ;;
1017  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018    libdir=$ac_optarg ;;
1019
1020  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021  | --libexe | --libex | --libe)
1022    ac_prev=libexecdir ;;
1023  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024  | --libexe=* | --libex=* | --libe=*)
1025    libexecdir=$ac_optarg ;;
1026
1027  -localedir | --localedir | --localedi | --localed | --locale)
1028    ac_prev=localedir ;;
1029  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030    localedir=$ac_optarg ;;
1031
1032  -localstatedir | --localstatedir | --localstatedi | --localstated \
1033  | --localstate | --localstat | --localsta | --localst | --locals)
1034    ac_prev=localstatedir ;;
1035  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037    localstatedir=$ac_optarg ;;
1038
1039  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040    ac_prev=mandir ;;
1041  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042    mandir=$ac_optarg ;;
1043
1044  -nfp | --nfp | --nf)
1045    # Obsolete; use --without-fp.
1046    with_fp=no ;;
1047
1048  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049  | --no-cr | --no-c | -n)
1050    no_create=yes ;;
1051
1052  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054    no_recursion=yes ;;
1055
1056  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058  | --oldin | --oldi | --old | --ol | --o)
1059    ac_prev=oldincludedir ;;
1060  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063    oldincludedir=$ac_optarg ;;
1064
1065  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066    ac_prev=prefix ;;
1067  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068    prefix=$ac_optarg ;;
1069
1070  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071  | --program-pre | --program-pr | --program-p)
1072    ac_prev=program_prefix ;;
1073  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075    program_prefix=$ac_optarg ;;
1076
1077  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078  | --program-suf | --program-su | --program-s)
1079    ac_prev=program_suffix ;;
1080  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082    program_suffix=$ac_optarg ;;
1083
1084  -program-transform-name | --program-transform-name \
1085  | --program-transform-nam | --program-transform-na \
1086  | --program-transform-n | --program-transform- \
1087  | --program-transform | --program-transfor \
1088  | --program-transfo | --program-transf \
1089  | --program-trans | --program-tran \
1090  | --progr-tra | --program-tr | --program-t)
1091    ac_prev=program_transform_name ;;
1092  -program-transform-name=* | --program-transform-name=* \
1093  | --program-transform-nam=* | --program-transform-na=* \
1094  | --program-transform-n=* | --program-transform-=* \
1095  | --program-transform=* | --program-transfor=* \
1096  | --program-transfo=* | --program-transf=* \
1097  | --program-trans=* | --program-tran=* \
1098  | --progr-tra=* | --program-tr=* | --program-t=*)
1099    program_transform_name=$ac_optarg ;;
1100
1101  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102    ac_prev=pdfdir ;;
1103  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104    pdfdir=$ac_optarg ;;
1105
1106  -psdir | --psdir | --psdi | --psd | --ps)
1107    ac_prev=psdir ;;
1108  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109    psdir=$ac_optarg ;;
1110
1111  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112  | -silent | --silent | --silen | --sile | --sil)
1113    silent=yes ;;
1114
1115  -runstatedir | --runstatedir | --runstatedi | --runstated \
1116  | --runstate | --runstat | --runsta | --runst | --runs \
1117  | --run | --ru | --r)
1118    ac_prev=runstatedir ;;
1119  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1120  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1121  | --run=* | --ru=* | --r=*)
1122    runstatedir=$ac_optarg ;;
1123
1124  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125    ac_prev=sbindir ;;
1126  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127  | --sbi=* | --sb=*)
1128    sbindir=$ac_optarg ;;
1129
1130  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132  | --sharedst | --shareds | --shared | --share | --shar \
1133  | --sha | --sh)
1134    ac_prev=sharedstatedir ;;
1135  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138  | --sha=* | --sh=*)
1139    sharedstatedir=$ac_optarg ;;
1140
1141  -site | --site | --sit)
1142    ac_prev=site ;;
1143  -site=* | --site=* | --sit=*)
1144    site=$ac_optarg ;;
1145
1146  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147    ac_prev=srcdir ;;
1148  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149    srcdir=$ac_optarg ;;
1150
1151  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152  | --syscon | --sysco | --sysc | --sys | --sy)
1153    ac_prev=sysconfdir ;;
1154  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156    sysconfdir=$ac_optarg ;;
1157
1158  -target | --target | --targe | --targ | --tar | --ta | --t)
1159    ac_prev=target_alias ;;
1160  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161    target_alias=$ac_optarg ;;
1162
1163  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164    verbose=yes ;;
1165
1166  -version | --version | --versio | --versi | --vers | -V)
1167    ac_init_version=: ;;
1168
1169  -with-* | --with-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      as_fn_error $? "invalid package name: \`$ac_useropt'"
1174    ac_useropt_orig=$ac_useropt
1175    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1176    case $ac_user_opts in
1177      *"
1178"with_$ac_useropt"
1179"*) ;;
1180      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181	 ac_unrecognized_sep=', ';;
1182    esac
1183    eval with_$ac_useropt=\$ac_optarg ;;
1184
1185  -without-* | --without-*)
1186    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187    # Reject names that are not valid shell variable names.
1188    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189      as_fn_error $? "invalid package name: \`$ac_useropt'"
1190    ac_useropt_orig=$ac_useropt
1191    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192    case $ac_user_opts in
1193      *"
1194"with_$ac_useropt"
1195"*) ;;
1196      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197	 ac_unrecognized_sep=', ';;
1198    esac
1199    eval with_$ac_useropt=no ;;
1200
1201  --x)
1202    # Obsolete; use --with-x.
1203    with_x=yes ;;
1204
1205  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206  | --x-incl | --x-inc | --x-in | --x-i)
1207    ac_prev=x_includes ;;
1208  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210    x_includes=$ac_optarg ;;
1211
1212  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214    ac_prev=x_libraries ;;
1215  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217    x_libraries=$ac_optarg ;;
1218
1219  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220Try \`$0 --help' for more information"
1221    ;;
1222
1223  *=*)
1224    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225    # Reject names that are not valid shell variable names.
1226    case $ac_envvar in #(
1227      '' | [0-9]* | *[!_$as_cr_alnum]* )
1228      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229    esac
1230    eval $ac_envvar=\$ac_optarg
1231    export $ac_envvar ;;
1232
1233  *)
1234    # FIXME: should be removed in autoconf 3.0.
1235    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1236    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1238    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239    ;;
1240
1241  esac
1242done
1243
1244if test -n "$ac_prev"; then
1245  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246  as_fn_error $? "missing argument to $ac_option"
1247fi
1248
1249if test -n "$ac_unrecognized_opts"; then
1250  case $enable_option_checking in
1251    no) ;;
1252    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254  esac
1255fi
1256
1257# Check all directory arguments for consistency.
1258for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259		datadir sysconfdir sharedstatedir localstatedir includedir \
1260		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261		libdir localedir mandir runstatedir
1262do
1263  eval ac_val=\$$ac_var
1264  # Remove trailing slashes.
1265  case $ac_val in
1266    */ )
1267      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268      eval $ac_var=\$ac_val;;
1269  esac
1270  # Be sure to have absolute directory names.
1271  case $ac_val in
1272    [\\/$]* | ?:[\\/]* )  continue;;
1273    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274  esac
1275  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276done
1277
1278# There might be people who depend on the old broken behavior: `$host'
1279# used to hold the argument of --host etc.
1280# FIXME: To remove some day.
1281build=$build_alias
1282host=$host_alias
1283target=$target_alias
1284
1285# FIXME: To remove some day.
1286if test "x$host_alias" != x; then
1287  if test "x$build_alias" = x; then
1288    cross_compiling=maybe
1289  elif test "x$build_alias" != "x$host_alias"; then
1290    cross_compiling=yes
1291  fi
1292fi
1293
1294ac_tool_prefix=
1295test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297test "$silent" = yes && exec 6>/dev/null
1298
1299
1300ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301ac_ls_di=`ls -di .` &&
1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303  as_fn_error $? "working directory cannot be determined"
1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305  as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308# Find the source files, if location was not specified.
1309if test -z "$srcdir"; then
1310  ac_srcdir_defaulted=yes
1311  # Try the directory containing this script, then the parent directory.
1312  ac_confdir=`$as_dirname -- "$as_myself" ||
1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314	 X"$as_myself" : 'X\(//\)[^/]' \| \
1315	 X"$as_myself" : 'X\(//\)$' \| \
1316	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317printf "%s\n" X"$as_myself" |
1318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\/\)[^/].*/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\/\)$/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\).*/{
1331	    s//\1/
1332	    q
1333	  }
1334	  s/.*/./; q'`
1335  srcdir=$ac_confdir
1336  if test ! -r "$srcdir/$ac_unique_file"; then
1337    srcdir=..
1338  fi
1339else
1340  ac_srcdir_defaulted=no
1341fi
1342if test ! -r "$srcdir/$ac_unique_file"; then
1343  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345fi
1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347ac_abs_confdir=`(
1348	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349	pwd)`
1350# When building in place, set srcdir=.
1351if test "$ac_abs_confdir" = "$ac_pwd"; then
1352  srcdir=.
1353fi
1354# Remove unnecessary trailing slashes from srcdir.
1355# Double slashes in file names in object file debugging info
1356# mess up M-x gdb in Emacs.
1357case $srcdir in
1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359esac
1360for ac_var in $ac_precious_vars; do
1361  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362  eval ac_env_${ac_var}_value=\$${ac_var}
1363  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365done
1366
1367#
1368# Report the --help message.
1369#
1370if test "$ac_init_help" = "long"; then
1371  # Omit some internal or obsolete options to make the list less imposing.
1372  # This message is too long to be a string in the A/UX 3.1 sh.
1373  cat <<_ACEOF
1374\`configure' configures file 5.43 to adapt to many kinds of systems.
1375
1376Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379VAR=VALUE.  See below for descriptions of some of the useful variables.
1380
1381Defaults for the options are specified in brackets.
1382
1383Configuration:
1384  -h, --help              display this help and exit
1385      --help=short        display options specific to this package
1386      --help=recursive    display the short help of all the included packages
1387  -V, --version           display version information and exit
1388  -q, --quiet, --silent   do not print \`checking ...' messages
1389      --cache-file=FILE   cache test results in FILE [disabled]
1390  -C, --config-cache      alias for \`--cache-file=config.cache'
1391  -n, --no-create         do not create output files
1392      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1393
1394Installation directories:
1395  --prefix=PREFIX         install architecture-independent files in PREFIX
1396                          [$ac_default_prefix]
1397  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1398                          [PREFIX]
1399
1400By default, \`make install' will install all the files in
1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1402an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403for instance \`--prefix=\$HOME'.
1404
1405For better control, use the options below.
1406
1407Fine tuning of the installation directories:
1408  --bindir=DIR            user executables [EPREFIX/bin]
1409  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1410  --libexecdir=DIR        program executables [EPREFIX/libexec]
1411  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1412  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1413  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1414  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1415  --libdir=DIR            object code libraries [EPREFIX/lib]
1416  --includedir=DIR        C header files [PREFIX/include]
1417  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1418  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1419  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1420  --infodir=DIR           info documentation [DATAROOTDIR/info]
1421  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1422  --mandir=DIR            man documentation [DATAROOTDIR/man]
1423  --docdir=DIR            documentation root [DATAROOTDIR/doc/file]
1424  --htmldir=DIR           html documentation [DOCDIR]
1425  --dvidir=DIR            dvi documentation [DOCDIR]
1426  --pdfdir=DIR            pdf documentation [DOCDIR]
1427  --psdir=DIR             ps documentation [DOCDIR]
1428_ACEOF
1429
1430  cat <<\_ACEOF
1431
1432Program names:
1433  --program-prefix=PREFIX            prepend PREFIX to installed program names
1434  --program-suffix=SUFFIX            append SUFFIX to installed program names
1435  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1436
1437System types:
1438  --build=BUILD     configure for building on BUILD [guessed]
1439  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1440_ACEOF
1441fi
1442
1443if test -n "$ac_init_help"; then
1444  case $ac_init_help in
1445     short | recursive ) echo "Configuration of file 5.43:";;
1446   esac
1447  cat <<\_ACEOF
1448
1449Optional Features:
1450  --disable-option-checking  ignore unrecognized --enable/--with options
1451  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453  --enable-silent-rules   less verbose build output (undo: "make V=1")
1454  --disable-silent-rules  verbose build output (undo: "make V=0")
1455  --disable-elf            disable builtin ELF support
1456  --disable-elf-core       disable ELF core file support
1457  --disable-zlib          disable zlib compression support [default=auto]
1458  --disable-bzlib         disable bz2lib compression support [default=auto]
1459  --disable-xzlib         disable liblzma/xz compression support
1460                          [default=auto]
1461  --disable-libseccomp    disable libseccomp sandboxing [default=auto]
1462  --enable-fsect-man5      enable file formats in man section 5
1463  --enable-dependency-tracking
1464                          do not reject slow dependency extractors
1465  --disable-dependency-tracking
1466                          speeds up one-time build
1467  --enable-static[=PKGS]  build static libraries [default=no]
1468  --enable-shared[=PKGS]  build shared libraries [default=yes]
1469  --enable-fast-install[=PKGS]
1470                          optimize for fast installation [default=yes]
1471  --disable-libtool-lock  avoid locking (might break parallel builds)
1472  --disable-largefile     omit support for large files
1473  --disable-warnings	disable compiler warnings
1474
1475Optional Packages:
1476  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1477  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1478  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1479                          both]
1480  --with-aix-soname=aix|svr4|both
1481                          shared library versioning (aka "SONAME") variant to
1482                          provide on AIX, [default=aix].
1483  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1484  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1485                          compiler's sysroot if not specified).
1486
1487Some influential environment variables:
1488  CC          C compiler command
1489  CFLAGS      C compiler flags
1490  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1491              nonstandard directory <lib dir>
1492  LIBS        libraries to pass to the linker, e.g. -l<library>
1493  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494              you have headers in a nonstandard directory <include dir>
1495  LT_SYS_LIBRARY_PATH
1496              User-defined run-time library search path.
1497
1498Use these variables to override the choices made by `configure' or to help
1499it to find libraries and programs with nonstandard names/locations.
1500
1501Report bugs to <christos@astron.com>.
1502_ACEOF
1503ac_status=$?
1504fi
1505
1506if test "$ac_init_help" = "recursive"; then
1507  # If there are subdirs, report their specific --help.
1508  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509    test -d "$ac_dir" ||
1510      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511      continue
1512    ac_builddir=.
1513
1514case "$ac_dir" in
1515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516*)
1517  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1518  # A ".." for each directory in $ac_dir_suffix.
1519  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520  case $ac_top_builddir_sub in
1521  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523  esac ;;
1524esac
1525ac_abs_top_builddir=$ac_pwd
1526ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527# for backward compatibility:
1528ac_top_builddir=$ac_top_build_prefix
1529
1530case $srcdir in
1531  .)  # We are building in place.
1532    ac_srcdir=.
1533    ac_top_srcdir=$ac_top_builddir_sub
1534    ac_abs_top_srcdir=$ac_pwd ;;
1535  [\\/]* | ?:[\\/]* )  # Absolute name.
1536    ac_srcdir=$srcdir$ac_dir_suffix;
1537    ac_top_srcdir=$srcdir
1538    ac_abs_top_srcdir=$srcdir ;;
1539  *) # Relative name.
1540    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541    ac_top_srcdir=$ac_top_build_prefix$srcdir
1542    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543esac
1544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546    cd "$ac_dir" || { ac_status=$?; continue; }
1547    # Check for configure.gnu first; this name is used for a wrapper for
1548    # Metaconfig's "Configure" on case-insensitive file systems.
1549    if test -f "$ac_srcdir/configure.gnu"; then
1550      echo &&
1551      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552    elif test -f "$ac_srcdir/configure"; then
1553      echo &&
1554      $SHELL "$ac_srcdir/configure" --help=recursive
1555    else
1556      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557    fi || ac_status=$?
1558    cd "$ac_pwd" || { ac_status=$?; break; }
1559  done
1560fi
1561
1562test -n "$ac_init_help" && exit $ac_status
1563if $ac_init_version; then
1564  cat <<\_ACEOF
1565file configure 5.43
1566generated by GNU Autoconf 2.71
1567
1568Copyright (C) 2021 Free Software Foundation, Inc.
1569This configure script is free software; the Free Software Foundation
1570gives unlimited permission to copy, distribute and modify it.
1571_ACEOF
1572  exit
1573fi
1574
1575## ------------------------ ##
1576## Autoconf initialization. ##
1577## ------------------------ ##
1578
1579# ac_fn_c_try_compile LINENO
1580# --------------------------
1581# Try to compile conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_compile ()
1583{
1584  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585  rm -f conftest.$ac_objext conftest.beam
1586  if { { ac_try="$ac_compile"
1587case "(($ac_try" in
1588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589  *) ac_try_echo=$ac_try;;
1590esac
1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592printf "%s\n" "$ac_try_echo"; } >&5
1593  (eval "$ac_compile") 2>conftest.err
1594  ac_status=$?
1595  if test -s conftest.err; then
1596    grep -v '^ *+' conftest.err >conftest.er1
1597    cat conftest.er1 >&5
1598    mv -f conftest.er1 conftest.err
1599  fi
1600  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601  test $ac_status = 0; } && {
1602	 test -z "$ac_c_werror_flag" ||
1603	 test ! -s conftest.err
1604       } && test -s conftest.$ac_objext
1605then :
1606  ac_retval=0
1607else $as_nop
1608  printf "%s\n" "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
1610
1611	ac_retval=1
1612fi
1613  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614  as_fn_set_status $ac_retval
1615
1616} # ac_fn_c_try_compile
1617
1618# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619# -------------------------------------------------------
1620# Tests whether HEADER exists and can be compiled using the include files in
1621# INCLUDES, setting the cache variable VAR accordingly.
1622ac_fn_c_check_header_compile ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626printf %s "checking for $2... " >&6; }
1627if eval test \${$3+y}
1628then :
1629  printf %s "(cached) " >&6
1630else $as_nop
1631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632/* end confdefs.h.  */
1633$4
1634#include <$2>
1635_ACEOF
1636if ac_fn_c_try_compile "$LINENO"
1637then :
1638  eval "$3=yes"
1639else $as_nop
1640  eval "$3=no"
1641fi
1642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1643fi
1644eval ac_res=\$$3
1645	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646printf "%s\n" "$ac_res" >&6; }
1647  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648
1649} # ac_fn_c_check_header_compile
1650
1651# ac_fn_c_try_run LINENO
1652# ----------------------
1653# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1654# executables *can* be run.
1655ac_fn_c_try_run ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  if { { ac_try="$ac_link"
1659case "(($ac_try" in
1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661  *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664printf "%s\n" "$ac_try_echo"; } >&5
1665  (eval "$ac_link") 2>&5
1666  ac_status=$?
1667  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669  { { case "(($ac_try" in
1670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671  *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674printf "%s\n" "$ac_try_echo"; } >&5
1675  (eval "$ac_try") 2>&5
1676  ac_status=$?
1677  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678  test $ac_status = 0; }; }
1679then :
1680  ac_retval=0
1681else $as_nop
1682  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1683       printf "%s\n" "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686       ac_retval=$ac_status
1687fi
1688  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_run
1693
1694# ac_fn_c_try_link LINENO
1695# -----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_link ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1701  if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707printf "%s\n" "$ac_try_echo"; } >&5
1708  (eval "$ac_link") 2>conftest.err
1709  ac_status=$?
1710  if test -s conftest.err; then
1711    grep -v '^ *+' conftest.err >conftest.er1
1712    cat conftest.er1 >&5
1713    mv -f conftest.er1 conftest.err
1714  fi
1715  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; } && {
1717	 test -z "$ac_c_werror_flag" ||
1718	 test ! -s conftest.err
1719       } && test -s conftest$ac_exeext && {
1720	 test "$cross_compiling" = yes ||
1721	 test -x conftest$ac_exeext
1722       }
1723then :
1724  ac_retval=0
1725else $as_nop
1726  printf "%s\n" "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729	ac_retval=1
1730fi
1731  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733  # interfere with the next link command; also delete a directory that is
1734  # left behind by Apple's compiler.  We do this before executing the actions.
1735  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737  as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_link
1740
1741# ac_fn_c_check_func LINENO FUNC VAR
1742# ----------------------------------
1743# Tests whether FUNC exists, setting the cache variable VAR accordingly
1744ac_fn_c_check_func ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748printf %s "checking for $2... " >&6; }
1749if eval test \${$3+y}
1750then :
1751  printf %s "(cached) " >&6
1752else $as_nop
1753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1757#define $2 innocuous_$2
1758
1759/* System header to define __stub macros and hopefully few prototypes,
1760   which can conflict with char $2 (); below.  */
1761
1762#include <limits.h>
1763#undef $2
1764
1765/* Override any GCC internal prototype to avoid an error.
1766   Use char because int might match the return type of a GCC
1767   builtin and then its argument prototype would still apply.  */
1768#ifdef __cplusplus
1769extern "C"
1770#endif
1771char $2 ();
1772/* The GNU C library defines this for functions which it implements
1773    to always fail with ENOSYS.  Some functions are actually named
1774    something starting with __ and the normal name is an alias.  */
1775#if defined __stub_$2 || defined __stub___$2
1776choke me
1777#endif
1778
1779int
1780main (void)
1781{
1782return $2 ();
1783  ;
1784  return 0;
1785}
1786_ACEOF
1787if ac_fn_c_try_link "$LINENO"
1788then :
1789  eval "$3=yes"
1790else $as_nop
1791  eval "$3=no"
1792fi
1793rm -f core conftest.err conftest.$ac_objext conftest.beam \
1794    conftest$ac_exeext conftest.$ac_ext
1795fi
1796eval ac_res=\$$3
1797	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798printf "%s\n" "$ac_res" >&6; }
1799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801} # ac_fn_c_check_func
1802
1803# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1804# -------------------------------------------
1805# Tests whether TYPE exists after having included INCLUDES, setting cache
1806# variable VAR accordingly.
1807ac_fn_c_check_type ()
1808{
1809  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811printf %s "checking for $2... " >&6; }
1812if eval test \${$3+y}
1813then :
1814  printf %s "(cached) " >&6
1815else $as_nop
1816  eval "$3=no"
1817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h.  */
1819$4
1820int
1821main (void)
1822{
1823if (sizeof ($2))
1824	 return 0;
1825  ;
1826  return 0;
1827}
1828_ACEOF
1829if ac_fn_c_try_compile "$LINENO"
1830then :
1831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h.  */
1833$4
1834int
1835main (void)
1836{
1837if (sizeof (($2)))
1838	    return 0;
1839  ;
1840  return 0;
1841}
1842_ACEOF
1843if ac_fn_c_try_compile "$LINENO"
1844then :
1845
1846else $as_nop
1847  eval "$3=yes"
1848fi
1849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1850fi
1851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1852fi
1853eval ac_res=\$$3
1854	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855printf "%s\n" "$ac_res" >&6; }
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858} # ac_fn_c_check_type
1859
1860# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1861# ----------------------------------------------------
1862# Tries to find if the field MEMBER exists in type AGGR, after including
1863# INCLUDES, setting cache variable VAR accordingly.
1864ac_fn_c_check_member ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1868printf %s "checking for $2.$3... " >&6; }
1869if eval test \${$4+y}
1870then :
1871  printf %s "(cached) " >&6
1872else $as_nop
1873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874/* end confdefs.h.  */
1875$5
1876int
1877main (void)
1878{
1879static $2 ac_aggr;
1880if (ac_aggr.$3)
1881return 0;
1882  ;
1883  return 0;
1884}
1885_ACEOF
1886if ac_fn_c_try_compile "$LINENO"
1887then :
1888  eval "$4=yes"
1889else $as_nop
1890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h.  */
1892$5
1893int
1894main (void)
1895{
1896static $2 ac_aggr;
1897if (sizeof ac_aggr.$3)
1898return 0;
1899  ;
1900  return 0;
1901}
1902_ACEOF
1903if ac_fn_c_try_compile "$LINENO"
1904then :
1905  eval "$4=yes"
1906else $as_nop
1907  eval "$4=no"
1908fi
1909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1910fi
1911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1912fi
1913eval ac_res=\$$4
1914	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915printf "%s\n" "$ac_res" >&6; }
1916  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918} # ac_fn_c_check_member
1919
1920# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1921# ------------------------------------------------------------------
1922# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1923# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1924ac_fn_check_decl ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  as_decl_name=`echo $2|sed 's/ *(.*//'`
1928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1929printf %s "checking whether $as_decl_name is declared... " >&6; }
1930if eval test \${$3+y}
1931then :
1932  printf %s "(cached) " >&6
1933else $as_nop
1934  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1935  eval ac_save_FLAGS=\$$6
1936  as_fn_append $6 " $5"
1937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h.  */
1939$4
1940int
1941main (void)
1942{
1943#ifndef $as_decl_name
1944#ifdef __cplusplus
1945  (void) $as_decl_use;
1946#else
1947  (void) $as_decl_name;
1948#endif
1949#endif
1950
1951  ;
1952  return 0;
1953}
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"
1956then :
1957  eval "$3=yes"
1958else $as_nop
1959  eval "$3=no"
1960fi
1961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1962  eval $6=\$ac_save_FLAGS
1963
1964fi
1965eval ac_res=\$$3
1966	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967printf "%s\n" "$ac_res" >&6; }
1968  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970} # ac_fn_check_decl
1971
1972# ac_fn_c_find_uintX_t LINENO BITS VAR
1973# ------------------------------------
1974# Finds an unsigned integer type with width BITS, setting cache variable VAR
1975# accordingly.
1976ac_fn_c_find_uintX_t ()
1977{
1978  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1980printf %s "checking for uint$2_t... " >&6; }
1981if eval test \${$3+y}
1982then :
1983  printf %s "(cached) " >&6
1984else $as_nop
1985  eval "$3=no"
1986     # Order is important - never check a type that is potentially smaller
1987     # than half of the expected target width.
1988     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1989	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1990       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991/* end confdefs.h.  */
1992$ac_includes_default
1993int
1994main (void)
1995{
1996static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1997test_array [0] = 0;
1998return test_array [0];
1999
2000  ;
2001  return 0;
2002}
2003_ACEOF
2004if ac_fn_c_try_compile "$LINENO"
2005then :
2006  case $ac_type in #(
2007  uint$2_t) :
2008    eval "$3=yes" ;; #(
2009  *) :
2010    eval "$3=\$ac_type" ;;
2011esac
2012fi
2013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2014       if eval test \"x\$"$3"\" = x"no"
2015then :
2016
2017else $as_nop
2018  break
2019fi
2020     done
2021fi
2022eval ac_res=\$$3
2023	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024printf "%s\n" "$ac_res" >&6; }
2025  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027} # ac_fn_c_find_uintX_t
2028
2029# ac_fn_c_find_intX_t LINENO BITS VAR
2030# -----------------------------------
2031# Finds a signed integer type with width BITS, setting cache variable VAR
2032# accordingly.
2033ac_fn_c_find_intX_t ()
2034{
2035  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2037printf %s "checking for int$2_t... " >&6; }
2038if eval test \${$3+y}
2039then :
2040  printf %s "(cached) " >&6
2041else $as_nop
2042  eval "$3=no"
2043     # Order is important - never check a type that is potentially smaller
2044     # than half of the expected target width.
2045     for ac_type in int$2_t 'int' 'long int' \
2046	 'long long int' 'short int' 'signed char'; do
2047       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h.  */
2049$ac_includes_default
2050	     enum { N = $2 / 2 - 1 };
2051int
2052main (void)
2053{
2054static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2055test_array [0] = 0;
2056return test_array [0];
2057
2058  ;
2059  return 0;
2060}
2061_ACEOF
2062if ac_fn_c_try_compile "$LINENO"
2063then :
2064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h.  */
2066$ac_includes_default
2067	        enum { N = $2 / 2 - 1 };
2068int
2069main (void)
2070{
2071static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2072		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2073test_array [0] = 0;
2074return test_array [0];
2075
2076  ;
2077  return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"
2081then :
2082
2083else $as_nop
2084  case $ac_type in #(
2085  int$2_t) :
2086    eval "$3=yes" ;; #(
2087  *) :
2088    eval "$3=\$ac_type" ;;
2089esac
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2094       if eval test \"x\$"$3"\" = x"no"
2095then :
2096
2097else $as_nop
2098  break
2099fi
2100     done
2101fi
2102eval ac_res=\$$3
2103	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104printf "%s\n" "$ac_res" >&6; }
2105  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
2107} # ac_fn_c_find_intX_t
2108ac_configure_args_raw=
2109for ac_arg
2110do
2111  case $ac_arg in
2112  *\'*)
2113    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2114  esac
2115  as_fn_append ac_configure_args_raw " '$ac_arg'"
2116done
2117
2118case $ac_configure_args_raw in
2119  *$as_nl*)
2120    ac_safe_unquote= ;;
2121  *)
2122    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2123    ac_unsafe_a="$ac_unsafe_z#~"
2124    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2125    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2126esac
2127
2128cat >config.log <<_ACEOF
2129This file contains any messages produced by compilers while
2130running configure, to aid debugging if configure makes a mistake.
2131
2132It was created by file $as_me 5.43, which was
2133generated by GNU Autoconf 2.71.  Invocation command line was
2134
2135  $ $0$ac_configure_args_raw
2136
2137_ACEOF
2138exec 5>>config.log
2139{
2140cat <<_ASUNAME
2141## --------- ##
2142## Platform. ##
2143## --------- ##
2144
2145hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2146uname -m = `(uname -m) 2>/dev/null || echo unknown`
2147uname -r = `(uname -r) 2>/dev/null || echo unknown`
2148uname -s = `(uname -s) 2>/dev/null || echo unknown`
2149uname -v = `(uname -v) 2>/dev/null || echo unknown`
2150
2151/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2152/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2153
2154/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2155/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2156/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2157/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2158/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2159/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2160/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2161
2162_ASUNAME
2163
2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH
2166do
2167  IFS=$as_save_IFS
2168  case $as_dir in #(((
2169    '') as_dir=./ ;;
2170    */) ;;
2171    *) as_dir=$as_dir/ ;;
2172  esac
2173    printf "%s\n" "PATH: $as_dir"
2174  done
2175IFS=$as_save_IFS
2176
2177} >&5
2178
2179cat >&5 <<_ACEOF
2180
2181
2182## ----------- ##
2183## Core tests. ##
2184## ----------- ##
2185
2186_ACEOF
2187
2188
2189# Keep a trace of the command line.
2190# Strip out --no-create and --no-recursion so they do not pile up.
2191# Strip out --silent because we don't want to record it for future runs.
2192# Also quote any args containing shell meta-characters.
2193# Make two passes to allow for proper duplicate-argument suppression.
2194ac_configure_args=
2195ac_configure_args0=
2196ac_configure_args1=
2197ac_must_keep_next=false
2198for ac_pass in 1 2
2199do
2200  for ac_arg
2201  do
2202    case $ac_arg in
2203    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2204    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2205    | -silent | --silent | --silen | --sile | --sil)
2206      continue ;;
2207    *\'*)
2208      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2209    esac
2210    case $ac_pass in
2211    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2212    2)
2213      as_fn_append ac_configure_args1 " '$ac_arg'"
2214      if test $ac_must_keep_next = true; then
2215	ac_must_keep_next=false # Got value, back to normal.
2216      else
2217	case $ac_arg in
2218	  *=* | --config-cache | -C | -disable-* | --disable-* \
2219	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2220	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2221	  | -with-* | --with-* | -without-* | --without-* | --x)
2222	    case "$ac_configure_args0 " in
2223	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2224	    esac
2225	    ;;
2226	  -* ) ac_must_keep_next=true ;;
2227	esac
2228      fi
2229      as_fn_append ac_configure_args " '$ac_arg'"
2230      ;;
2231    esac
2232  done
2233done
2234{ ac_configure_args0=; unset ac_configure_args0;}
2235{ ac_configure_args1=; unset ac_configure_args1;}
2236
2237# When interrupted or exit'd, cleanup temporary files, and complete
2238# config.log.  We remove comments because anyway the quotes in there
2239# would cause problems or look ugly.
2240# WARNING: Use '\'' to represent an apostrophe within the trap.
2241# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2242trap 'exit_status=$?
2243  # Sanitize IFS.
2244  IFS=" ""	$as_nl"
2245  # Save into config.log some information that might help in debugging.
2246  {
2247    echo
2248
2249    printf "%s\n" "## ---------------- ##
2250## Cache variables. ##
2251## ---------------- ##"
2252    echo
2253    # The following way of writing the cache mishandles newlines in values,
2254(
2255  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256    eval ac_val=\$$ac_var
2257    case $ac_val in #(
2258    *${as_nl}*)
2259      case $ac_var in #(
2260      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2262      esac
2263      case $ac_var in #(
2264      _ | IFS | as_nl) ;; #(
2265      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266      *) { eval $ac_var=; unset $ac_var;} ;;
2267      esac ;;
2268    esac
2269  done
2270  (set) 2>&1 |
2271    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272    *${as_nl}ac_space=\ *)
2273      sed -n \
2274	"s/'\''/'\''\\\\'\'''\''/g;
2275	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2276      ;; #(
2277    *)
2278      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2279      ;;
2280    esac |
2281    sort
2282)
2283    echo
2284
2285    printf "%s\n" "## ----------------- ##
2286## Output variables. ##
2287## ----------------- ##"
2288    echo
2289    for ac_var in $ac_subst_vars
2290    do
2291      eval ac_val=\$$ac_var
2292      case $ac_val in
2293      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294      esac
2295      printf "%s\n" "$ac_var='\''$ac_val'\''"
2296    done | sort
2297    echo
2298
2299    if test -n "$ac_subst_files"; then
2300      printf "%s\n" "## ------------------- ##
2301## File substitutions. ##
2302## ------------------- ##"
2303      echo
2304      for ac_var in $ac_subst_files
2305      do
2306	eval ac_val=\$$ac_var
2307	case $ac_val in
2308	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2309	esac
2310	printf "%s\n" "$ac_var='\''$ac_val'\''"
2311      done | sort
2312      echo
2313    fi
2314
2315    if test -s confdefs.h; then
2316      printf "%s\n" "## ----------- ##
2317## confdefs.h. ##
2318## ----------- ##"
2319      echo
2320      cat confdefs.h
2321      echo
2322    fi
2323    test "$ac_signal" != 0 &&
2324      printf "%s\n" "$as_me: caught signal $ac_signal"
2325    printf "%s\n" "$as_me: exit $exit_status"
2326  } >&5
2327  rm -f core *.core core.conftest.* &&
2328    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2329    exit $exit_status
2330' 0
2331for ac_signal in 1 2 13 15; do
2332  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2333done
2334ac_signal=0
2335
2336# confdefs.h avoids OS command line length limits that DEFS can exceed.
2337rm -f -r conftest* confdefs.h
2338
2339printf "%s\n" "/* confdefs.h */" > confdefs.h
2340
2341# Predefined preprocessor variables.
2342
2343printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2344
2345printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2346
2347printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2348
2349printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2350
2351printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2352
2353printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2354
2355
2356# Let the site file select an alternate cache file if it wants to.
2357# Prefer an explicitly selected file to automatically selected ones.
2358if test -n "$CONFIG_SITE"; then
2359  ac_site_files="$CONFIG_SITE"
2360elif test "x$prefix" != xNONE; then
2361  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2362else
2363  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2364fi
2365
2366for ac_site_file in $ac_site_files
2367do
2368  case $ac_site_file in #(
2369  */*) :
2370     ;; #(
2371  *) :
2372    ac_site_file=./$ac_site_file ;;
2373esac
2374  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2375    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2376printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2377    sed 's/^/| /' "$ac_site_file" >&5
2378    . "$ac_site_file" \
2379      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2381as_fn_error $? "failed to load site script $ac_site_file
2382See \`config.log' for more details" "$LINENO" 5; }
2383  fi
2384done
2385
2386if test -r "$cache_file"; then
2387  # Some versions of bash will fail to source /dev/null (special files
2388  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2389  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2390    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2391printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2392    case $cache_file in
2393      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2394      *)                      . "./$cache_file";;
2395    esac
2396  fi
2397else
2398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2399printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2400  >$cache_file
2401fi
2402
2403# Test code for whether the C compiler supports C89 (global declarations)
2404ac_c_conftest_c89_globals='
2405/* Does the compiler advertise C89 conformance?
2406   Do not test the value of __STDC__, because some compilers set it to 0
2407   while being otherwise adequately conformant. */
2408#if !defined __STDC__
2409# error "Compiler does not advertise C89 conformance"
2410#endif
2411
2412#include <stddef.h>
2413#include <stdarg.h>
2414struct stat;
2415/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2416struct buf { int x; };
2417struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2418static char *e (p, i)
2419     char **p;
2420     int i;
2421{
2422  return p[i];
2423}
2424static char *f (char * (*g) (char **, int), char **p, ...)
2425{
2426  char *s;
2427  va_list v;
2428  va_start (v,p);
2429  s = g (p, va_arg (v,int));
2430  va_end (v);
2431  return s;
2432}
2433
2434/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2435   function prototypes and stuff, but not \xHH hex character constants.
2436   These do not provoke an error unfortunately, instead are silently treated
2437   as an "x".  The following induces an error, until -std is added to get
2438   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2439   array size at least.  It is necessary to write \x00 == 0 to get something
2440   that is true only with -std.  */
2441int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2442
2443/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2444   inside strings and character constants.  */
2445#define FOO(x) '\''x'\''
2446int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2447
2448int test (int i, double x);
2449struct s1 {int (*f) (int a);};
2450struct s2 {int (*f) (double a);};
2451int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2452               int, int);'
2453
2454# Test code for whether the C compiler supports C89 (body of main).
2455ac_c_conftest_c89_main='
2456ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2457'
2458
2459# Test code for whether the C compiler supports C99 (global declarations)
2460ac_c_conftest_c99_globals='
2461// Does the compiler advertise C99 conformance?
2462#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2463# error "Compiler does not advertise C99 conformance"
2464#endif
2465
2466#include <stdbool.h>
2467extern int puts (const char *);
2468extern int printf (const char *, ...);
2469extern int dprintf (int, const char *, ...);
2470extern void *malloc (size_t);
2471
2472// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2473// dprintf is used instead of fprintf to avoid needing to declare
2474// FILE and stderr.
2475#define debug(...) dprintf (2, __VA_ARGS__)
2476#define showlist(...) puts (#__VA_ARGS__)
2477#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2478static void
2479test_varargs_macros (void)
2480{
2481  int x = 1234;
2482  int y = 5678;
2483  debug ("Flag");
2484  debug ("X = %d\n", x);
2485  showlist (The first, second, and third items.);
2486  report (x>y, "x is %d but y is %d", x, y);
2487}
2488
2489// Check long long types.
2490#define BIG64 18446744073709551615ull
2491#define BIG32 4294967295ul
2492#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2493#if !BIG_OK
2494  #error "your preprocessor is broken"
2495#endif
2496#if BIG_OK
2497#else
2498  #error "your preprocessor is broken"
2499#endif
2500static long long int bignum = -9223372036854775807LL;
2501static unsigned long long int ubignum = BIG64;
2502
2503struct incomplete_array
2504{
2505  int datasize;
2506  double data[];
2507};
2508
2509struct named_init {
2510  int number;
2511  const wchar_t *name;
2512  double average;
2513};
2514
2515typedef const char *ccp;
2516
2517static inline int
2518test_restrict (ccp restrict text)
2519{
2520  // See if C++-style comments work.
2521  // Iterate through items via the restricted pointer.
2522  // Also check for declarations in for loops.
2523  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2524    continue;
2525  return 0;
2526}
2527
2528// Check varargs and va_copy.
2529static bool
2530test_varargs (const char *format, ...)
2531{
2532  va_list args;
2533  va_start (args, format);
2534  va_list args_copy;
2535  va_copy (args_copy, args);
2536
2537  const char *str = "";
2538  int number = 0;
2539  float fnumber = 0;
2540
2541  while (*format)
2542    {
2543      switch (*format++)
2544	{
2545	case '\''s'\'': // string
2546	  str = va_arg (args_copy, const char *);
2547	  break;
2548	case '\''d'\'': // int
2549	  number = va_arg (args_copy, int);
2550	  break;
2551	case '\''f'\'': // float
2552	  fnumber = va_arg (args_copy, double);
2553	  break;
2554	default:
2555	  break;
2556	}
2557    }
2558  va_end (args_copy);
2559  va_end (args);
2560
2561  return *str && number && fnumber;
2562}
2563'
2564
2565# Test code for whether the C compiler supports C99 (body of main).
2566ac_c_conftest_c99_main='
2567  // Check bool.
2568  _Bool success = false;
2569  success |= (argc != 0);
2570
2571  // Check restrict.
2572  if (test_restrict ("String literal") == 0)
2573    success = true;
2574  char *restrict newvar = "Another string";
2575
2576  // Check varargs.
2577  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2578  test_varargs_macros ();
2579
2580  // Check flexible array members.
2581  struct incomplete_array *ia =
2582    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2583  ia->datasize = 10;
2584  for (int i = 0; i < ia->datasize; ++i)
2585    ia->data[i] = i * 1.234;
2586
2587  // Check named initializers.
2588  struct named_init ni = {
2589    .number = 34,
2590    .name = L"Test wide string",
2591    .average = 543.34343,
2592  };
2593
2594  ni.number = 58;
2595
2596  int dynamic_array[ni.number];
2597  dynamic_array[0] = argv[0][0];
2598  dynamic_array[ni.number - 1] = 543;
2599
2600  // work around unused variable warnings
2601  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2602	 || dynamic_array[ni.number - 1] != 543);
2603'
2604
2605# Test code for whether the C compiler supports C11 (global declarations)
2606ac_c_conftest_c11_globals='
2607// Does the compiler advertise C11 conformance?
2608#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2609# error "Compiler does not advertise C11 conformance"
2610#endif
2611
2612// Check _Alignas.
2613char _Alignas (double) aligned_as_double;
2614char _Alignas (0) no_special_alignment;
2615extern char aligned_as_int;
2616char _Alignas (0) _Alignas (int) aligned_as_int;
2617
2618// Check _Alignof.
2619enum
2620{
2621  int_alignment = _Alignof (int),
2622  int_array_alignment = _Alignof (int[100]),
2623  char_alignment = _Alignof (char)
2624};
2625_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2626
2627// Check _Noreturn.
2628int _Noreturn does_not_return (void) { for (;;) continue; }
2629
2630// Check _Static_assert.
2631struct test_static_assert
2632{
2633  int x;
2634  _Static_assert (sizeof (int) <= sizeof (long int),
2635                  "_Static_assert does not work in struct");
2636  long int y;
2637};
2638
2639// Check UTF-8 literals.
2640#define u8 syntax error!
2641char const utf8_literal[] = u8"happens to be ASCII" "another string";
2642
2643// Check duplicate typedefs.
2644typedef long *long_ptr;
2645typedef long int *long_ptr;
2646typedef long_ptr long_ptr;
2647
2648// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2649struct anonymous
2650{
2651  union {
2652    struct { int i; int j; };
2653    struct { int k; long int l; } w;
2654  };
2655  int m;
2656} v1;
2657'
2658
2659# Test code for whether the C compiler supports C11 (body of main).
2660ac_c_conftest_c11_main='
2661  _Static_assert ((offsetof (struct anonymous, i)
2662		   == offsetof (struct anonymous, w.k)),
2663		  "Anonymous union alignment botch");
2664  v1.i = 2;
2665  v1.w.k = 5;
2666  ok |= v1.i != 5;
2667'
2668
2669# Test code for whether the C compiler supports C11 (complete).
2670ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2671${ac_c_conftest_c99_globals}
2672${ac_c_conftest_c11_globals}
2673
2674int
2675main (int argc, char **argv)
2676{
2677  int ok = 0;
2678  ${ac_c_conftest_c89_main}
2679  ${ac_c_conftest_c99_main}
2680  ${ac_c_conftest_c11_main}
2681  return ok;
2682}
2683"
2684
2685# Test code for whether the C compiler supports C99 (complete).
2686ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2687${ac_c_conftest_c99_globals}
2688
2689int
2690main (int argc, char **argv)
2691{
2692  int ok = 0;
2693  ${ac_c_conftest_c89_main}
2694  ${ac_c_conftest_c99_main}
2695  return ok;
2696}
2697"
2698
2699# Test code for whether the C compiler supports C89 (complete).
2700ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2701
2702int
2703main (int argc, char **argv)
2704{
2705  int ok = 0;
2706  ${ac_c_conftest_c89_main}
2707  return ok;
2708}
2709"
2710
2711as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2712as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2713as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2714as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2715as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2716as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2717as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2718as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2719as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2720as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2721as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2722as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2723as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2724as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2725as_fn_append ac_func_c_list " fork HAVE_FORK"
2726as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2727
2728# Auxiliary files required by this configure script.
2729ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
2730
2731# Locations in which to look for auxiliary files.
2732ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2733
2734# Search for a directory containing all of the required auxiliary files,
2735# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2736# If we don't find one directory that contains all the files we need,
2737# we report the set of missing files from the *first* directory in
2738# $ac_aux_dir_candidates and give up.
2739ac_missing_aux_files=""
2740ac_first_candidate=:
2741printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743as_found=false
2744for as_dir in $ac_aux_dir_candidates
2745do
2746  IFS=$as_save_IFS
2747  case $as_dir in #(((
2748    '') as_dir=./ ;;
2749    */) ;;
2750    *) as_dir=$as_dir/ ;;
2751  esac
2752  as_found=:
2753
2754  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2755  ac_aux_dir_found=yes
2756  ac_install_sh=
2757  for ac_aux in $ac_aux_files
2758  do
2759    # As a special case, if "install-sh" is required, that requirement
2760    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2761    # and $ac_install_sh is set appropriately for whichever one is found.
2762    if test x"$ac_aux" = x"install-sh"
2763    then
2764      if test -f "${as_dir}install-sh"; then
2765        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2766        ac_install_sh="${as_dir}install-sh -c"
2767      elif test -f "${as_dir}install.sh"; then
2768        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2769        ac_install_sh="${as_dir}install.sh -c"
2770      elif test -f "${as_dir}shtool"; then
2771        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2772        ac_install_sh="${as_dir}shtool install -c"
2773      else
2774        ac_aux_dir_found=no
2775        if $ac_first_candidate; then
2776          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2777        else
2778          break
2779        fi
2780      fi
2781    else
2782      if test -f "${as_dir}${ac_aux}"; then
2783        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2784      else
2785        ac_aux_dir_found=no
2786        if $ac_first_candidate; then
2787          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2788        else
2789          break
2790        fi
2791      fi
2792    fi
2793  done
2794  if test "$ac_aux_dir_found" = yes; then
2795    ac_aux_dir="$as_dir"
2796    break
2797  fi
2798  ac_first_candidate=false
2799
2800  as_found=false
2801done
2802IFS=$as_save_IFS
2803if $as_found
2804then :
2805
2806else $as_nop
2807  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2808fi
2809
2810
2811# These three variables are undocumented and unsupported,
2812# and are intended to be withdrawn in a future Autoconf release.
2813# They can cause serious problems if a builder's source tree is in a directory
2814# whose full name contains unusual characters.
2815if test -f "${ac_aux_dir}config.guess"; then
2816  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2817fi
2818if test -f "${ac_aux_dir}config.sub"; then
2819  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2820fi
2821if test -f "$ac_aux_dir/configure"; then
2822  ac_configure="$SHELL ${ac_aux_dir}configure"
2823fi
2824
2825# Check that the precious variables saved in the cache have kept the same
2826# value.
2827ac_cache_corrupted=false
2828for ac_var in $ac_precious_vars; do
2829  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2830  eval ac_new_set=\$ac_env_${ac_var}_set
2831  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2832  eval ac_new_val=\$ac_env_${ac_var}_value
2833  case $ac_old_set,$ac_new_set in
2834    set,)
2835      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2836printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2837      ac_cache_corrupted=: ;;
2838    ,set)
2839      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2840printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2841      ac_cache_corrupted=: ;;
2842    ,);;
2843    *)
2844      if test "x$ac_old_val" != "x$ac_new_val"; then
2845	# differences in whitespace do not lead to failure.
2846	ac_old_val_w=`echo x $ac_old_val`
2847	ac_new_val_w=`echo x $ac_new_val`
2848	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2849	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2850printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2851	  ac_cache_corrupted=:
2852	else
2853	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2854printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2855	  eval $ac_var=\$ac_old_val
2856	fi
2857	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2858printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2860printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2861      fi;;
2862  esac
2863  # Pass precious variables to config.status.
2864  if test "$ac_new_set" = set; then
2865    case $ac_new_val in
2866    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2867    *) ac_arg=$ac_var=$ac_new_val ;;
2868    esac
2869    case " $ac_configure_args " in
2870      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2871      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2872    esac
2873  fi
2874done
2875if $ac_cache_corrupted; then
2876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2877printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2879printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2880  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2881	    and start over" "$LINENO" 5
2882fi
2883## -------------------- ##
2884## Main body of script. ##
2885## -------------------- ##
2886
2887ac_ext=c
2888ac_cpp='$CPP $CPPFLAGS'
2889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892
2893
2894am__api_version='1.16'
2895
2896
2897
2898  # Find a good install program.  We prefer a C program (faster),
2899# so one script is as good as another.  But avoid the broken or
2900# incompatible versions:
2901# SysV /etc/install, /usr/sbin/install
2902# SunOS /usr/etc/install
2903# IRIX /sbin/install
2904# AIX /bin/install
2905# AmigaOS /C/install, which installs bootblocks on floppy discs
2906# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2907# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2908# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2909# OS/2's system install, which has a completely different semantic
2910# ./install, which can be erroneously created by make from ./install.sh.
2911# Reject install programs that cannot install multiple files.
2912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2913printf %s "checking for a BSD-compatible install... " >&6; }
2914if test -z "$INSTALL"; then
2915if test ${ac_cv_path_install+y}
2916then :
2917  printf %s "(cached) " >&6
2918else $as_nop
2919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  case $as_dir in #(((
2924    '') as_dir=./ ;;
2925    */) ;;
2926    *) as_dir=$as_dir/ ;;
2927  esac
2928    # Account for fact that we put trailing slashes in our PATH walk.
2929case $as_dir in #((
2930  ./ | /[cC]/* | \
2931  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2932  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2933  /usr/ucb/* ) ;;
2934  *)
2935    # OSF1 and SCO ODT 3.0 have their own names for install.
2936    # Don't use installbsd from OSF since it installs stuff as root
2937    # by default.
2938    for ac_prog in ginstall scoinst install; do
2939      for ac_exec_ext in '' $ac_executable_extensions; do
2940	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2941	  if test $ac_prog = install &&
2942	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2943	    # AIX install.  It has an incompatible calling convention.
2944	    :
2945	  elif test $ac_prog = install &&
2946	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2947	    # program-specific install script used by HP pwplus--don't use.
2948	    :
2949	  else
2950	    rm -rf conftest.one conftest.two conftest.dir
2951	    echo one > conftest.one
2952	    echo two > conftest.two
2953	    mkdir conftest.dir
2954	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2955	      test -s conftest.one && test -s conftest.two &&
2956	      test -s conftest.dir/conftest.one &&
2957	      test -s conftest.dir/conftest.two
2958	    then
2959	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2960	      break 3
2961	    fi
2962	  fi
2963	fi
2964      done
2965    done
2966    ;;
2967esac
2968
2969  done
2970IFS=$as_save_IFS
2971
2972rm -rf conftest.one conftest.two conftest.dir
2973
2974fi
2975  if test ${ac_cv_path_install+y}; then
2976    INSTALL=$ac_cv_path_install
2977  else
2978    # As a last resort, use the slow shell script.  Don't cache a
2979    # value for INSTALL within a source directory, because that will
2980    # break other packages using the cache if that directory is
2981    # removed, or if the value is a relative name.
2982    INSTALL=$ac_install_sh
2983  fi
2984fi
2985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2986printf "%s\n" "$INSTALL" >&6; }
2987
2988# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2989# It thinks the first close brace ends the variable substitution.
2990test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2991
2992test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2993
2994test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2995
2996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2997printf %s "checking whether build environment is sane... " >&6; }
2998# Reject unsafe characters in $srcdir or the absolute working directory
2999# name.  Accept space and tab only in the latter.
3000am_lf='
3001'
3002case `pwd` in
3003  *[\\\"\#\$\&\'\`$am_lf]*)
3004    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3005esac
3006case $srcdir in
3007  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3008    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3009esac
3010
3011# Do 'set' in a subshell so we don't clobber the current shell's
3012# arguments.  Must try -L first in case configure is actually a
3013# symlink; some systems play weird games with the mod time of symlinks
3014# (eg FreeBSD returns the mod time of the symlink's containing
3015# directory).
3016if (
3017   am_has_slept=no
3018   for am_try in 1 2; do
3019     echo "timestamp, slept: $am_has_slept" > conftest.file
3020     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3021     if test "$*" = "X"; then
3022	# -L didn't work.
3023	set X `ls -t "$srcdir/configure" conftest.file`
3024     fi
3025     if test "$*" != "X $srcdir/configure conftest.file" \
3026	&& test "$*" != "X conftest.file $srcdir/configure"; then
3027
3028	# If neither matched, then we have a broken ls.  This can happen
3029	# if, for instance, CONFIG_SHELL is bash and it inherits a
3030	# broken ls alias from the environment.  This has actually
3031	# happened.  Such a system could not be considered "sane".
3032	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3033  alias in your environment" "$LINENO" 5
3034     fi
3035     if test "$2" = conftest.file || test $am_try -eq 2; then
3036       break
3037     fi
3038     # Just in case.
3039     sleep 1
3040     am_has_slept=yes
3041   done
3042   test "$2" = conftest.file
3043   )
3044then
3045   # Ok.
3046   :
3047else
3048   as_fn_error $? "newly created file is older than distributed files!
3049Check your system clock" "$LINENO" 5
3050fi
3051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052printf "%s\n" "yes" >&6; }
3053# If we didn't sleep, we still need to ensure time stamps of config.status and
3054# generated files are strictly newer.
3055am_sleep_pid=
3056if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3057  ( sleep 1 ) &
3058  am_sleep_pid=$!
3059fi
3060
3061rm -f conftest.file
3062
3063test "$program_prefix" != NONE &&
3064  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3065# Use a double $ so make ignores it.
3066test "$program_suffix" != NONE &&
3067  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3068# Double any \ or $.
3069# By default was `s,x,x', remove it if useless.
3070ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3071program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3072
3073
3074# Expand $ac_aux_dir to an absolute path.
3075am_aux_dir=`cd "$ac_aux_dir" && pwd`
3076
3077
3078  if test x"${MISSING+set}" != xset; then
3079  MISSING="\${SHELL} '$am_aux_dir/missing'"
3080fi
3081# Use eval to expand $SHELL
3082if eval "$MISSING --is-lightweight"; then
3083  am_missing_run="$MISSING "
3084else
3085  am_missing_run=
3086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3087printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3088fi
3089
3090if test x"${install_sh+set}" != xset; then
3091  case $am_aux_dir in
3092  *\ * | *\	*)
3093    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3094  *)
3095    install_sh="\${SHELL} $am_aux_dir/install-sh"
3096  esac
3097fi
3098
3099# Installed binaries are usually stripped using 'strip' when the user
3100# run "make install-strip".  However 'strip' might not be the right
3101# tool to use in cross-compilation environments, therefore Automake
3102# will honor the 'STRIP' environment variable to overrule this program.
3103if test "$cross_compiling" != no; then
3104  if test -n "$ac_tool_prefix"; then
3105  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3106set dummy ${ac_tool_prefix}strip; ac_word=$2
3107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108printf %s "checking for $ac_word... " >&6; }
3109if test ${ac_cv_prog_STRIP+y}
3110then :
3111  printf %s "(cached) " >&6
3112else $as_nop
3113  if test -n "$STRIP"; then
3114  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3115else
3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117for as_dir in $PATH
3118do
3119  IFS=$as_save_IFS
3120  case $as_dir in #(((
3121    '') as_dir=./ ;;
3122    */) ;;
3123    *) as_dir=$as_dir/ ;;
3124  esac
3125    for ac_exec_ext in '' $ac_executable_extensions; do
3126  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3127    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3128    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3129    break 2
3130  fi
3131done
3132  done
3133IFS=$as_save_IFS
3134
3135fi
3136fi
3137STRIP=$ac_cv_prog_STRIP
3138if test -n "$STRIP"; then
3139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3140printf "%s\n" "$STRIP" >&6; }
3141else
3142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143printf "%s\n" "no" >&6; }
3144fi
3145
3146
3147fi
3148if test -z "$ac_cv_prog_STRIP"; then
3149  ac_ct_STRIP=$STRIP
3150  # Extract the first word of "strip", so it can be a program name with args.
3151set dummy strip; ac_word=$2
3152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153printf %s "checking for $ac_word... " >&6; }
3154if test ${ac_cv_prog_ac_ct_STRIP+y}
3155then :
3156  printf %s "(cached) " >&6
3157else $as_nop
3158  if test -n "$ac_ct_STRIP"; then
3159  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3160else
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164  IFS=$as_save_IFS
3165  case $as_dir in #(((
3166    '') as_dir=./ ;;
3167    */) ;;
3168    *) as_dir=$as_dir/ ;;
3169  esac
3170    for ac_exec_ext in '' $ac_executable_extensions; do
3171  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3172    ac_cv_prog_ac_ct_STRIP="strip"
3173    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3174    break 2
3175  fi
3176done
3177  done
3178IFS=$as_save_IFS
3179
3180fi
3181fi
3182ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3183if test -n "$ac_ct_STRIP"; then
3184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3185printf "%s\n" "$ac_ct_STRIP" >&6; }
3186else
3187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188printf "%s\n" "no" >&6; }
3189fi
3190
3191  if test "x$ac_ct_STRIP" = x; then
3192    STRIP=":"
3193  else
3194    case $cross_compiling:$ac_tool_warned in
3195yes:)
3196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3197printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3198ac_tool_warned=yes ;;
3199esac
3200    STRIP=$ac_ct_STRIP
3201  fi
3202else
3203  STRIP="$ac_cv_prog_STRIP"
3204fi
3205
3206fi
3207INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3208
3209
3210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3211printf %s "checking for a race-free mkdir -p... " >&6; }
3212if test -z "$MKDIR_P"; then
3213  if test ${ac_cv_path_mkdir+y}
3214then :
3215  printf %s "(cached) " >&6
3216else $as_nop
3217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3219do
3220  IFS=$as_save_IFS
3221  case $as_dir in #(((
3222    '') as_dir=./ ;;
3223    */) ;;
3224    *) as_dir=$as_dir/ ;;
3225  esac
3226    for ac_prog in mkdir gmkdir; do
3227	 for ac_exec_ext in '' $ac_executable_extensions; do
3228	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3229	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3230	     'mkdir ('*'coreutils) '* | \
3231	     'BusyBox '* | \
3232	     'mkdir (fileutils) '4.1*)
3233	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3234	       break 3;;
3235	   esac
3236	 done
3237       done
3238  done
3239IFS=$as_save_IFS
3240
3241fi
3242
3243  test -d ./--version && rmdir ./--version
3244  if test ${ac_cv_path_mkdir+y}; then
3245    MKDIR_P="$ac_cv_path_mkdir -p"
3246  else
3247    # As a last resort, use the slow shell script.  Don't cache a
3248    # value for MKDIR_P within a source directory, because that will
3249    # break other packages using the cache if that directory is
3250    # removed, or if the value is a relative name.
3251    MKDIR_P="$ac_install_sh -d"
3252  fi
3253fi
3254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3255printf "%s\n" "$MKDIR_P" >&6; }
3256
3257for ac_prog in gawk mawk nawk awk
3258do
3259  # Extract the first word of "$ac_prog", so it can be a program name with args.
3260set dummy $ac_prog; ac_word=$2
3261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262printf %s "checking for $ac_word... " >&6; }
3263if test ${ac_cv_prog_AWK+y}
3264then :
3265  printf %s "(cached) " >&6
3266else $as_nop
3267  if test -n "$AWK"; then
3268  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3269else
3270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271for as_dir in $PATH
3272do
3273  IFS=$as_save_IFS
3274  case $as_dir in #(((
3275    '') as_dir=./ ;;
3276    */) ;;
3277    *) as_dir=$as_dir/ ;;
3278  esac
3279    for ac_exec_ext in '' $ac_executable_extensions; do
3280  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3281    ac_cv_prog_AWK="$ac_prog"
3282    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3283    break 2
3284  fi
3285done
3286  done
3287IFS=$as_save_IFS
3288
3289fi
3290fi
3291AWK=$ac_cv_prog_AWK
3292if test -n "$AWK"; then
3293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3294printf "%s\n" "$AWK" >&6; }
3295else
3296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297printf "%s\n" "no" >&6; }
3298fi
3299
3300
3301  test -n "$AWK" && break
3302done
3303
3304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3305printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3306set x ${MAKE-make}
3307ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3308if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3309then :
3310  printf %s "(cached) " >&6
3311else $as_nop
3312  cat >conftest.make <<\_ACEOF
3313SHELL = /bin/sh
3314all:
3315	@echo '@@@%%%=$(MAKE)=@@@%%%'
3316_ACEOF
3317# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3318case `${MAKE-make} -f conftest.make 2>/dev/null` in
3319  *@@@%%%=?*=@@@%%%*)
3320    eval ac_cv_prog_make_${ac_make}_set=yes;;
3321  *)
3322    eval ac_cv_prog_make_${ac_make}_set=no;;
3323esac
3324rm -f conftest.make
3325fi
3326if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328printf "%s\n" "yes" >&6; }
3329  SET_MAKE=
3330else
3331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332printf "%s\n" "no" >&6; }
3333  SET_MAKE="MAKE=${MAKE-make}"
3334fi
3335
3336rm -rf .tst 2>/dev/null
3337mkdir .tst 2>/dev/null
3338if test -d .tst; then
3339  am__leading_dot=.
3340else
3341  am__leading_dot=_
3342fi
3343rmdir .tst 2>/dev/null
3344
3345# Check whether --enable-silent-rules was given.
3346if test ${enable_silent_rules+y}
3347then :
3348  enableval=$enable_silent_rules;
3349fi
3350
3351case $enable_silent_rules in # (((
3352  yes) AM_DEFAULT_VERBOSITY=0;;
3353   no) AM_DEFAULT_VERBOSITY=1;;
3354    *) AM_DEFAULT_VERBOSITY=1;;
3355esac
3356am_make=${MAKE-make}
3357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3358printf %s "checking whether $am_make supports nested variables... " >&6; }
3359if test ${am_cv_make_support_nested_variables+y}
3360then :
3361  printf %s "(cached) " >&6
3362else $as_nop
3363  if printf "%s\n" 'TRUE=$(BAR$(V))
3364BAR0=false
3365BAR1=true
3366V=1
3367am__doit:
3368	@$(TRUE)
3369.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3370  am_cv_make_support_nested_variables=yes
3371else
3372  am_cv_make_support_nested_variables=no
3373fi
3374fi
3375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3376printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3377if test $am_cv_make_support_nested_variables = yes; then
3378    AM_V='$(V)'
3379  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3380else
3381  AM_V=$AM_DEFAULT_VERBOSITY
3382  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3383fi
3384AM_BACKSLASH='\'
3385
3386if test "`cd $srcdir && pwd`" != "`pwd`"; then
3387  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3388  # is not polluted with repeated "-I."
3389  am__isrc=' -I$(srcdir)'
3390  # test to see if srcdir already configured
3391  if test -f $srcdir/config.status; then
3392    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3393  fi
3394fi
3395
3396# test whether we have cygpath
3397if test -z "$CYGPATH_W"; then
3398  if (cygpath --version) >/dev/null 2>/dev/null; then
3399    CYGPATH_W='cygpath -w'
3400  else
3401    CYGPATH_W=echo
3402  fi
3403fi
3404
3405
3406# Define the identity of the package.
3407 PACKAGE='file'
3408 VERSION='5.43'
3409
3410
3411printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3412
3413
3414printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3415
3416# Some tools Automake needs.
3417
3418ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3419
3420
3421AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3422
3423
3424AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3425
3426
3427AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3428
3429
3430MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3431
3432# For better backward compatibility.  To be removed once Automake 1.9.x
3433# dies out for good.  For more background, see:
3434# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3435# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3436mkdir_p='$(MKDIR_P)'
3437
3438# We need awk for the "check" target (and possibly the TAP driver).  The
3439# system "awk" is bad on some platforms.
3440# Always define AMTAR for backward compatibility.  Yes, it's still used
3441# in the wild :-(  We should find a proper way to deprecate it ...
3442AMTAR='$${TAR-tar}'
3443
3444
3445# We'll loop over all known methods to create a tar archive until one works.
3446_am_tools='gnutar  pax cpio none'
3447
3448am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3449
3450
3451
3452
3453
3454# Variables for tags utilities; see am/tags.am
3455if test -z "$CTAGS"; then
3456  CTAGS=ctags
3457fi
3458
3459if test -z "$ETAGS"; then
3460  ETAGS=etags
3461fi
3462
3463if test -z "$CSCOPE"; then
3464  CSCOPE=cscope
3465fi
3466
3467
3468
3469# POSIX will say in a future version that running "rm -f" with no argument
3470# is OK; and we want to be able to make that assumption in our Makefile
3471# recipes.  So use an aggressive probe to check that the usage we want is
3472# actually supported "in the wild" to an acceptable degree.
3473# See automake bug#10828.
3474# To make any issue more visible, cause the running configure to be aborted
3475# by default if the 'rm' program in use doesn't match our expectations; the
3476# user can still override this though.
3477if rm -f && rm -fr && rm -rf; then : OK; else
3478  cat >&2 <<'END'
3479Oops!
3480
3481Your 'rm' program seems unable to run without file operands specified
3482on the command line, even when the '-f' option is present.  This is contrary
3483to the behaviour of most rm programs out there, and not conforming with
3484the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3485
3486Please tell bug-automake@gnu.org about your system, including the value
3487of your $PATH and any error possibly output before this message.  This
3488can help us improve future automake versions.
3489
3490END
3491  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3492    echo 'Configuration will proceed anyway, since you have set the' >&2
3493    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3494    echo >&2
3495  else
3496    cat >&2 <<'END'
3497Aborting the configuration process, to ensure you take notice of the issue.
3498
3499You can download and install GNU coreutils to get an 'rm' implementation
3500that behaves properly: <https://www.gnu.org/software/coreutils/>.
3501
3502If you want to complete the configuration process using your problematic
3503'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3504to "yes", and re-run configure.
3505
3506END
3507    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3508  fi
3509fi
3510
3511# Check whether --enable-silent-rules was given.
3512if test ${enable_silent_rules+y}
3513then :
3514  enableval=$enable_silent_rules;
3515fi
3516
3517case $enable_silent_rules in # (((
3518  yes) AM_DEFAULT_VERBOSITY=0;;
3519   no) AM_DEFAULT_VERBOSITY=1;;
3520    *) AM_DEFAULT_VERBOSITY=0;;
3521esac
3522am_make=${MAKE-make}
3523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3524printf %s "checking whether $am_make supports nested variables... " >&6; }
3525if test ${am_cv_make_support_nested_variables+y}
3526then :
3527  printf %s "(cached) " >&6
3528else $as_nop
3529  if printf "%s\n" 'TRUE=$(BAR$(V))
3530BAR0=false
3531BAR1=true
3532V=1
3533am__doit:
3534	@$(TRUE)
3535.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3536  am_cv_make_support_nested_variables=yes
3537else
3538  am_cv_make_support_nested_variables=no
3539fi
3540fi
3541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3542printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3543if test $am_cv_make_support_nested_variables = yes; then
3544    AM_V='$(V)'
3545  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3546else
3547  AM_V=$AM_DEFAULT_VERBOSITY
3548  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3549fi
3550AM_BACKSLASH='\'
3551
3552
3553ac_config_headers="$ac_config_headers config.h"
3554
3555
3556
3557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3558printf %s "checking for builtin ELF support... " >&6; }
3559# Check whether --enable-elf was given.
3560if test ${enable_elf+y}
3561then :
3562  enableval=$enable_elf; if test "${enableval}" = yes; then
3563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564printf "%s\n" "yes" >&6; }
3565
3566printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
3567
3568else
3569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570printf "%s\n" "no" >&6; }
3571fi
3572else $as_nop
3573
3574  # enable by default
3575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3576printf "%s\n" "yes" >&6; }
3577
3578printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
3579
3580
3581fi
3582
3583
3584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3585printf %s "checking for ELF core file support... " >&6; }
3586# Check whether --enable-elf-core was given.
3587if test ${enable_elf_core+y}
3588then :
3589  enableval=$enable_elf_core; if test "${enableval}" = yes; then
3590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3591printf "%s\n" "yes" >&6; }
3592
3593printf "%s\n" "#define ELFCORE 1" >>confdefs.h
3594
3595else
3596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597printf "%s\n" "no" >&6; }
3598fi
3599else $as_nop
3600
3601  # enable by default
3602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3603printf "%s\n" "yes" >&6; }
3604
3605printf "%s\n" "#define ELFCORE 1" >>confdefs.h
3606
3607
3608fi
3609
3610
3611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
3612printf %s "checking for zlib support... " >&6; }
3613# Check whether --enable-zlib was given.
3614if test ${enable_zlib+y}
3615then :
3616  enableval=$enable_zlib;
3617fi
3618
3619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
3620printf "%s\n" "$enable_zlib" >&6; }
3621
3622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5
3623printf %s "checking for bzlib support... " >&6; }
3624# Check whether --enable-bzlib was given.
3625if test ${enable_bzlib+y}
3626then :
3627  enableval=$enable_bzlib;
3628fi
3629
3630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5
3631printf "%s\n" "$enable_bzlib" >&6; }
3632
3633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5
3634printf %s "checking for xzlib support... " >&6; }
3635# Check whether --enable-xzlib was given.
3636if test ${enable_xzlib+y}
3637then :
3638  enableval=$enable_xzlib;
3639fi
3640
3641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5
3642printf "%s\n" "$enable_xzlib" >&6; }
3643
3644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
3645printf %s "checking for libseccomp support... " >&6; }
3646# Check whether --enable-libseccomp was given.
3647if test ${enable_libseccomp+y}
3648then :
3649  enableval=$enable_libseccomp;
3650fi
3651
3652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
3653printf "%s\n" "$enable_libseccomp" >&6; }
3654
3655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3656printf %s "checking for file formats in man section 5... " >&6; }
3657# Check whether --enable-fsect-man5 was given.
3658if test ${enable_fsect_man5+y}
3659then :
3660  enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3662printf "%s\n" "yes" >&6; }
3663  fsect=5
3664else
3665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666printf "%s\n" "no" >&6; }
3667  fsect=4
3668fi
3669else $as_nop
3670
3671  # disable by default
3672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673printf "%s\n" "no" >&6; }
3674  fsect=4
3675
3676fi
3677
3678
3679
3680
3681  # Make sure we can run config.sub.
3682$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3683  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3684
3685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3686printf %s "checking build system type... " >&6; }
3687if test ${ac_cv_build+y}
3688then :
3689  printf %s "(cached) " >&6
3690else $as_nop
3691  ac_build_alias=$build_alias
3692test "x$ac_build_alias" = x &&
3693  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3694test "x$ac_build_alias" = x &&
3695  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3696ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3697  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3698
3699fi
3700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3701printf "%s\n" "$ac_cv_build" >&6; }
3702case $ac_cv_build in
3703*-*-*) ;;
3704*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3705esac
3706build=$ac_cv_build
3707ac_save_IFS=$IFS; IFS='-'
3708set x $ac_cv_build
3709shift
3710build_cpu=$1
3711build_vendor=$2
3712shift; shift
3713# Remember, the first character of IFS is used to create $*,
3714# except with old shells:
3715build_os=$*
3716IFS=$ac_save_IFS
3717case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3718
3719
3720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3721printf %s "checking host system type... " >&6; }
3722if test ${ac_cv_host+y}
3723then :
3724  printf %s "(cached) " >&6
3725else $as_nop
3726  if test "x$host_alias" = x; then
3727  ac_cv_host=$ac_cv_build
3728else
3729  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3730    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3731fi
3732
3733fi
3734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3735printf "%s\n" "$ac_cv_host" >&6; }
3736case $ac_cv_host in
3737*-*-*) ;;
3738*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3739esac
3740host=$ac_cv_host
3741ac_save_IFS=$IFS; IFS='-'
3742set x $ac_cv_host
3743shift
3744host_cpu=$1
3745host_vendor=$2
3746shift; shift
3747# Remember, the first character of IFS is used to create $*,
3748# except with old shells:
3749host_os=$*
3750IFS=$ac_save_IFS
3751case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3752
3753
3754case "$host_os" in
3755   mingw32*)
3756      MINGW=1
3757      ;;
3758   *)
3759      MINGW=0
3760      ;;
3761esac
3762
3763 if test "$MINGW" = 1; then
3764  MINGW_TRUE=
3765  MINGW_FALSE='#'
3766else
3767  MINGW_TRUE='#'
3768  MINGW_FALSE=
3769fi
3770
3771
3772pkgdatadir='$(datadir)/misc'
3773
3774
3775 if test x$fsect = x5; then
3776  FSECT5_TRUE=
3777  FSECT5_FALSE='#'
3778else
3779  FSECT5_TRUE='#'
3780  FSECT5_FALSE=
3781fi
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795ac_ext=c
3796ac_cpp='$CPP $CPPFLAGS'
3797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800if test -n "$ac_tool_prefix"; then
3801  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3802set dummy ${ac_tool_prefix}gcc; ac_word=$2
3803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804printf %s "checking for $ac_word... " >&6; }
3805if test ${ac_cv_prog_CC+y}
3806then :
3807  printf %s "(cached) " >&6
3808else $as_nop
3809  if test -n "$CC"; then
3810  ac_cv_prog_CC="$CC" # Let the user override the test.
3811else
3812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815  IFS=$as_save_IFS
3816  case $as_dir in #(((
3817    '') as_dir=./ ;;
3818    */) ;;
3819    *) as_dir=$as_dir/ ;;
3820  esac
3821    for ac_exec_ext in '' $ac_executable_extensions; do
3822  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3823    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3824    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3825    break 2
3826  fi
3827done
3828  done
3829IFS=$as_save_IFS
3830
3831fi
3832fi
3833CC=$ac_cv_prog_CC
3834if test -n "$CC"; then
3835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3836printf "%s\n" "$CC" >&6; }
3837else
3838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839printf "%s\n" "no" >&6; }
3840fi
3841
3842
3843fi
3844if test -z "$ac_cv_prog_CC"; then
3845  ac_ct_CC=$CC
3846  # Extract the first word of "gcc", so it can be a program name with args.
3847set dummy gcc; ac_word=$2
3848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849printf %s "checking for $ac_word... " >&6; }
3850if test ${ac_cv_prog_ac_ct_CC+y}
3851then :
3852  printf %s "(cached) " >&6
3853else $as_nop
3854  if test -n "$ac_ct_CC"; then
3855  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3856else
3857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858for as_dir in $PATH
3859do
3860  IFS=$as_save_IFS
3861  case $as_dir in #(((
3862    '') as_dir=./ ;;
3863    */) ;;
3864    *) as_dir=$as_dir/ ;;
3865  esac
3866    for ac_exec_ext in '' $ac_executable_extensions; do
3867  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3868    ac_cv_prog_ac_ct_CC="gcc"
3869    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3870    break 2
3871  fi
3872done
3873  done
3874IFS=$as_save_IFS
3875
3876fi
3877fi
3878ac_ct_CC=$ac_cv_prog_ac_ct_CC
3879if test -n "$ac_ct_CC"; then
3880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3881printf "%s\n" "$ac_ct_CC" >&6; }
3882else
3883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884printf "%s\n" "no" >&6; }
3885fi
3886
3887  if test "x$ac_ct_CC" = x; then
3888    CC=""
3889  else
3890    case $cross_compiling:$ac_tool_warned in
3891yes:)
3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894ac_tool_warned=yes ;;
3895esac
3896    CC=$ac_ct_CC
3897  fi
3898else
3899  CC="$ac_cv_prog_CC"
3900fi
3901
3902if test -z "$CC"; then
3903          if test -n "$ac_tool_prefix"; then
3904    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3905set dummy ${ac_tool_prefix}cc; 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_CC+y}
3909then :
3910  printf %s "(cached) " >&6
3911else $as_nop
3912  if test -n "$CC"; then
3913  ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
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
3936CC=$ac_cv_prog_CC
3937if test -n "$CC"; then
3938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939printf "%s\n" "$CC" >&6; }
3940else
3941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942printf "%s\n" "no" >&6; }
3943fi
3944
3945
3946  fi
3947fi
3948if test -z "$CC"; then
3949  # Extract the first word of "cc", so it can be a program name with args.
3950set dummy cc; ac_word=$2
3951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952printf %s "checking for $ac_word... " >&6; }
3953if test ${ac_cv_prog_CC+y}
3954then :
3955  printf %s "(cached) " >&6
3956else $as_nop
3957  if test -n "$CC"; then
3958  ac_cv_prog_CC="$CC" # Let the user override the test.
3959else
3960  ac_prog_rejected=no
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964  IFS=$as_save_IFS
3965  case $as_dir in #(((
3966    '') as_dir=./ ;;
3967    */) ;;
3968    *) as_dir=$as_dir/ ;;
3969  esac
3970    for ac_exec_ext in '' $ac_executable_extensions; do
3971  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3972    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3973       ac_prog_rejected=yes
3974       continue
3975     fi
3976    ac_cv_prog_CC="cc"
3977    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3978    break 2
3979  fi
3980done
3981  done
3982IFS=$as_save_IFS
3983
3984if test $ac_prog_rejected = yes; then
3985  # We found a bogon in the path, so make sure we never use it.
3986  set dummy $ac_cv_prog_CC
3987  shift
3988  if test $# != 0; then
3989    # We chose a different compiler from the bogus one.
3990    # However, it has the same basename, so the bogon will be chosen
3991    # first if we set CC to just the basename; use the full file name.
3992    shift
3993    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3994  fi
3995fi
3996fi
3997fi
3998CC=$ac_cv_prog_CC
3999if test -n "$CC"; then
4000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4001printf "%s\n" "$CC" >&6; }
4002else
4003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004printf "%s\n" "no" >&6; }
4005fi
4006
4007
4008fi
4009if test -z "$CC"; then
4010  if test -n "$ac_tool_prefix"; then
4011  for ac_prog in cl.exe
4012  do
4013    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4014set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016printf %s "checking for $ac_word... " >&6; }
4017if test ${ac_cv_prog_CC+y}
4018then :
4019  printf %s "(cached) " >&6
4020else $as_nop
4021  if test -n "$CC"; then
4022  ac_cv_prog_CC="$CC" # Let the user override the test.
4023else
4024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025for as_dir in $PATH
4026do
4027  IFS=$as_save_IFS
4028  case $as_dir in #(((
4029    '') as_dir=./ ;;
4030    */) ;;
4031    *) as_dir=$as_dir/ ;;
4032  esac
4033    for ac_exec_ext in '' $ac_executable_extensions; do
4034  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4035    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4036    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4037    break 2
4038  fi
4039done
4040  done
4041IFS=$as_save_IFS
4042
4043fi
4044fi
4045CC=$ac_cv_prog_CC
4046if test -n "$CC"; then
4047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4048printf "%s\n" "$CC" >&6; }
4049else
4050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051printf "%s\n" "no" >&6; }
4052fi
4053
4054
4055    test -n "$CC" && break
4056  done
4057fi
4058if test -z "$CC"; then
4059  ac_ct_CC=$CC
4060  for ac_prog in cl.exe
4061do
4062  # Extract the first word of "$ac_prog", so it can be a program name with args.
4063set dummy $ac_prog; ac_word=$2
4064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065printf %s "checking for $ac_word... " >&6; }
4066if test ${ac_cv_prog_ac_ct_CC+y}
4067then :
4068  printf %s "(cached) " >&6
4069else $as_nop
4070  if test -n "$ac_ct_CC"; then
4071  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4072else
4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076  IFS=$as_save_IFS
4077  case $as_dir in #(((
4078    '') as_dir=./ ;;
4079    */) ;;
4080    *) as_dir=$as_dir/ ;;
4081  esac
4082    for ac_exec_ext in '' $ac_executable_extensions; do
4083  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4084    ac_cv_prog_ac_ct_CC="$ac_prog"
4085    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4086    break 2
4087  fi
4088done
4089  done
4090IFS=$as_save_IFS
4091
4092fi
4093fi
4094ac_ct_CC=$ac_cv_prog_ac_ct_CC
4095if test -n "$ac_ct_CC"; then
4096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4097printf "%s\n" "$ac_ct_CC" >&6; }
4098else
4099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100printf "%s\n" "no" >&6; }
4101fi
4102
4103
4104  test -n "$ac_ct_CC" && break
4105done
4106
4107  if test "x$ac_ct_CC" = x; then
4108    CC=""
4109  else
4110    case $cross_compiling:$ac_tool_warned in
4111yes:)
4112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4113printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4114ac_tool_warned=yes ;;
4115esac
4116    CC=$ac_ct_CC
4117  fi
4118fi
4119
4120fi
4121if test -z "$CC"; then
4122  if test -n "$ac_tool_prefix"; then
4123  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4124set dummy ${ac_tool_prefix}clang; ac_word=$2
4125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126printf %s "checking for $ac_word... " >&6; }
4127if test ${ac_cv_prog_CC+y}
4128then :
4129  printf %s "(cached) " >&6
4130else $as_nop
4131  if test -n "$CC"; then
4132  ac_cv_prog_CC="$CC" # Let the user override the test.
4133else
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137  IFS=$as_save_IFS
4138  case $as_dir in #(((
4139    '') as_dir=./ ;;
4140    */) ;;
4141    *) as_dir=$as_dir/ ;;
4142  esac
4143    for ac_exec_ext in '' $ac_executable_extensions; do
4144  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4145    ac_cv_prog_CC="${ac_tool_prefix}clang"
4146    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4147    break 2
4148  fi
4149done
4150  done
4151IFS=$as_save_IFS
4152
4153fi
4154fi
4155CC=$ac_cv_prog_CC
4156if test -n "$CC"; then
4157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4158printf "%s\n" "$CC" >&6; }
4159else
4160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161printf "%s\n" "no" >&6; }
4162fi
4163
4164
4165fi
4166if test -z "$ac_cv_prog_CC"; then
4167  ac_ct_CC=$CC
4168  # Extract the first word of "clang", so it can be a program name with args.
4169set dummy clang; ac_word=$2
4170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171printf %s "checking for $ac_word... " >&6; }
4172if test ${ac_cv_prog_ac_ct_CC+y}
4173then :
4174  printf %s "(cached) " >&6
4175else $as_nop
4176  if test -n "$ac_ct_CC"; then
4177  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4178else
4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH
4181do
4182  IFS=$as_save_IFS
4183  case $as_dir in #(((
4184    '') as_dir=./ ;;
4185    */) ;;
4186    *) as_dir=$as_dir/ ;;
4187  esac
4188    for ac_exec_ext in '' $ac_executable_extensions; do
4189  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4190    ac_cv_prog_ac_ct_CC="clang"
4191    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4192    break 2
4193  fi
4194done
4195  done
4196IFS=$as_save_IFS
4197
4198fi
4199fi
4200ac_ct_CC=$ac_cv_prog_ac_ct_CC
4201if test -n "$ac_ct_CC"; then
4202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4203printf "%s\n" "$ac_ct_CC" >&6; }
4204else
4205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206printf "%s\n" "no" >&6; }
4207fi
4208
4209  if test "x$ac_ct_CC" = x; then
4210    CC=""
4211  else
4212    case $cross_compiling:$ac_tool_warned in
4213yes:)
4214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4215printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4216ac_tool_warned=yes ;;
4217esac
4218    CC=$ac_ct_CC
4219  fi
4220else
4221  CC="$ac_cv_prog_CC"
4222fi
4223
4224fi
4225
4226
4227test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4229as_fn_error $? "no acceptable C compiler found in \$PATH
4230See \`config.log' for more details" "$LINENO" 5; }
4231
4232# Provide some information about the compiler.
4233printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4234set X $ac_compile
4235ac_compiler=$2
4236for ac_option in --version -v -V -qversion -version; do
4237  { { ac_try="$ac_compiler $ac_option >&5"
4238case "(($ac_try" in
4239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240  *) ac_try_echo=$ac_try;;
4241esac
4242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243printf "%s\n" "$ac_try_echo"; } >&5
4244  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4245  ac_status=$?
4246  if test -s conftest.err; then
4247    sed '10a\
4248... rest of stderr output deleted ...
4249         10q' conftest.err >conftest.er1
4250    cat conftest.er1 >&5
4251  fi
4252  rm -f conftest.er1 conftest.err
4253  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254  test $ac_status = 0; }
4255done
4256
4257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h.  */
4259
4260int
4261main (void)
4262{
4263
4264  ;
4265  return 0;
4266}
4267_ACEOF
4268ac_clean_files_save=$ac_clean_files
4269ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4270# Try to create an executable without -o first, disregard a.out.
4271# It will help us diagnose broken compilers, and finding out an intuition
4272# of exeext.
4273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4274printf %s "checking whether the C compiler works... " >&6; }
4275ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4276
4277# The possible output files:
4278ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4279
4280ac_rmfiles=
4281for ac_file in $ac_files
4282do
4283  case $ac_file in
4284    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4285    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4286  esac
4287done
4288rm -f $ac_rmfiles
4289
4290if { { ac_try="$ac_link_default"
4291case "(($ac_try" in
4292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293  *) ac_try_echo=$ac_try;;
4294esac
4295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296printf "%s\n" "$ac_try_echo"; } >&5
4297  (eval "$ac_link_default") 2>&5
4298  ac_status=$?
4299  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300  test $ac_status = 0; }
4301then :
4302  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4303# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4304# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4305# so that the user can short-circuit this test for compilers unknown to
4306# Autoconf.
4307for ac_file in $ac_files ''
4308do
4309  test -f "$ac_file" || continue
4310  case $ac_file in
4311    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4312	;;
4313    [ab].out )
4314	# We found the default executable, but exeext='' is most
4315	# certainly right.
4316	break;;
4317    *.* )
4318	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4319	then :; else
4320	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4321	fi
4322	# We set ac_cv_exeext here because the later test for it is not
4323	# safe: cross compilers may not add the suffix if given an `-o'
4324	# argument, so we may need to know it at that point already.
4325	# Even if this section looks crufty: it has the advantage of
4326	# actually working.
4327	break;;
4328    * )
4329	break;;
4330  esac
4331done
4332test "$ac_cv_exeext" = no && ac_cv_exeext=
4333
4334else $as_nop
4335  ac_file=''
4336fi
4337if test -z "$ac_file"
4338then :
4339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340printf "%s\n" "no" >&6; }
4341printf "%s\n" "$as_me: failed program was:" >&5
4342sed 's/^/| /' conftest.$ac_ext >&5
4343
4344{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4345printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4346as_fn_error 77 "C compiler cannot create executables
4347See \`config.log' for more details" "$LINENO" 5; }
4348else $as_nop
4349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4350printf "%s\n" "yes" >&6; }
4351fi
4352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4353printf %s "checking for C compiler default output file name... " >&6; }
4354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4355printf "%s\n" "$ac_file" >&6; }
4356ac_exeext=$ac_cv_exeext
4357
4358rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4359ac_clean_files=$ac_clean_files_save
4360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4361printf %s "checking for suffix of executables... " >&6; }
4362if { { ac_try="$ac_link"
4363case "(($ac_try" in
4364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365  *) ac_try_echo=$ac_try;;
4366esac
4367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368printf "%s\n" "$ac_try_echo"; } >&5
4369  (eval "$ac_link") 2>&5
4370  ac_status=$?
4371  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372  test $ac_status = 0; }
4373then :
4374  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4375# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4376# work properly (i.e., refer to `conftest.exe'), while it won't with
4377# `rm'.
4378for ac_file in conftest.exe conftest conftest.*; do
4379  test -f "$ac_file" || continue
4380  case $ac_file in
4381    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4382    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4383	  break;;
4384    * ) break;;
4385  esac
4386done
4387else $as_nop
4388  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4389printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4390as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4391See \`config.log' for more details" "$LINENO" 5; }
4392fi
4393rm -f conftest conftest$ac_cv_exeext
4394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4395printf "%s\n" "$ac_cv_exeext" >&6; }
4396
4397rm -f conftest.$ac_ext
4398EXEEXT=$ac_cv_exeext
4399ac_exeext=$EXEEXT
4400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h.  */
4402#include <stdio.h>
4403int
4404main (void)
4405{
4406FILE *f = fopen ("conftest.out", "w");
4407 return ferror (f) || fclose (f) != 0;
4408
4409  ;
4410  return 0;
4411}
4412_ACEOF
4413ac_clean_files="$ac_clean_files conftest.out"
4414# Check that the compiler produces executables we can run.  If not, either
4415# the compiler is broken, or we cross compile.
4416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4417printf %s "checking whether we are cross compiling... " >&6; }
4418if test "$cross_compiling" != yes; then
4419  { { ac_try="$ac_link"
4420case "(($ac_try" in
4421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422  *) ac_try_echo=$ac_try;;
4423esac
4424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425printf "%s\n" "$ac_try_echo"; } >&5
4426  (eval "$ac_link") 2>&5
4427  ac_status=$?
4428  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429  test $ac_status = 0; }
4430  if { ac_try='./conftest$ac_cv_exeext'
4431  { { case "(($ac_try" in
4432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433  *) ac_try_echo=$ac_try;;
4434esac
4435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436printf "%s\n" "$ac_try_echo"; } >&5
4437  (eval "$ac_try") 2>&5
4438  ac_status=$?
4439  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4440  test $ac_status = 0; }; }; then
4441    cross_compiling=no
4442  else
4443    if test "$cross_compiling" = maybe; then
4444	cross_compiling=yes
4445    else
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 77 "cannot run C compiled programs.
4449If you meant to cross compile, use \`--host'.
4450See \`config.log' for more details" "$LINENO" 5; }
4451    fi
4452  fi
4453fi
4454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4455printf "%s\n" "$cross_compiling" >&6; }
4456
4457rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4458ac_clean_files=$ac_clean_files_save
4459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4460printf %s "checking for suffix of object files... " >&6; }
4461if test ${ac_cv_objext+y}
4462then :
4463  printf %s "(cached) " >&6
4464else $as_nop
4465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466/* end confdefs.h.  */
4467
4468int
4469main (void)
4470{
4471
4472  ;
4473  return 0;
4474}
4475_ACEOF
4476rm -f conftest.o conftest.obj
4477if { { ac_try="$ac_compile"
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_compile") 2>&5
4485  ac_status=$?
4486  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487  test $ac_status = 0; }
4488then :
4489  for ac_file in conftest.o conftest.obj conftest.*; do
4490  test -f "$ac_file" || continue;
4491  case $ac_file in
4492    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4493    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4494       break;;
4495  esac
4496done
4497else $as_nop
4498  printf "%s\n" "$as_me: failed program was:" >&5
4499sed 's/^/| /' conftest.$ac_ext >&5
4500
4501{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4503as_fn_error $? "cannot compute suffix of object files: cannot compile
4504See \`config.log' for more details" "$LINENO" 5; }
4505fi
4506rm -f conftest.$ac_cv_objext conftest.$ac_ext
4507fi
4508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4509printf "%s\n" "$ac_cv_objext" >&6; }
4510OBJEXT=$ac_cv_objext
4511ac_objext=$OBJEXT
4512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4513printf %s "checking whether the compiler supports GNU C... " >&6; }
4514if test ${ac_cv_c_compiler_gnu+y}
4515then :
4516  printf %s "(cached) " >&6
4517else $as_nop
4518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519/* end confdefs.h.  */
4520
4521int
4522main (void)
4523{
4524#ifndef __GNUC__
4525       choke me
4526#endif
4527
4528  ;
4529  return 0;
4530}
4531_ACEOF
4532if ac_fn_c_try_compile "$LINENO"
4533then :
4534  ac_compiler_gnu=yes
4535else $as_nop
4536  ac_compiler_gnu=no
4537fi
4538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4539ac_cv_c_compiler_gnu=$ac_compiler_gnu
4540
4541fi
4542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4543printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4544ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546if test $ac_compiler_gnu = yes; then
4547  GCC=yes
4548else
4549  GCC=
4550fi
4551ac_test_CFLAGS=${CFLAGS+y}
4552ac_save_CFLAGS=$CFLAGS
4553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4554printf %s "checking whether $CC accepts -g... " >&6; }
4555if test ${ac_cv_prog_cc_g+y}
4556then :
4557  printf %s "(cached) " >&6
4558else $as_nop
4559  ac_save_c_werror_flag=$ac_c_werror_flag
4560   ac_c_werror_flag=yes
4561   ac_cv_prog_cc_g=no
4562   CFLAGS="-g"
4563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564/* end confdefs.h.  */
4565
4566int
4567main (void)
4568{
4569
4570  ;
4571  return 0;
4572}
4573_ACEOF
4574if ac_fn_c_try_compile "$LINENO"
4575then :
4576  ac_cv_prog_cc_g=yes
4577else $as_nop
4578  CFLAGS=""
4579      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580/* end confdefs.h.  */
4581
4582int
4583main (void)
4584{
4585
4586  ;
4587  return 0;
4588}
4589_ACEOF
4590if ac_fn_c_try_compile "$LINENO"
4591then :
4592
4593else $as_nop
4594  ac_c_werror_flag=$ac_save_c_werror_flag
4595	 CFLAGS="-g"
4596	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h.  */
4598
4599int
4600main (void)
4601{
4602
4603  ;
4604  return 0;
4605}
4606_ACEOF
4607if ac_fn_c_try_compile "$LINENO"
4608then :
4609  ac_cv_prog_cc_g=yes
4610fi
4611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4612fi
4613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4614fi
4615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4616   ac_c_werror_flag=$ac_save_c_werror_flag
4617fi
4618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4619printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4620if test $ac_test_CFLAGS; then
4621  CFLAGS=$ac_save_CFLAGS
4622elif test $ac_cv_prog_cc_g = yes; then
4623  if test "$GCC" = yes; then
4624    CFLAGS="-g -O2"
4625  else
4626    CFLAGS="-g"
4627  fi
4628else
4629  if test "$GCC" = yes; then
4630    CFLAGS="-O2"
4631  else
4632    CFLAGS=
4633  fi
4634fi
4635ac_prog_cc_stdc=no
4636if test x$ac_prog_cc_stdc = xno
4637then :
4638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4639printf %s "checking for $CC option to enable C11 features... " >&6; }
4640if test ${ac_cv_prog_cc_c11+y}
4641then :
4642  printf %s "(cached) " >&6
4643else $as_nop
4644  ac_cv_prog_cc_c11=no
4645ac_save_CC=$CC
4646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647/* end confdefs.h.  */
4648$ac_c_conftest_c11_program
4649_ACEOF
4650for ac_arg in '' -std=gnu11
4651do
4652  CC="$ac_save_CC $ac_arg"
4653  if ac_fn_c_try_compile "$LINENO"
4654then :
4655  ac_cv_prog_cc_c11=$ac_arg
4656fi
4657rm -f core conftest.err conftest.$ac_objext conftest.beam
4658  test "x$ac_cv_prog_cc_c11" != "xno" && break
4659done
4660rm -f conftest.$ac_ext
4661CC=$ac_save_CC
4662fi
4663
4664if test "x$ac_cv_prog_cc_c11" = xno
4665then :
4666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4667printf "%s\n" "unsupported" >&6; }
4668else $as_nop
4669  if test "x$ac_cv_prog_cc_c11" = x
4670then :
4671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4672printf "%s\n" "none needed" >&6; }
4673else $as_nop
4674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4675printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4676     CC="$CC $ac_cv_prog_cc_c11"
4677fi
4678  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4679  ac_prog_cc_stdc=c11
4680fi
4681fi
4682if test x$ac_prog_cc_stdc = xno
4683then :
4684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4685printf %s "checking for $CC option to enable C99 features... " >&6; }
4686if test ${ac_cv_prog_cc_c99+y}
4687then :
4688  printf %s "(cached) " >&6
4689else $as_nop
4690  ac_cv_prog_cc_c99=no
4691ac_save_CC=$CC
4692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693/* end confdefs.h.  */
4694$ac_c_conftest_c99_program
4695_ACEOF
4696for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4697do
4698  CC="$ac_save_CC $ac_arg"
4699  if ac_fn_c_try_compile "$LINENO"
4700then :
4701  ac_cv_prog_cc_c99=$ac_arg
4702fi
4703rm -f core conftest.err conftest.$ac_objext conftest.beam
4704  test "x$ac_cv_prog_cc_c99" != "xno" && break
4705done
4706rm -f conftest.$ac_ext
4707CC=$ac_save_CC
4708fi
4709
4710if test "x$ac_cv_prog_cc_c99" = xno
4711then :
4712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4713printf "%s\n" "unsupported" >&6; }
4714else $as_nop
4715  if test "x$ac_cv_prog_cc_c99" = x
4716then :
4717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4718printf "%s\n" "none needed" >&6; }
4719else $as_nop
4720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4721printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4722     CC="$CC $ac_cv_prog_cc_c99"
4723fi
4724  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4725  ac_prog_cc_stdc=c99
4726fi
4727fi
4728if test x$ac_prog_cc_stdc = xno
4729then :
4730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4731printf %s "checking for $CC option to enable C89 features... " >&6; }
4732if test ${ac_cv_prog_cc_c89+y}
4733then :
4734  printf %s "(cached) " >&6
4735else $as_nop
4736  ac_cv_prog_cc_c89=no
4737ac_save_CC=$CC
4738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h.  */
4740$ac_c_conftest_c89_program
4741_ACEOF
4742for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4743do
4744  CC="$ac_save_CC $ac_arg"
4745  if ac_fn_c_try_compile "$LINENO"
4746then :
4747  ac_cv_prog_cc_c89=$ac_arg
4748fi
4749rm -f core conftest.err conftest.$ac_objext conftest.beam
4750  test "x$ac_cv_prog_cc_c89" != "xno" && break
4751done
4752rm -f conftest.$ac_ext
4753CC=$ac_save_CC
4754fi
4755
4756if test "x$ac_cv_prog_cc_c89" = xno
4757then :
4758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4759printf "%s\n" "unsupported" >&6; }
4760else $as_nop
4761  if test "x$ac_cv_prog_cc_c89" = x
4762then :
4763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4764printf "%s\n" "none needed" >&6; }
4765else $as_nop
4766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4767printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4768     CC="$CC $ac_cv_prog_cc_c89"
4769fi
4770  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4771  ac_prog_cc_stdc=c89
4772fi
4773fi
4774
4775ac_ext=c
4776ac_cpp='$CPP $CPPFLAGS'
4777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779ac_compiler_gnu=$ac_cv_c_compiler_gnu
4780
4781
4782  ac_ext=c
4783ac_cpp='$CPP $CPPFLAGS'
4784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4788printf %s "checking whether $CC understands -c and -o together... " >&6; }
4789if test ${am_cv_prog_cc_c_o+y}
4790then :
4791  printf %s "(cached) " >&6
4792else $as_nop
4793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h.  */
4795
4796int
4797main (void)
4798{
4799
4800  ;
4801  return 0;
4802}
4803_ACEOF
4804  # Make sure it works both with $CC and with simple cc.
4805  # Following AC_PROG_CC_C_O, we do the test twice because some
4806  # compilers refuse to overwrite an existing .o file with -o,
4807  # though they will create one.
4808  am_cv_prog_cc_c_o=yes
4809  for am_i in 1 2; do
4810    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4811   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4812   ac_status=$?
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); } \
4815         && test -f conftest2.$ac_objext; then
4816      : OK
4817    else
4818      am_cv_prog_cc_c_o=no
4819      break
4820    fi
4821  done
4822  rm -f core conftest*
4823  unset am_i
4824fi
4825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4826printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4827if test "$am_cv_prog_cc_c_o" != yes; then
4828   # Losing compiler, so override with the script.
4829   # FIXME: It is wrong to rewrite CC.
4830   # But if we don't then we get into trouble of one sort or another.
4831   # A longer-term fix would be to have automake use am__CC in this case,
4832   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4833   CC="$am_aux_dir/compile $CC"
4834fi
4835ac_ext=c
4836ac_cpp='$CPP $CPPFLAGS'
4837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840
4841DEPDIR="${am__leading_dot}deps"
4842
4843ac_config_commands="$ac_config_commands depfiles"
4844
4845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4846printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4847cat > confinc.mk << 'END'
4848am__doit:
4849	@echo this is the am__doit target >confinc.out
4850.PHONY: am__doit
4851END
4852am__include="#"
4853am__quote=
4854# BSD make does it like this.
4855echo '.include "confinc.mk" # ignored' > confmf.BSD
4856# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4857echo 'include confinc.mk # ignored' > confmf.GNU
4858_am_result=no
4859for s in GNU BSD; do
4860  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4861   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4862   ac_status=$?
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); }
4865  case $?:`cat confinc.out 2>/dev/null` in #(
4866  '0:this is the am__doit target') :
4867    case $s in #(
4868  BSD) :
4869    am__include='.include' am__quote='"' ;; #(
4870  *) :
4871    am__include='include' am__quote='' ;;
4872esac ;; #(
4873  *) :
4874     ;;
4875esac
4876  if test "$am__include" != "#"; then
4877    _am_result="yes ($s style)"
4878    break
4879  fi
4880done
4881rm -f confinc.* confmf.*
4882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4883printf "%s\n" "${_am_result}" >&6; }
4884
4885# Check whether --enable-dependency-tracking was given.
4886if test ${enable_dependency_tracking+y}
4887then :
4888  enableval=$enable_dependency_tracking;
4889fi
4890
4891if test "x$enable_dependency_tracking" != xno; then
4892  am_depcomp="$ac_aux_dir/depcomp"
4893  AMDEPBACKSLASH='\'
4894  am__nodep='_no'
4895fi
4896 if test "x$enable_dependency_tracking" != xno; then
4897  AMDEP_TRUE=
4898  AMDEP_FALSE='#'
4899else
4900  AMDEP_TRUE='#'
4901  AMDEP_FALSE=
4902fi
4903
4904
4905
4906depcc="$CC"   am_compiler_list=
4907
4908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4909printf %s "checking dependency style of $depcc... " >&6; }
4910if test ${am_cv_CC_dependencies_compiler_type+y}
4911then :
4912  printf %s "(cached) " >&6
4913else $as_nop
4914  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4915  # We make a subdir and do the tests there.  Otherwise we can end up
4916  # making bogus files that we don't know about and never remove.  For
4917  # instance it was reported that on HP-UX the gcc test will end up
4918  # making a dummy file named 'D' -- because '-MD' means "put the output
4919  # in D".
4920  rm -rf conftest.dir
4921  mkdir conftest.dir
4922  # Copy depcomp to subdir because otherwise we won't find it if we're
4923  # using a relative directory.
4924  cp "$am_depcomp" conftest.dir
4925  cd conftest.dir
4926  # We will build objects and dependencies in a subdirectory because
4927  # it helps to detect inapplicable dependency modes.  For instance
4928  # both Tru64's cc and ICC support -MD to output dependencies as a
4929  # side effect of compilation, but ICC will put the dependencies in
4930  # the current directory while Tru64 will put them in the object
4931  # directory.
4932  mkdir sub
4933
4934  am_cv_CC_dependencies_compiler_type=none
4935  if test "$am_compiler_list" = ""; then
4936     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4937  fi
4938  am__universal=false
4939  case " $depcc " in #(
4940     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4941     esac
4942
4943  for depmode in $am_compiler_list; do
4944    # Setup a source with many dependencies, because some compilers
4945    # like to wrap large dependency lists on column 80 (with \), and
4946    # we should not choose a depcomp mode which is confused by this.
4947    #
4948    # We need to recreate these files for each test, as the compiler may
4949    # overwrite some of them when testing with obscure command lines.
4950    # This happens at least with the AIX C compiler.
4951    : > sub/conftest.c
4952    for i in 1 2 3 4 5 6; do
4953      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4954      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4955      # Solaris 10 /bin/sh.
4956      echo '/* dummy */' > sub/conftst$i.h
4957    done
4958    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4959
4960    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4961    # mode.  It turns out that the SunPro C++ compiler does not properly
4962    # handle '-M -o', and we need to detect this.  Also, some Intel
4963    # versions had trouble with output in subdirs.
4964    am__obj=sub/conftest.${OBJEXT-o}
4965    am__minus_obj="-o $am__obj"
4966    case $depmode in
4967    gcc)
4968      # This depmode causes a compiler race in universal mode.
4969      test "$am__universal" = false || continue
4970      ;;
4971    nosideeffect)
4972      # After this tag, mechanisms are not by side-effect, so they'll
4973      # only be used when explicitly requested.
4974      if test "x$enable_dependency_tracking" = xyes; then
4975	continue
4976      else
4977	break
4978      fi
4979      ;;
4980    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4981      # This compiler won't grok '-c -o', but also, the minuso test has
4982      # not run yet.  These depmodes are late enough in the game, and
4983      # so weak that their functioning should not be impacted.
4984      am__obj=conftest.${OBJEXT-o}
4985      am__minus_obj=
4986      ;;
4987    none) break ;;
4988    esac
4989    if depmode=$depmode \
4990       source=sub/conftest.c object=$am__obj \
4991       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4992       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4993         >/dev/null 2>conftest.err &&
4994       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4995       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4996       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4997       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4998      # icc doesn't choke on unknown options, it will just issue warnings
4999      # or remarks (even with -Werror).  So we grep stderr for any message
5000      # that says an option was ignored or not supported.
5001      # When given -MP, icc 7.0 and 7.1 complain thusly:
5002      #   icc: Command line warning: ignoring option '-M'; no argument required
5003      # The diagnosis changed in icc 8.0:
5004      #   icc: Command line remark: option '-MP' not supported
5005      if (grep 'ignoring option' conftest.err ||
5006          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5007        am_cv_CC_dependencies_compiler_type=$depmode
5008        break
5009      fi
5010    fi
5011  done
5012
5013  cd ..
5014  rm -rf conftest.dir
5015else
5016  am_cv_CC_dependencies_compiler_type=none
5017fi
5018
5019fi
5020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5021printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5022CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5023
5024 if
5025  test "x$enable_dependency_tracking" != xno \
5026  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5027  am__fastdepCC_TRUE=
5028  am__fastdepCC_FALSE='#'
5029else
5030  am__fastdepCC_TRUE='#'
5031  am__fastdepCC_FALSE=
5032fi
5033
5034
5035
5036ac_header= ac_cache=
5037for ac_item in $ac_header_c_list
5038do
5039  if test $ac_cache; then
5040    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5041    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5042      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5043    fi
5044    ac_header= ac_cache=
5045  elif test $ac_header; then
5046    ac_cache=$ac_item
5047  else
5048    ac_header=$ac_item
5049  fi
5050done
5051
5052
5053
5054
5055
5056
5057
5058
5059if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5060then :
5061
5062printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5063
5064fi
5065
5066
5067
5068
5069
5070
5071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5072printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5073if test ${ac_cv_safe_to_define___extensions__+y}
5074then :
5075  printf %s "(cached) " >&6
5076else $as_nop
5077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078/* end confdefs.h.  */
5079
5080#         define __EXTENSIONS__ 1
5081          $ac_includes_default
5082int
5083main (void)
5084{
5085
5086  ;
5087  return 0;
5088}
5089_ACEOF
5090if ac_fn_c_try_compile "$LINENO"
5091then :
5092  ac_cv_safe_to_define___extensions__=yes
5093else $as_nop
5094  ac_cv_safe_to_define___extensions__=no
5095fi
5096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5097fi
5098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5099printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5100
5101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5102printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5103if test ${ac_cv_should_define__xopen_source+y}
5104then :
5105  printf %s "(cached) " >&6
5106else $as_nop
5107  ac_cv_should_define__xopen_source=no
5108    if test $ac_cv_header_wchar_h = yes
5109then :
5110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111/* end confdefs.h.  */
5112
5113          #include <wchar.h>
5114          mbstate_t x;
5115int
5116main (void)
5117{
5118
5119  ;
5120  return 0;
5121}
5122_ACEOF
5123if ac_fn_c_try_compile "$LINENO"
5124then :
5125
5126else $as_nop
5127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h.  */
5129
5130            #define _XOPEN_SOURCE 500
5131            #include <wchar.h>
5132            mbstate_t x;
5133int
5134main (void)
5135{
5136
5137  ;
5138  return 0;
5139}
5140_ACEOF
5141if ac_fn_c_try_compile "$LINENO"
5142then :
5143  ac_cv_should_define__xopen_source=yes
5144fi
5145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5146fi
5147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5148fi
5149fi
5150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5151printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5152
5153  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5154
5155  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5156
5157  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5158
5159  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5160
5161  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5162
5163  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5164
5165  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5166
5167  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5168
5169  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5170
5171  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5172
5173  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5174
5175  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5176
5177  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5178
5179  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5180
5181  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5182
5183  if test $ac_cv_header_minix_config_h = yes
5184then :
5185  MINIX=yes
5186    printf "%s\n" "#define _MINIX 1" >>confdefs.h
5187
5188    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5189
5190    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5191
5192else $as_nop
5193  MINIX=
5194fi
5195  if test $ac_cv_safe_to_define___extensions__ = yes
5196then :
5197  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5198
5199fi
5200  if test $ac_cv_should_define__xopen_source = yes
5201then :
5202  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5203
5204fi
5205
5206
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5208printf %s "checking whether byte ordering is bigendian... " >&6; }
5209if test ${ac_cv_c_bigendian+y}
5210then :
5211  printf %s "(cached) " >&6
5212else $as_nop
5213  ac_cv_c_bigendian=unknown
5214    # See if we're dealing with a universal compiler.
5215    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216/* end confdefs.h.  */
5217#ifndef __APPLE_CC__
5218	       not a universal capable compiler
5219	     #endif
5220	     typedef int dummy;
5221
5222_ACEOF
5223if ac_fn_c_try_compile "$LINENO"
5224then :
5225
5226	# Check for potential -arch flags.  It is not universal unless
5227	# there are at least two -arch flags with different values.
5228	ac_arch=
5229	ac_prev=
5230	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5231	 if test -n "$ac_prev"; then
5232	   case $ac_word in
5233	     i?86 | x86_64 | ppc | ppc64)
5234	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5235		 ac_arch=$ac_word
5236	       else
5237		 ac_cv_c_bigendian=universal
5238		 break
5239	       fi
5240	       ;;
5241	   esac
5242	   ac_prev=
5243	 elif test "x$ac_word" = "x-arch"; then
5244	   ac_prev=arch
5245	 fi
5246       done
5247fi
5248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5249    if test $ac_cv_c_bigendian = unknown; then
5250      # See if sys/param.h defines the BYTE_ORDER macro.
5251      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252/* end confdefs.h.  */
5253#include <sys/types.h>
5254	     #include <sys/param.h>
5255
5256int
5257main (void)
5258{
5259#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5260		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5261		     && LITTLE_ENDIAN)
5262	      bogus endian macros
5263	     #endif
5264
5265  ;
5266  return 0;
5267}
5268_ACEOF
5269if ac_fn_c_try_compile "$LINENO"
5270then :
5271  # It does; now see whether it defined to BIG_ENDIAN or not.
5272	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273/* end confdefs.h.  */
5274#include <sys/types.h>
5275		#include <sys/param.h>
5276
5277int
5278main (void)
5279{
5280#if BYTE_ORDER != BIG_ENDIAN
5281		 not big endian
5282		#endif
5283
5284  ;
5285  return 0;
5286}
5287_ACEOF
5288if ac_fn_c_try_compile "$LINENO"
5289then :
5290  ac_cv_c_bigendian=yes
5291else $as_nop
5292  ac_cv_c_bigendian=no
5293fi
5294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5295fi
5296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5297    fi
5298    if test $ac_cv_c_bigendian = unknown; then
5299      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5300      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301/* end confdefs.h.  */
5302#include <limits.h>
5303
5304int
5305main (void)
5306{
5307#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5308	      bogus endian macros
5309	     #endif
5310
5311  ;
5312  return 0;
5313}
5314_ACEOF
5315if ac_fn_c_try_compile "$LINENO"
5316then :
5317  # It does; now see whether it defined to _BIG_ENDIAN or not.
5318	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319/* end confdefs.h.  */
5320#include <limits.h>
5321
5322int
5323main (void)
5324{
5325#ifndef _BIG_ENDIAN
5326		 not big endian
5327		#endif
5328
5329  ;
5330  return 0;
5331}
5332_ACEOF
5333if ac_fn_c_try_compile "$LINENO"
5334then :
5335  ac_cv_c_bigendian=yes
5336else $as_nop
5337  ac_cv_c_bigendian=no
5338fi
5339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5340fi
5341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5342    fi
5343    if test $ac_cv_c_bigendian = unknown; then
5344      # Compile a test program.
5345      if test "$cross_compiling" = yes
5346then :
5347  # Try to guess by grepping values from an object file.
5348	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h.  */
5350unsigned short int ascii_mm[] =
5351		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5352		unsigned short int ascii_ii[] =
5353		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5354		int use_ascii (int i) {
5355		  return ascii_mm[i] + ascii_ii[i];
5356		}
5357		unsigned short int ebcdic_ii[] =
5358		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5359		unsigned short int ebcdic_mm[] =
5360		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5361		int use_ebcdic (int i) {
5362		  return ebcdic_mm[i] + ebcdic_ii[i];
5363		}
5364		extern int foo;
5365
5366int
5367main (void)
5368{
5369return use_ascii (foo) == use_ebcdic (foo);
5370  ;
5371  return 0;
5372}
5373_ACEOF
5374if ac_fn_c_try_compile "$LINENO"
5375then :
5376  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5377	      ac_cv_c_bigendian=yes
5378	    fi
5379	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5380	      if test "$ac_cv_c_bigendian" = unknown; then
5381		ac_cv_c_bigendian=no
5382	      else
5383		# finding both strings is unlikely to happen, but who knows?
5384		ac_cv_c_bigendian=unknown
5385	      fi
5386	    fi
5387fi
5388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5389else $as_nop
5390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391/* end confdefs.h.  */
5392$ac_includes_default
5393int
5394main (void)
5395{
5396
5397	     /* Are we little or big endian?  From Harbison&Steele.  */
5398	     union
5399	     {
5400	       long int l;
5401	       char c[sizeof (long int)];
5402	     } u;
5403	     u.l = 1;
5404	     return u.c[sizeof (long int) - 1] == 1;
5405
5406  ;
5407  return 0;
5408}
5409_ACEOF
5410if ac_fn_c_try_run "$LINENO"
5411then :
5412  ac_cv_c_bigendian=no
5413else $as_nop
5414  ac_cv_c_bigendian=yes
5415fi
5416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5417  conftest.$ac_objext conftest.beam conftest.$ac_ext
5418fi
5419
5420    fi
5421fi
5422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5423printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5424 case $ac_cv_c_bigendian in #(
5425   yes)
5426     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5427;; #(
5428   no)
5429      ;; #(
5430   universal)
5431
5432printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5433
5434     ;; #(
5435   *)
5436     as_fn_error $? "unknown endianness
5437 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5438 esac
5439
5440
5441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5442printf %s "checking whether ln -s works... " >&6; }
5443LN_S=$as_ln_s
5444if test "$LN_S" = "ln -s"; then
5445  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5446printf "%s\n" "yes" >&6; }
5447else
5448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5449printf "%s\n" "no, using $LN_S" >&6; }
5450fi
5451
5452case `pwd` in
5453  *\ * | *\	*)
5454    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5455printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5456esac
5457
5458
5459
5460macro_version='2.4.6'
5461macro_revision='2.4.6'
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476ltmain=$ac_aux_dir/ltmain.sh
5477
5478# Backslashify metacharacters that are still active within
5479# double-quoted strings.
5480sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5481
5482# Same as above, but do not quote variable references.
5483double_quote_subst='s/\(["`\\]\)/\\\1/g'
5484
5485# Sed substitution to delay expansion of an escaped shell variable in a
5486# double_quote_subst'ed string.
5487delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5488
5489# Sed substitution to delay expansion of an escaped single quote.
5490delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5491
5492# Sed substitution to avoid accidental globbing in evaled expressions
5493no_glob_subst='s/\*/\\\*/g'
5494
5495ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5496ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5497ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5498
5499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5500printf %s "checking how to print strings... " >&6; }
5501# Test print first, because it will be a builtin if present.
5502if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5503   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5504  ECHO='print -r --'
5505elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5506  ECHO='printf %s\n'
5507else
5508  # Use this function as a fallback that always works.
5509  func_fallback_echo ()
5510  {
5511    eval 'cat <<_LTECHO_EOF
5512$1
5513_LTECHO_EOF'
5514  }
5515  ECHO='func_fallback_echo'
5516fi
5517
5518# func_echo_all arg...
5519# Invoke $ECHO with all args, space-separated.
5520func_echo_all ()
5521{
5522    $ECHO ""
5523}
5524
5525case $ECHO in
5526  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5527printf "%s\n" "printf" >&6; } ;;
5528  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5529printf "%s\n" "print -r" >&6; } ;;
5530  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5531printf "%s\n" "cat" >&6; } ;;
5532esac
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5548printf %s "checking for a sed that does not truncate output... " >&6; }
5549if test ${ac_cv_path_SED+y}
5550then :
5551  printf %s "(cached) " >&6
5552else $as_nop
5553            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5554     for ac_i in 1 2 3 4 5 6 7; do
5555       ac_script="$ac_script$as_nl$ac_script"
5556     done
5557     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5558     { ac_script=; unset ac_script;}
5559     if test -z "$SED"; then
5560  ac_path_SED_found=false
5561  # Loop through the user's path and test for each of PROGNAME-LIST
5562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565  IFS=$as_save_IFS
5566  case $as_dir in #(((
5567    '') as_dir=./ ;;
5568    */) ;;
5569    *) as_dir=$as_dir/ ;;
5570  esac
5571    for ac_prog in sed gsed
5572   do
5573    for ac_exec_ext in '' $ac_executable_extensions; do
5574      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5575      as_fn_executable_p "$ac_path_SED" || continue
5576# Check for GNU ac_path_SED and select it if it is found.
5577  # Check for GNU $ac_path_SED
5578case `"$ac_path_SED" --version 2>&1` in
5579*GNU*)
5580  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5581*)
5582  ac_count=0
5583  printf %s 0123456789 >"conftest.in"
5584  while :
5585  do
5586    cat "conftest.in" "conftest.in" >"conftest.tmp"
5587    mv "conftest.tmp" "conftest.in"
5588    cp "conftest.in" "conftest.nl"
5589    printf "%s\n" '' >> "conftest.nl"
5590    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5591    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5592    as_fn_arith $ac_count + 1 && ac_count=$as_val
5593    if test $ac_count -gt ${ac_path_SED_max-0}; then
5594      # Best one so far, save it but keep looking for a better one
5595      ac_cv_path_SED="$ac_path_SED"
5596      ac_path_SED_max=$ac_count
5597    fi
5598    # 10*(2^10) chars as input seems more than enough
5599    test $ac_count -gt 10 && break
5600  done
5601  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5602esac
5603
5604      $ac_path_SED_found && break 3
5605    done
5606  done
5607  done
5608IFS=$as_save_IFS
5609  if test -z "$ac_cv_path_SED"; then
5610    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5611  fi
5612else
5613  ac_cv_path_SED=$SED
5614fi
5615
5616fi
5617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5618printf "%s\n" "$ac_cv_path_SED" >&6; }
5619 SED="$ac_cv_path_SED"
5620  rm -f conftest.sed
5621
5622test -z "$SED" && SED=sed
5623Xsed="$SED -e 1s/^X//"
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5636printf %s "checking for grep that handles long lines and -e... " >&6; }
5637if test ${ac_cv_path_GREP+y}
5638then :
5639  printf %s "(cached) " >&6
5640else $as_nop
5641  if test -z "$GREP"; then
5642  ac_path_GREP_found=false
5643  # Loop through the user's path and test for each of PROGNAME-LIST
5644  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5646do
5647  IFS=$as_save_IFS
5648  case $as_dir in #(((
5649    '') as_dir=./ ;;
5650    */) ;;
5651    *) as_dir=$as_dir/ ;;
5652  esac
5653    for ac_prog in grep ggrep
5654   do
5655    for ac_exec_ext in '' $ac_executable_extensions; do
5656      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5657      as_fn_executable_p "$ac_path_GREP" || continue
5658# Check for GNU ac_path_GREP and select it if it is found.
5659  # Check for GNU $ac_path_GREP
5660case `"$ac_path_GREP" --version 2>&1` in
5661*GNU*)
5662  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5663*)
5664  ac_count=0
5665  printf %s 0123456789 >"conftest.in"
5666  while :
5667  do
5668    cat "conftest.in" "conftest.in" >"conftest.tmp"
5669    mv "conftest.tmp" "conftest.in"
5670    cp "conftest.in" "conftest.nl"
5671    printf "%s\n" 'GREP' >> "conftest.nl"
5672    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5673    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5674    as_fn_arith $ac_count + 1 && ac_count=$as_val
5675    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5676      # Best one so far, save it but keep looking for a better one
5677      ac_cv_path_GREP="$ac_path_GREP"
5678      ac_path_GREP_max=$ac_count
5679    fi
5680    # 10*(2^10) chars as input seems more than enough
5681    test $ac_count -gt 10 && break
5682  done
5683  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5684esac
5685
5686      $ac_path_GREP_found && break 3
5687    done
5688  done
5689  done
5690IFS=$as_save_IFS
5691  if test -z "$ac_cv_path_GREP"; then
5692    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5693  fi
5694else
5695  ac_cv_path_GREP=$GREP
5696fi
5697
5698fi
5699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5700printf "%s\n" "$ac_cv_path_GREP" >&6; }
5701 GREP="$ac_cv_path_GREP"
5702
5703
5704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5705printf %s "checking for egrep... " >&6; }
5706if test ${ac_cv_path_EGREP+y}
5707then :
5708  printf %s "(cached) " >&6
5709else $as_nop
5710  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5711   then ac_cv_path_EGREP="$GREP -E"
5712   else
5713     if test -z "$EGREP"; then
5714  ac_path_EGREP_found=false
5715  # Loop through the user's path and test for each of PROGNAME-LIST
5716  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5718do
5719  IFS=$as_save_IFS
5720  case $as_dir in #(((
5721    '') as_dir=./ ;;
5722    */) ;;
5723    *) as_dir=$as_dir/ ;;
5724  esac
5725    for ac_prog in egrep
5726   do
5727    for ac_exec_ext in '' $ac_executable_extensions; do
5728      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5729      as_fn_executable_p "$ac_path_EGREP" || continue
5730# Check for GNU ac_path_EGREP and select it if it is found.
5731  # Check for GNU $ac_path_EGREP
5732case `"$ac_path_EGREP" --version 2>&1` in
5733*GNU*)
5734  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5735*)
5736  ac_count=0
5737  printf %s 0123456789 >"conftest.in"
5738  while :
5739  do
5740    cat "conftest.in" "conftest.in" >"conftest.tmp"
5741    mv "conftest.tmp" "conftest.in"
5742    cp "conftest.in" "conftest.nl"
5743    printf "%s\n" 'EGREP' >> "conftest.nl"
5744    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5745    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5746    as_fn_arith $ac_count + 1 && ac_count=$as_val
5747    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5748      # Best one so far, save it but keep looking for a better one
5749      ac_cv_path_EGREP="$ac_path_EGREP"
5750      ac_path_EGREP_max=$ac_count
5751    fi
5752    # 10*(2^10) chars as input seems more than enough
5753    test $ac_count -gt 10 && break
5754  done
5755  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5756esac
5757
5758      $ac_path_EGREP_found && break 3
5759    done
5760  done
5761  done
5762IFS=$as_save_IFS
5763  if test -z "$ac_cv_path_EGREP"; then
5764    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5765  fi
5766else
5767  ac_cv_path_EGREP=$EGREP
5768fi
5769
5770   fi
5771fi
5772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5773printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5774 EGREP="$ac_cv_path_EGREP"
5775
5776
5777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5778printf %s "checking for fgrep... " >&6; }
5779if test ${ac_cv_path_FGREP+y}
5780then :
5781  printf %s "(cached) " >&6
5782else $as_nop
5783  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5784   then ac_cv_path_FGREP="$GREP -F"
5785   else
5786     if test -z "$FGREP"; then
5787  ac_path_FGREP_found=false
5788  # Loop through the user's path and test for each of PROGNAME-LIST
5789  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5791do
5792  IFS=$as_save_IFS
5793  case $as_dir in #(((
5794    '') as_dir=./ ;;
5795    */) ;;
5796    *) as_dir=$as_dir/ ;;
5797  esac
5798    for ac_prog in fgrep
5799   do
5800    for ac_exec_ext in '' $ac_executable_extensions; do
5801      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5802      as_fn_executable_p "$ac_path_FGREP" || continue
5803# Check for GNU ac_path_FGREP and select it if it is found.
5804  # Check for GNU $ac_path_FGREP
5805case `"$ac_path_FGREP" --version 2>&1` in
5806*GNU*)
5807  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5808*)
5809  ac_count=0
5810  printf %s 0123456789 >"conftest.in"
5811  while :
5812  do
5813    cat "conftest.in" "conftest.in" >"conftest.tmp"
5814    mv "conftest.tmp" "conftest.in"
5815    cp "conftest.in" "conftest.nl"
5816    printf "%s\n" 'FGREP' >> "conftest.nl"
5817    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5818    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5819    as_fn_arith $ac_count + 1 && ac_count=$as_val
5820    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5821      # Best one so far, save it but keep looking for a better one
5822      ac_cv_path_FGREP="$ac_path_FGREP"
5823      ac_path_FGREP_max=$ac_count
5824    fi
5825    # 10*(2^10) chars as input seems more than enough
5826    test $ac_count -gt 10 && break
5827  done
5828  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5829esac
5830
5831      $ac_path_FGREP_found && break 3
5832    done
5833  done
5834  done
5835IFS=$as_save_IFS
5836  if test -z "$ac_cv_path_FGREP"; then
5837    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5838  fi
5839else
5840  ac_cv_path_FGREP=$FGREP
5841fi
5842
5843   fi
5844fi
5845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5846printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5847 FGREP="$ac_cv_path_FGREP"
5848
5849
5850test -z "$GREP" && GREP=grep
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870# Check whether --with-gnu-ld was given.
5871if test ${with_gnu_ld+y}
5872then :
5873  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5874else $as_nop
5875  with_gnu_ld=no
5876fi
5877
5878ac_prog=ld
5879if test yes = "$GCC"; then
5880  # Check if gcc -print-prog-name=ld gives a path.
5881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5882printf %s "checking for ld used by $CC... " >&6; }
5883  case $host in
5884  *-*-mingw*)
5885    # gcc leaves a trailing carriage return, which upsets mingw
5886    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5887  *)
5888    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5889  esac
5890  case $ac_prog in
5891    # Accept absolute paths.
5892    [\\/]* | ?:[\\/]*)
5893      re_direlt='/[^/][^/]*/\.\./'
5894      # Canonicalize the pathname of ld
5895      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5896      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5897	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5898      done
5899      test -z "$LD" && LD=$ac_prog
5900      ;;
5901  "")
5902    # If it fails, then pretend we aren't using GCC.
5903    ac_prog=ld
5904    ;;
5905  *)
5906    # If it is relative, then search for the first ld in PATH.
5907    with_gnu_ld=unknown
5908    ;;
5909  esac
5910elif test yes = "$with_gnu_ld"; then
5911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5912printf %s "checking for GNU ld... " >&6; }
5913else
5914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5915printf %s "checking for non-GNU ld... " >&6; }
5916fi
5917if test ${lt_cv_path_LD+y}
5918then :
5919  printf %s "(cached) " >&6
5920else $as_nop
5921  if test -z "$LD"; then
5922  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5923  for ac_dir in $PATH; do
5924    IFS=$lt_save_ifs
5925    test -z "$ac_dir" && ac_dir=.
5926    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5927      lt_cv_path_LD=$ac_dir/$ac_prog
5928      # Check to see if the program is GNU ld.  I'd rather use --version,
5929      # but apparently some variants of GNU ld only accept -v.
5930      # Break only if it was the GNU/non-GNU ld that we prefer.
5931      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5932      *GNU* | *'with BFD'*)
5933	test no != "$with_gnu_ld" && break
5934	;;
5935      *)
5936	test yes != "$with_gnu_ld" && break
5937	;;
5938      esac
5939    fi
5940  done
5941  IFS=$lt_save_ifs
5942else
5943  lt_cv_path_LD=$LD # Let the user override the test with a path.
5944fi
5945fi
5946
5947LD=$lt_cv_path_LD
5948if test -n "$LD"; then
5949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5950printf "%s\n" "$LD" >&6; }
5951else
5952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953printf "%s\n" "no" >&6; }
5954fi
5955test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5957printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5958if test ${lt_cv_prog_gnu_ld+y}
5959then :
5960  printf %s "(cached) " >&6
5961else $as_nop
5962  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5963case `$LD -v 2>&1 </dev/null` in
5964*GNU* | *'with BFD'*)
5965  lt_cv_prog_gnu_ld=yes
5966  ;;
5967*)
5968  lt_cv_prog_gnu_ld=no
5969  ;;
5970esac
5971fi
5972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5973printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5974with_gnu_ld=$lt_cv_prog_gnu_ld
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5985printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5986if test ${lt_cv_path_NM+y}
5987then :
5988  printf %s "(cached) " >&6
5989else $as_nop
5990  if test -n "$NM"; then
5991  # Let the user override the test.
5992  lt_cv_path_NM=$NM
5993else
5994  lt_nm_to_check=${ac_tool_prefix}nm
5995  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5996    lt_nm_to_check="$lt_nm_to_check nm"
5997  fi
5998  for lt_tmp_nm in $lt_nm_to_check; do
5999    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6000    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6001      IFS=$lt_save_ifs
6002      test -z "$ac_dir" && ac_dir=.
6003      tmp_nm=$ac_dir/$lt_tmp_nm
6004      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6005	# Check to see if the nm accepts a BSD-compat flag.
6006	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6007	#   nm: unknown option "B" ignored
6008	# Tru64's nm complains that /dev/null is an invalid object file
6009	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6010	case $build_os in
6011	mingw*) lt_bad_file=conftest.nm/nofile ;;
6012	*) lt_bad_file=/dev/null ;;
6013	esac
6014	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6015	*$lt_bad_file* | *'Invalid file or object type'*)
6016	  lt_cv_path_NM="$tmp_nm -B"
6017	  break 2
6018	  ;;
6019	*)
6020	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6021	  */dev/null*)
6022	    lt_cv_path_NM="$tmp_nm -p"
6023	    break 2
6024	    ;;
6025	  *)
6026	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6027	    continue # so that we can try to find one that supports BSD flags
6028	    ;;
6029	  esac
6030	  ;;
6031	esac
6032      fi
6033    done
6034    IFS=$lt_save_ifs
6035  done
6036  : ${lt_cv_path_NM=no}
6037fi
6038fi
6039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6040printf "%s\n" "$lt_cv_path_NM" >&6; }
6041if test no != "$lt_cv_path_NM"; then
6042  NM=$lt_cv_path_NM
6043else
6044  # Didn't find any BSD compatible name lister, look for dumpbin.
6045  if test -n "$DUMPBIN"; then :
6046    # Let the user override the test.
6047  else
6048    if test -n "$ac_tool_prefix"; then
6049  for ac_prog in dumpbin "link -dump"
6050  do
6051    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6052set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054printf %s "checking for $ac_word... " >&6; }
6055if test ${ac_cv_prog_DUMPBIN+y}
6056then :
6057  printf %s "(cached) " >&6
6058else $as_nop
6059  if test -n "$DUMPBIN"; then
6060  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6061else
6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065  IFS=$as_save_IFS
6066  case $as_dir in #(((
6067    '') as_dir=./ ;;
6068    */) ;;
6069    *) as_dir=$as_dir/ ;;
6070  esac
6071    for ac_exec_ext in '' $ac_executable_extensions; do
6072  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6073    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6074    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6075    break 2
6076  fi
6077done
6078  done
6079IFS=$as_save_IFS
6080
6081fi
6082fi
6083DUMPBIN=$ac_cv_prog_DUMPBIN
6084if test -n "$DUMPBIN"; then
6085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6086printf "%s\n" "$DUMPBIN" >&6; }
6087else
6088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089printf "%s\n" "no" >&6; }
6090fi
6091
6092
6093    test -n "$DUMPBIN" && break
6094  done
6095fi
6096if test -z "$DUMPBIN"; then
6097  ac_ct_DUMPBIN=$DUMPBIN
6098  for ac_prog in dumpbin "link -dump"
6099do
6100  # Extract the first word of "$ac_prog", so it can be a program name with args.
6101set dummy $ac_prog; ac_word=$2
6102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103printf %s "checking for $ac_word... " >&6; }
6104if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6105then :
6106  printf %s "(cached) " >&6
6107else $as_nop
6108  if test -n "$ac_ct_DUMPBIN"; then
6109  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6110else
6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114  IFS=$as_save_IFS
6115  case $as_dir in #(((
6116    '') as_dir=./ ;;
6117    */) ;;
6118    *) as_dir=$as_dir/ ;;
6119  esac
6120    for ac_exec_ext in '' $ac_executable_extensions; do
6121  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6122    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6123    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6124    break 2
6125  fi
6126done
6127  done
6128IFS=$as_save_IFS
6129
6130fi
6131fi
6132ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6133if test -n "$ac_ct_DUMPBIN"; then
6134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6135printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6136else
6137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138printf "%s\n" "no" >&6; }
6139fi
6140
6141
6142  test -n "$ac_ct_DUMPBIN" && break
6143done
6144
6145  if test "x$ac_ct_DUMPBIN" = x; then
6146    DUMPBIN=":"
6147  else
6148    case $cross_compiling:$ac_tool_warned in
6149yes:)
6150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6151printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152ac_tool_warned=yes ;;
6153esac
6154    DUMPBIN=$ac_ct_DUMPBIN
6155  fi
6156fi
6157
6158    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6159    *COFF*)
6160      DUMPBIN="$DUMPBIN -symbols -headers"
6161      ;;
6162    *)
6163      DUMPBIN=:
6164      ;;
6165    esac
6166  fi
6167
6168  if test : != "$DUMPBIN"; then
6169    NM=$DUMPBIN
6170  fi
6171fi
6172test -z "$NM" && NM=nm
6173
6174
6175
6176
6177
6178
6179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6180printf %s "checking the name lister ($NM) interface... " >&6; }
6181if test ${lt_cv_nm_interface+y}
6182then :
6183  printf %s "(cached) " >&6
6184else $as_nop
6185  lt_cv_nm_interface="BSD nm"
6186  echo "int some_variable = 0;" > conftest.$ac_ext
6187  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6188  (eval "$ac_compile" 2>conftest.err)
6189  cat conftest.err >&5
6190  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6191  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6192  cat conftest.err >&5
6193  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6194  cat conftest.out >&5
6195  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6196    lt_cv_nm_interface="MS dumpbin"
6197  fi
6198  rm -f conftest*
6199fi
6200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6201printf "%s\n" "$lt_cv_nm_interface" >&6; }
6202
6203# find the maximum length of command line arguments
6204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6205printf %s "checking the maximum length of command line arguments... " >&6; }
6206if test ${lt_cv_sys_max_cmd_len+y}
6207then :
6208  printf %s "(cached) " >&6
6209else $as_nop
6210    i=0
6211  teststring=ABCD
6212
6213  case $build_os in
6214  msdosdjgpp*)
6215    # On DJGPP, this test can blow up pretty badly due to problems in libc
6216    # (any single argument exceeding 2000 bytes causes a buffer overrun
6217    # during glob expansion).  Even if it were fixed, the result of this
6218    # check would be larger than it should be.
6219    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6220    ;;
6221
6222  gnu*)
6223    # Under GNU Hurd, this test is not required because there is
6224    # no limit to the length of command line arguments.
6225    # Libtool will interpret -1 as no limit whatsoever
6226    lt_cv_sys_max_cmd_len=-1;
6227    ;;
6228
6229  cygwin* | mingw* | cegcc*)
6230    # On Win9x/ME, this test blows up -- it succeeds, but takes
6231    # about 5 minutes as the teststring grows exponentially.
6232    # Worse, since 9x/ME are not pre-emptively multitasking,
6233    # you end up with a "frozen" computer, even though with patience
6234    # the test eventually succeeds (with a max line length of 256k).
6235    # Instead, let's just punt: use the minimum linelength reported by
6236    # all of the supported platforms: 8192 (on NT/2K/XP).
6237    lt_cv_sys_max_cmd_len=8192;
6238    ;;
6239
6240  mint*)
6241    # On MiNT this can take a long time and run out of memory.
6242    lt_cv_sys_max_cmd_len=8192;
6243    ;;
6244
6245  amigaos*)
6246    # On AmigaOS with pdksh, this test takes hours, literally.
6247    # So we just punt and use a minimum line length of 8192.
6248    lt_cv_sys_max_cmd_len=8192;
6249    ;;
6250
6251  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6252    # This has been around since 386BSD, at least.  Likely further.
6253    if test -x /sbin/sysctl; then
6254      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6255    elif test -x /usr/sbin/sysctl; then
6256      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6257    else
6258      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6259    fi
6260    # And add a safety zone
6261    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6262    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6263    ;;
6264
6265  interix*)
6266    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6267    lt_cv_sys_max_cmd_len=196608
6268    ;;
6269
6270  os2*)
6271    # The test takes a long time on OS/2.
6272    lt_cv_sys_max_cmd_len=8192
6273    ;;
6274
6275  osf*)
6276    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6277    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6278    # nice to cause kernel panics so lets avoid the loop below.
6279    # First set a reasonable default.
6280    lt_cv_sys_max_cmd_len=16384
6281    #
6282    if test -x /sbin/sysconfig; then
6283      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6284        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6285      esac
6286    fi
6287    ;;
6288  sco3.2v5*)
6289    lt_cv_sys_max_cmd_len=102400
6290    ;;
6291  sysv5* | sco5v6* | sysv4.2uw2*)
6292    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6293    if test -n "$kargmax"; then
6294      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6295    else
6296      lt_cv_sys_max_cmd_len=32768
6297    fi
6298    ;;
6299  *)
6300    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6301    if test -n "$lt_cv_sys_max_cmd_len" && \
6302       test undefined != "$lt_cv_sys_max_cmd_len"; then
6303      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6304      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6305    else
6306      # Make teststring a little bigger before we do anything with it.
6307      # a 1K string should be a reasonable start.
6308      for i in 1 2 3 4 5 6 7 8; do
6309        teststring=$teststring$teststring
6310      done
6311      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6312      # If test is not a shell built-in, we'll probably end up computing a
6313      # maximum length that is only half of the actual maximum length, but
6314      # we can't tell.
6315      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6316	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6317	      test 17 != "$i" # 1/2 MB should be enough
6318      do
6319        i=`expr $i + 1`
6320        teststring=$teststring$teststring
6321      done
6322      # Only check the string length outside the loop.
6323      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6324      teststring=
6325      # Add a significant safety factor because C++ compilers can tack on
6326      # massive amounts of additional arguments before passing them to the
6327      # linker.  It appears as though 1/2 is a usable value.
6328      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6329    fi
6330    ;;
6331  esac
6332
6333fi
6334
6335if test -n "$lt_cv_sys_max_cmd_len"; then
6336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6337printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6338else
6339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6340printf "%s\n" "none" >&6; }
6341fi
6342max_cmd_len=$lt_cv_sys_max_cmd_len
6343
6344
6345
6346
6347
6348
6349: ${CP="cp -f"}
6350: ${MV="mv -f"}
6351: ${RM="rm -f"}
6352
6353if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6354  lt_unset=unset
6355else
6356  lt_unset=false
6357fi
6358
6359
6360
6361
6362
6363# test EBCDIC or ASCII
6364case `echo X|tr X '\101'` in
6365 A) # ASCII based system
6366    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6367  lt_SP2NL='tr \040 \012'
6368  lt_NL2SP='tr \015\012 \040\040'
6369  ;;
6370 *) # EBCDIC based system
6371  lt_SP2NL='tr \100 \n'
6372  lt_NL2SP='tr \r\n \100\100'
6373  ;;
6374esac
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6385printf %s "checking how to convert $build file names to $host format... " >&6; }
6386if test ${lt_cv_to_host_file_cmd+y}
6387then :
6388  printf %s "(cached) " >&6
6389else $as_nop
6390  case $host in
6391  *-*-mingw* )
6392    case $build in
6393      *-*-mingw* ) # actually msys
6394        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6395        ;;
6396      *-*-cygwin* )
6397        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6398        ;;
6399      * ) # otherwise, assume *nix
6400        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6401        ;;
6402    esac
6403    ;;
6404  *-*-cygwin* )
6405    case $build in
6406      *-*-mingw* ) # actually msys
6407        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6408        ;;
6409      *-*-cygwin* )
6410        lt_cv_to_host_file_cmd=func_convert_file_noop
6411        ;;
6412      * ) # otherwise, assume *nix
6413        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6414        ;;
6415    esac
6416    ;;
6417  * ) # unhandled hosts (and "normal" native builds)
6418    lt_cv_to_host_file_cmd=func_convert_file_noop
6419    ;;
6420esac
6421
6422fi
6423
6424to_host_file_cmd=$lt_cv_to_host_file_cmd
6425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6426printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6427
6428
6429
6430
6431
6432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6433printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6434if test ${lt_cv_to_tool_file_cmd+y}
6435then :
6436  printf %s "(cached) " >&6
6437else $as_nop
6438  #assume ordinary cross tools, or native build.
6439lt_cv_to_tool_file_cmd=func_convert_file_noop
6440case $host in
6441  *-*-mingw* )
6442    case $build in
6443      *-*-mingw* ) # actually msys
6444        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6445        ;;
6446    esac
6447    ;;
6448esac
6449
6450fi
6451
6452to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6454printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6455
6456
6457
6458
6459
6460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6461printf %s "checking for $LD option to reload object files... " >&6; }
6462if test ${lt_cv_ld_reload_flag+y}
6463then :
6464  printf %s "(cached) " >&6
6465else $as_nop
6466  lt_cv_ld_reload_flag='-r'
6467fi
6468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6469printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6470reload_flag=$lt_cv_ld_reload_flag
6471case $reload_flag in
6472"" | " "*) ;;
6473*) reload_flag=" $reload_flag" ;;
6474esac
6475reload_cmds='$LD$reload_flag -o $output$reload_objs'
6476case $host_os in
6477  cygwin* | mingw* | pw32* | cegcc*)
6478    if test yes != "$GCC"; then
6479      reload_cmds=false
6480    fi
6481    ;;
6482  darwin*)
6483    if test yes = "$GCC"; then
6484      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6485    else
6486      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6487    fi
6488    ;;
6489esac
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499if test -n "$ac_tool_prefix"; then
6500  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6501set dummy ${ac_tool_prefix}objdump; ac_word=$2
6502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503printf %s "checking for $ac_word... " >&6; }
6504if test ${ac_cv_prog_OBJDUMP+y}
6505then :
6506  printf %s "(cached) " >&6
6507else $as_nop
6508  if test -n "$OBJDUMP"; then
6509  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6510else
6511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514  IFS=$as_save_IFS
6515  case $as_dir in #(((
6516    '') as_dir=./ ;;
6517    */) ;;
6518    *) as_dir=$as_dir/ ;;
6519  esac
6520    for ac_exec_ext in '' $ac_executable_extensions; do
6521  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6522    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6523    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6524    break 2
6525  fi
6526done
6527  done
6528IFS=$as_save_IFS
6529
6530fi
6531fi
6532OBJDUMP=$ac_cv_prog_OBJDUMP
6533if test -n "$OBJDUMP"; then
6534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6535printf "%s\n" "$OBJDUMP" >&6; }
6536else
6537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538printf "%s\n" "no" >&6; }
6539fi
6540
6541
6542fi
6543if test -z "$ac_cv_prog_OBJDUMP"; then
6544  ac_ct_OBJDUMP=$OBJDUMP
6545  # Extract the first word of "objdump", so it can be a program name with args.
6546set dummy objdump; ac_word=$2
6547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548printf %s "checking for $ac_word... " >&6; }
6549if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6550then :
6551  printf %s "(cached) " >&6
6552else $as_nop
6553  if test -n "$ac_ct_OBJDUMP"; then
6554  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6555else
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559  IFS=$as_save_IFS
6560  case $as_dir in #(((
6561    '') as_dir=./ ;;
6562    */) ;;
6563    *) as_dir=$as_dir/ ;;
6564  esac
6565    for ac_exec_ext in '' $ac_executable_extensions; do
6566  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6567    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6568    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6569    break 2
6570  fi
6571done
6572  done
6573IFS=$as_save_IFS
6574
6575fi
6576fi
6577ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6578if test -n "$ac_ct_OBJDUMP"; then
6579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6580printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6581else
6582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583printf "%s\n" "no" >&6; }
6584fi
6585
6586  if test "x$ac_ct_OBJDUMP" = x; then
6587    OBJDUMP="false"
6588  else
6589    case $cross_compiling:$ac_tool_warned in
6590yes:)
6591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6592printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6593ac_tool_warned=yes ;;
6594esac
6595    OBJDUMP=$ac_ct_OBJDUMP
6596  fi
6597else
6598  OBJDUMP="$ac_cv_prog_OBJDUMP"
6599fi
6600
6601test -z "$OBJDUMP" && OBJDUMP=objdump
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6612printf %s "checking how to recognize dependent libraries... " >&6; }
6613if test ${lt_cv_deplibs_check_method+y}
6614then :
6615  printf %s "(cached) " >&6
6616else $as_nop
6617  lt_cv_file_magic_cmd='$MAGIC_CMD'
6618lt_cv_file_magic_test_file=
6619lt_cv_deplibs_check_method='unknown'
6620# Need to set the preceding variable on all platforms that support
6621# interlibrary dependencies.
6622# 'none' -- dependencies not supported.
6623# 'unknown' -- same as none, but documents that we really don't know.
6624# 'pass_all' -- all dependencies passed with no checks.
6625# 'test_compile' -- check by making test program.
6626# 'file_magic [[regex]]' -- check by looking for files in library path
6627# that responds to the $file_magic_cmd with a given extended regex.
6628# If you have 'file' or equivalent on your system and you're not sure
6629# whether 'pass_all' will *always* work, you probably want this one.
6630
6631case $host_os in
6632aix[4-9]*)
6633  lt_cv_deplibs_check_method=pass_all
6634  ;;
6635
6636beos*)
6637  lt_cv_deplibs_check_method=pass_all
6638  ;;
6639
6640bsdi[45]*)
6641  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6642  lt_cv_file_magic_cmd='/usr/bin/file -L'
6643  lt_cv_file_magic_test_file=/shlib/libc.so
6644  ;;
6645
6646cygwin*)
6647  # func_win32_libid is a shell function defined in ltmain.sh
6648  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6649  lt_cv_file_magic_cmd='func_win32_libid'
6650  ;;
6651
6652mingw* | pw32*)
6653  # Base MSYS/MinGW do not provide the 'file' command needed by
6654  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6655  # unless we find 'file', for example because we are cross-compiling.
6656  if ( file / ) >/dev/null 2>&1; then
6657    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6658    lt_cv_file_magic_cmd='func_win32_libid'
6659  else
6660    # Keep this pattern in sync with the one in func_win32_libid.
6661    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6662    lt_cv_file_magic_cmd='$OBJDUMP -f'
6663  fi
6664  ;;
6665
6666cegcc*)
6667  # use the weaker test based on 'objdump'. See mingw*.
6668  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6669  lt_cv_file_magic_cmd='$OBJDUMP -f'
6670  ;;
6671
6672darwin* | rhapsody*)
6673  lt_cv_deplibs_check_method=pass_all
6674  ;;
6675
6676freebsd* | dragonfly*)
6677  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6678    case $host_cpu in
6679    i*86 )
6680      # Not sure whether the presence of OpenBSD here was a mistake.
6681      # Let's accept both of them until this is cleared up.
6682      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6683      lt_cv_file_magic_cmd=/usr/bin/file
6684      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6685      ;;
6686    esac
6687  else
6688    lt_cv_deplibs_check_method=pass_all
6689  fi
6690  ;;
6691
6692haiku*)
6693  lt_cv_deplibs_check_method=pass_all
6694  ;;
6695
6696hpux10.20* | hpux11*)
6697  lt_cv_file_magic_cmd=/usr/bin/file
6698  case $host_cpu in
6699  ia64*)
6700    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6701    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6702    ;;
6703  hppa*64*)
6704    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]'
6705    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6706    ;;
6707  *)
6708    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6709    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6710    ;;
6711  esac
6712  ;;
6713
6714interix[3-9]*)
6715  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6716  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6717  ;;
6718
6719irix5* | irix6* | nonstopux*)
6720  case $LD in
6721  *-32|*"-32 ") libmagic=32-bit;;
6722  *-n32|*"-n32 ") libmagic=N32;;
6723  *-64|*"-64 ") libmagic=64-bit;;
6724  *) libmagic=never-match;;
6725  esac
6726  lt_cv_deplibs_check_method=pass_all
6727  ;;
6728
6729# This must be glibc/ELF.
6730linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6731  lt_cv_deplibs_check_method=pass_all
6732  ;;
6733
6734netbsd*)
6735  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6736    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6737  else
6738    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6739  fi
6740  ;;
6741
6742newos6*)
6743  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6744  lt_cv_file_magic_cmd=/usr/bin/file
6745  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6746  ;;
6747
6748*nto* | *qnx*)
6749  lt_cv_deplibs_check_method=pass_all
6750  ;;
6751
6752openbsd* | bitrig*)
6753  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6754    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6755  else
6756    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6757  fi
6758  ;;
6759
6760osf3* | osf4* | osf5*)
6761  lt_cv_deplibs_check_method=pass_all
6762  ;;
6763
6764rdos*)
6765  lt_cv_deplibs_check_method=pass_all
6766  ;;
6767
6768solaris*)
6769  lt_cv_deplibs_check_method=pass_all
6770  ;;
6771
6772sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6773  lt_cv_deplibs_check_method=pass_all
6774  ;;
6775
6776sysv4 | sysv4.3*)
6777  case $host_vendor in
6778  motorola)
6779    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]'
6780    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6781    ;;
6782  ncr)
6783    lt_cv_deplibs_check_method=pass_all
6784    ;;
6785  sequent)
6786    lt_cv_file_magic_cmd='/bin/file'
6787    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6788    ;;
6789  sni)
6790    lt_cv_file_magic_cmd='/bin/file'
6791    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6792    lt_cv_file_magic_test_file=/lib/libc.so
6793    ;;
6794  siemens)
6795    lt_cv_deplibs_check_method=pass_all
6796    ;;
6797  pc)
6798    lt_cv_deplibs_check_method=pass_all
6799    ;;
6800  esac
6801  ;;
6802
6803tpf*)
6804  lt_cv_deplibs_check_method=pass_all
6805  ;;
6806os2*)
6807  lt_cv_deplibs_check_method=pass_all
6808  ;;
6809esac
6810
6811fi
6812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6813printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6814
6815file_magic_glob=
6816want_nocaseglob=no
6817if test "$build" = "$host"; then
6818  case $host_os in
6819  mingw* | pw32*)
6820    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6821      want_nocaseglob=yes
6822    else
6823      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6824    fi
6825    ;;
6826  esac
6827fi
6828
6829file_magic_cmd=$lt_cv_file_magic_cmd
6830deplibs_check_method=$lt_cv_deplibs_check_method
6831test -z "$deplibs_check_method" && deplibs_check_method=unknown
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854if test -n "$ac_tool_prefix"; then
6855  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6856set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858printf %s "checking for $ac_word... " >&6; }
6859if test ${ac_cv_prog_DLLTOOL+y}
6860then :
6861  printf %s "(cached) " >&6
6862else $as_nop
6863  if test -n "$DLLTOOL"; then
6864  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6865else
6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869  IFS=$as_save_IFS
6870  case $as_dir in #(((
6871    '') as_dir=./ ;;
6872    */) ;;
6873    *) as_dir=$as_dir/ ;;
6874  esac
6875    for ac_exec_ext in '' $ac_executable_extensions; do
6876  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6877    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6878    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6879    break 2
6880  fi
6881done
6882  done
6883IFS=$as_save_IFS
6884
6885fi
6886fi
6887DLLTOOL=$ac_cv_prog_DLLTOOL
6888if test -n "$DLLTOOL"; then
6889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6890printf "%s\n" "$DLLTOOL" >&6; }
6891else
6892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893printf "%s\n" "no" >&6; }
6894fi
6895
6896
6897fi
6898if test -z "$ac_cv_prog_DLLTOOL"; then
6899  ac_ct_DLLTOOL=$DLLTOOL
6900  # Extract the first word of "dlltool", so it can be a program name with args.
6901set dummy dlltool; ac_word=$2
6902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903printf %s "checking for $ac_word... " >&6; }
6904if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6905then :
6906  printf %s "(cached) " >&6
6907else $as_nop
6908  if test -n "$ac_ct_DLLTOOL"; then
6909  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6910else
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914  IFS=$as_save_IFS
6915  case $as_dir in #(((
6916    '') as_dir=./ ;;
6917    */) ;;
6918    *) as_dir=$as_dir/ ;;
6919  esac
6920    for ac_exec_ext in '' $ac_executable_extensions; do
6921  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6922    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6923    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6924    break 2
6925  fi
6926done
6927  done
6928IFS=$as_save_IFS
6929
6930fi
6931fi
6932ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6933if test -n "$ac_ct_DLLTOOL"; then
6934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6935printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6936else
6937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938printf "%s\n" "no" >&6; }
6939fi
6940
6941  if test "x$ac_ct_DLLTOOL" = x; then
6942    DLLTOOL="false"
6943  else
6944    case $cross_compiling:$ac_tool_warned in
6945yes:)
6946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948ac_tool_warned=yes ;;
6949esac
6950    DLLTOOL=$ac_ct_DLLTOOL
6951  fi
6952else
6953  DLLTOOL="$ac_cv_prog_DLLTOOL"
6954fi
6955
6956test -z "$DLLTOOL" && DLLTOOL=dlltool
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6968printf %s "checking how to associate runtime and link libraries... " >&6; }
6969if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6970then :
6971  printf %s "(cached) " >&6
6972else $as_nop
6973  lt_cv_sharedlib_from_linklib_cmd='unknown'
6974
6975case $host_os in
6976cygwin* | mingw* | pw32* | cegcc*)
6977  # two different shell functions defined in ltmain.sh;
6978  # decide which one to use based on capabilities of $DLLTOOL
6979  case `$DLLTOOL --help 2>&1` in
6980  *--identify-strict*)
6981    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6982    ;;
6983  *)
6984    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6985    ;;
6986  esac
6987  ;;
6988*)
6989  # fallback: assume linklib IS sharedlib
6990  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6991  ;;
6992esac
6993
6994fi
6995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6996printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6997sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6998test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6999
7000
7001
7002
7003
7004
7005
7006if test -n "$ac_tool_prefix"; then
7007  for ac_prog in ar
7008  do
7009    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7010set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012printf %s "checking for $ac_word... " >&6; }
7013if test ${ac_cv_prog_AR+y}
7014then :
7015  printf %s "(cached) " >&6
7016else $as_nop
7017  if test -n "$AR"; then
7018  ac_cv_prog_AR="$AR" # Let the user override the test.
7019else
7020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021for as_dir in $PATH
7022do
7023  IFS=$as_save_IFS
7024  case $as_dir in #(((
7025    '') as_dir=./ ;;
7026    */) ;;
7027    *) as_dir=$as_dir/ ;;
7028  esac
7029    for ac_exec_ext in '' $ac_executable_extensions; do
7030  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7031    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7032    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7033    break 2
7034  fi
7035done
7036  done
7037IFS=$as_save_IFS
7038
7039fi
7040fi
7041AR=$ac_cv_prog_AR
7042if test -n "$AR"; then
7043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7044printf "%s\n" "$AR" >&6; }
7045else
7046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047printf "%s\n" "no" >&6; }
7048fi
7049
7050
7051    test -n "$AR" && break
7052  done
7053fi
7054if test -z "$AR"; then
7055  ac_ct_AR=$AR
7056  for ac_prog in ar
7057do
7058  # Extract the first word of "$ac_prog", so it can be a program name with args.
7059set dummy $ac_prog; ac_word=$2
7060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061printf %s "checking for $ac_word... " >&6; }
7062if test ${ac_cv_prog_ac_ct_AR+y}
7063then :
7064  printf %s "(cached) " >&6
7065else $as_nop
7066  if test -n "$ac_ct_AR"; then
7067  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072  IFS=$as_save_IFS
7073  case $as_dir in #(((
7074    '') as_dir=./ ;;
7075    */) ;;
7076    *) as_dir=$as_dir/ ;;
7077  esac
7078    for ac_exec_ext in '' $ac_executable_extensions; do
7079  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7080    ac_cv_prog_ac_ct_AR="$ac_prog"
7081    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7082    break 2
7083  fi
7084done
7085  done
7086IFS=$as_save_IFS
7087
7088fi
7089fi
7090ac_ct_AR=$ac_cv_prog_ac_ct_AR
7091if test -n "$ac_ct_AR"; then
7092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7093printf "%s\n" "$ac_ct_AR" >&6; }
7094else
7095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096printf "%s\n" "no" >&6; }
7097fi
7098
7099
7100  test -n "$ac_ct_AR" && break
7101done
7102
7103  if test "x$ac_ct_AR" = x; then
7104    AR="false"
7105  else
7106    case $cross_compiling:$ac_tool_warned in
7107yes:)
7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110ac_tool_warned=yes ;;
7111esac
7112    AR=$ac_ct_AR
7113  fi
7114fi
7115
7116: ${AR=ar}
7117: ${AR_FLAGS=cru}
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7130printf %s "checking for archiver @FILE support... " >&6; }
7131if test ${lt_cv_ar_at_file+y}
7132then :
7133  printf %s "(cached) " >&6
7134else $as_nop
7135  lt_cv_ar_at_file=no
7136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137/* end confdefs.h.  */
7138
7139int
7140main (void)
7141{
7142
7143  ;
7144  return 0;
7145}
7146_ACEOF
7147if ac_fn_c_try_compile "$LINENO"
7148then :
7149  echo conftest.$ac_objext > conftest.lst
7150      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7151      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7152  (eval $lt_ar_try) 2>&5
7153  ac_status=$?
7154  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155  test $ac_status = 0; }
7156      if test 0 -eq "$ac_status"; then
7157	# Ensure the archiver fails upon bogus file names.
7158	rm -f conftest.$ac_objext libconftest.a
7159	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7160  (eval $lt_ar_try) 2>&5
7161  ac_status=$?
7162  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7163  test $ac_status = 0; }
7164	if test 0 -ne "$ac_status"; then
7165          lt_cv_ar_at_file=@
7166        fi
7167      fi
7168      rm -f conftest.* libconftest.a
7169
7170fi
7171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7172
7173fi
7174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7175printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7176
7177if test no = "$lt_cv_ar_at_file"; then
7178  archiver_list_spec=
7179else
7180  archiver_list_spec=$lt_cv_ar_at_file
7181fi
7182
7183
7184
7185
7186
7187
7188
7189if test -n "$ac_tool_prefix"; then
7190  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7191set dummy ${ac_tool_prefix}strip; ac_word=$2
7192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193printf %s "checking for $ac_word... " >&6; }
7194if test ${ac_cv_prog_STRIP+y}
7195then :
7196  printf %s "(cached) " >&6
7197else $as_nop
7198  if test -n "$STRIP"; then
7199  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7200else
7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204  IFS=$as_save_IFS
7205  case $as_dir in #(((
7206    '') as_dir=./ ;;
7207    */) ;;
7208    *) as_dir=$as_dir/ ;;
7209  esac
7210    for ac_exec_ext in '' $ac_executable_extensions; do
7211  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7212    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7213    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7214    break 2
7215  fi
7216done
7217  done
7218IFS=$as_save_IFS
7219
7220fi
7221fi
7222STRIP=$ac_cv_prog_STRIP
7223if test -n "$STRIP"; then
7224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7225printf "%s\n" "$STRIP" >&6; }
7226else
7227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228printf "%s\n" "no" >&6; }
7229fi
7230
7231
7232fi
7233if test -z "$ac_cv_prog_STRIP"; then
7234  ac_ct_STRIP=$STRIP
7235  # Extract the first word of "strip", so it can be a program name with args.
7236set dummy strip; ac_word=$2
7237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238printf %s "checking for $ac_word... " >&6; }
7239if test ${ac_cv_prog_ac_ct_STRIP+y}
7240then :
7241  printf %s "(cached) " >&6
7242else $as_nop
7243  if test -n "$ac_ct_STRIP"; then
7244  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7245else
7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249  IFS=$as_save_IFS
7250  case $as_dir in #(((
7251    '') as_dir=./ ;;
7252    */) ;;
7253    *) as_dir=$as_dir/ ;;
7254  esac
7255    for ac_exec_ext in '' $ac_executable_extensions; do
7256  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7257    ac_cv_prog_ac_ct_STRIP="strip"
7258    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7259    break 2
7260  fi
7261done
7262  done
7263IFS=$as_save_IFS
7264
7265fi
7266fi
7267ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7268if test -n "$ac_ct_STRIP"; then
7269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7270printf "%s\n" "$ac_ct_STRIP" >&6; }
7271else
7272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273printf "%s\n" "no" >&6; }
7274fi
7275
7276  if test "x$ac_ct_STRIP" = x; then
7277    STRIP=":"
7278  else
7279    case $cross_compiling:$ac_tool_warned in
7280yes:)
7281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283ac_tool_warned=yes ;;
7284esac
7285    STRIP=$ac_ct_STRIP
7286  fi
7287else
7288  STRIP="$ac_cv_prog_STRIP"
7289fi
7290
7291test -z "$STRIP" && STRIP=:
7292
7293
7294
7295
7296
7297
7298if test -n "$ac_tool_prefix"; then
7299  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7300set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302printf %s "checking for $ac_word... " >&6; }
7303if test ${ac_cv_prog_RANLIB+y}
7304then :
7305  printf %s "(cached) " >&6
7306else $as_nop
7307  if test -n "$RANLIB"; then
7308  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313  IFS=$as_save_IFS
7314  case $as_dir in #(((
7315    '') as_dir=./ ;;
7316    */) ;;
7317    *) as_dir=$as_dir/ ;;
7318  esac
7319    for ac_exec_ext in '' $ac_executable_extensions; do
7320  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7321    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7322    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7323    break 2
7324  fi
7325done
7326  done
7327IFS=$as_save_IFS
7328
7329fi
7330fi
7331RANLIB=$ac_cv_prog_RANLIB
7332if test -n "$RANLIB"; then
7333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7334printf "%s\n" "$RANLIB" >&6; }
7335else
7336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337printf "%s\n" "no" >&6; }
7338fi
7339
7340
7341fi
7342if test -z "$ac_cv_prog_RANLIB"; then
7343  ac_ct_RANLIB=$RANLIB
7344  # Extract the first word of "ranlib", so it can be a program name with args.
7345set dummy ranlib; ac_word=$2
7346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347printf %s "checking for $ac_word... " >&6; }
7348if test ${ac_cv_prog_ac_ct_RANLIB+y}
7349then :
7350  printf %s "(cached) " >&6
7351else $as_nop
7352  if test -n "$ac_ct_RANLIB"; then
7353  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7354else
7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358  IFS=$as_save_IFS
7359  case $as_dir in #(((
7360    '') as_dir=./ ;;
7361    */) ;;
7362    *) as_dir=$as_dir/ ;;
7363  esac
7364    for ac_exec_ext in '' $ac_executable_extensions; do
7365  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7366    ac_cv_prog_ac_ct_RANLIB="ranlib"
7367    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7368    break 2
7369  fi
7370done
7371  done
7372IFS=$as_save_IFS
7373
7374fi
7375fi
7376ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7377if test -n "$ac_ct_RANLIB"; then
7378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7379printf "%s\n" "$ac_ct_RANLIB" >&6; }
7380else
7381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382printf "%s\n" "no" >&6; }
7383fi
7384
7385  if test "x$ac_ct_RANLIB" = x; then
7386    RANLIB=":"
7387  else
7388    case $cross_compiling:$ac_tool_warned in
7389yes:)
7390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392ac_tool_warned=yes ;;
7393esac
7394    RANLIB=$ac_ct_RANLIB
7395  fi
7396else
7397  RANLIB="$ac_cv_prog_RANLIB"
7398fi
7399
7400test -z "$RANLIB" && RANLIB=:
7401
7402
7403
7404
7405
7406
7407# Determine commands to create old-style static archives.
7408old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7409old_postinstall_cmds='chmod 644 $oldlib'
7410old_postuninstall_cmds=
7411
7412if test -n "$RANLIB"; then
7413  case $host_os in
7414  bitrig* | openbsd*)
7415    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7416    ;;
7417  *)
7418    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7419    ;;
7420  esac
7421  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7422fi
7423
7424case $host_os in
7425  darwin*)
7426    lock_old_archive_extraction=yes ;;
7427  *)
7428    lock_old_archive_extraction=no ;;
7429esac
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469# If no C compiler was specified, use CC.
7470LTCC=${LTCC-"$CC"}
7471
7472# If no C compiler flags were specified, use CFLAGS.
7473LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7474
7475# Allow CC to be a program name with arguments.
7476compiler=$CC
7477
7478
7479# Check for command to grab the raw symbol name followed by C symbol from nm.
7480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7481printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7482if test ${lt_cv_sys_global_symbol_pipe+y}
7483then :
7484  printf %s "(cached) " >&6
7485else $as_nop
7486
7487# These are sane defaults that work on at least a few old systems.
7488# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7489
7490# Character class describing NM global symbol codes.
7491symcode='[BCDEGRST]'
7492
7493# Regexp to match symbols that can be accessed directly from C.
7494sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7495
7496# Define system-specific variables.
7497case $host_os in
7498aix*)
7499  symcode='[BCDT]'
7500  ;;
7501cygwin* | mingw* | pw32* | cegcc*)
7502  symcode='[ABCDGISTW]'
7503  ;;
7504hpux*)
7505  if test ia64 = "$host_cpu"; then
7506    symcode='[ABCDEGRST]'
7507  fi
7508  ;;
7509irix* | nonstopux*)
7510  symcode='[BCDEGRST]'
7511  ;;
7512osf*)
7513  symcode='[BCDEGQRST]'
7514  ;;
7515solaris*)
7516  symcode='[BDRT]'
7517  ;;
7518sco3.2v5*)
7519  symcode='[DT]'
7520  ;;
7521sysv4.2uw2*)
7522  symcode='[DT]'
7523  ;;
7524sysv5* | sco5v6* | unixware* | OpenUNIX*)
7525  symcode='[ABDT]'
7526  ;;
7527sysv4)
7528  symcode='[DFNSTU]'
7529  ;;
7530esac
7531
7532# If we're using GNU nm, then use its standard symbol codes.
7533case `$NM -V 2>&1` in
7534*GNU* | *'with BFD'*)
7535  symcode='[ABCDGIRSTW]' ;;
7536esac
7537
7538if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7539  # Gets list of data symbols to import.
7540  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7541  # Adjust the below global symbol transforms to fixup imported variables.
7542  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7543  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7544  lt_c_name_lib_hook="\
7545  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7546  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7547else
7548  # Disable hooks by default.
7549  lt_cv_sys_global_symbol_to_import=
7550  lt_cdecl_hook=
7551  lt_c_name_hook=
7552  lt_c_name_lib_hook=
7553fi
7554
7555# Transform an extracted symbol line into a proper C declaration.
7556# Some systems (esp. on ia64) link data and code symbols differently,
7557# so use this general approach.
7558lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7559$lt_cdecl_hook\
7560" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7561" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7562
7563# Transform an extracted symbol line into symbol name and symbol address
7564lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7565$lt_c_name_hook\
7566" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7567" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7568
7569# Transform an extracted symbol line into symbol name with lib prefix and
7570# symbol address.
7571lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7572$lt_c_name_lib_hook\
7573" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7574" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7575" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7576
7577# Handle CRLF in mingw tool chain
7578opt_cr=
7579case $build_os in
7580mingw*)
7581  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7582  ;;
7583esac
7584
7585# Try without a prefix underscore, then with it.
7586for ac_symprfx in "" "_"; do
7587
7588  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7589  symxfrm="\\1 $ac_symprfx\\2 \\2"
7590
7591  # Write the raw and C identifiers.
7592  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7593    # Fake it for dumpbin and say T for any non-static function,
7594    # D for any global variable and I for any imported variable.
7595    # Also find C++ and __fastcall symbols from MSVC++,
7596    # which start with @ or ?.
7597    lt_cv_sys_global_symbol_pipe="$AWK '"\
7598"     {last_section=section; section=\$ 3};"\
7599"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7600"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7601"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7602"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7603"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7604"     \$ 0!~/External *\|/{next};"\
7605"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7606"     {if(hide[section]) next};"\
7607"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7608"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7609"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7610"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7611"     ' prfx=^$ac_symprfx"
7612  else
7613    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7614  fi
7615  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7616
7617  # Check to see that the pipe works correctly.
7618  pipe_works=no
7619
7620  rm -f conftest*
7621  cat > conftest.$ac_ext <<_LT_EOF
7622#ifdef __cplusplus
7623extern "C" {
7624#endif
7625char nm_test_var;
7626void nm_test_func(void);
7627void nm_test_func(void){}
7628#ifdef __cplusplus
7629}
7630#endif
7631int main(){nm_test_var='a';nm_test_func();return(0);}
7632_LT_EOF
7633
7634  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7635  (eval $ac_compile) 2>&5
7636  ac_status=$?
7637  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7638  test $ac_status = 0; }; then
7639    # Now try to grab the symbols.
7640    nlist=conftest.nm
7641    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7642  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7643  ac_status=$?
7644  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7645  test $ac_status = 0; } && test -s "$nlist"; then
7646      # Try sorting and uniquifying the output.
7647      if sort "$nlist" | uniq > "$nlist"T; then
7648	mv -f "$nlist"T "$nlist"
7649      else
7650	rm -f "$nlist"T
7651      fi
7652
7653      # Make sure that we snagged all the symbols we need.
7654      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7655	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7656	  cat <<_LT_EOF > conftest.$ac_ext
7657/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7658#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7659/* DATA imports from DLLs on WIN32 can't be const, because runtime
7660   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7661# define LT_DLSYM_CONST
7662#elif defined __osf__
7663/* This system does not cope well with relocations in const data.  */
7664# define LT_DLSYM_CONST
7665#else
7666# define LT_DLSYM_CONST const
7667#endif
7668
7669#ifdef __cplusplus
7670extern "C" {
7671#endif
7672
7673_LT_EOF
7674	  # Now generate the symbol file.
7675	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7676
7677	  cat <<_LT_EOF >> conftest.$ac_ext
7678
7679/* The mapping between symbol names and symbols.  */
7680LT_DLSYM_CONST struct {
7681  const char *name;
7682  void       *address;
7683}
7684lt__PROGRAM__LTX_preloaded_symbols[] =
7685{
7686  { "@PROGRAM@", (void *) 0 },
7687_LT_EOF
7688	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7689	  cat <<\_LT_EOF >> conftest.$ac_ext
7690  {0, (void *) 0}
7691};
7692
7693/* This works around a problem in FreeBSD linker */
7694#ifdef FREEBSD_WORKAROUND
7695static const void *lt_preloaded_setup() {
7696  return lt__PROGRAM__LTX_preloaded_symbols;
7697}
7698#endif
7699
7700#ifdef __cplusplus
7701}
7702#endif
7703_LT_EOF
7704	  # Now try linking the two files.
7705	  mv conftest.$ac_objext conftstm.$ac_objext
7706	  lt_globsym_save_LIBS=$LIBS
7707	  lt_globsym_save_CFLAGS=$CFLAGS
7708	  LIBS=conftstm.$ac_objext
7709	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7710	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7711  (eval $ac_link) 2>&5
7712  ac_status=$?
7713  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7714  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7715	    pipe_works=yes
7716	  fi
7717	  LIBS=$lt_globsym_save_LIBS
7718	  CFLAGS=$lt_globsym_save_CFLAGS
7719	else
7720	  echo "cannot find nm_test_func in $nlist" >&5
7721	fi
7722      else
7723	echo "cannot find nm_test_var in $nlist" >&5
7724      fi
7725    else
7726      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7727    fi
7728  else
7729    echo "$progname: failed program was:" >&5
7730    cat conftest.$ac_ext >&5
7731  fi
7732  rm -rf conftest* conftst*
7733
7734  # Do not use the global_symbol_pipe unless it works.
7735  if test yes = "$pipe_works"; then
7736    break
7737  else
7738    lt_cv_sys_global_symbol_pipe=
7739  fi
7740done
7741
7742fi
7743
7744if test -z "$lt_cv_sys_global_symbol_pipe"; then
7745  lt_cv_sys_global_symbol_to_cdecl=
7746fi
7747if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7749printf "%s\n" "failed" >&6; }
7750else
7751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7752printf "%s\n" "ok" >&6; }
7753fi
7754
7755# Response file support.
7756if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7757  nm_file_list_spec='@'
7758elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7759  nm_file_list_spec='@'
7760fi
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7799printf %s "checking for sysroot... " >&6; }
7800
7801# Check whether --with-sysroot was given.
7802if test ${with_sysroot+y}
7803then :
7804  withval=$with_sysroot;
7805else $as_nop
7806  with_sysroot=no
7807fi
7808
7809
7810lt_sysroot=
7811case $with_sysroot in #(
7812 yes)
7813   if test yes = "$GCC"; then
7814     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7815   fi
7816   ;; #(
7817 /*)
7818   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7819   ;; #(
7820 no|'')
7821   ;; #(
7822 *)
7823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7824printf "%s\n" "$with_sysroot" >&6; }
7825   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7826   ;;
7827esac
7828
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7830printf "%s\n" "${lt_sysroot:-no}" >&6; }
7831
7832
7833
7834
7835
7836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7837printf %s "checking for a working dd... " >&6; }
7838if test ${ac_cv_path_lt_DD+y}
7839then :
7840  printf %s "(cached) " >&6
7841else $as_nop
7842  printf 0123456789abcdef0123456789abcdef >conftest.i
7843cat conftest.i conftest.i >conftest2.i
7844: ${lt_DD:=$DD}
7845if test -z "$lt_DD"; then
7846  ac_path_lt_DD_found=false
7847  # Loop through the user's path and test for each of PROGNAME-LIST
7848  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851  IFS=$as_save_IFS
7852  case $as_dir in #(((
7853    '') as_dir=./ ;;
7854    */) ;;
7855    *) as_dir=$as_dir/ ;;
7856  esac
7857    for ac_prog in dd
7858   do
7859    for ac_exec_ext in '' $ac_executable_extensions; do
7860      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7861      as_fn_executable_p "$ac_path_lt_DD" || continue
7862if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7863  cmp -s conftest.i conftest.out \
7864  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7865fi
7866      $ac_path_lt_DD_found && break 3
7867    done
7868  done
7869  done
7870IFS=$as_save_IFS
7871  if test -z "$ac_cv_path_lt_DD"; then
7872    :
7873  fi
7874else
7875  ac_cv_path_lt_DD=$lt_DD
7876fi
7877
7878rm -f conftest.i conftest2.i conftest.out
7879fi
7880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7881printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7882
7883
7884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7885printf %s "checking how to truncate binary pipes... " >&6; }
7886if test ${lt_cv_truncate_bin+y}
7887then :
7888  printf %s "(cached) " >&6
7889else $as_nop
7890  printf 0123456789abcdef0123456789abcdef >conftest.i
7891cat conftest.i conftest.i >conftest2.i
7892lt_cv_truncate_bin=
7893if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7894  cmp -s conftest.i conftest.out \
7895  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7896fi
7897rm -f conftest.i conftest2.i conftest.out
7898test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7899fi
7900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7901printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7902
7903
7904
7905
7906
7907
7908
7909# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7910func_cc_basename ()
7911{
7912    for cc_temp in $*""; do
7913      case $cc_temp in
7914        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7915        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7916        \-*) ;;
7917        *) break;;
7918      esac
7919    done
7920    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7921}
7922
7923# Check whether --enable-libtool-lock was given.
7924if test ${enable_libtool_lock+y}
7925then :
7926  enableval=$enable_libtool_lock;
7927fi
7928
7929test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7930
7931# Some flags need to be propagated to the compiler or linker for good
7932# libtool support.
7933case $host in
7934ia64-*-hpux*)
7935  # Find out what ABI is being produced by ac_compile, and set mode
7936  # options accordingly.
7937  echo 'int i;' > conftest.$ac_ext
7938  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7939  (eval $ac_compile) 2>&5
7940  ac_status=$?
7941  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7942  test $ac_status = 0; }; then
7943    case `/usr/bin/file conftest.$ac_objext` in
7944      *ELF-32*)
7945	HPUX_IA64_MODE=32
7946	;;
7947      *ELF-64*)
7948	HPUX_IA64_MODE=64
7949	;;
7950    esac
7951  fi
7952  rm -rf conftest*
7953  ;;
7954*-*-irix6*)
7955  # Find out what ABI is being produced by ac_compile, and set linker
7956  # options accordingly.
7957  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7958  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7959  (eval $ac_compile) 2>&5
7960  ac_status=$?
7961  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962  test $ac_status = 0; }; then
7963    if test yes = "$lt_cv_prog_gnu_ld"; then
7964      case `/usr/bin/file conftest.$ac_objext` in
7965	*32-bit*)
7966	  LD="${LD-ld} -melf32bsmip"
7967	  ;;
7968	*N32*)
7969	  LD="${LD-ld} -melf32bmipn32"
7970	  ;;
7971	*64-bit*)
7972	  LD="${LD-ld} -melf64bmip"
7973	;;
7974      esac
7975    else
7976      case `/usr/bin/file conftest.$ac_objext` in
7977	*32-bit*)
7978	  LD="${LD-ld} -32"
7979	  ;;
7980	*N32*)
7981	  LD="${LD-ld} -n32"
7982	  ;;
7983	*64-bit*)
7984	  LD="${LD-ld} -64"
7985	  ;;
7986      esac
7987    fi
7988  fi
7989  rm -rf conftest*
7990  ;;
7991
7992mips64*-*linux*)
7993  # Find out what ABI is being produced by ac_compile, and set linker
7994  # options accordingly.
7995  echo '#line '$LINENO' "configure"' > 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    emul=elf
8002    case `/usr/bin/file conftest.$ac_objext` in
8003      *32-bit*)
8004	emul="${emul}32"
8005	;;
8006      *64-bit*)
8007	emul="${emul}64"
8008	;;
8009    esac
8010    case `/usr/bin/file conftest.$ac_objext` in
8011      *MSB*)
8012	emul="${emul}btsmip"
8013	;;
8014      *LSB*)
8015	emul="${emul}ltsmip"
8016	;;
8017    esac
8018    case `/usr/bin/file conftest.$ac_objext` in
8019      *N32*)
8020	emul="${emul}n32"
8021	;;
8022    esac
8023    LD="${LD-ld} -m $emul"
8024  fi
8025  rm -rf conftest*
8026  ;;
8027
8028x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8029s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8030  # Find out what ABI is being produced by ac_compile, and set linker
8031  # options accordingly.  Note that the listed cases only cover the
8032  # situations where additional linker options are needed (such as when
8033  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8034  # vice versa); the common cases where no linker options are needed do
8035  # not appear in the list.
8036  echo 'int i;' > conftest.$ac_ext
8037  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8038  (eval $ac_compile) 2>&5
8039  ac_status=$?
8040  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041  test $ac_status = 0; }; then
8042    case `/usr/bin/file conftest.o` in
8043      *32-bit*)
8044	case $host in
8045	  x86_64-*kfreebsd*-gnu)
8046	    LD="${LD-ld} -m elf_i386_fbsd"
8047	    ;;
8048	  x86_64-*linux*)
8049	    case `/usr/bin/file conftest.o` in
8050	      *x86-64*)
8051		LD="${LD-ld} -m elf32_x86_64"
8052		;;
8053	      *)
8054		LD="${LD-ld} -m elf_i386"
8055		;;
8056	    esac
8057	    ;;
8058	  powerpc64le-*linux*)
8059	    LD="${LD-ld} -m elf32lppclinux"
8060	    ;;
8061	  powerpc64-*linux*)
8062	    LD="${LD-ld} -m elf32ppclinux"
8063	    ;;
8064	  s390x-*linux*)
8065	    LD="${LD-ld} -m elf_s390"
8066	    ;;
8067	  sparc64-*linux*)
8068	    LD="${LD-ld} -m elf32_sparc"
8069	    ;;
8070	esac
8071	;;
8072      *64-bit*)
8073	case $host in
8074	  x86_64-*kfreebsd*-gnu)
8075	    LD="${LD-ld} -m elf_x86_64_fbsd"
8076	    ;;
8077	  x86_64-*linux*)
8078	    LD="${LD-ld} -m elf_x86_64"
8079	    ;;
8080	  powerpcle-*linux*)
8081	    LD="${LD-ld} -m elf64lppc"
8082	    ;;
8083	  powerpc-*linux*)
8084	    LD="${LD-ld} -m elf64ppc"
8085	    ;;
8086	  s390*-*linux*|s390*-*tpf*)
8087	    LD="${LD-ld} -m elf64_s390"
8088	    ;;
8089	  sparc*-*linux*)
8090	    LD="${LD-ld} -m elf64_sparc"
8091	    ;;
8092	esac
8093	;;
8094    esac
8095  fi
8096  rm -rf conftest*
8097  ;;
8098
8099*-*-sco3.2v5*)
8100  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8101  SAVE_CFLAGS=$CFLAGS
8102  CFLAGS="$CFLAGS -belf"
8103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8104printf %s "checking whether the C compiler needs -belf... " >&6; }
8105if test ${lt_cv_cc_needs_belf+y}
8106then :
8107  printf %s "(cached) " >&6
8108else $as_nop
8109  ac_ext=c
8110ac_cpp='$CPP $CPPFLAGS'
8111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8113ac_compiler_gnu=$ac_cv_c_compiler_gnu
8114
8115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116/* end confdefs.h.  */
8117
8118int
8119main (void)
8120{
8121
8122  ;
8123  return 0;
8124}
8125_ACEOF
8126if ac_fn_c_try_link "$LINENO"
8127then :
8128  lt_cv_cc_needs_belf=yes
8129else $as_nop
8130  lt_cv_cc_needs_belf=no
8131fi
8132rm -f core conftest.err conftest.$ac_objext conftest.beam \
8133    conftest$ac_exeext conftest.$ac_ext
8134     ac_ext=c
8135ac_cpp='$CPP $CPPFLAGS'
8136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8138ac_compiler_gnu=$ac_cv_c_compiler_gnu
8139
8140fi
8141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8142printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8143  if test yes != "$lt_cv_cc_needs_belf"; then
8144    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8145    CFLAGS=$SAVE_CFLAGS
8146  fi
8147  ;;
8148*-*solaris*)
8149  # Find out what ABI is being produced by ac_compile, and set linker
8150  # options accordingly.
8151  echo 'int i;' > conftest.$ac_ext
8152  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8153  (eval $ac_compile) 2>&5
8154  ac_status=$?
8155  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8156  test $ac_status = 0; }; then
8157    case `/usr/bin/file conftest.o` in
8158    *64-bit*)
8159      case $lt_cv_prog_gnu_ld in
8160      yes*)
8161        case $host in
8162        i?86-*-solaris*|x86_64-*-solaris*)
8163          LD="${LD-ld} -m elf_x86_64"
8164          ;;
8165        sparc*-*-solaris*)
8166          LD="${LD-ld} -m elf64_sparc"
8167          ;;
8168        esac
8169        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8170        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8171          LD=${LD-ld}_sol2
8172        fi
8173        ;;
8174      *)
8175	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8176	  LD="${LD-ld} -64"
8177	fi
8178	;;
8179      esac
8180      ;;
8181    esac
8182  fi
8183  rm -rf conftest*
8184  ;;
8185esac
8186
8187need_locks=$enable_libtool_lock
8188
8189if test -n "$ac_tool_prefix"; then
8190  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8191set dummy ${ac_tool_prefix}mt; ac_word=$2
8192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193printf %s "checking for $ac_word... " >&6; }
8194if test ${ac_cv_prog_MANIFEST_TOOL+y}
8195then :
8196  printf %s "(cached) " >&6
8197else $as_nop
8198  if test -n "$MANIFEST_TOOL"; then
8199  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8200else
8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202for as_dir in $PATH
8203do
8204  IFS=$as_save_IFS
8205  case $as_dir in #(((
8206    '') as_dir=./ ;;
8207    */) ;;
8208    *) as_dir=$as_dir/ ;;
8209  esac
8210    for ac_exec_ext in '' $ac_executable_extensions; do
8211  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8212    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8213    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8214    break 2
8215  fi
8216done
8217  done
8218IFS=$as_save_IFS
8219
8220fi
8221fi
8222MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8223if test -n "$MANIFEST_TOOL"; then
8224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8225printf "%s\n" "$MANIFEST_TOOL" >&6; }
8226else
8227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228printf "%s\n" "no" >&6; }
8229fi
8230
8231
8232fi
8233if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8234  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8235  # Extract the first word of "mt", so it can be a program name with args.
8236set dummy mt; ac_word=$2
8237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238printf %s "checking for $ac_word... " >&6; }
8239if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8240then :
8241  printf %s "(cached) " >&6
8242else $as_nop
8243  if test -n "$ac_ct_MANIFEST_TOOL"; then
8244  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8245else
8246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247for as_dir in $PATH
8248do
8249  IFS=$as_save_IFS
8250  case $as_dir in #(((
8251    '') as_dir=./ ;;
8252    */) ;;
8253    *) as_dir=$as_dir/ ;;
8254  esac
8255    for ac_exec_ext in '' $ac_executable_extensions; do
8256  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8257    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8258    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8259    break 2
8260  fi
8261done
8262  done
8263IFS=$as_save_IFS
8264
8265fi
8266fi
8267ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8268if test -n "$ac_ct_MANIFEST_TOOL"; then
8269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8270printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8271else
8272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273printf "%s\n" "no" >&6; }
8274fi
8275
8276  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8277    MANIFEST_TOOL=":"
8278  else
8279    case $cross_compiling:$ac_tool_warned in
8280yes:)
8281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8282printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8283ac_tool_warned=yes ;;
8284esac
8285    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8286  fi
8287else
8288  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8289fi
8290
8291test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8293printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8294if test ${lt_cv_path_mainfest_tool+y}
8295then :
8296  printf %s "(cached) " >&6
8297else $as_nop
8298  lt_cv_path_mainfest_tool=no
8299  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8300  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8301  cat conftest.err >&5
8302  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8303    lt_cv_path_mainfest_tool=yes
8304  fi
8305  rm -f conftest*
8306fi
8307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8308printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8309if test yes != "$lt_cv_path_mainfest_tool"; then
8310  MANIFEST_TOOL=:
8311fi
8312
8313
8314
8315
8316
8317
8318  case $host_os in
8319    rhapsody* | darwin*)
8320    if test -n "$ac_tool_prefix"; then
8321  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8322set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324printf %s "checking for $ac_word... " >&6; }
8325if test ${ac_cv_prog_DSYMUTIL+y}
8326then :
8327  printf %s "(cached) " >&6
8328else $as_nop
8329  if test -n "$DSYMUTIL"; then
8330  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8331else
8332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333for as_dir in $PATH
8334do
8335  IFS=$as_save_IFS
8336  case $as_dir in #(((
8337    '') as_dir=./ ;;
8338    */) ;;
8339    *) as_dir=$as_dir/ ;;
8340  esac
8341    for ac_exec_ext in '' $ac_executable_extensions; do
8342  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8343    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8344    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8345    break 2
8346  fi
8347done
8348  done
8349IFS=$as_save_IFS
8350
8351fi
8352fi
8353DSYMUTIL=$ac_cv_prog_DSYMUTIL
8354if test -n "$DSYMUTIL"; then
8355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8356printf "%s\n" "$DSYMUTIL" >&6; }
8357else
8358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359printf "%s\n" "no" >&6; }
8360fi
8361
8362
8363fi
8364if test -z "$ac_cv_prog_DSYMUTIL"; then
8365  ac_ct_DSYMUTIL=$DSYMUTIL
8366  # Extract the first word of "dsymutil", so it can be a program name with args.
8367set dummy dsymutil; ac_word=$2
8368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369printf %s "checking for $ac_word... " >&6; }
8370if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8371then :
8372  printf %s "(cached) " >&6
8373else $as_nop
8374  if test -n "$ac_ct_DSYMUTIL"; then
8375  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8376else
8377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378for as_dir in $PATH
8379do
8380  IFS=$as_save_IFS
8381  case $as_dir in #(((
8382    '') as_dir=./ ;;
8383    */) ;;
8384    *) as_dir=$as_dir/ ;;
8385  esac
8386    for ac_exec_ext in '' $ac_executable_extensions; do
8387  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8388    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8389    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8390    break 2
8391  fi
8392done
8393  done
8394IFS=$as_save_IFS
8395
8396fi
8397fi
8398ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8399if test -n "$ac_ct_DSYMUTIL"; then
8400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8401printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8402else
8403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404printf "%s\n" "no" >&6; }
8405fi
8406
8407  if test "x$ac_ct_DSYMUTIL" = x; then
8408    DSYMUTIL=":"
8409  else
8410    case $cross_compiling:$ac_tool_warned in
8411yes:)
8412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414ac_tool_warned=yes ;;
8415esac
8416    DSYMUTIL=$ac_ct_DSYMUTIL
8417  fi
8418else
8419  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8420fi
8421
8422    if test -n "$ac_tool_prefix"; then
8423  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8424set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426printf %s "checking for $ac_word... " >&6; }
8427if test ${ac_cv_prog_NMEDIT+y}
8428then :
8429  printf %s "(cached) " >&6
8430else $as_nop
8431  if test -n "$NMEDIT"; then
8432  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8433else
8434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435for as_dir in $PATH
8436do
8437  IFS=$as_save_IFS
8438  case $as_dir in #(((
8439    '') as_dir=./ ;;
8440    */) ;;
8441    *) as_dir=$as_dir/ ;;
8442  esac
8443    for ac_exec_ext in '' $ac_executable_extensions; do
8444  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8445    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8446    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8447    break 2
8448  fi
8449done
8450  done
8451IFS=$as_save_IFS
8452
8453fi
8454fi
8455NMEDIT=$ac_cv_prog_NMEDIT
8456if test -n "$NMEDIT"; then
8457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8458printf "%s\n" "$NMEDIT" >&6; }
8459else
8460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461printf "%s\n" "no" >&6; }
8462fi
8463
8464
8465fi
8466if test -z "$ac_cv_prog_NMEDIT"; then
8467  ac_ct_NMEDIT=$NMEDIT
8468  # Extract the first word of "nmedit", so it can be a program name with args.
8469set dummy nmedit; ac_word=$2
8470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471printf %s "checking for $ac_word... " >&6; }
8472if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8473then :
8474  printf %s "(cached) " >&6
8475else $as_nop
8476  if test -n "$ac_ct_NMEDIT"; then
8477  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8478else
8479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480for as_dir in $PATH
8481do
8482  IFS=$as_save_IFS
8483  case $as_dir in #(((
8484    '') as_dir=./ ;;
8485    */) ;;
8486    *) as_dir=$as_dir/ ;;
8487  esac
8488    for ac_exec_ext in '' $ac_executable_extensions; do
8489  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8490    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8491    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8492    break 2
8493  fi
8494done
8495  done
8496IFS=$as_save_IFS
8497
8498fi
8499fi
8500ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8501if test -n "$ac_ct_NMEDIT"; then
8502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8503printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8504else
8505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506printf "%s\n" "no" >&6; }
8507fi
8508
8509  if test "x$ac_ct_NMEDIT" = x; then
8510    NMEDIT=":"
8511  else
8512    case $cross_compiling:$ac_tool_warned in
8513yes:)
8514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8515printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8516ac_tool_warned=yes ;;
8517esac
8518    NMEDIT=$ac_ct_NMEDIT
8519  fi
8520else
8521  NMEDIT="$ac_cv_prog_NMEDIT"
8522fi
8523
8524    if test -n "$ac_tool_prefix"; then
8525  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8526set dummy ${ac_tool_prefix}lipo; ac_word=$2
8527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528printf %s "checking for $ac_word... " >&6; }
8529if test ${ac_cv_prog_LIPO+y}
8530then :
8531  printf %s "(cached) " >&6
8532else $as_nop
8533  if test -n "$LIPO"; then
8534  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8535else
8536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537for as_dir in $PATH
8538do
8539  IFS=$as_save_IFS
8540  case $as_dir in #(((
8541    '') as_dir=./ ;;
8542    */) ;;
8543    *) as_dir=$as_dir/ ;;
8544  esac
8545    for ac_exec_ext in '' $ac_executable_extensions; do
8546  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8547    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8548    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8549    break 2
8550  fi
8551done
8552  done
8553IFS=$as_save_IFS
8554
8555fi
8556fi
8557LIPO=$ac_cv_prog_LIPO
8558if test -n "$LIPO"; then
8559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8560printf "%s\n" "$LIPO" >&6; }
8561else
8562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563printf "%s\n" "no" >&6; }
8564fi
8565
8566
8567fi
8568if test -z "$ac_cv_prog_LIPO"; then
8569  ac_ct_LIPO=$LIPO
8570  # Extract the first word of "lipo", so it can be a program name with args.
8571set dummy lipo; ac_word=$2
8572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573printf %s "checking for $ac_word... " >&6; }
8574if test ${ac_cv_prog_ac_ct_LIPO+y}
8575then :
8576  printf %s "(cached) " >&6
8577else $as_nop
8578  if test -n "$ac_ct_LIPO"; then
8579  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8580else
8581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582for as_dir in $PATH
8583do
8584  IFS=$as_save_IFS
8585  case $as_dir in #(((
8586    '') as_dir=./ ;;
8587    */) ;;
8588    *) as_dir=$as_dir/ ;;
8589  esac
8590    for ac_exec_ext in '' $ac_executable_extensions; do
8591  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8592    ac_cv_prog_ac_ct_LIPO="lipo"
8593    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8594    break 2
8595  fi
8596done
8597  done
8598IFS=$as_save_IFS
8599
8600fi
8601fi
8602ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8603if test -n "$ac_ct_LIPO"; then
8604  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8605printf "%s\n" "$ac_ct_LIPO" >&6; }
8606else
8607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608printf "%s\n" "no" >&6; }
8609fi
8610
8611  if test "x$ac_ct_LIPO" = x; then
8612    LIPO=":"
8613  else
8614    case $cross_compiling:$ac_tool_warned in
8615yes:)
8616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618ac_tool_warned=yes ;;
8619esac
8620    LIPO=$ac_ct_LIPO
8621  fi
8622else
8623  LIPO="$ac_cv_prog_LIPO"
8624fi
8625
8626    if test -n "$ac_tool_prefix"; then
8627  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8628set dummy ${ac_tool_prefix}otool; ac_word=$2
8629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630printf %s "checking for $ac_word... " >&6; }
8631if test ${ac_cv_prog_OTOOL+y}
8632then :
8633  printf %s "(cached) " >&6
8634else $as_nop
8635  if test -n "$OTOOL"; then
8636  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8637else
8638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639for as_dir in $PATH
8640do
8641  IFS=$as_save_IFS
8642  case $as_dir in #(((
8643    '') as_dir=./ ;;
8644    */) ;;
8645    *) as_dir=$as_dir/ ;;
8646  esac
8647    for ac_exec_ext in '' $ac_executable_extensions; do
8648  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8649    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8650    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8651    break 2
8652  fi
8653done
8654  done
8655IFS=$as_save_IFS
8656
8657fi
8658fi
8659OTOOL=$ac_cv_prog_OTOOL
8660if test -n "$OTOOL"; then
8661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8662printf "%s\n" "$OTOOL" >&6; }
8663else
8664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665printf "%s\n" "no" >&6; }
8666fi
8667
8668
8669fi
8670if test -z "$ac_cv_prog_OTOOL"; then
8671  ac_ct_OTOOL=$OTOOL
8672  # Extract the first word of "otool", so it can be a program name with args.
8673set dummy otool; ac_word=$2
8674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675printf %s "checking for $ac_word... " >&6; }
8676if test ${ac_cv_prog_ac_ct_OTOOL+y}
8677then :
8678  printf %s "(cached) " >&6
8679else $as_nop
8680  if test -n "$ac_ct_OTOOL"; then
8681  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8682else
8683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684for as_dir in $PATH
8685do
8686  IFS=$as_save_IFS
8687  case $as_dir in #(((
8688    '') as_dir=./ ;;
8689    */) ;;
8690    *) as_dir=$as_dir/ ;;
8691  esac
8692    for ac_exec_ext in '' $ac_executable_extensions; do
8693  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8694    ac_cv_prog_ac_ct_OTOOL="otool"
8695    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8696    break 2
8697  fi
8698done
8699  done
8700IFS=$as_save_IFS
8701
8702fi
8703fi
8704ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8705if test -n "$ac_ct_OTOOL"; then
8706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8707printf "%s\n" "$ac_ct_OTOOL" >&6; }
8708else
8709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710printf "%s\n" "no" >&6; }
8711fi
8712
8713  if test "x$ac_ct_OTOOL" = x; then
8714    OTOOL=":"
8715  else
8716    case $cross_compiling:$ac_tool_warned in
8717yes:)
8718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8719printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8720ac_tool_warned=yes ;;
8721esac
8722    OTOOL=$ac_ct_OTOOL
8723  fi
8724else
8725  OTOOL="$ac_cv_prog_OTOOL"
8726fi
8727
8728    if test -n "$ac_tool_prefix"; then
8729  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8730set dummy ${ac_tool_prefix}otool64; ac_word=$2
8731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732printf %s "checking for $ac_word... " >&6; }
8733if test ${ac_cv_prog_OTOOL64+y}
8734then :
8735  printf %s "(cached) " >&6
8736else $as_nop
8737  if test -n "$OTOOL64"; then
8738  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8739else
8740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741for as_dir in $PATH
8742do
8743  IFS=$as_save_IFS
8744  case $as_dir in #(((
8745    '') as_dir=./ ;;
8746    */) ;;
8747    *) as_dir=$as_dir/ ;;
8748  esac
8749    for ac_exec_ext in '' $ac_executable_extensions; do
8750  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8751    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8752    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8753    break 2
8754  fi
8755done
8756  done
8757IFS=$as_save_IFS
8758
8759fi
8760fi
8761OTOOL64=$ac_cv_prog_OTOOL64
8762if test -n "$OTOOL64"; then
8763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8764printf "%s\n" "$OTOOL64" >&6; }
8765else
8766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767printf "%s\n" "no" >&6; }
8768fi
8769
8770
8771fi
8772if test -z "$ac_cv_prog_OTOOL64"; then
8773  ac_ct_OTOOL64=$OTOOL64
8774  # Extract the first word of "otool64", so it can be a program name with args.
8775set dummy otool64; ac_word=$2
8776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777printf %s "checking for $ac_word... " >&6; }
8778if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8779then :
8780  printf %s "(cached) " >&6
8781else $as_nop
8782  if test -n "$ac_ct_OTOOL64"; then
8783  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8784else
8785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786for as_dir in $PATH
8787do
8788  IFS=$as_save_IFS
8789  case $as_dir in #(((
8790    '') as_dir=./ ;;
8791    */) ;;
8792    *) as_dir=$as_dir/ ;;
8793  esac
8794    for ac_exec_ext in '' $ac_executable_extensions; do
8795  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8796    ac_cv_prog_ac_ct_OTOOL64="otool64"
8797    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8798    break 2
8799  fi
8800done
8801  done
8802IFS=$as_save_IFS
8803
8804fi
8805fi
8806ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8807if test -n "$ac_ct_OTOOL64"; then
8808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8809printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8810else
8811  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812printf "%s\n" "no" >&6; }
8813fi
8814
8815  if test "x$ac_ct_OTOOL64" = x; then
8816    OTOOL64=":"
8817  else
8818    case $cross_compiling:$ac_tool_warned in
8819yes:)
8820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8821printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8822ac_tool_warned=yes ;;
8823esac
8824    OTOOL64=$ac_ct_OTOOL64
8825  fi
8826else
8827  OTOOL64="$ac_cv_prog_OTOOL64"
8828fi
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8857printf %s "checking for -single_module linker flag... " >&6; }
8858if test ${lt_cv_apple_cc_single_mod+y}
8859then :
8860  printf %s "(cached) " >&6
8861else $as_nop
8862  lt_cv_apple_cc_single_mod=no
8863      if test -z "$LT_MULTI_MODULE"; then
8864	# By default we will add the -single_module flag. You can override
8865	# by either setting the environment variable LT_MULTI_MODULE
8866	# non-empty at configure time, or by adding -multi_module to the
8867	# link flags.
8868	rm -rf libconftest.dylib*
8869	echo "int foo(void){return 1;}" > conftest.c
8870	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8871-dynamiclib -Wl,-single_module conftest.c" >&5
8872	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8873	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8874        _lt_result=$?
8875	# If there is a non-empty error log, and "single_module"
8876	# appears in it, assume the flag caused a linker warning
8877        if test -s conftest.err && $GREP single_module conftest.err; then
8878	  cat conftest.err >&5
8879	# Otherwise, if the output was created with a 0 exit code from
8880	# the compiler, it worked.
8881	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8882	  lt_cv_apple_cc_single_mod=yes
8883	else
8884	  cat conftest.err >&5
8885	fi
8886	rm -rf libconftest.dylib*
8887	rm -f conftest.*
8888      fi
8889fi
8890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8891printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8892
8893    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8894printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8895if test ${lt_cv_ld_exported_symbols_list+y}
8896then :
8897  printf %s "(cached) " >&6
8898else $as_nop
8899  lt_cv_ld_exported_symbols_list=no
8900      save_LDFLAGS=$LDFLAGS
8901      echo "_main" > conftest.sym
8902      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8903      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904/* end confdefs.h.  */
8905
8906int
8907main (void)
8908{
8909
8910  ;
8911  return 0;
8912}
8913_ACEOF
8914if ac_fn_c_try_link "$LINENO"
8915then :
8916  lt_cv_ld_exported_symbols_list=yes
8917else $as_nop
8918  lt_cv_ld_exported_symbols_list=no
8919fi
8920rm -f core conftest.err conftest.$ac_objext conftest.beam \
8921    conftest$ac_exeext conftest.$ac_ext
8922	LDFLAGS=$save_LDFLAGS
8923
8924fi
8925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8926printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8927
8928    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8929printf %s "checking for -force_load linker flag... " >&6; }
8930if test ${lt_cv_ld_force_load+y}
8931then :
8932  printf %s "(cached) " >&6
8933else $as_nop
8934  lt_cv_ld_force_load=no
8935      cat > conftest.c << _LT_EOF
8936int forced_loaded() { return 2;}
8937_LT_EOF
8938      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8939      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8940      echo "$AR cru libconftest.a conftest.o" >&5
8941      $AR cru libconftest.a conftest.o 2>&5
8942      echo "$RANLIB libconftest.a" >&5
8943      $RANLIB libconftest.a 2>&5
8944      cat > conftest.c << _LT_EOF
8945int main() { return 0;}
8946_LT_EOF
8947      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8948      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8949      _lt_result=$?
8950      if test -s conftest.err && $GREP force_load conftest.err; then
8951	cat conftest.err >&5
8952      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8953	lt_cv_ld_force_load=yes
8954      else
8955	cat conftest.err >&5
8956      fi
8957        rm -f conftest.err libconftest.a conftest conftest.c
8958        rm -rf conftest.dSYM
8959
8960fi
8961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8962printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8963    case $host_os in
8964    rhapsody* | darwin1.[012])
8965      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8966    darwin1.*)
8967      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8968    darwin*) # darwin 5.x on
8969      # if running on 10.5 or later, the deployment target defaults
8970      # to the OS version, if on x86, and 10.4, the deployment
8971      # target defaults to 10.4. Don't you love it?
8972      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8973	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8974	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8975	10.[012][,.]*)
8976	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8977	10.*)
8978	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8979      esac
8980    ;;
8981  esac
8982    if test yes = "$lt_cv_apple_cc_single_mod"; then
8983      _lt_dar_single_mod='$single_module'
8984    fi
8985    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8986      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8987    else
8988      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8989    fi
8990    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8991      _lt_dsymutil='~$DSYMUTIL $lib || :'
8992    else
8993      _lt_dsymutil=
8994    fi
8995    ;;
8996  esac
8997
8998# func_munge_path_list VARIABLE PATH
8999# -----------------------------------
9000# VARIABLE is name of variable containing _space_ separated list of
9001# directories to be munged by the contents of PATH, which is string
9002# having a format:
9003# "DIR[:DIR]:"
9004#       string "DIR[ DIR]" will be prepended to VARIABLE
9005# ":DIR[:DIR]"
9006#       string "DIR[ DIR]" will be appended to VARIABLE
9007# "DIRP[:DIRP]::[DIRA:]DIRA"
9008#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9009#       "DIRA[ DIRA]" will be appended to VARIABLE
9010# "DIR[:DIR]"
9011#       VARIABLE will be replaced by "DIR[ DIR]"
9012func_munge_path_list ()
9013{
9014    case x$2 in
9015    x)
9016        ;;
9017    *:)
9018        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9019        ;;
9020    x:*)
9021        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9022        ;;
9023    *::*)
9024        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9025        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9026        ;;
9027    *)
9028        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9029        ;;
9030    esac
9031}
9032
9033ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9034"
9035if test "x$ac_cv_header_dlfcn_h" = xyes
9036then :
9037  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9038
9039fi
9040
9041
9042
9043
9044
9045# Set options
9046# Check whether --enable-static was given.
9047if test ${enable_static+y}
9048then :
9049  enableval=$enable_static; p=${PACKAGE-default}
9050    case $enableval in
9051    yes) enable_static=yes ;;
9052    no) enable_static=no ;;
9053    *)
9054     enable_static=no
9055      # Look at the argument we got.  We use all the common list separators.
9056      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9057      for pkg in $enableval; do
9058	IFS=$lt_save_ifs
9059	if test "X$pkg" = "X$p"; then
9060	  enable_static=yes
9061	fi
9062      done
9063      IFS=$lt_save_ifs
9064      ;;
9065    esac
9066else $as_nop
9067  enable_static=no
9068fi
9069
9070
9071
9072
9073
9074
9075
9076
9077# Check whether --with-pic was given.
9078if test ${with_pic+y}
9079then :
9080  withval=$with_pic; lt_p=${PACKAGE-default}
9081    case $withval in
9082    yes|no) pic_mode=$withval ;;
9083    *)
9084      pic_mode=default
9085      # Look at the argument we got.  We use all the common list separators.
9086      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9087      for lt_pkg in $withval; do
9088	IFS=$lt_save_ifs
9089	if test "X$lt_pkg" = "X$lt_p"; then
9090	  pic_mode=yes
9091	fi
9092      done
9093      IFS=$lt_save_ifs
9094      ;;
9095    esac
9096else $as_nop
9097  pic_mode=yes
9098fi
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108        enable_dlopen=no
9109
9110
9111  enable_win32_dll=no
9112
9113
9114            # Check whether --enable-shared was given.
9115if test ${enable_shared+y}
9116then :
9117  enableval=$enable_shared; p=${PACKAGE-default}
9118    case $enableval in
9119    yes) enable_shared=yes ;;
9120    no) enable_shared=no ;;
9121    *)
9122      enable_shared=no
9123      # Look at the argument we got.  We use all the common list separators.
9124      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9125      for pkg in $enableval; do
9126	IFS=$lt_save_ifs
9127	if test "X$pkg" = "X$p"; then
9128	  enable_shared=yes
9129	fi
9130      done
9131      IFS=$lt_save_ifs
9132      ;;
9133    esac
9134else $as_nop
9135  enable_shared=yes
9136fi
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148  # Check whether --enable-fast-install was given.
9149if test ${enable_fast_install+y}
9150then :
9151  enableval=$enable_fast_install; p=${PACKAGE-default}
9152    case $enableval in
9153    yes) enable_fast_install=yes ;;
9154    no) enable_fast_install=no ;;
9155    *)
9156      enable_fast_install=no
9157      # Look at the argument we got.  We use all the common list separators.
9158      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9159      for pkg in $enableval; do
9160	IFS=$lt_save_ifs
9161	if test "X$pkg" = "X$p"; then
9162	  enable_fast_install=yes
9163	fi
9164      done
9165      IFS=$lt_save_ifs
9166      ;;
9167    esac
9168else $as_nop
9169  enable_fast_install=yes
9170fi
9171
9172
9173
9174
9175
9176
9177
9178
9179  shared_archive_member_spec=
9180case $host,$enable_shared in
9181power*-*-aix[5-9]*,yes)
9182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9183printf %s "checking which variant of shared library versioning to provide... " >&6; }
9184
9185# Check whether --with-aix-soname was given.
9186if test ${with_aix_soname+y}
9187then :
9188  withval=$with_aix_soname; case $withval in
9189    aix|svr4|both)
9190      ;;
9191    *)
9192      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9193      ;;
9194    esac
9195    lt_cv_with_aix_soname=$with_aix_soname
9196else $as_nop
9197  if test ${lt_cv_with_aix_soname+y}
9198then :
9199  printf %s "(cached) " >&6
9200else $as_nop
9201  lt_cv_with_aix_soname=aix
9202fi
9203
9204    with_aix_soname=$lt_cv_with_aix_soname
9205fi
9206
9207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9208printf "%s\n" "$with_aix_soname" >&6; }
9209  if test aix != "$with_aix_soname"; then
9210    # For the AIX way of multilib, we name the shared archive member
9211    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9212    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9213    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9214    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9215    if test 64 = "${OBJECT_MODE-32}"; then
9216      shared_archive_member_spec=shr_64
9217    else
9218      shared_archive_member_spec=shr
9219    fi
9220  fi
9221  ;;
9222*)
9223  with_aix_soname=aix
9224  ;;
9225esac
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236# This can be used to rebuild libtool when needed
9237LIBTOOL_DEPS=$ltmain
9238
9239# Always use our own libtool.
9240LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271test -z "$LN_S" && LN_S="ln -s"
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286if test -n "${ZSH_VERSION+set}"; then
9287   setopt NO_GLOB_SUBST
9288fi
9289
9290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9291printf %s "checking for objdir... " >&6; }
9292if test ${lt_cv_objdir+y}
9293then :
9294  printf %s "(cached) " >&6
9295else $as_nop
9296  rm -f .libs 2>/dev/null
9297mkdir .libs 2>/dev/null
9298if test -d .libs; then
9299  lt_cv_objdir=.libs
9300else
9301  # MS-DOS does not allow filenames that begin with a dot.
9302  lt_cv_objdir=_libs
9303fi
9304rmdir .libs 2>/dev/null
9305fi
9306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9307printf "%s\n" "$lt_cv_objdir" >&6; }
9308objdir=$lt_cv_objdir
9309
9310
9311
9312
9313
9314printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9315
9316
9317
9318
9319case $host_os in
9320aix3*)
9321  # AIX sometimes has problems with the GCC collect2 program.  For some
9322  # reason, if we set the COLLECT_NAMES environment variable, the problems
9323  # vanish in a puff of smoke.
9324  if test set != "${COLLECT_NAMES+set}"; then
9325    COLLECT_NAMES=
9326    export COLLECT_NAMES
9327  fi
9328  ;;
9329esac
9330
9331# Global variables:
9332ofile=libtool
9333can_build_shared=yes
9334
9335# All known linkers require a '.a' archive for static linking (except MSVC,
9336# which needs '.lib').
9337libext=a
9338
9339with_gnu_ld=$lt_cv_prog_gnu_ld
9340
9341old_CC=$CC
9342old_CFLAGS=$CFLAGS
9343
9344# Set sane defaults for various variables
9345test -z "$CC" && CC=cc
9346test -z "$LTCC" && LTCC=$CC
9347test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9348test -z "$LD" && LD=ld
9349test -z "$ac_objext" && ac_objext=o
9350
9351func_cc_basename $compiler
9352cc_basename=$func_cc_basename_result
9353
9354
9355# Only perform the check for file, if the check method requires it
9356test -z "$MAGIC_CMD" && MAGIC_CMD=file
9357case $deplibs_check_method in
9358file_magic*)
9359  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9360    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9361printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9362if test ${lt_cv_path_MAGIC_CMD+y}
9363then :
9364  printf %s "(cached) " >&6
9365else $as_nop
9366  case $MAGIC_CMD in
9367[\\/*] |  ?:[\\/]*)
9368  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9369  ;;
9370*)
9371  lt_save_MAGIC_CMD=$MAGIC_CMD
9372  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9373  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9374  for ac_dir in $ac_dummy; do
9375    IFS=$lt_save_ifs
9376    test -z "$ac_dir" && ac_dir=.
9377    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9378      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9379      if test -n "$file_magic_test_file"; then
9380	case $deplibs_check_method in
9381	"file_magic "*)
9382	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9383	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9384	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9385	    $EGREP "$file_magic_regex" > /dev/null; then
9386	    :
9387	  else
9388	    cat <<_LT_EOF 1>&2
9389
9390*** Warning: the command libtool uses to detect shared libraries,
9391*** $file_magic_cmd, produces output that libtool cannot recognize.
9392*** The result is that libtool may fail to recognize shared libraries
9393*** as such.  This will affect the creation of libtool libraries that
9394*** depend on shared libraries, but programs linked with such libtool
9395*** libraries will work regardless of this problem.  Nevertheless, you
9396*** may want to report the problem to your system manager and/or to
9397*** bug-libtool@gnu.org
9398
9399_LT_EOF
9400	  fi ;;
9401	esac
9402      fi
9403      break
9404    fi
9405  done
9406  IFS=$lt_save_ifs
9407  MAGIC_CMD=$lt_save_MAGIC_CMD
9408  ;;
9409esac
9410fi
9411
9412MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9413if test -n "$MAGIC_CMD"; then
9414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9415printf "%s\n" "$MAGIC_CMD" >&6; }
9416else
9417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418printf "%s\n" "no" >&6; }
9419fi
9420
9421
9422
9423
9424
9425if test -z "$lt_cv_path_MAGIC_CMD"; then
9426  if test -n "$ac_tool_prefix"; then
9427    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9428printf %s "checking for file... " >&6; }
9429if test ${lt_cv_path_MAGIC_CMD+y}
9430then :
9431  printf %s "(cached) " >&6
9432else $as_nop
9433  case $MAGIC_CMD in
9434[\\/*] |  ?:[\\/]*)
9435  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9436  ;;
9437*)
9438  lt_save_MAGIC_CMD=$MAGIC_CMD
9439  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9440  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9441  for ac_dir in $ac_dummy; do
9442    IFS=$lt_save_ifs
9443    test -z "$ac_dir" && ac_dir=.
9444    if test -f "$ac_dir/file"; then
9445      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9446      if test -n "$file_magic_test_file"; then
9447	case $deplibs_check_method in
9448	"file_magic "*)
9449	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9450	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9451	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9452	    $EGREP "$file_magic_regex" > /dev/null; then
9453	    :
9454	  else
9455	    cat <<_LT_EOF 1>&2
9456
9457*** Warning: the command libtool uses to detect shared libraries,
9458*** $file_magic_cmd, produces output that libtool cannot recognize.
9459*** The result is that libtool may fail to recognize shared libraries
9460*** as such.  This will affect the creation of libtool libraries that
9461*** depend on shared libraries, but programs linked with such libtool
9462*** libraries will work regardless of this problem.  Nevertheless, you
9463*** may want to report the problem to your system manager and/or to
9464*** bug-libtool@gnu.org
9465
9466_LT_EOF
9467	  fi ;;
9468	esac
9469      fi
9470      break
9471    fi
9472  done
9473  IFS=$lt_save_ifs
9474  MAGIC_CMD=$lt_save_MAGIC_CMD
9475  ;;
9476esac
9477fi
9478
9479MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9480if test -n "$MAGIC_CMD"; then
9481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9482printf "%s\n" "$MAGIC_CMD" >&6; }
9483else
9484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485printf "%s\n" "no" >&6; }
9486fi
9487
9488
9489  else
9490    MAGIC_CMD=:
9491  fi
9492fi
9493
9494  fi
9495  ;;
9496esac
9497
9498# Use C for the default configuration in the libtool script
9499
9500lt_save_CC=$CC
9501ac_ext=c
9502ac_cpp='$CPP $CPPFLAGS'
9503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9505ac_compiler_gnu=$ac_cv_c_compiler_gnu
9506
9507
9508# Source file extension for C test sources.
9509ac_ext=c
9510
9511# Object file extension for compiled C test sources.
9512objext=o
9513objext=$objext
9514
9515# Code to be used in simple compile tests
9516lt_simple_compile_test_code="int some_variable = 0;"
9517
9518# Code to be used in simple link tests
9519lt_simple_link_test_code='int main(){return(0);}'
9520
9521
9522
9523
9524
9525
9526
9527# If no C compiler was specified, use CC.
9528LTCC=${LTCC-"$CC"}
9529
9530# If no C compiler flags were specified, use CFLAGS.
9531LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9532
9533# Allow CC to be a program name with arguments.
9534compiler=$CC
9535
9536# Save the default compiler, since it gets overwritten when the other
9537# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9538compiler_DEFAULT=$CC
9539
9540# save warnings/boilerplate of simple test code
9541ac_outfile=conftest.$ac_objext
9542echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9543eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9544_lt_compiler_boilerplate=`cat conftest.err`
9545$RM conftest*
9546
9547ac_outfile=conftest.$ac_objext
9548echo "$lt_simple_link_test_code" >conftest.$ac_ext
9549eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9550_lt_linker_boilerplate=`cat conftest.err`
9551$RM -r conftest*
9552
9553
9554## CAVEAT EMPTOR:
9555## There is no encapsulation within the following macros, do not change
9556## the running order or otherwise move them around unless you know exactly
9557## what you are doing...
9558if test -n "$compiler"; then
9559
9560lt_prog_compiler_no_builtin_flag=
9561
9562if test yes = "$GCC"; then
9563  case $cc_basename in
9564  nvcc*)
9565    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9566  *)
9567    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9568  esac
9569
9570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9571printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9572if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9573then :
9574  printf %s "(cached) " >&6
9575else $as_nop
9576  lt_cv_prog_compiler_rtti_exceptions=no
9577   ac_outfile=conftest.$ac_objext
9578   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9579   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9580   # Insert the option either (1) after the last *FLAGS variable, or
9581   # (2) before a word containing "conftest.", or (3) at the end.
9582   # Note that $ac_compile itself does not contain backslashes and begins
9583   # with a dollar sign (not a hyphen), so the echo should work correctly.
9584   # The option is referenced via a variable to avoid confusing sed.
9585   lt_compile=`echo "$ac_compile" | $SED \
9586   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9587   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9588   -e 's:$: $lt_compiler_flag:'`
9589   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9590   (eval "$lt_compile" 2>conftest.err)
9591   ac_status=$?
9592   cat conftest.err >&5
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   if (exit $ac_status) && test -s "$ac_outfile"; then
9595     # The compiler can only warn and ignore the option if not recognized
9596     # So say no if there are warnings other than the usual output.
9597     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9598     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9599     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9600       lt_cv_prog_compiler_rtti_exceptions=yes
9601     fi
9602   fi
9603   $RM conftest*
9604
9605fi
9606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9607printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9608
9609if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9610    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9611else
9612    :
9613fi
9614
9615fi
9616
9617
9618
9619
9620
9621
9622  lt_prog_compiler_wl=
9623lt_prog_compiler_pic=
9624lt_prog_compiler_static=
9625
9626
9627  if test yes = "$GCC"; then
9628    lt_prog_compiler_wl='-Wl,'
9629    lt_prog_compiler_static='-static'
9630
9631    case $host_os in
9632      aix*)
9633      # All AIX code is PIC.
9634      if test ia64 = "$host_cpu"; then
9635	# AIX 5 now supports IA64 processor
9636	lt_prog_compiler_static='-Bstatic'
9637      fi
9638      lt_prog_compiler_pic='-fPIC'
9639      ;;
9640
9641    amigaos*)
9642      case $host_cpu in
9643      powerpc)
9644            # see comment about AmigaOS4 .so support
9645            lt_prog_compiler_pic='-fPIC'
9646        ;;
9647      m68k)
9648            # FIXME: we need at least 68020 code to build shared libraries, but
9649            # adding the '-m68020' flag to GCC prevents building anything better,
9650            # like '-m68040'.
9651            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9652        ;;
9653      esac
9654      ;;
9655
9656    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9657      # PIC is the default for these OSes.
9658      ;;
9659
9660    mingw* | cygwin* | pw32* | os2* | cegcc*)
9661      # This hack is so that the source file can tell whether it is being
9662      # built for inclusion in a dll (and should export symbols for example).
9663      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9664      # (--disable-auto-import) libraries
9665      lt_prog_compiler_pic='-DDLL_EXPORT'
9666      case $host_os in
9667      os2*)
9668	lt_prog_compiler_static='$wl-static'
9669	;;
9670      esac
9671      ;;
9672
9673    darwin* | rhapsody*)
9674      # PIC is the default on this platform
9675      # Common symbols not allowed in MH_DYLIB files
9676      lt_prog_compiler_pic='-fno-common'
9677      ;;
9678
9679    haiku*)
9680      # PIC is the default for Haiku.
9681      # The "-static" flag exists, but is broken.
9682      lt_prog_compiler_static=
9683      ;;
9684
9685    hpux*)
9686      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9687      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9688      # sets the default TLS model and affects inlining.
9689      case $host_cpu in
9690      hppa*64*)
9691	# +Z the default
9692	;;
9693      *)
9694	lt_prog_compiler_pic='-fPIC'
9695	;;
9696      esac
9697      ;;
9698
9699    interix[3-9]*)
9700      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9701      # Instead, we relocate shared libraries at runtime.
9702      ;;
9703
9704    msdosdjgpp*)
9705      # Just because we use GCC doesn't mean we suddenly get shared libraries
9706      # on systems that don't support them.
9707      lt_prog_compiler_can_build_shared=no
9708      enable_shared=no
9709      ;;
9710
9711    *nto* | *qnx*)
9712      # QNX uses GNU C++, but need to define -shared option too, otherwise
9713      # it will coredump.
9714      lt_prog_compiler_pic='-fPIC -shared'
9715      ;;
9716
9717    sysv4*MP*)
9718      if test -d /usr/nec; then
9719	lt_prog_compiler_pic=-Kconform_pic
9720      fi
9721      ;;
9722
9723    *)
9724      lt_prog_compiler_pic='-fPIC'
9725      ;;
9726    esac
9727
9728    case $cc_basename in
9729    nvcc*) # Cuda Compiler Driver 2.2
9730      lt_prog_compiler_wl='-Xlinker '
9731      if test -n "$lt_prog_compiler_pic"; then
9732        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9733      fi
9734      ;;
9735    esac
9736  else
9737    # PORTME Check for flag to pass linker flags through the system compiler.
9738    case $host_os in
9739    aix*)
9740      lt_prog_compiler_wl='-Wl,'
9741      if test ia64 = "$host_cpu"; then
9742	# AIX 5 now supports IA64 processor
9743	lt_prog_compiler_static='-Bstatic'
9744      else
9745	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9746      fi
9747      ;;
9748
9749    darwin* | rhapsody*)
9750      # PIC is the default on this platform
9751      # Common symbols not allowed in MH_DYLIB files
9752      lt_prog_compiler_pic='-fno-common'
9753      case $cc_basename in
9754      nagfor*)
9755        # NAG Fortran compiler
9756        lt_prog_compiler_wl='-Wl,-Wl,,'
9757        lt_prog_compiler_pic='-PIC'
9758        lt_prog_compiler_static='-Bstatic'
9759        ;;
9760      esac
9761      ;;
9762
9763    mingw* | cygwin* | pw32* | os2* | cegcc*)
9764      # This hack is so that the source file can tell whether it is being
9765      # built for inclusion in a dll (and should export symbols for example).
9766      lt_prog_compiler_pic='-DDLL_EXPORT'
9767      case $host_os in
9768      os2*)
9769	lt_prog_compiler_static='$wl-static'
9770	;;
9771      esac
9772      ;;
9773
9774    hpux9* | hpux10* | hpux11*)
9775      lt_prog_compiler_wl='-Wl,'
9776      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9777      # not for PA HP-UX.
9778      case $host_cpu in
9779      hppa*64*|ia64*)
9780	# +Z the default
9781	;;
9782      *)
9783	lt_prog_compiler_pic='+Z'
9784	;;
9785      esac
9786      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9787      lt_prog_compiler_static='$wl-a ${wl}archive'
9788      ;;
9789
9790    irix5* | irix6* | nonstopux*)
9791      lt_prog_compiler_wl='-Wl,'
9792      # PIC (with -KPIC) is the default.
9793      lt_prog_compiler_static='-non_shared'
9794      ;;
9795
9796    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9797      case $cc_basename in
9798      # old Intel for x86_64, which still supported -KPIC.
9799      ecc*)
9800	lt_prog_compiler_wl='-Wl,'
9801	lt_prog_compiler_pic='-KPIC'
9802	lt_prog_compiler_static='-static'
9803        ;;
9804      # icc used to be incompatible with GCC.
9805      # ICC 10 doesn't accept -KPIC any more.
9806      icc* | ifort*)
9807	lt_prog_compiler_wl='-Wl,'
9808	lt_prog_compiler_pic='-fPIC'
9809	lt_prog_compiler_static='-static'
9810        ;;
9811      # Lahey Fortran 8.1.
9812      lf95*)
9813	lt_prog_compiler_wl='-Wl,'
9814	lt_prog_compiler_pic='--shared'
9815	lt_prog_compiler_static='--static'
9816	;;
9817      nagfor*)
9818	# NAG Fortran compiler
9819	lt_prog_compiler_wl='-Wl,-Wl,,'
9820	lt_prog_compiler_pic='-PIC'
9821	lt_prog_compiler_static='-Bstatic'
9822	;;
9823      tcc*)
9824	# Fabrice Bellard et al's Tiny C Compiler
9825	lt_prog_compiler_wl='-Wl,'
9826	lt_prog_compiler_pic='-fPIC'
9827	lt_prog_compiler_static='-static'
9828	;;
9829      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9830        # Portland Group compilers (*not* the Pentium gcc compiler,
9831	# which looks to be a dead project)
9832	lt_prog_compiler_wl='-Wl,'
9833	lt_prog_compiler_pic='-fpic'
9834	lt_prog_compiler_static='-Bstatic'
9835        ;;
9836      ccc*)
9837        lt_prog_compiler_wl='-Wl,'
9838        # All Alpha code is PIC.
9839        lt_prog_compiler_static='-non_shared'
9840        ;;
9841      xl* | bgxl* | bgf* | mpixl*)
9842	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9843	lt_prog_compiler_wl='-Wl,'
9844	lt_prog_compiler_pic='-qpic'
9845	lt_prog_compiler_static='-qstaticlink'
9846	;;
9847      *)
9848	case `$CC -V 2>&1 | sed 5q` in
9849	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9850	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9851	  lt_prog_compiler_pic='-KPIC'
9852	  lt_prog_compiler_static='-Bstatic'
9853	  lt_prog_compiler_wl=''
9854	  ;;
9855	*Sun\ F* | *Sun*Fortran*)
9856	  lt_prog_compiler_pic='-KPIC'
9857	  lt_prog_compiler_static='-Bstatic'
9858	  lt_prog_compiler_wl='-Qoption ld '
9859	  ;;
9860	*Sun\ C*)
9861	  # Sun C 5.9
9862	  lt_prog_compiler_pic='-KPIC'
9863	  lt_prog_compiler_static='-Bstatic'
9864	  lt_prog_compiler_wl='-Wl,'
9865	  ;;
9866        *Intel*\ [CF]*Compiler*)
9867	  lt_prog_compiler_wl='-Wl,'
9868	  lt_prog_compiler_pic='-fPIC'
9869	  lt_prog_compiler_static='-static'
9870	  ;;
9871	*Portland\ Group*)
9872	  lt_prog_compiler_wl='-Wl,'
9873	  lt_prog_compiler_pic='-fpic'
9874	  lt_prog_compiler_static='-Bstatic'
9875	  ;;
9876	esac
9877	;;
9878      esac
9879      ;;
9880
9881    newsos6)
9882      lt_prog_compiler_pic='-KPIC'
9883      lt_prog_compiler_static='-Bstatic'
9884      ;;
9885
9886    *nto* | *qnx*)
9887      # QNX uses GNU C++, but need to define -shared option too, otherwise
9888      # it will coredump.
9889      lt_prog_compiler_pic='-fPIC -shared'
9890      ;;
9891
9892    osf3* | osf4* | osf5*)
9893      lt_prog_compiler_wl='-Wl,'
9894      # All OSF/1 code is PIC.
9895      lt_prog_compiler_static='-non_shared'
9896      ;;
9897
9898    rdos*)
9899      lt_prog_compiler_static='-non_shared'
9900      ;;
9901
9902    solaris*)
9903      lt_prog_compiler_pic='-KPIC'
9904      lt_prog_compiler_static='-Bstatic'
9905      case $cc_basename in
9906      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9907	lt_prog_compiler_wl='-Qoption ld ';;
9908      *)
9909	lt_prog_compiler_wl='-Wl,';;
9910      esac
9911      ;;
9912
9913    sunos4*)
9914      lt_prog_compiler_wl='-Qoption ld '
9915      lt_prog_compiler_pic='-PIC'
9916      lt_prog_compiler_static='-Bstatic'
9917      ;;
9918
9919    sysv4 | sysv4.2uw2* | sysv4.3*)
9920      lt_prog_compiler_wl='-Wl,'
9921      lt_prog_compiler_pic='-KPIC'
9922      lt_prog_compiler_static='-Bstatic'
9923      ;;
9924
9925    sysv4*MP*)
9926      if test -d /usr/nec; then
9927	lt_prog_compiler_pic='-Kconform_pic'
9928	lt_prog_compiler_static='-Bstatic'
9929      fi
9930      ;;
9931
9932    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9933      lt_prog_compiler_wl='-Wl,'
9934      lt_prog_compiler_pic='-KPIC'
9935      lt_prog_compiler_static='-Bstatic'
9936      ;;
9937
9938    unicos*)
9939      lt_prog_compiler_wl='-Wl,'
9940      lt_prog_compiler_can_build_shared=no
9941      ;;
9942
9943    uts4*)
9944      lt_prog_compiler_pic='-pic'
9945      lt_prog_compiler_static='-Bstatic'
9946      ;;
9947
9948    *)
9949      lt_prog_compiler_can_build_shared=no
9950      ;;
9951    esac
9952  fi
9953
9954case $host_os in
9955  # For platforms that do not support PIC, -DPIC is meaningless:
9956  *djgpp*)
9957    lt_prog_compiler_pic=
9958    ;;
9959  *)
9960    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9961    ;;
9962esac
9963
9964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9965printf %s "checking for $compiler option to produce PIC... " >&6; }
9966if test ${lt_cv_prog_compiler_pic+y}
9967then :
9968  printf %s "(cached) " >&6
9969else $as_nop
9970  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9971fi
9972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9973printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9974lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9975
9976#
9977# Check to make sure the PIC flag actually works.
9978#
9979if test -n "$lt_prog_compiler_pic"; then
9980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9981printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9982if test ${lt_cv_prog_compiler_pic_works+y}
9983then :
9984  printf %s "(cached) " >&6
9985else $as_nop
9986  lt_cv_prog_compiler_pic_works=no
9987   ac_outfile=conftest.$ac_objext
9988   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9989   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9990   # Insert the option either (1) after the last *FLAGS variable, or
9991   # (2) before a word containing "conftest.", or (3) at the end.
9992   # Note that $ac_compile itself does not contain backslashes and begins
9993   # with a dollar sign (not a hyphen), so the echo should work correctly.
9994   # The option is referenced via a variable to avoid confusing sed.
9995   lt_compile=`echo "$ac_compile" | $SED \
9996   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9997   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9998   -e 's:$: $lt_compiler_flag:'`
9999   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10000   (eval "$lt_compile" 2>conftest.err)
10001   ac_status=$?
10002   cat conftest.err >&5
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   if (exit $ac_status) && test -s "$ac_outfile"; then
10005     # The compiler can only warn and ignore the option if not recognized
10006     # So say no if there are warnings other than the usual output.
10007     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10008     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10009     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10010       lt_cv_prog_compiler_pic_works=yes
10011     fi
10012   fi
10013   $RM conftest*
10014
10015fi
10016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10017printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10018
10019if test yes = "$lt_cv_prog_compiler_pic_works"; then
10020    case $lt_prog_compiler_pic in
10021     "" | " "*) ;;
10022     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10023     esac
10024else
10025    lt_prog_compiler_pic=
10026     lt_prog_compiler_can_build_shared=no
10027fi
10028
10029fi
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041#
10042# Check to make sure the static flag actually works.
10043#
10044wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10046printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10047if test ${lt_cv_prog_compiler_static_works+y}
10048then :
10049  printf %s "(cached) " >&6
10050else $as_nop
10051  lt_cv_prog_compiler_static_works=no
10052   save_LDFLAGS=$LDFLAGS
10053   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10054   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10055   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10056     # The linker can only warn and ignore the option if not recognized
10057     # So say no if there are warnings
10058     if test -s conftest.err; then
10059       # Append any errors to the config.log.
10060       cat conftest.err 1>&5
10061       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10062       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10063       if diff conftest.exp conftest.er2 >/dev/null; then
10064         lt_cv_prog_compiler_static_works=yes
10065       fi
10066     else
10067       lt_cv_prog_compiler_static_works=yes
10068     fi
10069   fi
10070   $RM -r conftest*
10071   LDFLAGS=$save_LDFLAGS
10072
10073fi
10074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10075printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10076
10077if test yes = "$lt_cv_prog_compiler_static_works"; then
10078    :
10079else
10080    lt_prog_compiler_static=
10081fi
10082
10083
10084
10085
10086
10087
10088
10089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10090printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10091if test ${lt_cv_prog_compiler_c_o+y}
10092then :
10093  printf %s "(cached) " >&6
10094else $as_nop
10095  lt_cv_prog_compiler_c_o=no
10096   $RM -r conftest 2>/dev/null
10097   mkdir conftest
10098   cd conftest
10099   mkdir out
10100   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10101
10102   lt_compiler_flag="-o out/conftest2.$ac_objext"
10103   # Insert the option either (1) after the last *FLAGS variable, or
10104   # (2) before a word containing "conftest.", or (3) at the end.
10105   # Note that $ac_compile itself does not contain backslashes and begins
10106   # with a dollar sign (not a hyphen), so the echo should work correctly.
10107   lt_compile=`echo "$ac_compile" | $SED \
10108   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10109   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10110   -e 's:$: $lt_compiler_flag:'`
10111   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10112   (eval "$lt_compile" 2>out/conftest.err)
10113   ac_status=$?
10114   cat out/conftest.err >&5
10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10117   then
10118     # The compiler can only warn and ignore the option if not recognized
10119     # So say no if there are warnings
10120     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10121     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10122     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10123       lt_cv_prog_compiler_c_o=yes
10124     fi
10125   fi
10126   chmod u+w . 2>&5
10127   $RM conftest*
10128   # SGI C++ compiler will create directory out/ii_files/ for
10129   # template instantiation
10130   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10131   $RM out/* && rmdir out
10132   cd ..
10133   $RM -r conftest
10134   $RM conftest*
10135
10136fi
10137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10138printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10139
10140
10141
10142
10143
10144
10145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10146printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10147if test ${lt_cv_prog_compiler_c_o+y}
10148then :
10149  printf %s "(cached) " >&6
10150else $as_nop
10151  lt_cv_prog_compiler_c_o=no
10152   $RM -r conftest 2>/dev/null
10153   mkdir conftest
10154   cd conftest
10155   mkdir out
10156   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10157
10158   lt_compiler_flag="-o out/conftest2.$ac_objext"
10159   # Insert the option either (1) after the last *FLAGS variable, or
10160   # (2) before a word containing "conftest.", or (3) at the end.
10161   # Note that $ac_compile itself does not contain backslashes and begins
10162   # with a dollar sign (not a hyphen), so the echo should work correctly.
10163   lt_compile=`echo "$ac_compile" | $SED \
10164   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10165   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10166   -e 's:$: $lt_compiler_flag:'`
10167   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10168   (eval "$lt_compile" 2>out/conftest.err)
10169   ac_status=$?
10170   cat out/conftest.err >&5
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10173   then
10174     # The compiler can only warn and ignore the option if not recognized
10175     # So say no if there are warnings
10176     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10177     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10178     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10179       lt_cv_prog_compiler_c_o=yes
10180     fi
10181   fi
10182   chmod u+w . 2>&5
10183   $RM conftest*
10184   # SGI C++ compiler will create directory out/ii_files/ for
10185   # template instantiation
10186   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10187   $RM out/* && rmdir out
10188   cd ..
10189   $RM -r conftest
10190   $RM conftest*
10191
10192fi
10193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10194printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10195
10196
10197
10198
10199hard_links=nottested
10200if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10201  # do not overwrite the value of need_locks provided by the user
10202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10203printf %s "checking if we can lock with hard links... " >&6; }
10204  hard_links=yes
10205  $RM conftest*
10206  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10207  touch conftest.a
10208  ln conftest.a conftest.b 2>&5 || hard_links=no
10209  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10211printf "%s\n" "$hard_links" >&6; }
10212  if test no = "$hard_links"; then
10213    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10214printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10215    need_locks=warn
10216  fi
10217else
10218  need_locks=no
10219fi
10220
10221
10222
10223
10224
10225
10226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10227printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10228
10229  runpath_var=
10230  allow_undefined_flag=
10231  always_export_symbols=no
10232  archive_cmds=
10233  archive_expsym_cmds=
10234  compiler_needs_object=no
10235  enable_shared_with_static_runtimes=no
10236  export_dynamic_flag_spec=
10237  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10238  hardcode_automatic=no
10239  hardcode_direct=no
10240  hardcode_direct_absolute=no
10241  hardcode_libdir_flag_spec=
10242  hardcode_libdir_separator=
10243  hardcode_minus_L=no
10244  hardcode_shlibpath_var=unsupported
10245  inherit_rpath=no
10246  link_all_deplibs=unknown
10247  module_cmds=
10248  module_expsym_cmds=
10249  old_archive_from_new_cmds=
10250  old_archive_from_expsyms_cmds=
10251  thread_safe_flag_spec=
10252  whole_archive_flag_spec=
10253  # include_expsyms should be a list of space-separated symbols to be *always*
10254  # included in the symbol list
10255  include_expsyms=
10256  # exclude_expsyms can be an extended regexp of symbols to exclude
10257  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10258  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10259  # as well as any symbol that contains 'd'.
10260  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10261  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10262  # platforms (ab)use it in PIC code, but their linkers get confused if
10263  # the symbol is explicitly referenced.  Since portable code cannot
10264  # rely on this symbol name, it's probably fine to never include it in
10265  # preloaded symbol tables.
10266  # Exclude shared library initialization/finalization symbols.
10267  extract_expsyms_cmds=
10268
10269  case $host_os in
10270  cygwin* | mingw* | pw32* | cegcc*)
10271    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10272    # When not using gcc, we currently assume that we are using
10273    # Microsoft Visual C++.
10274    if test yes != "$GCC"; then
10275      with_gnu_ld=no
10276    fi
10277    ;;
10278  interix*)
10279    # we just hope/assume this is gcc and not c89 (= MSVC++)
10280    with_gnu_ld=yes
10281    ;;
10282  openbsd* | bitrig*)
10283    with_gnu_ld=no
10284    ;;
10285  esac
10286
10287  ld_shlibs=yes
10288
10289  # On some targets, GNU ld is compatible enough with the native linker
10290  # that we're better off using the native interface for both.
10291  lt_use_gnu_ld_interface=no
10292  if test yes = "$with_gnu_ld"; then
10293    case $host_os in
10294      aix*)
10295	# The AIX port of GNU ld has always aspired to compatibility
10296	# with the native linker.  However, as the warning in the GNU ld
10297	# block says, versions before 2.19.5* couldn't really create working
10298	# shared libraries, regardless of the interface used.
10299	case `$LD -v 2>&1` in
10300	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10301	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10302	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10303	  *)
10304	    lt_use_gnu_ld_interface=yes
10305	    ;;
10306	esac
10307	;;
10308      *)
10309	lt_use_gnu_ld_interface=yes
10310	;;
10311    esac
10312  fi
10313
10314  if test yes = "$lt_use_gnu_ld_interface"; then
10315    # If archive_cmds runs LD, not CC, wlarc should be empty
10316    wlarc='$wl'
10317
10318    # Set some defaults for GNU ld with shared library support. These
10319    # are reset later if shared libraries are not supported. Putting them
10320    # here allows them to be overridden if necessary.
10321    runpath_var=LD_RUN_PATH
10322    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10323    export_dynamic_flag_spec='$wl--export-dynamic'
10324    # ancient GNU ld didn't support --whole-archive et. al.
10325    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10326      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10327    else
10328      whole_archive_flag_spec=
10329    fi
10330    supports_anon_versioning=no
10331    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10332      *GNU\ gold*) supports_anon_versioning=yes ;;
10333      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10334      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10335      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10336      *\ 2.11.*) ;; # other 2.11 versions
10337      *) supports_anon_versioning=yes ;;
10338    esac
10339
10340    # See if GNU ld supports shared libraries.
10341    case $host_os in
10342    aix[3-9]*)
10343      # On AIX/PPC, the GNU linker is very broken
10344      if test ia64 != "$host_cpu"; then
10345	ld_shlibs=no
10346	cat <<_LT_EOF 1>&2
10347
10348*** Warning: the GNU linker, at least up to release 2.19, is reported
10349*** to be unable to reliably create shared libraries on AIX.
10350*** Therefore, libtool is disabling shared libraries support.  If you
10351*** really care for shared libraries, you may want to install binutils
10352*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10353*** You will then need to restart the configuration process.
10354
10355_LT_EOF
10356      fi
10357      ;;
10358
10359    amigaos*)
10360      case $host_cpu in
10361      powerpc)
10362            # see comment about AmigaOS4 .so support
10363            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10364            archive_expsym_cmds=''
10365        ;;
10366      m68k)
10367            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)'
10368            hardcode_libdir_flag_spec='-L$libdir'
10369            hardcode_minus_L=yes
10370        ;;
10371      esac
10372      ;;
10373
10374    beos*)
10375      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10376	allow_undefined_flag=unsupported
10377	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10378	# support --undefined.  This deserves some investigation.  FIXME
10379	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10380      else
10381	ld_shlibs=no
10382      fi
10383      ;;
10384
10385    cygwin* | mingw* | pw32* | cegcc*)
10386      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10387      # as there is no search path for DLLs.
10388      hardcode_libdir_flag_spec='-L$libdir'
10389      export_dynamic_flag_spec='$wl--export-all-symbols'
10390      allow_undefined_flag=unsupported
10391      always_export_symbols=no
10392      enable_shared_with_static_runtimes=yes
10393      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'
10394      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10395
10396      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10397        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10398	# If the export-symbols file already is a .def file, use it as
10399	# is; otherwise, prepend EXPORTS...
10400	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10401          cp $export_symbols $output_objdir/$soname.def;
10402        else
10403          echo EXPORTS > $output_objdir/$soname.def;
10404          cat $export_symbols >> $output_objdir/$soname.def;
10405        fi~
10406        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10407      else
10408	ld_shlibs=no
10409      fi
10410      ;;
10411
10412    haiku*)
10413      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10414      link_all_deplibs=yes
10415      ;;
10416
10417    os2*)
10418      hardcode_libdir_flag_spec='-L$libdir'
10419      hardcode_minus_L=yes
10420      allow_undefined_flag=unsupported
10421      shrext_cmds=.dll
10422      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10423	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10424	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10425	$ECHO EXPORTS >> $output_objdir/$libname.def~
10426	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10427	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10428	emximp -o $lib $output_objdir/$libname.def'
10429      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10430	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10431	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10432	$ECHO EXPORTS >> $output_objdir/$libname.def~
10433	prefix_cmds="$SED"~
10434	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10435	  prefix_cmds="$prefix_cmds -e 1d";
10436	fi~
10437	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10438	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10439	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10440	emximp -o $lib $output_objdir/$libname.def'
10441      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10442      enable_shared_with_static_runtimes=yes
10443      ;;
10444
10445    interix[3-9]*)
10446      hardcode_direct=no
10447      hardcode_shlibpath_var=no
10448      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10449      export_dynamic_flag_spec='$wl-E'
10450      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10451      # Instead, shared libraries are loaded at an image base (0x10000000 by
10452      # default) and relocated if they conflict, which is a slow very memory
10453      # consuming and fragmenting process.  To avoid this, we pick a random,
10454      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10455      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10456      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10457      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'
10458      ;;
10459
10460    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10461      tmp_diet=no
10462      if test linux-dietlibc = "$host_os"; then
10463	case $cc_basename in
10464	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10465	esac
10466      fi
10467      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10468	 && test no = "$tmp_diet"
10469      then
10470	tmp_addflag=' $pic_flag'
10471	tmp_sharedflag='-shared'
10472	case $cc_basename,$host_cpu in
10473        pgcc*)				# Portland Group C compiler
10474	  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'
10475	  tmp_addflag=' $pic_flag'
10476	  ;;
10477	pgf77* | pgf90* | pgf95* | pgfortran*)
10478					# Portland Group f77 and f90 compilers
10479	  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'
10480	  tmp_addflag=' $pic_flag -Mnomain' ;;
10481	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10482	  tmp_addflag=' -i_dynamic' ;;
10483	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10484	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10485	ifc* | ifort*)			# Intel Fortran compiler
10486	  tmp_addflag=' -nofor_main' ;;
10487	lf95*)				# Lahey Fortran 8.1
10488	  whole_archive_flag_spec=
10489	  tmp_sharedflag='--shared' ;;
10490        nagfor*)                        # NAGFOR 5.3
10491          tmp_sharedflag='-Wl,-shared' ;;
10492	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10493	  tmp_sharedflag='-qmkshrobj'
10494	  tmp_addflag= ;;
10495	nvcc*)	# Cuda Compiler Driver 2.2
10496	  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'
10497	  compiler_needs_object=yes
10498	  ;;
10499	esac
10500	case `$CC -V 2>&1 | sed 5q` in
10501	*Sun\ C*)			# Sun C 5.9
10502	  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'
10503	  compiler_needs_object=yes
10504	  tmp_sharedflag='-G' ;;
10505	*Sun\ F*)			# Sun Fortran 8.3
10506	  tmp_sharedflag='-G' ;;
10507	esac
10508	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10509
10510        if test yes = "$supports_anon_versioning"; then
10511          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10512            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10513            echo "local: *; };" >> $output_objdir/$libname.ver~
10514            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10515        fi
10516
10517	case $cc_basename in
10518	tcc*)
10519	  export_dynamic_flag_spec='-rdynamic'
10520	  ;;
10521	xlf* | bgf* | bgxlf* | mpixlf*)
10522	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10523	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10524	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10525	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10526	  if test yes = "$supports_anon_versioning"; then
10527	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10528              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10529              echo "local: *; };" >> $output_objdir/$libname.ver~
10530              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10531	  fi
10532	  ;;
10533	esac
10534      else
10535        ld_shlibs=no
10536      fi
10537      ;;
10538
10539    netbsd*)
10540      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10541	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10542	wlarc=
10543      else
10544	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10545	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10546      fi
10547      ;;
10548
10549    solaris*)
10550      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10551	ld_shlibs=no
10552	cat <<_LT_EOF 1>&2
10553
10554*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10555*** create shared libraries on Solaris systems.  Therefore, libtool
10556*** is disabling shared libraries support.  We urge you to upgrade GNU
10557*** binutils to release 2.9.1 or newer.  Another option is to modify
10558*** your PATH or compiler configuration so that the native linker is
10559*** used, and then restart.
10560
10561_LT_EOF
10562      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10563	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10564	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10565      else
10566	ld_shlibs=no
10567      fi
10568      ;;
10569
10570    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10571      case `$LD -v 2>&1` in
10572        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10573	ld_shlibs=no
10574	cat <<_LT_EOF 1>&2
10575
10576*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10577*** reliably create shared libraries on SCO systems.  Therefore, libtool
10578*** is disabling shared libraries support.  We urge you to upgrade GNU
10579*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10580*** your PATH or compiler configuration so that the native linker is
10581*** used, and then restart.
10582
10583_LT_EOF
10584	;;
10585	*)
10586	  # For security reasons, it is highly recommended that you always
10587	  # use absolute paths for naming shared libraries, and exclude the
10588	  # DT_RUNPATH tag from executables and libraries.  But doing so
10589	  # requires that you compile everything twice, which is a pain.
10590	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10591	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10592	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10593	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10594	  else
10595	    ld_shlibs=no
10596	  fi
10597	;;
10598      esac
10599      ;;
10600
10601    sunos4*)
10602      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10603      wlarc=
10604      hardcode_direct=yes
10605      hardcode_shlibpath_var=no
10606      ;;
10607
10608    *)
10609      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10610	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10611	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10612      else
10613	ld_shlibs=no
10614      fi
10615      ;;
10616    esac
10617
10618    if test no = "$ld_shlibs"; then
10619      runpath_var=
10620      hardcode_libdir_flag_spec=
10621      export_dynamic_flag_spec=
10622      whole_archive_flag_spec=
10623    fi
10624  else
10625    # PORTME fill in a description of your system's linker (not GNU ld)
10626    case $host_os in
10627    aix3*)
10628      allow_undefined_flag=unsupported
10629      always_export_symbols=yes
10630      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'
10631      # Note: this linker hardcodes the directories in LIBPATH if there
10632      # are no directories specified by -L.
10633      hardcode_minus_L=yes
10634      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10635	# Neither direct hardcoding nor static linking is supported with a
10636	# broken collect2.
10637	hardcode_direct=unsupported
10638      fi
10639      ;;
10640
10641    aix[4-9]*)
10642      if test ia64 = "$host_cpu"; then
10643	# On IA64, the linker does run time linking by default, so we don't
10644	# have to do anything special.
10645	aix_use_runtimelinking=no
10646	exp_sym_flag='-Bexport'
10647	no_entry_flag=
10648      else
10649	# If we're using GNU nm, then we don't want the "-C" option.
10650	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10651	# Without the "-l" option, or with the "-B" option, AIX nm treats
10652	# weak defined symbols like other global defined symbols, whereas
10653	# GNU nm marks them as "W".
10654	# While the 'weak' keyword is ignored in the Export File, we need
10655	# it in the Import File for the 'aix-soname' feature, so we have
10656	# to replace the "-B" option with "-P" for AIX nm.
10657	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10658	  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'
10659	else
10660	  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'
10661	fi
10662	aix_use_runtimelinking=no
10663
10664	# Test if we are trying to use run time linking or normal
10665	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10666	# have runtime linking enabled, and use it for executables.
10667	# For shared libraries, we enable/disable runtime linking
10668	# depending on the kind of the shared library created -
10669	# when "with_aix_soname,aix_use_runtimelinking" is:
10670	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10671	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10672	#            lib.a           static archive
10673	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10674	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10675	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10676	#            lib.a(lib.so.V) shared, rtl:no
10677	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10678	#            lib.a           static archive
10679	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10680	  for ld_flag in $LDFLAGS; do
10681	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10682	    aix_use_runtimelinking=yes
10683	    break
10684	  fi
10685	  done
10686	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10687	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10688	    # so we don't have lib.a shared libs to link our executables.
10689	    # We have to force runtime linking in this case.
10690	    aix_use_runtimelinking=yes
10691	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10692	  fi
10693	  ;;
10694	esac
10695
10696	exp_sym_flag='-bexport'
10697	no_entry_flag='-bnoentry'
10698      fi
10699
10700      # When large executables or shared objects are built, AIX ld can
10701      # have problems creating the table of contents.  If linking a library
10702      # or program results in "error TOC overflow" add -mminimal-toc to
10703      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10704      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10705
10706      archive_cmds=''
10707      hardcode_direct=yes
10708      hardcode_direct_absolute=yes
10709      hardcode_libdir_separator=':'
10710      link_all_deplibs=yes
10711      file_list_spec='$wl-f,'
10712      case $with_aix_soname,$aix_use_runtimelinking in
10713      aix,*) ;; # traditional, no import file
10714      svr4,* | *,yes) # use import file
10715	# The Import File defines what to hardcode.
10716	hardcode_direct=no
10717	hardcode_direct_absolute=no
10718	;;
10719      esac
10720
10721      if test yes = "$GCC"; then
10722	case $host_os in aix4.[012]|aix4.[012].*)
10723	# We only want to do this on AIX 4.2 and lower, the check
10724	# below for broken collect2 doesn't work under 4.3+
10725	  collect2name=`$CC -print-prog-name=collect2`
10726	  if test -f "$collect2name" &&
10727	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10728	  then
10729	  # We have reworked collect2
10730	  :
10731	  else
10732	  # We have old collect2
10733	  hardcode_direct=unsupported
10734	  # It fails to find uninstalled libraries when the uninstalled
10735	  # path is not listed in the libpath.  Setting hardcode_minus_L
10736	  # to unsupported forces relinking
10737	  hardcode_minus_L=yes
10738	  hardcode_libdir_flag_spec='-L$libdir'
10739	  hardcode_libdir_separator=
10740	  fi
10741	  ;;
10742	esac
10743	shared_flag='-shared'
10744	if test yes = "$aix_use_runtimelinking"; then
10745	  shared_flag="$shared_flag "'$wl-G'
10746	fi
10747	# Need to ensure runtime linking is disabled for the traditional
10748	# shared library, or the linker may eventually find shared libraries
10749	# /with/ Import File - we do not want to mix them.
10750	shared_flag_aix='-shared'
10751	shared_flag_svr4='-shared $wl-G'
10752      else
10753	# not using gcc
10754	if test ia64 = "$host_cpu"; then
10755	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10756	# chokes on -Wl,-G. The following line is correct:
10757	  shared_flag='-G'
10758	else
10759	  if test yes = "$aix_use_runtimelinking"; then
10760	    shared_flag='$wl-G'
10761	  else
10762	    shared_flag='$wl-bM:SRE'
10763	  fi
10764	  shared_flag_aix='$wl-bM:SRE'
10765	  shared_flag_svr4='$wl-G'
10766	fi
10767      fi
10768
10769      export_dynamic_flag_spec='$wl-bexpall'
10770      # It seems that -bexpall does not export symbols beginning with
10771      # underscore (_), so it is better to generate a list of symbols to export.
10772      always_export_symbols=yes
10773      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10774	# Warning - without using the other runtime loading flags (-brtl),
10775	# -berok will link without error, but may produce a broken library.
10776	allow_undefined_flag='-berok'
10777        # Determine the default libpath from the value encoded in an
10778        # empty executable.
10779        if test set = "${lt_cv_aix_libpath+set}"; then
10780  aix_libpath=$lt_cv_aix_libpath
10781else
10782  if test ${lt_cv_aix_libpath_+y}
10783then :
10784  printf %s "(cached) " >&6
10785else $as_nop
10786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787/* end confdefs.h.  */
10788
10789int
10790main (void)
10791{
10792
10793  ;
10794  return 0;
10795}
10796_ACEOF
10797if ac_fn_c_try_link "$LINENO"
10798then :
10799
10800  lt_aix_libpath_sed='
10801      /Import File Strings/,/^$/ {
10802	  /^0/ {
10803	      s/^0  *\([^ ]*\) *$/\1/
10804	      p
10805	  }
10806      }'
10807  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10808  # Check for a 64-bit object if we didn't find anything.
10809  if test -z "$lt_cv_aix_libpath_"; then
10810    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10811  fi
10812fi
10813rm -f core conftest.err conftest.$ac_objext conftest.beam \
10814    conftest$ac_exeext conftest.$ac_ext
10815  if test -z "$lt_cv_aix_libpath_"; then
10816    lt_cv_aix_libpath_=/usr/lib:/lib
10817  fi
10818
10819fi
10820
10821  aix_libpath=$lt_cv_aix_libpath_
10822fi
10823
10824        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10825        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
10826      else
10827	if test ia64 = "$host_cpu"; then
10828	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10829	  allow_undefined_flag="-z nodefs"
10830	  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"
10831	else
10832	 # Determine the default libpath from the value encoded in an
10833	 # empty executable.
10834	 if test set = "${lt_cv_aix_libpath+set}"; then
10835  aix_libpath=$lt_cv_aix_libpath
10836else
10837  if test ${lt_cv_aix_libpath_+y}
10838then :
10839  printf %s "(cached) " >&6
10840else $as_nop
10841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842/* end confdefs.h.  */
10843
10844int
10845main (void)
10846{
10847
10848  ;
10849  return 0;
10850}
10851_ACEOF
10852if ac_fn_c_try_link "$LINENO"
10853then :
10854
10855  lt_aix_libpath_sed='
10856      /Import File Strings/,/^$/ {
10857	  /^0/ {
10858	      s/^0  *\([^ ]*\) *$/\1/
10859	      p
10860	  }
10861      }'
10862  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10863  # Check for a 64-bit object if we didn't find anything.
10864  if test -z "$lt_cv_aix_libpath_"; then
10865    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10866  fi
10867fi
10868rm -f core conftest.err conftest.$ac_objext conftest.beam \
10869    conftest$ac_exeext conftest.$ac_ext
10870  if test -z "$lt_cv_aix_libpath_"; then
10871    lt_cv_aix_libpath_=/usr/lib:/lib
10872  fi
10873
10874fi
10875
10876  aix_libpath=$lt_cv_aix_libpath_
10877fi
10878
10879	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10880	  # Warning - without using the other run time loading flags,
10881	  # -berok will link without error, but may produce a broken library.
10882	  no_undefined_flag=' $wl-bernotok'
10883	  allow_undefined_flag=' $wl-berok'
10884	  if test yes = "$with_gnu_ld"; then
10885	    # We only use this code for GNU lds that support --whole-archive.
10886	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10887	  else
10888	    # Exported symbols can be pulled into shared objects from archives
10889	    whole_archive_flag_spec='$convenience'
10890	  fi
10891	  archive_cmds_need_lc=yes
10892	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10893	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10894	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10895	  if test svr4 != "$with_aix_soname"; then
10896	    # This is similar to how AIX traditionally builds its shared libraries.
10897	    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'
10898	  fi
10899	  if test aix != "$with_aix_soname"; then
10900	    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'
10901	  else
10902	    # used by -dlpreopen to get the symbols
10903	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10904	  fi
10905	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10906	fi
10907      fi
10908      ;;
10909
10910    amigaos*)
10911      case $host_cpu in
10912      powerpc)
10913            # see comment about AmigaOS4 .so support
10914            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10915            archive_expsym_cmds=''
10916        ;;
10917      m68k)
10918            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)'
10919            hardcode_libdir_flag_spec='-L$libdir'
10920            hardcode_minus_L=yes
10921        ;;
10922      esac
10923      ;;
10924
10925    bsdi[45]*)
10926      export_dynamic_flag_spec=-rdynamic
10927      ;;
10928
10929    cygwin* | mingw* | pw32* | cegcc*)
10930      # When not using gcc, we currently assume that we are using
10931      # Microsoft Visual C++.
10932      # hardcode_libdir_flag_spec is actually meaningless, as there is
10933      # no search path for DLLs.
10934      case $cc_basename in
10935      cl*)
10936	# Native MSVC
10937	hardcode_libdir_flag_spec=' '
10938	allow_undefined_flag=unsupported
10939	always_export_symbols=yes
10940	file_list_spec='@'
10941	# Tell ltmain to make .lib files, not .a files.
10942	libext=lib
10943	# Tell ltmain to make .dll files, not .so files.
10944	shrext_cmds=.dll
10945	# FIXME: Setting linknames here is a bad hack.
10946	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10947	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10948            cp "$export_symbols" "$output_objdir/$soname.def";
10949            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10950          else
10951            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10952          fi~
10953          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10954          linknames='
10955	# The linker will not automatically build a static lib if we build a DLL.
10956	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10957	enable_shared_with_static_runtimes=yes
10958	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10959	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10960	# Don't use ranlib
10961	old_postinstall_cmds='chmod 644 $oldlib'
10962	postlink_cmds='lt_outputfile="@OUTPUT@"~
10963          lt_tool_outputfile="@TOOL_OUTPUT@"~
10964          case $lt_outputfile in
10965            *.exe|*.EXE) ;;
10966            *)
10967              lt_outputfile=$lt_outputfile.exe
10968              lt_tool_outputfile=$lt_tool_outputfile.exe
10969              ;;
10970          esac~
10971          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10972            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10973            $RM "$lt_outputfile.manifest";
10974          fi'
10975	;;
10976      *)
10977	# Assume MSVC wrapper
10978	hardcode_libdir_flag_spec=' '
10979	allow_undefined_flag=unsupported
10980	# Tell ltmain to make .lib files, not .a files.
10981	libext=lib
10982	# Tell ltmain to make .dll files, not .so files.
10983	shrext_cmds=.dll
10984	# FIXME: Setting linknames here is a bad hack.
10985	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10986	# The linker will automatically build a .lib file if we build a DLL.
10987	old_archive_from_new_cmds='true'
10988	# FIXME: Should let the user specify the lib program.
10989	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10990	enable_shared_with_static_runtimes=yes
10991	;;
10992      esac
10993      ;;
10994
10995    darwin* | rhapsody*)
10996
10997
10998  archive_cmds_need_lc=no
10999  hardcode_direct=no
11000  hardcode_automatic=yes
11001  hardcode_shlibpath_var=unsupported
11002  if test yes = "$lt_cv_ld_force_load"; then
11003    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\"`'
11004
11005  else
11006    whole_archive_flag_spec=''
11007  fi
11008  link_all_deplibs=yes
11009  allow_undefined_flag=$_lt_dar_allow_undefined
11010  case $cc_basename in
11011     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11012     *) _lt_dar_can_shared=$GCC ;;
11013  esac
11014  if test yes = "$_lt_dar_can_shared"; then
11015    output_verbose_link_cmd=func_echo_all
11016    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11017    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11018    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"
11019    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"
11020
11021  else
11022  ld_shlibs=no
11023  fi
11024
11025      ;;
11026
11027    dgux*)
11028      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11029      hardcode_libdir_flag_spec='-L$libdir'
11030      hardcode_shlibpath_var=no
11031      ;;
11032
11033    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11034    # support.  Future versions do this automatically, but an explicit c++rt0.o
11035    # does not break anything, and helps significantly (at the cost of a little
11036    # extra space).
11037    freebsd2.2*)
11038      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11039      hardcode_libdir_flag_spec='-R$libdir'
11040      hardcode_direct=yes
11041      hardcode_shlibpath_var=no
11042      ;;
11043
11044    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11045    freebsd2.*)
11046      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11047      hardcode_direct=yes
11048      hardcode_minus_L=yes
11049      hardcode_shlibpath_var=no
11050      ;;
11051
11052    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11053    freebsd* | dragonfly*)
11054      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11055      hardcode_libdir_flag_spec='-R$libdir'
11056      hardcode_direct=yes
11057      hardcode_shlibpath_var=no
11058      ;;
11059
11060    hpux9*)
11061      if test yes = "$GCC"; then
11062	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'
11063      else
11064	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'
11065      fi
11066      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11067      hardcode_libdir_separator=:
11068      hardcode_direct=yes
11069
11070      # hardcode_minus_L: Not really in the search PATH,
11071      # but as the default location of the library.
11072      hardcode_minus_L=yes
11073      export_dynamic_flag_spec='$wl-E'
11074      ;;
11075
11076    hpux10*)
11077      if test yes,no = "$GCC,$with_gnu_ld"; then
11078	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11079      else
11080	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11081      fi
11082      if test no = "$with_gnu_ld"; then
11083	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11084	hardcode_libdir_separator=:
11085	hardcode_direct=yes
11086	hardcode_direct_absolute=yes
11087	export_dynamic_flag_spec='$wl-E'
11088	# hardcode_minus_L: Not really in the search PATH,
11089	# but as the default location of the library.
11090	hardcode_minus_L=yes
11091      fi
11092      ;;
11093
11094    hpux11*)
11095      if test yes,no = "$GCC,$with_gnu_ld"; then
11096	case $host_cpu in
11097	hppa*64*)
11098	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11099	  ;;
11100	ia64*)
11101	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11102	  ;;
11103	*)
11104	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11105	  ;;
11106	esac
11107      else
11108	case $host_cpu in
11109	hppa*64*)
11110	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11111	  ;;
11112	ia64*)
11113	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11114	  ;;
11115	*)
11116
11117	  # Older versions of the 11.00 compiler do not understand -b yet
11118	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11119	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11120printf %s "checking if $CC understands -b... " >&6; }
11121if test ${lt_cv_prog_compiler__b+y}
11122then :
11123  printf %s "(cached) " >&6
11124else $as_nop
11125  lt_cv_prog_compiler__b=no
11126   save_LDFLAGS=$LDFLAGS
11127   LDFLAGS="$LDFLAGS -b"
11128   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11129   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11130     # The linker can only warn and ignore the option if not recognized
11131     # So say no if there are warnings
11132     if test -s conftest.err; then
11133       # Append any errors to the config.log.
11134       cat conftest.err 1>&5
11135       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11136       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11137       if diff conftest.exp conftest.er2 >/dev/null; then
11138         lt_cv_prog_compiler__b=yes
11139       fi
11140     else
11141       lt_cv_prog_compiler__b=yes
11142     fi
11143   fi
11144   $RM -r conftest*
11145   LDFLAGS=$save_LDFLAGS
11146
11147fi
11148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11149printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11150
11151if test yes = "$lt_cv_prog_compiler__b"; then
11152    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11153else
11154    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11155fi
11156
11157	  ;;
11158	esac
11159      fi
11160      if test no = "$with_gnu_ld"; then
11161	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11162	hardcode_libdir_separator=:
11163
11164	case $host_cpu in
11165	hppa*64*|ia64*)
11166	  hardcode_direct=no
11167	  hardcode_shlibpath_var=no
11168	  ;;
11169	*)
11170	  hardcode_direct=yes
11171	  hardcode_direct_absolute=yes
11172	  export_dynamic_flag_spec='$wl-E'
11173
11174	  # hardcode_minus_L: Not really in the search PATH,
11175	  # but as the default location of the library.
11176	  hardcode_minus_L=yes
11177	  ;;
11178	esac
11179      fi
11180      ;;
11181
11182    irix5* | irix6* | nonstopux*)
11183      if test yes = "$GCC"; then
11184	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'
11185	# Try to use the -exported_symbol ld option, if it does not
11186	# work, assume that -exports_file does not work either and
11187	# implicitly export all symbols.
11188	# This should be the same for all languages, so no per-tag cache variable.
11189	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11190printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11191if test ${lt_cv_irix_exported_symbol+y}
11192then :
11193  printf %s "(cached) " >&6
11194else $as_nop
11195  save_LDFLAGS=$LDFLAGS
11196	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11197	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198/* end confdefs.h.  */
11199int foo (void) { return 0; }
11200_ACEOF
11201if ac_fn_c_try_link "$LINENO"
11202then :
11203  lt_cv_irix_exported_symbol=yes
11204else $as_nop
11205  lt_cv_irix_exported_symbol=no
11206fi
11207rm -f core conftest.err conftest.$ac_objext conftest.beam \
11208    conftest$ac_exeext conftest.$ac_ext
11209           LDFLAGS=$save_LDFLAGS
11210fi
11211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11212printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11213	if test yes = "$lt_cv_irix_exported_symbol"; then
11214          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'
11215	fi
11216      else
11217	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'
11218	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'
11219      fi
11220      archive_cmds_need_lc='no'
11221      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11222      hardcode_libdir_separator=:
11223      inherit_rpath=yes
11224      link_all_deplibs=yes
11225      ;;
11226
11227    linux*)
11228      case $cc_basename in
11229      tcc*)
11230	# Fabrice Bellard et al's Tiny C Compiler
11231	ld_shlibs=yes
11232	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11233	;;
11234      esac
11235      ;;
11236
11237    netbsd*)
11238      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11239	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11240      else
11241	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11242      fi
11243      hardcode_libdir_flag_spec='-R$libdir'
11244      hardcode_direct=yes
11245      hardcode_shlibpath_var=no
11246      ;;
11247
11248    newsos6)
11249      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11250      hardcode_direct=yes
11251      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11252      hardcode_libdir_separator=:
11253      hardcode_shlibpath_var=no
11254      ;;
11255
11256    *nto* | *qnx*)
11257      ;;
11258
11259    openbsd* | bitrig*)
11260      if test -f /usr/libexec/ld.so; then
11261	hardcode_direct=yes
11262	hardcode_shlibpath_var=no
11263	hardcode_direct_absolute=yes
11264	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11265	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11266	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11267	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11268	  export_dynamic_flag_spec='$wl-E'
11269	else
11270	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11271	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11272	fi
11273      else
11274	ld_shlibs=no
11275      fi
11276      ;;
11277
11278    os2*)
11279      hardcode_libdir_flag_spec='-L$libdir'
11280      hardcode_minus_L=yes
11281      allow_undefined_flag=unsupported
11282      shrext_cmds=.dll
11283      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11284	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11285	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11286	$ECHO EXPORTS >> $output_objdir/$libname.def~
11287	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11288	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11289	emximp -o $lib $output_objdir/$libname.def'
11290      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11291	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11292	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11293	$ECHO EXPORTS >> $output_objdir/$libname.def~
11294	prefix_cmds="$SED"~
11295	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11296	  prefix_cmds="$prefix_cmds -e 1d";
11297	fi~
11298	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11299	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11300	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11301	emximp -o $lib $output_objdir/$libname.def'
11302      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11303      enable_shared_with_static_runtimes=yes
11304      ;;
11305
11306    osf3*)
11307      if test yes = "$GCC"; then
11308	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11309	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'
11310      else
11311	allow_undefined_flag=' -expect_unresolved \*'
11312	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'
11313      fi
11314      archive_cmds_need_lc='no'
11315      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11316      hardcode_libdir_separator=:
11317      ;;
11318
11319    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11320      if test yes = "$GCC"; then
11321	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11322	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'
11323	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11324      else
11325	allow_undefined_flag=' -expect_unresolved \*'
11326	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'
11327	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~
11328          $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'
11329
11330	# Both c and cxx compiler support -rpath directly
11331	hardcode_libdir_flag_spec='-rpath $libdir'
11332      fi
11333      archive_cmds_need_lc='no'
11334      hardcode_libdir_separator=:
11335      ;;
11336
11337    solaris*)
11338      no_undefined_flag=' -z defs'
11339      if test yes = "$GCC"; then
11340	wlarc='$wl'
11341	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11342	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11343          $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'
11344      else
11345	case `$CC -V 2>&1` in
11346	*"Compilers 5.0"*)
11347	  wlarc=''
11348	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11349	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11350            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11351	  ;;
11352	*)
11353	  wlarc='$wl'
11354	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11355	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11356            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11357	  ;;
11358	esac
11359      fi
11360      hardcode_libdir_flag_spec='-R$libdir'
11361      hardcode_shlibpath_var=no
11362      case $host_os in
11363      solaris2.[0-5] | solaris2.[0-5].*) ;;
11364      *)
11365	# The compiler driver will combine and reorder linker options,
11366	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11367	# but is careful enough not to reorder.
11368	# Supported since Solaris 2.6 (maybe 2.5.1?)
11369	if test yes = "$GCC"; then
11370	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11371	else
11372	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11373	fi
11374	;;
11375      esac
11376      link_all_deplibs=yes
11377      ;;
11378
11379    sunos4*)
11380      if test sequent = "$host_vendor"; then
11381	# Use $CC to link under sequent, because it throws in some extra .o
11382	# files that make .init and .fini sections work.
11383	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11384      else
11385	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11386      fi
11387      hardcode_libdir_flag_spec='-L$libdir'
11388      hardcode_direct=yes
11389      hardcode_minus_L=yes
11390      hardcode_shlibpath_var=no
11391      ;;
11392
11393    sysv4)
11394      case $host_vendor in
11395	sni)
11396	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11397	  hardcode_direct=yes # is this really true???
11398	;;
11399	siemens)
11400	  ## LD is ld it makes a PLAMLIB
11401	  ## CC just makes a GrossModule.
11402	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11403	  reload_cmds='$CC -r -o $output$reload_objs'
11404	  hardcode_direct=no
11405        ;;
11406	motorola)
11407	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11408	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11409	;;
11410      esac
11411      runpath_var='LD_RUN_PATH'
11412      hardcode_shlibpath_var=no
11413      ;;
11414
11415    sysv4.3*)
11416      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11417      hardcode_shlibpath_var=no
11418      export_dynamic_flag_spec='-Bexport'
11419      ;;
11420
11421    sysv4*MP*)
11422      if test -d /usr/nec; then
11423	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11424	hardcode_shlibpath_var=no
11425	runpath_var=LD_RUN_PATH
11426	hardcode_runpath_var=yes
11427	ld_shlibs=yes
11428      fi
11429      ;;
11430
11431    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11432      no_undefined_flag='$wl-z,text'
11433      archive_cmds_need_lc=no
11434      hardcode_shlibpath_var=no
11435      runpath_var='LD_RUN_PATH'
11436
11437      if test yes = "$GCC"; then
11438	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11439	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11440      else
11441	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11442	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11443      fi
11444      ;;
11445
11446    sysv5* | sco3.2v5* | sco5v6*)
11447      # Note: We CANNOT use -z defs as we might desire, because we do not
11448      # link with -lc, and that would cause any symbols used from libc to
11449      # always be unresolved, which means just about no library would
11450      # ever link correctly.  If we're not using GNU ld we use -z text
11451      # though, which does catch some bad symbols but isn't as heavy-handed
11452      # as -z defs.
11453      no_undefined_flag='$wl-z,text'
11454      allow_undefined_flag='$wl-z,nodefs'
11455      archive_cmds_need_lc=no
11456      hardcode_shlibpath_var=no
11457      hardcode_libdir_flag_spec='$wl-R,$libdir'
11458      hardcode_libdir_separator=':'
11459      link_all_deplibs=yes
11460      export_dynamic_flag_spec='$wl-Bexport'
11461      runpath_var='LD_RUN_PATH'
11462
11463      if test yes = "$GCC"; then
11464	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11465	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11466      else
11467	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11468	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11469      fi
11470      ;;
11471
11472    uts4*)
11473      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11474      hardcode_libdir_flag_spec='-L$libdir'
11475      hardcode_shlibpath_var=no
11476      ;;
11477
11478    *)
11479      ld_shlibs=no
11480      ;;
11481    esac
11482
11483    if test sni = "$host_vendor"; then
11484      case $host in
11485      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11486	export_dynamic_flag_spec='$wl-Blargedynsym'
11487	;;
11488      esac
11489    fi
11490  fi
11491
11492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11493printf "%s\n" "$ld_shlibs" >&6; }
11494test no = "$ld_shlibs" && can_build_shared=no
11495
11496with_gnu_ld=$with_gnu_ld
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512#
11513# Do we need to explicitly link libc?
11514#
11515case "x$archive_cmds_need_lc" in
11516x|xyes)
11517  # Assume -lc should be added
11518  archive_cmds_need_lc=yes
11519
11520  if test yes,yes = "$GCC,$enable_shared"; then
11521    case $archive_cmds in
11522    *'~'*)
11523      # FIXME: we may have to deal with multi-command sequences.
11524      ;;
11525    '$CC '*)
11526      # Test whether the compiler implicitly links with -lc since on some
11527      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11528      # to ld, don't add -lc before -lgcc.
11529      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11530printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11531if test ${lt_cv_archive_cmds_need_lc+y}
11532then :
11533  printf %s "(cached) " >&6
11534else $as_nop
11535  $RM conftest*
11536	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11537
11538	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11539  (eval $ac_compile) 2>&5
11540  ac_status=$?
11541  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11542  test $ac_status = 0; } 2>conftest.err; then
11543	  soname=conftest
11544	  lib=conftest
11545	  libobjs=conftest.$ac_objext
11546	  deplibs=
11547	  wl=$lt_prog_compiler_wl
11548	  pic_flag=$lt_prog_compiler_pic
11549	  compiler_flags=-v
11550	  linker_flags=-v
11551	  verstring=
11552	  output_objdir=.
11553	  libname=conftest
11554	  lt_save_allow_undefined_flag=$allow_undefined_flag
11555	  allow_undefined_flag=
11556	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11557  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11558  ac_status=$?
11559  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11560  test $ac_status = 0; }
11561	  then
11562	    lt_cv_archive_cmds_need_lc=no
11563	  else
11564	    lt_cv_archive_cmds_need_lc=yes
11565	  fi
11566	  allow_undefined_flag=$lt_save_allow_undefined_flag
11567	else
11568	  cat conftest.err 1>&5
11569	fi
11570	$RM conftest*
11571
11572fi
11573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11574printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11575      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11576      ;;
11577    esac
11578  fi
11579  ;;
11580esac
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11734printf %s "checking dynamic linker characteristics... " >&6; }
11735
11736if test yes = "$GCC"; then
11737  case $host_os in
11738    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11739    *) lt_awk_arg='/^libraries:/' ;;
11740  esac
11741  case $host_os in
11742    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11743    *) lt_sed_strip_eq='s|=/|/|g' ;;
11744  esac
11745  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11746  case $lt_search_path_spec in
11747  *\;*)
11748    # if the path contains ";" then we assume it to be the separator
11749    # otherwise default to the standard path separator (i.e. ":") - it is
11750    # assumed that no part of a normal pathname contains ";" but that should
11751    # okay in the real world where ";" in dirpaths is itself problematic.
11752    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11753    ;;
11754  *)
11755    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11756    ;;
11757  esac
11758  # Ok, now we have the path, separated by spaces, we can step through it
11759  # and add multilib dir if necessary...
11760  lt_tmp_lt_search_path_spec=
11761  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11762  # ...but if some path component already ends with the multilib dir we assume
11763  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11764  case "$lt_multi_os_dir; $lt_search_path_spec " in
11765  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11766    lt_multi_os_dir=
11767    ;;
11768  esac
11769  for lt_sys_path in $lt_search_path_spec; do
11770    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11771      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11772    elif test -n "$lt_multi_os_dir"; then
11773      test -d "$lt_sys_path" && \
11774	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11775    fi
11776  done
11777  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11778BEGIN {RS = " "; FS = "/|\n";} {
11779  lt_foo = "";
11780  lt_count = 0;
11781  for (lt_i = NF; lt_i > 0; lt_i--) {
11782    if ($lt_i != "" && $lt_i != ".") {
11783      if ($lt_i == "..") {
11784        lt_count++;
11785      } else {
11786        if (lt_count == 0) {
11787          lt_foo = "/" $lt_i lt_foo;
11788        } else {
11789          lt_count--;
11790        }
11791      }
11792    }
11793  }
11794  if (lt_foo != "") { lt_freq[lt_foo]++; }
11795  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11796}'`
11797  # AWK program above erroneously prepends '/' to C:/dos/paths
11798  # for these hosts.
11799  case $host_os in
11800    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11801      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11802  esac
11803  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11804else
11805  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11806fi
11807library_names_spec=
11808libname_spec='lib$name'
11809soname_spec=
11810shrext_cmds=.so
11811postinstall_cmds=
11812postuninstall_cmds=
11813finish_cmds=
11814finish_eval=
11815shlibpath_var=
11816shlibpath_overrides_runpath=unknown
11817version_type=none
11818dynamic_linker="$host_os ld.so"
11819sys_lib_dlsearch_path_spec="/lib /usr/lib"
11820need_lib_prefix=unknown
11821hardcode_into_libs=no
11822
11823# when you set need_version to no, make sure it does not cause -set_version
11824# flags to be left without arguments
11825need_version=unknown
11826
11827
11828
11829case $host_os in
11830aix3*)
11831  version_type=linux # correct to gnu/linux during the next big refactor
11832  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11833  shlibpath_var=LIBPATH
11834
11835  # AIX 3 has no versioning support, so we append a major version to the name.
11836  soname_spec='$libname$release$shared_ext$major'
11837  ;;
11838
11839aix[4-9]*)
11840  version_type=linux # correct to gnu/linux during the next big refactor
11841  need_lib_prefix=no
11842  need_version=no
11843  hardcode_into_libs=yes
11844  if test ia64 = "$host_cpu"; then
11845    # AIX 5 supports IA64
11846    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11847    shlibpath_var=LD_LIBRARY_PATH
11848  else
11849    # With GCC up to 2.95.x, collect2 would create an import file
11850    # for dependence libraries.  The import file would start with
11851    # the line '#! .'.  This would cause the generated library to
11852    # depend on '.', always an invalid library.  This was fixed in
11853    # development snapshots of GCC prior to 3.0.
11854    case $host_os in
11855      aix4 | aix4.[01] | aix4.[01].*)
11856      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11857	   echo ' yes '
11858	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11859	:
11860      else
11861	can_build_shared=no
11862      fi
11863      ;;
11864    esac
11865    # Using Import Files as archive members, it is possible to support
11866    # filename-based versioning of shared library archives on AIX. While
11867    # this would work for both with and without runtime linking, it will
11868    # prevent static linking of such archives. So we do filename-based
11869    # shared library versioning with .so extension only, which is used
11870    # when both runtime linking and shared linking is enabled.
11871    # Unfortunately, runtime linking may impact performance, so we do
11872    # not want this to be the default eventually. Also, we use the
11873    # versioned .so libs for executables only if there is the -brtl
11874    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11875    # To allow for filename-based versioning support, we need to create
11876    # libNAME.so.V as an archive file, containing:
11877    # *) an Import File, referring to the versioned filename of the
11878    #    archive as well as the shared archive member, telling the
11879    #    bitwidth (32 or 64) of that shared object, and providing the
11880    #    list of exported symbols of that shared object, eventually
11881    #    decorated with the 'weak' keyword
11882    # *) the shared object with the F_LOADONLY flag set, to really avoid
11883    #    it being seen by the linker.
11884    # At run time we better use the real file rather than another symlink,
11885    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11886
11887    case $with_aix_soname,$aix_use_runtimelinking in
11888    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11889    # soname into executable. Probably we can add versioning support to
11890    # collect2, so additional links can be useful in future.
11891    aix,yes) # traditional libtool
11892      dynamic_linker='AIX unversionable lib.so'
11893      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11894      # instead of lib<name>.a to let people know that these are not
11895      # typical AIX shared libraries.
11896      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11897      ;;
11898    aix,no) # traditional AIX only
11899      dynamic_linker='AIX lib.a(lib.so.V)'
11900      # We preserve .a as extension for shared libraries through AIX4.2
11901      # and later when we are not doing run time linking.
11902      library_names_spec='$libname$release.a $libname.a'
11903      soname_spec='$libname$release$shared_ext$major'
11904      ;;
11905    svr4,*) # full svr4 only
11906      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11907      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11908      # We do not specify a path in Import Files, so LIBPATH fires.
11909      shlibpath_overrides_runpath=yes
11910      ;;
11911    *,yes) # both, prefer svr4
11912      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11913      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11914      # unpreferred sharedlib libNAME.a needs extra handling
11915      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"'
11916      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"'
11917      # We do not specify a path in Import Files, so LIBPATH fires.
11918      shlibpath_overrides_runpath=yes
11919      ;;
11920    *,no) # both, prefer aix
11921      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11922      library_names_spec='$libname$release.a $libname.a'
11923      soname_spec='$libname$release$shared_ext$major'
11924      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11925      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)'
11926      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"'
11927      ;;
11928    esac
11929    shlibpath_var=LIBPATH
11930  fi
11931  ;;
11932
11933amigaos*)
11934  case $host_cpu in
11935  powerpc)
11936    # Since July 2007 AmigaOS4 officially supports .so libraries.
11937    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11938    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11939    ;;
11940  m68k)
11941    library_names_spec='$libname.ixlibrary $libname.a'
11942    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11943    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'
11944    ;;
11945  esac
11946  ;;
11947
11948beos*)
11949  library_names_spec='$libname$shared_ext'
11950  dynamic_linker="$host_os ld.so"
11951  shlibpath_var=LIBRARY_PATH
11952  ;;
11953
11954bsdi[45]*)
11955  version_type=linux # correct to gnu/linux during the next big refactor
11956  need_version=no
11957  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11958  soname_spec='$libname$release$shared_ext$major'
11959  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11960  shlibpath_var=LD_LIBRARY_PATH
11961  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11962  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11963  # the default ld.so.conf also contains /usr/contrib/lib and
11964  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11965  # libtool to hard-code these into programs
11966  ;;
11967
11968cygwin* | mingw* | pw32* | cegcc*)
11969  version_type=windows
11970  shrext_cmds=.dll
11971  need_version=no
11972  need_lib_prefix=no
11973
11974  case $GCC,$cc_basename in
11975  yes,*)
11976    # gcc
11977    library_names_spec='$libname.dll.a'
11978    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11979    postinstall_cmds='base_file=`basename \$file`~
11980      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11981      dldir=$destdir/`dirname \$dlpath`~
11982      test -d \$dldir || mkdir -p \$dldir~
11983      $install_prog $dir/$dlname \$dldir/$dlname~
11984      chmod a+x \$dldir/$dlname~
11985      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11986        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11987      fi'
11988    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11989      dlpath=$dir/\$dldll~
11990       $RM \$dlpath'
11991    shlibpath_overrides_runpath=yes
11992
11993    case $host_os in
11994    cygwin*)
11995      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11996      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11997
11998      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11999      ;;
12000    mingw* | cegcc*)
12001      # MinGW DLLs use traditional 'lib' prefix
12002      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12003      ;;
12004    pw32*)
12005      # pw32 DLLs use 'pw' prefix rather than 'lib'
12006      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12007      ;;
12008    esac
12009    dynamic_linker='Win32 ld.exe'
12010    ;;
12011
12012  *,cl*)
12013    # Native MSVC
12014    libname_spec='$name'
12015    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12016    library_names_spec='$libname.dll.lib'
12017
12018    case $build_os in
12019    mingw*)
12020      sys_lib_search_path_spec=
12021      lt_save_ifs=$IFS
12022      IFS=';'
12023      for lt_path in $LIB
12024      do
12025        IFS=$lt_save_ifs
12026        # Let DOS variable expansion print the short 8.3 style file name.
12027        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12028        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12029      done
12030      IFS=$lt_save_ifs
12031      # Convert to MSYS style.
12032      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12033      ;;
12034    cygwin*)
12035      # Convert to unix form, then to dos form, then back to unix form
12036      # but this time dos style (no spaces!) so that the unix form looks
12037      # like /cygdrive/c/PROGRA~1:/cygdr...
12038      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12039      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12040      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12041      ;;
12042    *)
12043      sys_lib_search_path_spec=$LIB
12044      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12045        # It is most probably a Windows format PATH.
12046        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12047      else
12048        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12049      fi
12050      # FIXME: find the short name or the path components, as spaces are
12051      # common. (e.g. "Program Files" -> "PROGRA~1")
12052      ;;
12053    esac
12054
12055    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12056    postinstall_cmds='base_file=`basename \$file`~
12057      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12058      dldir=$destdir/`dirname \$dlpath`~
12059      test -d \$dldir || mkdir -p \$dldir~
12060      $install_prog $dir/$dlname \$dldir/$dlname'
12061    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12062      dlpath=$dir/\$dldll~
12063       $RM \$dlpath'
12064    shlibpath_overrides_runpath=yes
12065    dynamic_linker='Win32 link.exe'
12066    ;;
12067
12068  *)
12069    # Assume MSVC wrapper
12070    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12071    dynamic_linker='Win32 ld.exe'
12072    ;;
12073  esac
12074  # FIXME: first we should search . and the directory the executable is in
12075  shlibpath_var=PATH
12076  ;;
12077
12078darwin* | rhapsody*)
12079  dynamic_linker="$host_os dyld"
12080  version_type=darwin
12081  need_lib_prefix=no
12082  need_version=no
12083  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12084  soname_spec='$libname$release$major$shared_ext'
12085  shlibpath_overrides_runpath=yes
12086  shlibpath_var=DYLD_LIBRARY_PATH
12087  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12088
12089  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12090  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12091  ;;
12092
12093dgux*)
12094  version_type=linux # correct to gnu/linux during the next big refactor
12095  need_lib_prefix=no
12096  need_version=no
12097  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12098  soname_spec='$libname$release$shared_ext$major'
12099  shlibpath_var=LD_LIBRARY_PATH
12100  ;;
12101
12102freebsd* | dragonfly*)
12103  # DragonFly does not have aout.  When/if they implement a new
12104  # versioning mechanism, adjust this.
12105  if test -x /usr/bin/objformat; then
12106    objformat=`/usr/bin/objformat`
12107  else
12108    case $host_os in
12109    freebsd[23].*) objformat=aout ;;
12110    *) objformat=elf ;;
12111    esac
12112  fi
12113  version_type=freebsd-$objformat
12114  case $version_type in
12115    freebsd-elf*)
12116      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12117      soname_spec='$libname$release$shared_ext$major'
12118      need_version=no
12119      need_lib_prefix=no
12120      ;;
12121    freebsd-*)
12122      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12123      need_version=yes
12124      ;;
12125  esac
12126  shlibpath_var=LD_LIBRARY_PATH
12127  case $host_os in
12128  freebsd2.*)
12129    shlibpath_overrides_runpath=yes
12130    ;;
12131  freebsd3.[01]* | freebsdelf3.[01]*)
12132    shlibpath_overrides_runpath=yes
12133    hardcode_into_libs=yes
12134    ;;
12135  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12136  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12137    shlibpath_overrides_runpath=no
12138    hardcode_into_libs=yes
12139    ;;
12140  *) # from 4.6 on, and DragonFly
12141    shlibpath_overrides_runpath=yes
12142    hardcode_into_libs=yes
12143    ;;
12144  esac
12145  ;;
12146
12147haiku*)
12148  version_type=linux # correct to gnu/linux during the next big refactor
12149  need_lib_prefix=no
12150  need_version=no
12151  dynamic_linker="$host_os runtime_loader"
12152  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12153  soname_spec='$libname$release$shared_ext$major'
12154  shlibpath_var=LIBRARY_PATH
12155  shlibpath_overrides_runpath=no
12156  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12157  hardcode_into_libs=yes
12158  ;;
12159
12160hpux9* | hpux10* | hpux11*)
12161  # Give a soname corresponding to the major version so that dld.sl refuses to
12162  # link against other versions.
12163  version_type=sunos
12164  need_lib_prefix=no
12165  need_version=no
12166  case $host_cpu in
12167  ia64*)
12168    shrext_cmds='.so'
12169    hardcode_into_libs=yes
12170    dynamic_linker="$host_os dld.so"
12171    shlibpath_var=LD_LIBRARY_PATH
12172    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12173    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12174    soname_spec='$libname$release$shared_ext$major'
12175    if test 32 = "$HPUX_IA64_MODE"; then
12176      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12177      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12178    else
12179      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12180      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12181    fi
12182    ;;
12183  hppa*64*)
12184    shrext_cmds='.sl'
12185    hardcode_into_libs=yes
12186    dynamic_linker="$host_os dld.sl"
12187    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12188    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12189    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12190    soname_spec='$libname$release$shared_ext$major'
12191    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12192    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12193    ;;
12194  *)
12195    shrext_cmds='.sl'
12196    dynamic_linker="$host_os dld.sl"
12197    shlibpath_var=SHLIB_PATH
12198    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12199    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12200    soname_spec='$libname$release$shared_ext$major'
12201    ;;
12202  esac
12203  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12204  postinstall_cmds='chmod 555 $lib'
12205  # or fails outright, so override atomically:
12206  install_override_mode=555
12207  ;;
12208
12209interix[3-9]*)
12210  version_type=linux # correct to gnu/linux during the next big refactor
12211  need_lib_prefix=no
12212  need_version=no
12213  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12214  soname_spec='$libname$release$shared_ext$major'
12215  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12216  shlibpath_var=LD_LIBRARY_PATH
12217  shlibpath_overrides_runpath=no
12218  hardcode_into_libs=yes
12219  ;;
12220
12221irix5* | irix6* | nonstopux*)
12222  case $host_os in
12223    nonstopux*) version_type=nonstopux ;;
12224    *)
12225	if test yes = "$lt_cv_prog_gnu_ld"; then
12226		version_type=linux # correct to gnu/linux during the next big refactor
12227	else
12228		version_type=irix
12229	fi ;;
12230  esac
12231  need_lib_prefix=no
12232  need_version=no
12233  soname_spec='$libname$release$shared_ext$major'
12234  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12235  case $host_os in
12236  irix5* | nonstopux*)
12237    libsuff= shlibsuff=
12238    ;;
12239  *)
12240    case $LD in # libtool.m4 will add one of these switches to LD
12241    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12242      libsuff= shlibsuff= libmagic=32-bit;;
12243    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12244      libsuff=32 shlibsuff=N32 libmagic=N32;;
12245    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12246      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12247    *) libsuff= shlibsuff= libmagic=never-match;;
12248    esac
12249    ;;
12250  esac
12251  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12252  shlibpath_overrides_runpath=no
12253  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12254  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12255  hardcode_into_libs=yes
12256  ;;
12257
12258# No shared lib support for Linux oldld, aout, or coff.
12259linux*oldld* | linux*aout* | linux*coff*)
12260  dynamic_linker=no
12261  ;;
12262
12263linux*android*)
12264  version_type=none # Android doesn't support versioned libraries.
12265  need_lib_prefix=no
12266  need_version=no
12267  library_names_spec='$libname$release$shared_ext'
12268  soname_spec='$libname$release$shared_ext'
12269  finish_cmds=
12270  shlibpath_var=LD_LIBRARY_PATH
12271  shlibpath_overrides_runpath=yes
12272
12273  # This implies no fast_install, which is unacceptable.
12274  # Some rework will be needed to allow for fast_install
12275  # before this can be enabled.
12276  hardcode_into_libs=yes
12277
12278  dynamic_linker='Android linker'
12279  # Don't embed -rpath directories since the linker doesn't support them.
12280  hardcode_libdir_flag_spec='-L$libdir'
12281  ;;
12282
12283# This must be glibc/ELF.
12284linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12285  version_type=linux # correct to gnu/linux during the next big refactor
12286  need_lib_prefix=no
12287  need_version=no
12288  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12289  soname_spec='$libname$release$shared_ext$major'
12290  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12291  shlibpath_var=LD_LIBRARY_PATH
12292  shlibpath_overrides_runpath=no
12293
12294  # Some binutils ld are patched to set DT_RUNPATH
12295  if test ${lt_cv_shlibpath_overrides_runpath+y}
12296then :
12297  printf %s "(cached) " >&6
12298else $as_nop
12299  lt_cv_shlibpath_overrides_runpath=no
12300    save_LDFLAGS=$LDFLAGS
12301    save_libdir=$libdir
12302    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12303	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12304    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305/* end confdefs.h.  */
12306
12307int
12308main (void)
12309{
12310
12311  ;
12312  return 0;
12313}
12314_ACEOF
12315if ac_fn_c_try_link "$LINENO"
12316then :
12317  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12318then :
12319  lt_cv_shlibpath_overrides_runpath=yes
12320fi
12321fi
12322rm -f core conftest.err conftest.$ac_objext conftest.beam \
12323    conftest$ac_exeext conftest.$ac_ext
12324    LDFLAGS=$save_LDFLAGS
12325    libdir=$save_libdir
12326
12327fi
12328
12329  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
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  # Ideally, we could use ldconfig to report *all* directores which are
12337  # searched for libraries, however this is still not possible.  Aside from not
12338  # being certain /sbin/ldconfig is available, command
12339  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12340  # even though it is searched at run-time.  Try to do the best guess by
12341  # appending ld.so.conf contents (and includes) to the search path.
12342  if test -f /etc/ld.so.conf; then
12343    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' ' '`
12344    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12345  fi
12346
12347  # We used to test for /lib/ld.so.1 and disable shared libraries on
12348  # powerpc, because MkLinux only supported shared libraries with the
12349  # GNU dynamic linker.  Since this was broken with cross compilers,
12350  # most powerpc-linux boxes support dynamic linking these days and
12351  # people can always --disable-shared, the test was removed, and we
12352  # assume the GNU/Linux dynamic linker is in use.
12353  dynamic_linker='GNU/Linux ld.so'
12354  ;;
12355
12356netbsd*)
12357  version_type=sunos
12358  need_lib_prefix=no
12359  need_version=no
12360  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12361    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12362    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12363    dynamic_linker='NetBSD (a.out) ld.so'
12364  else
12365    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12366    soname_spec='$libname$release$shared_ext$major'
12367    dynamic_linker='NetBSD ld.elf_so'
12368  fi
12369  shlibpath_var=LD_LIBRARY_PATH
12370  shlibpath_overrides_runpath=yes
12371  hardcode_into_libs=yes
12372  ;;
12373
12374newsos6)
12375  version_type=linux # correct to gnu/linux during the next big refactor
12376  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12377  shlibpath_var=LD_LIBRARY_PATH
12378  shlibpath_overrides_runpath=yes
12379  ;;
12380
12381*nto* | *qnx*)
12382  version_type=qnx
12383  need_lib_prefix=no
12384  need_version=no
12385  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12386  soname_spec='$libname$release$shared_ext$major'
12387  shlibpath_var=LD_LIBRARY_PATH
12388  shlibpath_overrides_runpath=no
12389  hardcode_into_libs=yes
12390  dynamic_linker='ldqnx.so'
12391  ;;
12392
12393openbsd* | bitrig*)
12394  version_type=sunos
12395  sys_lib_dlsearch_path_spec=/usr/lib
12396  need_lib_prefix=no
12397  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12398    need_version=no
12399  else
12400    need_version=yes
12401  fi
12402  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12403  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12404  shlibpath_var=LD_LIBRARY_PATH
12405  shlibpath_overrides_runpath=yes
12406  ;;
12407
12408os2*)
12409  libname_spec='$name'
12410  version_type=windows
12411  shrext_cmds=.dll
12412  need_version=no
12413  need_lib_prefix=no
12414  # OS/2 can only load a DLL with a base name of 8 characters or less.
12415  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12416    v=$($ECHO $release$versuffix | tr -d .-);
12417    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12418    $ECHO $n$v`$shared_ext'
12419  library_names_spec='${libname}_dll.$libext'
12420  dynamic_linker='OS/2 ld.exe'
12421  shlibpath_var=BEGINLIBPATH
12422  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12423  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12424  postinstall_cmds='base_file=`basename \$file`~
12425    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12426    dldir=$destdir/`dirname \$dlpath`~
12427    test -d \$dldir || mkdir -p \$dldir~
12428    $install_prog $dir/$dlname \$dldir/$dlname~
12429    chmod a+x \$dldir/$dlname~
12430    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12431      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12432    fi'
12433  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12434    dlpath=$dir/\$dldll~
12435    $RM \$dlpath'
12436  ;;
12437
12438osf3* | osf4* | osf5*)
12439  version_type=osf
12440  need_lib_prefix=no
12441  need_version=no
12442  soname_spec='$libname$release$shared_ext$major'
12443  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12444  shlibpath_var=LD_LIBRARY_PATH
12445  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12446  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12447  ;;
12448
12449rdos*)
12450  dynamic_linker=no
12451  ;;
12452
12453solaris*)
12454  version_type=linux # correct to gnu/linux during the next big refactor
12455  need_lib_prefix=no
12456  need_version=no
12457  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12458  soname_spec='$libname$release$shared_ext$major'
12459  shlibpath_var=LD_LIBRARY_PATH
12460  shlibpath_overrides_runpath=yes
12461  hardcode_into_libs=yes
12462  # ldd complains unless libraries are executable
12463  postinstall_cmds='chmod +x $lib'
12464  ;;
12465
12466sunos4*)
12467  version_type=sunos
12468  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12469  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12470  shlibpath_var=LD_LIBRARY_PATH
12471  shlibpath_overrides_runpath=yes
12472  if test yes = "$with_gnu_ld"; then
12473    need_lib_prefix=no
12474  fi
12475  need_version=yes
12476  ;;
12477
12478sysv4 | sysv4.3*)
12479  version_type=linux # correct to gnu/linux during the next big refactor
12480  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12481  soname_spec='$libname$release$shared_ext$major'
12482  shlibpath_var=LD_LIBRARY_PATH
12483  case $host_vendor in
12484    sni)
12485      shlibpath_overrides_runpath=no
12486      need_lib_prefix=no
12487      runpath_var=LD_RUN_PATH
12488      ;;
12489    siemens)
12490      need_lib_prefix=no
12491      ;;
12492    motorola)
12493      need_lib_prefix=no
12494      need_version=no
12495      shlibpath_overrides_runpath=no
12496      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12497      ;;
12498  esac
12499  ;;
12500
12501sysv4*MP*)
12502  if test -d /usr/nec; then
12503    version_type=linux # correct to gnu/linux during the next big refactor
12504    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12505    soname_spec='$libname$shared_ext.$major'
12506    shlibpath_var=LD_LIBRARY_PATH
12507  fi
12508  ;;
12509
12510sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12511  version_type=sco
12512  need_lib_prefix=no
12513  need_version=no
12514  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12515  soname_spec='$libname$release$shared_ext$major'
12516  shlibpath_var=LD_LIBRARY_PATH
12517  shlibpath_overrides_runpath=yes
12518  hardcode_into_libs=yes
12519  if test yes = "$with_gnu_ld"; then
12520    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12521  else
12522    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12523    case $host_os in
12524      sco3.2v5*)
12525        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12526	;;
12527    esac
12528  fi
12529  sys_lib_dlsearch_path_spec='/usr/lib'
12530  ;;
12531
12532tpf*)
12533  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12534  version_type=linux # correct to gnu/linux during the next big refactor
12535  need_lib_prefix=no
12536  need_version=no
12537  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12538  shlibpath_var=LD_LIBRARY_PATH
12539  shlibpath_overrides_runpath=no
12540  hardcode_into_libs=yes
12541  ;;
12542
12543uts4*)
12544  version_type=linux # correct to gnu/linux during the next big refactor
12545  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12546  soname_spec='$libname$release$shared_ext$major'
12547  shlibpath_var=LD_LIBRARY_PATH
12548  ;;
12549
12550*)
12551  dynamic_linker=no
12552  ;;
12553esac
12554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12555printf "%s\n" "$dynamic_linker" >&6; }
12556test no = "$dynamic_linker" && can_build_shared=no
12557
12558variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12559if test yes = "$GCC"; then
12560  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12561fi
12562
12563if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12564  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12565fi
12566
12567if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12568  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12569fi
12570
12571# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12572configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12573
12574# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12575func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12576
12577# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12578configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12677printf %s "checking how to hardcode library paths into programs... " >&6; }
12678hardcode_action=
12679if test -n "$hardcode_libdir_flag_spec" ||
12680   test -n "$runpath_var" ||
12681   test yes = "$hardcode_automatic"; then
12682
12683  # We can hardcode non-existent directories.
12684  if test no != "$hardcode_direct" &&
12685     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12686     # have to relink, otherwise we might link with an installed library
12687     # when we should be linking with a yet-to-be-installed one
12688     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12689     test no != "$hardcode_minus_L"; then
12690    # Linking always hardcodes the temporary library directory.
12691    hardcode_action=relink
12692  else
12693    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12694    hardcode_action=immediate
12695  fi
12696else
12697  # We cannot hardcode anything, or else we can only hardcode existing
12698  # directories.
12699  hardcode_action=unsupported
12700fi
12701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12702printf "%s\n" "$hardcode_action" >&6; }
12703
12704if test relink = "$hardcode_action" ||
12705   test yes = "$inherit_rpath"; then
12706  # Fast installation is not supported
12707  enable_fast_install=no
12708elif test yes = "$shlibpath_overrides_runpath" ||
12709     test no = "$enable_shared"; then
12710  # Fast installation is not necessary
12711  enable_fast_install=needless
12712fi
12713
12714
12715
12716
12717
12718
12719  if test yes != "$enable_dlopen"; then
12720  enable_dlopen=unknown
12721  enable_dlopen_self=unknown
12722  enable_dlopen_self_static=unknown
12723else
12724  lt_cv_dlopen=no
12725  lt_cv_dlopen_libs=
12726
12727  case $host_os in
12728  beos*)
12729    lt_cv_dlopen=load_add_on
12730    lt_cv_dlopen_libs=
12731    lt_cv_dlopen_self=yes
12732    ;;
12733
12734  mingw* | pw32* | cegcc*)
12735    lt_cv_dlopen=LoadLibrary
12736    lt_cv_dlopen_libs=
12737    ;;
12738
12739  cygwin*)
12740    lt_cv_dlopen=dlopen
12741    lt_cv_dlopen_libs=
12742    ;;
12743
12744  darwin*)
12745    # if libdl is installed we need to link against it
12746    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12747printf %s "checking for dlopen in -ldl... " >&6; }
12748if test ${ac_cv_lib_dl_dlopen+y}
12749then :
12750  printf %s "(cached) " >&6
12751else $as_nop
12752  ac_check_lib_save_LIBS=$LIBS
12753LIBS="-ldl  $LIBS"
12754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755/* end confdefs.h.  */
12756
12757/* Override any GCC internal prototype to avoid an error.
12758   Use char because int might match the return type of a GCC
12759   builtin and then its argument prototype would still apply.  */
12760char dlopen ();
12761int
12762main (void)
12763{
12764return dlopen ();
12765  ;
12766  return 0;
12767}
12768_ACEOF
12769if ac_fn_c_try_link "$LINENO"
12770then :
12771  ac_cv_lib_dl_dlopen=yes
12772else $as_nop
12773  ac_cv_lib_dl_dlopen=no
12774fi
12775rm -f core conftest.err conftest.$ac_objext conftest.beam \
12776    conftest$ac_exeext conftest.$ac_ext
12777LIBS=$ac_check_lib_save_LIBS
12778fi
12779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12780printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12781if test "x$ac_cv_lib_dl_dlopen" = xyes
12782then :
12783  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12784else $as_nop
12785
12786    lt_cv_dlopen=dyld
12787    lt_cv_dlopen_libs=
12788    lt_cv_dlopen_self=yes
12789
12790fi
12791
12792    ;;
12793
12794  tpf*)
12795    # Don't try to run any link tests for TPF.  We know it's impossible
12796    # because TPF is a cross-compiler, and we know how we open DSOs.
12797    lt_cv_dlopen=dlopen
12798    lt_cv_dlopen_libs=
12799    lt_cv_dlopen_self=no
12800    ;;
12801
12802  *)
12803    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12804if test "x$ac_cv_func_shl_load" = xyes
12805then :
12806  lt_cv_dlopen=shl_load
12807else $as_nop
12808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12809printf %s "checking for shl_load in -ldld... " >&6; }
12810if test ${ac_cv_lib_dld_shl_load+y}
12811then :
12812  printf %s "(cached) " >&6
12813else $as_nop
12814  ac_check_lib_save_LIBS=$LIBS
12815LIBS="-ldld  $LIBS"
12816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817/* end confdefs.h.  */
12818
12819/* Override any GCC internal prototype to avoid an error.
12820   Use char because int might match the return type of a GCC
12821   builtin and then its argument prototype would still apply.  */
12822char shl_load ();
12823int
12824main (void)
12825{
12826return shl_load ();
12827  ;
12828  return 0;
12829}
12830_ACEOF
12831if ac_fn_c_try_link "$LINENO"
12832then :
12833  ac_cv_lib_dld_shl_load=yes
12834else $as_nop
12835  ac_cv_lib_dld_shl_load=no
12836fi
12837rm -f core conftest.err conftest.$ac_objext conftest.beam \
12838    conftest$ac_exeext conftest.$ac_ext
12839LIBS=$ac_check_lib_save_LIBS
12840fi
12841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12842printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12843if test "x$ac_cv_lib_dld_shl_load" = xyes
12844then :
12845  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12846else $as_nop
12847  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12848if test "x$ac_cv_func_dlopen" = xyes
12849then :
12850  lt_cv_dlopen=dlopen
12851else $as_nop
12852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12853printf %s "checking for dlopen in -ldl... " >&6; }
12854if test ${ac_cv_lib_dl_dlopen+y}
12855then :
12856  printf %s "(cached) " >&6
12857else $as_nop
12858  ac_check_lib_save_LIBS=$LIBS
12859LIBS="-ldl  $LIBS"
12860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861/* end confdefs.h.  */
12862
12863/* Override any GCC internal prototype to avoid an error.
12864   Use char because int might match the return type of a GCC
12865   builtin and then its argument prototype would still apply.  */
12866char dlopen ();
12867int
12868main (void)
12869{
12870return dlopen ();
12871  ;
12872  return 0;
12873}
12874_ACEOF
12875if ac_fn_c_try_link "$LINENO"
12876then :
12877  ac_cv_lib_dl_dlopen=yes
12878else $as_nop
12879  ac_cv_lib_dl_dlopen=no
12880fi
12881rm -f core conftest.err conftest.$ac_objext conftest.beam \
12882    conftest$ac_exeext conftest.$ac_ext
12883LIBS=$ac_check_lib_save_LIBS
12884fi
12885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12886printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12887if test "x$ac_cv_lib_dl_dlopen" = xyes
12888then :
12889  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12890else $as_nop
12891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12892printf %s "checking for dlopen in -lsvld... " >&6; }
12893if test ${ac_cv_lib_svld_dlopen+y}
12894then :
12895  printf %s "(cached) " >&6
12896else $as_nop
12897  ac_check_lib_save_LIBS=$LIBS
12898LIBS="-lsvld  $LIBS"
12899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900/* end confdefs.h.  */
12901
12902/* Override any GCC internal prototype to avoid an error.
12903   Use char because int might match the return type of a GCC
12904   builtin and then its argument prototype would still apply.  */
12905char dlopen ();
12906int
12907main (void)
12908{
12909return dlopen ();
12910  ;
12911  return 0;
12912}
12913_ACEOF
12914if ac_fn_c_try_link "$LINENO"
12915then :
12916  ac_cv_lib_svld_dlopen=yes
12917else $as_nop
12918  ac_cv_lib_svld_dlopen=no
12919fi
12920rm -f core conftest.err conftest.$ac_objext conftest.beam \
12921    conftest$ac_exeext conftest.$ac_ext
12922LIBS=$ac_check_lib_save_LIBS
12923fi
12924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12925printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12926if test "x$ac_cv_lib_svld_dlopen" = xyes
12927then :
12928  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12929else $as_nop
12930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12931printf %s "checking for dld_link in -ldld... " >&6; }
12932if test ${ac_cv_lib_dld_dld_link+y}
12933then :
12934  printf %s "(cached) " >&6
12935else $as_nop
12936  ac_check_lib_save_LIBS=$LIBS
12937LIBS="-ldld  $LIBS"
12938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939/* end confdefs.h.  */
12940
12941/* Override any GCC internal prototype to avoid an error.
12942   Use char because int might match the return type of a GCC
12943   builtin and then its argument prototype would still apply.  */
12944char dld_link ();
12945int
12946main (void)
12947{
12948return dld_link ();
12949  ;
12950  return 0;
12951}
12952_ACEOF
12953if ac_fn_c_try_link "$LINENO"
12954then :
12955  ac_cv_lib_dld_dld_link=yes
12956else $as_nop
12957  ac_cv_lib_dld_dld_link=no
12958fi
12959rm -f core conftest.err conftest.$ac_objext conftest.beam \
12960    conftest$ac_exeext conftest.$ac_ext
12961LIBS=$ac_check_lib_save_LIBS
12962fi
12963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12964printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12965if test "x$ac_cv_lib_dld_dld_link" = xyes
12966then :
12967  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12968fi
12969
12970
12971fi
12972
12973
12974fi
12975
12976
12977fi
12978
12979
12980fi
12981
12982
12983fi
12984
12985    ;;
12986  esac
12987
12988  if test no = "$lt_cv_dlopen"; then
12989    enable_dlopen=no
12990  else
12991    enable_dlopen=yes
12992  fi
12993
12994  case $lt_cv_dlopen in
12995  dlopen)
12996    save_CPPFLAGS=$CPPFLAGS
12997    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12998
12999    save_LDFLAGS=$LDFLAGS
13000    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13001
13002    save_LIBS=$LIBS
13003    LIBS="$lt_cv_dlopen_libs $LIBS"
13004
13005    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13006printf %s "checking whether a program can dlopen itself... " >&6; }
13007if test ${lt_cv_dlopen_self+y}
13008then :
13009  printf %s "(cached) " >&6
13010else $as_nop
13011  	  if test yes = "$cross_compiling"; then :
13012  lt_cv_dlopen_self=cross
13013else
13014  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13015  lt_status=$lt_dlunknown
13016  cat > conftest.$ac_ext <<_LT_EOF
13017#line $LINENO "configure"
13018#include "confdefs.h"
13019
13020#if HAVE_DLFCN_H
13021#include <dlfcn.h>
13022#endif
13023
13024#include <stdio.h>
13025
13026#ifdef RTLD_GLOBAL
13027#  define LT_DLGLOBAL		RTLD_GLOBAL
13028#else
13029#  ifdef DL_GLOBAL
13030#    define LT_DLGLOBAL		DL_GLOBAL
13031#  else
13032#    define LT_DLGLOBAL		0
13033#  endif
13034#endif
13035
13036/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13037   find out it does not work in some platform. */
13038#ifndef LT_DLLAZY_OR_NOW
13039#  ifdef RTLD_LAZY
13040#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13041#  else
13042#    ifdef DL_LAZY
13043#      define LT_DLLAZY_OR_NOW		DL_LAZY
13044#    else
13045#      ifdef RTLD_NOW
13046#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13047#      else
13048#        ifdef DL_NOW
13049#          define LT_DLLAZY_OR_NOW	DL_NOW
13050#        else
13051#          define LT_DLLAZY_OR_NOW	0
13052#        endif
13053#      endif
13054#    endif
13055#  endif
13056#endif
13057
13058/* When -fvisibility=hidden is used, assume the code has been annotated
13059   correspondingly for the symbols needed.  */
13060#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13061int fnord () __attribute__((visibility("default")));
13062#endif
13063
13064int fnord () { return 42; }
13065int main ()
13066{
13067  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13068  int status = $lt_dlunknown;
13069
13070  if (self)
13071    {
13072      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13073      else
13074        {
13075	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13076          else puts (dlerror ());
13077	}
13078      /* dlclose (self); */
13079    }
13080  else
13081    puts (dlerror ());
13082
13083  return status;
13084}
13085_LT_EOF
13086  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13087  (eval $ac_link) 2>&5
13088  ac_status=$?
13089  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13090  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13091    (./conftest; exit; ) >&5 2>/dev/null
13092    lt_status=$?
13093    case x$lt_status in
13094      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13095      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13096      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13097    esac
13098  else :
13099    # compilation failed
13100    lt_cv_dlopen_self=no
13101  fi
13102fi
13103rm -fr conftest*
13104
13105
13106fi
13107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13108printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13109
13110    if test yes = "$lt_cv_dlopen_self"; then
13111      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13112      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13113printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13114if test ${lt_cv_dlopen_self_static+y}
13115then :
13116  printf %s "(cached) " >&6
13117else $as_nop
13118  	  if test yes = "$cross_compiling"; then :
13119  lt_cv_dlopen_self_static=cross
13120else
13121  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13122  lt_status=$lt_dlunknown
13123  cat > conftest.$ac_ext <<_LT_EOF
13124#line $LINENO "configure"
13125#include "confdefs.h"
13126
13127#if HAVE_DLFCN_H
13128#include <dlfcn.h>
13129#endif
13130
13131#include <stdio.h>
13132
13133#ifdef RTLD_GLOBAL
13134#  define LT_DLGLOBAL		RTLD_GLOBAL
13135#else
13136#  ifdef DL_GLOBAL
13137#    define LT_DLGLOBAL		DL_GLOBAL
13138#  else
13139#    define LT_DLGLOBAL		0
13140#  endif
13141#endif
13142
13143/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13144   find out it does not work in some platform. */
13145#ifndef LT_DLLAZY_OR_NOW
13146#  ifdef RTLD_LAZY
13147#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13148#  else
13149#    ifdef DL_LAZY
13150#      define LT_DLLAZY_OR_NOW		DL_LAZY
13151#    else
13152#      ifdef RTLD_NOW
13153#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13154#      else
13155#        ifdef DL_NOW
13156#          define LT_DLLAZY_OR_NOW	DL_NOW
13157#        else
13158#          define LT_DLLAZY_OR_NOW	0
13159#        endif
13160#      endif
13161#    endif
13162#  endif
13163#endif
13164
13165/* When -fvisibility=hidden is used, assume the code has been annotated
13166   correspondingly for the symbols needed.  */
13167#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13168int fnord () __attribute__((visibility("default")));
13169#endif
13170
13171int fnord () { return 42; }
13172int main ()
13173{
13174  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13175  int status = $lt_dlunknown;
13176
13177  if (self)
13178    {
13179      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13180      else
13181        {
13182	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13183          else puts (dlerror ());
13184	}
13185      /* dlclose (self); */
13186    }
13187  else
13188    puts (dlerror ());
13189
13190  return status;
13191}
13192_LT_EOF
13193  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13194  (eval $ac_link) 2>&5
13195  ac_status=$?
13196  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13197  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13198    (./conftest; exit; ) >&5 2>/dev/null
13199    lt_status=$?
13200    case x$lt_status in
13201      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13202      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13203      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13204    esac
13205  else :
13206    # compilation failed
13207    lt_cv_dlopen_self_static=no
13208  fi
13209fi
13210rm -fr conftest*
13211
13212
13213fi
13214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13215printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13216    fi
13217
13218    CPPFLAGS=$save_CPPFLAGS
13219    LDFLAGS=$save_LDFLAGS
13220    LIBS=$save_LIBS
13221    ;;
13222  esac
13223
13224  case $lt_cv_dlopen_self in
13225  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13226  *) enable_dlopen_self=unknown ;;
13227  esac
13228
13229  case $lt_cv_dlopen_self_static in
13230  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13231  *) enable_dlopen_self_static=unknown ;;
13232  esac
13233fi
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251striplib=
13252old_striplib=
13253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13254printf %s "checking whether stripping libraries is possible... " >&6; }
13255if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13256  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13257  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13259printf "%s\n" "yes" >&6; }
13260else
13261# FIXME - insert some real tests, host_os isn't really good enough
13262  case $host_os in
13263  darwin*)
13264    if test -n "$STRIP"; then
13265      striplib="$STRIP -x"
13266      old_striplib="$STRIP -S"
13267      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13268printf "%s\n" "yes" >&6; }
13269    else
13270      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271printf "%s\n" "no" >&6; }
13272    fi
13273    ;;
13274  *)
13275    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276printf "%s\n" "no" >&6; }
13277    ;;
13278  esac
13279fi
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292  # Report what library types will actually be built
13293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13294printf %s "checking if libtool supports shared libraries... " >&6; }
13295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13296printf "%s\n" "$can_build_shared" >&6; }
13297
13298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13299printf %s "checking whether to build shared libraries... " >&6; }
13300  test no = "$can_build_shared" && enable_shared=no
13301
13302  # On AIX, shared libraries and static libraries use the same namespace, and
13303  # are all built from PIC.
13304  case $host_os in
13305  aix3*)
13306    test yes = "$enable_shared" && enable_static=no
13307    if test -n "$RANLIB"; then
13308      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13309      postinstall_cmds='$RANLIB $lib'
13310    fi
13311    ;;
13312
13313  aix[4-9]*)
13314    if test ia64 != "$host_cpu"; then
13315      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13316      yes,aix,yes) ;;			# shared object as lib.so file only
13317      yes,svr4,*) ;;			# shared object as lib.so archive member only
13318      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13319      esac
13320    fi
13321    ;;
13322  esac
13323  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13324printf "%s\n" "$enable_shared" >&6; }
13325
13326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13327printf %s "checking whether to build static libraries... " >&6; }
13328  # Make sure either enable_shared or enable_static is yes.
13329  test yes = "$enable_shared" || enable_static=yes
13330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13331printf "%s\n" "$enable_static" >&6; }
13332
13333
13334
13335
13336fi
13337ac_ext=c
13338ac_cpp='$CPP $CPPFLAGS'
13339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13341ac_compiler_gnu=$ac_cv_c_compiler_gnu
13342
13343CC=$lt_save_CC
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359        ac_config_commands="$ac_config_commands libtool"
13360
13361
13362
13363
13364# Only expand once:
13365
13366
13367
13368
13369  CFLAG_VISIBILITY=
13370  HAVE_VISIBILITY=0
13371  if test -n "$GCC"; then
13372                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
13373printf %s "checking whether the -Werror option is usable... " >&6; }
13374    if test ${gl_cv_cc_vis_werror+y}
13375then :
13376  printf %s "(cached) " >&6
13377else $as_nop
13378
13379      gl_save_CFLAGS="$CFLAGS"
13380      CFLAGS="$CFLAGS -Werror"
13381      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382/* end confdefs.h.  */
13383
13384int
13385main (void)
13386{
13387
13388  ;
13389  return 0;
13390}
13391_ACEOF
13392if ac_fn_c_try_compile "$LINENO"
13393then :
13394  gl_cv_cc_vis_werror=yes
13395else $as_nop
13396  gl_cv_cc_vis_werror=no
13397fi
13398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13399      CFLAGS="$gl_save_CFLAGS"
13400fi
13401
13402    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
13403printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
13404        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
13405printf %s "checking for simple visibility declarations... " >&6; }
13406    if test ${gl_cv_cc_visibility+y}
13407then :
13408  printf %s "(cached) " >&6
13409else $as_nop
13410
13411      gl_save_CFLAGS="$CFLAGS"
13412      CFLAGS="$CFLAGS -fvisibility=hidden"
13413                                    if test $gl_cv_cc_vis_werror = yes; then
13414        CFLAGS="$CFLAGS -Werror"
13415      fi
13416      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417/* end confdefs.h.  */
13418extern __attribute__((__visibility__("hidden"))) int hiddenvar;
13419             extern __attribute__((__visibility__("default"))) int exportedvar;
13420             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
13421             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
13422             void dummyfunc (void) {}
13423
13424int
13425main (void)
13426{
13427
13428  ;
13429  return 0;
13430}
13431_ACEOF
13432if ac_fn_c_try_compile "$LINENO"
13433then :
13434  gl_cv_cc_visibility=yes
13435else $as_nop
13436  gl_cv_cc_visibility=no
13437fi
13438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13439      CFLAGS="$gl_save_CFLAGS"
13440fi
13441
13442    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
13443printf "%s\n" "$gl_cv_cc_visibility" >&6; }
13444    if test $gl_cv_cc_visibility = yes; then
13445      CFLAG_VISIBILITY="-fvisibility=hidden"
13446      HAVE_VISIBILITY=1
13447    fi
13448  fi
13449
13450
13451
13452printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
13453
13454
13455
13456ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
13457if test "x$ac_cv_header_sys_mkdev_h" = xyes
13458then :
13459
13460printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
13461
13462fi
13463
13464if test $ac_cv_header_sys_mkdev_h = no; then
13465  ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13466if test "x$ac_cv_header_sys_sysmacros_h" = xyes
13467then :
13468
13469printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
13470
13471fi
13472
13473fi
13474
13475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13476printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13477if test ${ac_cv_header_sys_wait_h+y}
13478then :
13479  printf %s "(cached) " >&6
13480else $as_nop
13481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482/* end confdefs.h.  */
13483#include <sys/types.h>
13484#include <sys/wait.h>
13485#ifndef WEXITSTATUS
13486# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13487#endif
13488#ifndef WIFEXITED
13489# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13490#endif
13491
13492int
13493main (void)
13494{
13495  int s;
13496  wait (&s);
13497  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13498  ;
13499  return 0;
13500}
13501_ACEOF
13502if ac_fn_c_try_compile "$LINENO"
13503then :
13504  ac_cv_header_sys_wait_h=yes
13505else $as_nop
13506  ac_cv_header_sys_wait_h=no
13507fi
13508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13509fi
13510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13511printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
13512if test $ac_cv_header_sys_wait_h = yes; then
13513
13514printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13515
13516fi
13517
13518ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13519if test "x$ac_cv_header_stdint_h" = xyes
13520then :
13521  printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
13522
13523fi
13524ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13525if test "x$ac_cv_header_fcntl_h" = xyes
13526then :
13527  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
13528
13529fi
13530ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13531if test "x$ac_cv_header_inttypes_h" = xyes
13532then :
13533  printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
13534
13535fi
13536ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13537if test "x$ac_cv_header_unistd_h" = xyes
13538then :
13539  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13540
13541fi
13542ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
13543if test "x$ac_cv_header_byteswap_h" = xyes
13544then :
13545  printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
13546
13547fi
13548
13549ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
13550if test "x$ac_cv_header_spawn_h" = xyes
13551then :
13552  printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
13553
13554fi
13555ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
13556if test "x$ac_cv_header_utime_h" = xyes
13557then :
13558  printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
13559
13560fi
13561ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
13562if test "x$ac_cv_header_wchar_h" = xyes
13563then :
13564  printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
13565
13566fi
13567ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
13568if test "x$ac_cv_header_wctype_h" = xyes
13569then :
13570  printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
13571
13572fi
13573
13574ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13575if test "x$ac_cv_header_getopt_h" = xyes
13576then :
13577  printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
13578
13579fi
13580ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
13581if test "x$ac_cv_header_err_h" = xyes
13582then :
13583  printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
13584
13585fi
13586ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
13587if test "x$ac_cv_header_xlocale_h" = xyes
13588then :
13589  printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h
13590
13591fi
13592
13593ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default"
13594if test "x$ac_cv_header_sys_bswap_h" = xyes
13595then :
13596  printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h
13597
13598fi
13599ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13600if test "x$ac_cv_header_sys_mman_h" = xyes
13601then :
13602  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
13603
13604fi
13605ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
13606if test "x$ac_cv_header_sys_stat_h" = xyes
13607then :
13608  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
13609
13610fi
13611ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
13612if test "x$ac_cv_header_sys_types_h" = xyes
13613then :
13614  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
13615
13616fi
13617ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"
13618if test "x$ac_cv_header_sys_utime_h" = xyes
13619then :
13620  printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
13621
13622fi
13623ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13624if test "x$ac_cv_header_sys_time_h" = xyes
13625then :
13626  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
13627
13628fi
13629ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13630if test "x$ac_cv_header_sys_sysmacros_h" = xyes
13631then :
13632  printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
13633
13634fi
13635ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13636if test "x$ac_cv_header_sys_ioctl_h" = xyes
13637then :
13638  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
13639
13640fi
13641
13642if test "$enable_zlib" != "no"; then
13643  ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13644if test "x$ac_cv_header_zlib_h" = xyes
13645then :
13646  printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
13647
13648fi
13649
13650fi
13651if test "$enable_bzlib" != "no"; then
13652  ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13653if test "x$ac_cv_header_bzlib_h" = xyes
13654then :
13655  printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
13656
13657fi
13658
13659fi
13660if test "$enable_xzlib" != "no"; then
13661  ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
13662if test "x$ac_cv_header_lzma_h" = xyes
13663then :
13664  printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
13665
13666fi
13667
13668fi
13669ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
13670"
13671if test "x$ac_cv_type_sig_t" = xyes
13672then :
13673
13674printf "%s\n" "#define HAVE_SIG_T 1" >>confdefs.h
13675
13676fi
13677
13678
13679ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13680if test "x$ac_cv_type_off_t" = xyes
13681then :
13682
13683else $as_nop
13684
13685printf "%s\n" "#define off_t long int" >>confdefs.h
13686
13687fi
13688
13689ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13690if test "x$ac_cv_type_size_t" = xyes
13691then :
13692
13693else $as_nop
13694
13695printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13696
13697fi
13698
13699ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
13700if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
13701then :
13702
13703printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
13704
13705
13706fi
13707
13708
13709ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
13710"
13711if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
13712then :
13713
13714printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
13715
13716
13717fi
13718
13719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13720printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13721if test ${ac_cv_struct_tm+y}
13722then :
13723  printf %s "(cached) " >&6
13724else $as_nop
13725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726/* end confdefs.h.  */
13727#include <sys/types.h>
13728#include <time.h>
13729
13730int
13731main (void)
13732{
13733struct tm tm;
13734				     int *p = &tm.tm_sec;
13735				     return !p;
13736  ;
13737  return 0;
13738}
13739_ACEOF
13740if ac_fn_c_try_compile "$LINENO"
13741then :
13742  ac_cv_struct_tm=time.h
13743else $as_nop
13744  ac_cv_struct_tm=sys/time.h
13745fi
13746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13747fi
13748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13749printf "%s\n" "$ac_cv_struct_tm" >&6; }
13750if test $ac_cv_struct_tm = sys/time.h; then
13751
13752printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
13753
13754fi
13755
13756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13757printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13758if test ${ac_cv_c_undeclared_builtin_options+y}
13759then :
13760  printf %s "(cached) " >&6
13761else $as_nop
13762  ac_save_CFLAGS=$CFLAGS
13763   ac_cv_c_undeclared_builtin_options='cannot detect'
13764   for ac_arg in '' -fno-builtin; do
13765     CFLAGS="$ac_save_CFLAGS $ac_arg"
13766     # This test program should *not* compile successfully.
13767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768/* end confdefs.h.  */
13769
13770int
13771main (void)
13772{
13773(void) strchr;
13774  ;
13775  return 0;
13776}
13777_ACEOF
13778if ac_fn_c_try_compile "$LINENO"
13779then :
13780
13781else $as_nop
13782  # This test program should compile successfully.
13783        # No library function is consistently available on
13784        # freestanding implementations, so test against a dummy
13785        # declaration.  Include always-available headers on the
13786        # off chance that they somehow elicit warnings.
13787        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788/* end confdefs.h.  */
13789#include <float.h>
13790#include <limits.h>
13791#include <stdarg.h>
13792#include <stddef.h>
13793extern void ac_decl (int, char *);
13794
13795int
13796main (void)
13797{
13798(void) ac_decl (0, (char *) 0);
13799  (void) ac_decl;
13800
13801  ;
13802  return 0;
13803}
13804_ACEOF
13805if ac_fn_c_try_compile "$LINENO"
13806then :
13807  if test x"$ac_arg" = x
13808then :
13809  ac_cv_c_undeclared_builtin_options='none needed'
13810else $as_nop
13811  ac_cv_c_undeclared_builtin_options=$ac_arg
13812fi
13813          break
13814fi
13815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13816fi
13817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13818    done
13819    CFLAGS=$ac_save_CFLAGS
13820
13821fi
13822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13823printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13824  case $ac_cv_c_undeclared_builtin_options in #(
13825  'cannot detect') :
13826    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13827printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13828as_fn_error $? "cannot make $CC report undeclared builtins
13829See \`config.log' for more details" "$LINENO" 5; } ;; #(
13830  'none needed') :
13831    ac_c_undeclared_builtin_options='' ;; #(
13832  *) :
13833    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13834esac
13835
13836ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13837#include <$ac_cv_struct_tm>
13838
13839"
13840if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
13841then :
13842
13843printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
13844
13845
13846fi
13847
13848if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13849
13850printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
13851
13852else
13853  ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13854" "$ac_c_undeclared_builtin_options" "CFLAGS"
13855if test "x$ac_cv_have_decl_tzname" = xyes
13856then :
13857  ac_have_decl=1
13858else $as_nop
13859  ac_have_decl=0
13860fi
13861printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
13862
13863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13864printf %s "checking for tzname... " >&6; }
13865if test ${ac_cv_var_tzname+y}
13866then :
13867  printf %s "(cached) " >&6
13868else $as_nop
13869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870/* end confdefs.h.  */
13871#include <time.h>
13872#if !HAVE_DECL_TZNAME
13873extern char *tzname[];
13874#endif
13875
13876int
13877main (void)
13878{
13879return tzname[0][0];
13880  ;
13881  return 0;
13882}
13883_ACEOF
13884if ac_fn_c_try_link "$LINENO"
13885then :
13886  ac_cv_var_tzname=yes
13887else $as_nop
13888  ac_cv_var_tzname=no
13889fi
13890rm -f core conftest.err conftest.$ac_objext conftest.beam \
13891    conftest$ac_exeext conftest.$ac_ext
13892fi
13893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13894printf "%s\n" "$ac_cv_var_tzname" >&6; }
13895  if test $ac_cv_var_tzname = yes; then
13896
13897printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
13898
13899  fi
13900fi
13901
13902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13903printf %s "checking for tm_zone in struct tm... " >&6; }
13904if test ${ac_cv_struct_tm_zone+y}
13905then :
13906  printf %s "(cached) " >&6
13907else $as_nop
13908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909/* end confdefs.h.  */
13910#include <sys/types.h>
13911#include <$ac_cv_struct_tm>
13912int
13913main (void)
13914{
13915struct tm tm; tm.tm_zone;
13916  ;
13917  return 0;
13918}
13919_ACEOF
13920if ac_fn_c_try_compile "$LINENO"
13921then :
13922  ac_cv_struct_tm_zone=yes
13923else $as_nop
13924  ac_cv_struct_tm_zone=no
13925fi
13926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13927fi
13928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
13929printf "%s\n" "$ac_cv_struct_tm_zone" >&6; }
13930if test "$ac_cv_struct_tm_zone" = yes; then
13931
13932printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
13933
13934fi
13935
13936# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13937# consider it declared and we won't give our own extern.
13938ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13939" "$ac_c_undeclared_builtin_options" "CFLAGS"
13940if test "x$ac_cv_have_decl_tzname" = xyes
13941then :
13942  ac_have_decl=1
13943else $as_nop
13944  ac_have_decl=0
13945fi
13946printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
13947
13948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13949printf %s "checking for tzname... " >&6; }
13950if test ${ac_cv_var_tzname+y}
13951then :
13952  printf %s "(cached) " >&6
13953else $as_nop
13954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955/* end confdefs.h.  */
13956#include <time.h>
13957int
13958main (void)
13959{
13960#if !HAVE_DECL_TZNAME
13961extern char *tzname[];
13962#endif
13963return tzname[0][0];
13964  ;
13965  return 0;
13966}
13967_ACEOF
13968if ac_fn_c_try_link "$LINENO"
13969then :
13970  ac_cv_var_tzname=yes
13971else $as_nop
13972  ac_cv_var_tzname=no
13973fi
13974rm -f core conftest.err conftest.$ac_objext conftest.beam \
13975    conftest$ac_exeext conftest.$ac_ext
13976fi
13977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13978printf "%s\n" "$ac_cv_var_tzname" >&6; }
13979  if test $ac_cv_var_tzname = yes; then
13980
13981printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
13982
13983  fi
13984
13985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
13986printf %s "checking for tm_isdst in struct tm... " >&6; }
13987if test ${ac_cv_struct_tm_isdst+y}
13988then :
13989  printf %s "(cached) " >&6
13990else $as_nop
13991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992/* end confdefs.h.  */
13993#include <sys/types.h>
13994#include <$ac_cv_struct_tm>
13995int
13996main (void)
13997{
13998struct tm tm; tm.tm_isdst;
13999  ;
14000  return 0;
14001}
14002_ACEOF
14003if ac_fn_c_try_compile "$LINENO"
14004then :
14005  ac_cv_struct_tm_isdst=yes
14006else $as_nop
14007  ac_cv_struct_tm_isdst=no
14008fi
14009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14010fi
14011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
14012printf "%s\n" "$ac_cv_struct_tm_isdst" >&6; }
14013if test "$ac_cv_struct_tm_isdst" = yes; then
14014
14015printf "%s\n" "#define HAVE_TM_ISDST 1" >>confdefs.h
14016
14017fi
14018
14019
14020ac_fn_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
14021#include <stdlib.h>
14022" "$ac_c_undeclared_builtin_options" "CFLAGS"
14023if test "x$ac_cv_have_decl_daylight" = xyes
14024then :
14025  ac_have_decl=1
14026else $as_nop
14027  ac_have_decl=0
14028fi
14029printf "%s\n" "#define HAVE_DECL_DAYLIGHT $ac_have_decl" >>confdefs.h
14030
14031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
14032printf %s "checking for daylight... " >&6; }
14033if test ${ac_cv_var_daylight+y}
14034then :
14035  printf %s "(cached) " >&6
14036else $as_nop
14037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038/* end confdefs.h.  */
14039#include <time.h>
14040int
14041main (void)
14042{
14043#if !HAVE_DECL_DAYLIGHT
14044extern int daylight;
14045#endif
14046atoi(daylight);
14047  ;
14048  return 0;
14049}
14050_ACEOF
14051if ac_fn_c_try_link "$LINENO"
14052then :
14053  ac_cv_var_daylight=yes
14054else $as_nop
14055  ac_cv_var_daylight=no
14056fi
14057rm -f core conftest.err conftest.$ac_objext conftest.beam \
14058    conftest$ac_exeext conftest.$ac_ext
14059fi
14060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
14061printf "%s\n" "$ac_cv_var_daylight" >&6; }
14062  if test $ac_cv_var_daylight = yes; then
14063
14064printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h
14065
14066  fi
14067
14068# Check whether --enable-largefile was given.
14069if test ${enable_largefile+y}
14070then :
14071  enableval=$enable_largefile;
14072fi
14073
14074if test "$enable_largefile" != no; then
14075
14076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14077printf %s "checking for special C compiler options needed for large files... " >&6; }
14078if test ${ac_cv_sys_largefile_CC+y}
14079then :
14080  printf %s "(cached) " >&6
14081else $as_nop
14082  ac_cv_sys_largefile_CC=no
14083     if test "$GCC" != yes; then
14084       ac_save_CC=$CC
14085       while :; do
14086	 # IRIX 6.2 and later do not support large files by default,
14087	 # so use the C compiler's -n32 option if that helps.
14088	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089/* end confdefs.h.  */
14090#include <sys/types.h>
14091 /* Check that off_t can represent 2**63 - 1 correctly.
14092    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14093    since some C++ compilers masquerading as C compilers
14094    incorrectly reject 9223372036854775807.  */
14095#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14096  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14097		       && LARGE_OFF_T % 2147483647 == 1)
14098		      ? 1 : -1];
14099int
14100main (void)
14101{
14102
14103  ;
14104  return 0;
14105}
14106_ACEOF
14107	 if ac_fn_c_try_compile "$LINENO"
14108then :
14109  break
14110fi
14111rm -f core conftest.err conftest.$ac_objext conftest.beam
14112	 CC="$CC -n32"
14113	 if ac_fn_c_try_compile "$LINENO"
14114then :
14115  ac_cv_sys_largefile_CC=' -n32'; break
14116fi
14117rm -f core conftest.err conftest.$ac_objext conftest.beam
14118	 break
14119       done
14120       CC=$ac_save_CC
14121       rm -f conftest.$ac_ext
14122    fi
14123fi
14124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14125printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
14126  if test "$ac_cv_sys_largefile_CC" != no; then
14127    CC=$CC$ac_cv_sys_largefile_CC
14128  fi
14129
14130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14131printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14132if test ${ac_cv_sys_file_offset_bits+y}
14133then :
14134  printf %s "(cached) " >&6
14135else $as_nop
14136  while :; do
14137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138/* end confdefs.h.  */
14139#include <sys/types.h>
14140 /* Check that off_t can represent 2**63 - 1 correctly.
14141    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14142    since some C++ compilers masquerading as C compilers
14143    incorrectly reject 9223372036854775807.  */
14144#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14145  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14146		       && LARGE_OFF_T % 2147483647 == 1)
14147		      ? 1 : -1];
14148int
14149main (void)
14150{
14151
14152  ;
14153  return 0;
14154}
14155_ACEOF
14156if ac_fn_c_try_compile "$LINENO"
14157then :
14158  ac_cv_sys_file_offset_bits=no; break
14159fi
14160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162/* end confdefs.h.  */
14163#define _FILE_OFFSET_BITS 64
14164#include <sys/types.h>
14165 /* Check that off_t can represent 2**63 - 1 correctly.
14166    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14167    since some C++ compilers masquerading as C compilers
14168    incorrectly reject 9223372036854775807.  */
14169#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14170  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14171		       && LARGE_OFF_T % 2147483647 == 1)
14172		      ? 1 : -1];
14173int
14174main (void)
14175{
14176
14177  ;
14178  return 0;
14179}
14180_ACEOF
14181if ac_fn_c_try_compile "$LINENO"
14182then :
14183  ac_cv_sys_file_offset_bits=64; break
14184fi
14185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14186  ac_cv_sys_file_offset_bits=unknown
14187  break
14188done
14189fi
14190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14191printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
14192case $ac_cv_sys_file_offset_bits in #(
14193  no | unknown) ;;
14194  *)
14195printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
14196;;
14197esac
14198rm -rf conftest*
14199  if test $ac_cv_sys_file_offset_bits = unknown; then
14200    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14201printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
14202if test ${ac_cv_sys_large_files+y}
14203then :
14204  printf %s "(cached) " >&6
14205else $as_nop
14206  while :; do
14207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208/* end confdefs.h.  */
14209#include <sys/types.h>
14210 /* Check that off_t can represent 2**63 - 1 correctly.
14211    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14212    since some C++ compilers masquerading as C compilers
14213    incorrectly reject 9223372036854775807.  */
14214#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14215  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14216		       && LARGE_OFF_T % 2147483647 == 1)
14217		      ? 1 : -1];
14218int
14219main (void)
14220{
14221
14222  ;
14223  return 0;
14224}
14225_ACEOF
14226if ac_fn_c_try_compile "$LINENO"
14227then :
14228  ac_cv_sys_large_files=no; break
14229fi
14230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232/* end confdefs.h.  */
14233#define _LARGE_FILES 1
14234#include <sys/types.h>
14235 /* Check that off_t can represent 2**63 - 1 correctly.
14236    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14237    since some C++ compilers masquerading as C compilers
14238    incorrectly reject 9223372036854775807.  */
14239#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14240  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14241		       && LARGE_OFF_T % 2147483647 == 1)
14242		      ? 1 : -1];
14243int
14244main (void)
14245{
14246
14247  ;
14248  return 0;
14249}
14250_ACEOF
14251if ac_fn_c_try_compile "$LINENO"
14252then :
14253  ac_cv_sys_large_files=1; break
14254fi
14255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14256  ac_cv_sys_large_files=unknown
14257  break
14258done
14259fi
14260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14261printf "%s\n" "$ac_cv_sys_large_files" >&6; }
14262case $ac_cv_sys_large_files in #(
14263  no | unknown) ;;
14264  *)
14265printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
14266;;
14267esac
14268rm -rf conftest*
14269  fi
14270fi
14271
14272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14273printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14274if test ${ac_cv_sys_largefile_source+y}
14275then :
14276  printf %s "(cached) " >&6
14277else $as_nop
14278  while :; do
14279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280/* end confdefs.h.  */
14281#include <sys/types.h> /* for off_t */
14282     #include <stdio.h>
14283int
14284main (void)
14285{
14286int (*fp) (FILE *, off_t, int) = fseeko;
14287     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14288  ;
14289  return 0;
14290}
14291_ACEOF
14292if ac_fn_c_try_link "$LINENO"
14293then :
14294  ac_cv_sys_largefile_source=no; break
14295fi
14296rm -f core conftest.err conftest.$ac_objext conftest.beam \
14297    conftest$ac_exeext conftest.$ac_ext
14298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299/* end confdefs.h.  */
14300#define _LARGEFILE_SOURCE 1
14301#include <sys/types.h> /* for off_t */
14302     #include <stdio.h>
14303int
14304main (void)
14305{
14306int (*fp) (FILE *, off_t, int) = fseeko;
14307     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14308  ;
14309  return 0;
14310}
14311_ACEOF
14312if ac_fn_c_try_link "$LINENO"
14313then :
14314  ac_cv_sys_largefile_source=1; break
14315fi
14316rm -f core conftest.err conftest.$ac_objext conftest.beam \
14317    conftest$ac_exeext conftest.$ac_ext
14318  ac_cv_sys_largefile_source=unknown
14319  break
14320done
14321fi
14322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14323printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
14324case $ac_cv_sys_largefile_source in #(
14325  no | unknown) ;;
14326  *)
14327printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
14328;;
14329esac
14330rm -rf conftest*
14331
14332# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14333# in glibc 2.1.3, but that breaks too many other things.
14334# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14335if test $ac_cv_sys_largefile_source != unknown; then
14336
14337printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
14338
14339fi
14340
14341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14342printf %s "checking for mbstate_t... " >&6; }
14343if test ${ac_cv_type_mbstate_t+y}
14344then :
14345  printf %s "(cached) " >&6
14346else $as_nop
14347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348/* end confdefs.h.  */
14349$ac_includes_default
14350#	    include <wchar.h>
14351int
14352main (void)
14353{
14354mbstate_t x; return sizeof x;
14355  ;
14356  return 0;
14357}
14358_ACEOF
14359if ac_fn_c_try_compile "$LINENO"
14360then :
14361  ac_cv_type_mbstate_t=yes
14362else $as_nop
14363  ac_cv_type_mbstate_t=no
14364fi
14365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14366fi
14367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14368printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
14369   if test $ac_cv_type_mbstate_t = yes; then
14370
14371printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
14372
14373   else
14374
14375printf "%s\n" "#define mbstate_t int" >>confdefs.h
14376
14377   fi
14378
14379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
14380printf %s "checking for struct option in getopt... " >&6; }
14381if test ${ac_cv_struct_option_getopt_h+y}
14382then :
14383  printf %s "(cached) " >&6
14384else $as_nop
14385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386/* end confdefs.h.  */
14387#include <getopt.h>
14388int
14389main (void)
14390{
14391struct option op; op.name;
14392  ;
14393  return 0;
14394}
14395_ACEOF
14396if ac_fn_c_try_compile "$LINENO"
14397then :
14398  ac_cv_struct_option_getopt_h=yes
14399else $as_nop
14400  ac_cv_struct_option_getopt_h=no
14401fi
14402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14403fi
14404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
14405printf "%s\n" "$ac_cv_struct_option_getopt_h" >&6; }
14406if test "$ac_cv_struct_option_getopt_h" = yes; then
14407
14408printf "%s\n" "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
14409
14410fi
14411
14412
14413  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
14414"
14415if test "x$ac_cv_type_pid_t" = xyes
14416then :
14417
14418else $as_nop
14419                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420/* end confdefs.h.  */
14421
14422          #if defined _WIN64 && !defined __CYGWIN__
14423          LLP64
14424          #endif
14425
14426int
14427main (void)
14428{
14429
14430  ;
14431  return 0;
14432}
14433
14434_ACEOF
14435if ac_fn_c_try_compile "$LINENO"
14436then :
14437  ac_pid_type='int'
14438else $as_nop
14439  ac_pid_type='__int64'
14440fi
14441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14442
14443printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
14444
14445
14446fi
14447
14448
14449ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14450case $ac_cv_c_uint8_t in #(
14451  no|yes) ;; #(
14452  *)
14453
14454printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
14455
14456
14457printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
14458;;
14459  esac
14460
14461ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14462case $ac_cv_c_uint16_t in #(
14463  no|yes) ;; #(
14464  *)
14465
14466
14467printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
14468;;
14469  esac
14470
14471ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14472case $ac_cv_c_uint32_t in #(
14473  no|yes) ;; #(
14474  *)
14475
14476printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
14477
14478
14479printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
14480;;
14481  esac
14482
14483ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14484case $ac_cv_c_int32_t in #(
14485  no|yes) ;; #(
14486  *)
14487
14488printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
14489;;
14490esac
14491
14492ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14493case $ac_cv_c_uint64_t in #(
14494  no|yes) ;; #(
14495  *)
14496
14497printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
14498
14499
14500printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
14501;;
14502  esac
14503
14504ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14505case $ac_cv_c_int64_t in #(
14506  no|yes) ;; #(
14507  *)
14508
14509printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
14510;;
14511esac
14512
14513
14514  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14515if test "x$ac_cv_type_intptr_t" = xyes
14516then :
14517
14518printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
14519
14520else $as_nop
14521  for ac_type in 'int' 'long int' 'long long int'; do
14522       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523/* end confdefs.h.  */
14524$ac_includes_default
14525int
14526main (void)
14527{
14528static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14529test_array [0] = 0;
14530return test_array [0];
14531
14532  ;
14533  return 0;
14534}
14535_ACEOF
14536if ac_fn_c_try_compile "$LINENO"
14537then :
14538
14539printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h
14540
14541	  ac_type=
14542fi
14543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14544       test -z "$ac_type" && break
14545     done
14546fi
14547
14548
14549
14550  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14551if test "x$ac_cv_type_uintptr_t" = xyes
14552then :
14553
14554printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
14555
14556else $as_nop
14557  for ac_type in 'unsigned int' 'unsigned long int' \
14558	'unsigned long long int'; do
14559       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14560/* end confdefs.h.  */
14561$ac_includes_default
14562int
14563main (void)
14564{
14565static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14566test_array [0] = 0;
14567return test_array [0];
14568
14569  ;
14570  return 0;
14571}
14572_ACEOF
14573if ac_fn_c_try_compile "$LINENO"
14574then :
14575
14576printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
14577
14578	  ac_type=
14579fi
14580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14581       test -z "$ac_type" && break
14582     done
14583fi
14584
14585
14586
14587ac_func=
14588for ac_item in $ac_func_c_list
14589do
14590  if test $ac_func; then
14591    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
14592    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
14593      echo "#define $ac_item 1" >> confdefs.h
14594    fi
14595    ac_func=
14596  else
14597    ac_func=$ac_item
14598  fi
14599done
14600
14601
14602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14603printf %s "checking for working mmap... " >&6; }
14604if test ${ac_cv_func_mmap_fixed_mapped+y}
14605then :
14606  printf %s "(cached) " >&6
14607else $as_nop
14608  if test "$cross_compiling" = yes
14609then :
14610  case "$host_os" in # ((
14611			  # Guess yes on platforms where we know the result.
14612		  linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
14613			  # If we don't know, assume the worst.
14614		  *)      ac_cv_func_mmap_fixed_mapped=no ;;
14615		esac
14616else $as_nop
14617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618/* end confdefs.h.  */
14619$ac_includes_default
14620/* malloc might have been renamed as rpl_malloc. */
14621#undef malloc
14622
14623/* Thanks to Mike Haertel and Jim Avera for this test.
14624   Here is a matrix of mmap possibilities:
14625	mmap private not fixed
14626	mmap private fixed at somewhere currently unmapped
14627	mmap private fixed at somewhere already mapped
14628	mmap shared not fixed
14629	mmap shared fixed at somewhere currently unmapped
14630	mmap shared fixed at somewhere already mapped
14631   For private mappings, we should verify that changes cannot be read()
14632   back from the file, nor mmap's back from the file at a different
14633   address.  (There have been systems where private was not correctly
14634   implemented like the infamous i386 svr4.0, and systems where the
14635   VM page cache was not coherent with the file system buffer cache
14636   like early versions of FreeBSD and possibly contemporary NetBSD.)
14637   For shared mappings, we should conversely verify that changes get
14638   propagated back to all the places they're supposed to be.
14639
14640   Grep wants private fixed already mapped.
14641   The main things grep needs to know about mmap are:
14642   * does it exist and is it safe to write into the mmap'd area
14643   * how to use it (BSD variants)  */
14644
14645#include <fcntl.h>
14646#include <sys/mman.h>
14647
14648/* This mess was copied from the GNU getpagesize.h.  */
14649#ifndef HAVE_GETPAGESIZE
14650# ifdef _SC_PAGESIZE
14651#  define getpagesize() sysconf(_SC_PAGESIZE)
14652# else /* no _SC_PAGESIZE */
14653#  ifdef HAVE_SYS_PARAM_H
14654#   include <sys/param.h>
14655#   ifdef EXEC_PAGESIZE
14656#    define getpagesize() EXEC_PAGESIZE
14657#   else /* no EXEC_PAGESIZE */
14658#    ifdef NBPG
14659#     define getpagesize() NBPG * CLSIZE
14660#     ifndef CLSIZE
14661#      define CLSIZE 1
14662#     endif /* no CLSIZE */
14663#    else /* no NBPG */
14664#     ifdef NBPC
14665#      define getpagesize() NBPC
14666#     else /* no NBPC */
14667#      ifdef PAGESIZE
14668#       define getpagesize() PAGESIZE
14669#      endif /* PAGESIZE */
14670#     endif /* no NBPC */
14671#    endif /* no NBPG */
14672#   endif /* no EXEC_PAGESIZE */
14673#  else /* no HAVE_SYS_PARAM_H */
14674#   define getpagesize() 8192	/* punt totally */
14675#  endif /* no HAVE_SYS_PARAM_H */
14676# endif /* no _SC_PAGESIZE */
14677
14678#endif /* no HAVE_GETPAGESIZE */
14679
14680int
14681main (void)
14682{
14683  char *data, *data2, *data3;
14684  const char *cdata2;
14685  int i, pagesize;
14686  int fd, fd2;
14687
14688  pagesize = getpagesize ();
14689
14690  /* First, make a file with some known garbage in it. */
14691  data = (char *) malloc (pagesize);
14692  if (!data)
14693    return 1;
14694  for (i = 0; i < pagesize; ++i)
14695    *(data + i) = rand ();
14696  umask (0);
14697  fd = creat ("conftest.mmap", 0600);
14698  if (fd < 0)
14699    return 2;
14700  if (write (fd, data, pagesize) != pagesize)
14701    return 3;
14702  close (fd);
14703
14704  /* Next, check that the tail of a page is zero-filled.  File must have
14705     non-zero length, otherwise we risk SIGBUS for entire page.  */
14706  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14707  if (fd2 < 0)
14708    return 4;
14709  cdata2 = "";
14710  if (write (fd2, cdata2, 1) != 1)
14711    return 5;
14712  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14713  if (data2 == MAP_FAILED)
14714    return 6;
14715  for (i = 0; i < pagesize; ++i)
14716    if (*(data2 + i))
14717      return 7;
14718  close (fd2);
14719  if (munmap (data2, pagesize))
14720    return 8;
14721
14722  /* Next, try to mmap the file at a fixed address which already has
14723     something else allocated at it.  If we can, also make sure that
14724     we see the same garbage.  */
14725  fd = open ("conftest.mmap", O_RDWR);
14726  if (fd < 0)
14727    return 9;
14728  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14729		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
14730    return 10;
14731  for (i = 0; i < pagesize; ++i)
14732    if (*(data + i) != *(data2 + i))
14733      return 11;
14734
14735  /* Finally, make sure that changes to the mapped area do not
14736     percolate back to the file as seen by read().  (This is a bug on
14737     some variants of i386 svr4.0.)  */
14738  for (i = 0; i < pagesize; ++i)
14739    *(data2 + i) = *(data2 + i) + 1;
14740  data3 = (char *) malloc (pagesize);
14741  if (!data3)
14742    return 12;
14743  if (read (fd, data3, pagesize) != pagesize)
14744    return 13;
14745  for (i = 0; i < pagesize; ++i)
14746    if (*(data + i) != *(data3 + i))
14747      return 14;
14748  close (fd);
14749  free (data);
14750  free (data3);
14751  return 0;
14752}
14753_ACEOF
14754if ac_fn_c_try_run "$LINENO"
14755then :
14756  ac_cv_func_mmap_fixed_mapped=yes
14757else $as_nop
14758  ac_cv_func_mmap_fixed_mapped=no
14759fi
14760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14761  conftest.$ac_objext conftest.beam conftest.$ac_ext
14762fi
14763
14764fi
14765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14766printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
14767if test $ac_cv_func_mmap_fixed_mapped = yes; then
14768
14769printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
14770
14771fi
14772rm -f conftest.mmap conftest.txt
14773
14774
14775
14776
14777
14778
14779if test "x$ac_cv_func_fork" = xyes; then
14780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14781printf %s "checking for working fork... " >&6; }
14782if test ${ac_cv_func_fork_works+y}
14783then :
14784  printf %s "(cached) " >&6
14785else $as_nop
14786  if test "$cross_compiling" = yes
14787then :
14788  ac_cv_func_fork_works=cross
14789else $as_nop
14790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791/* end confdefs.h.  */
14792$ac_includes_default
14793int
14794main (void)
14795{
14796
14797	  /* By Ruediger Kuhlmann. */
14798	  return fork () < 0;
14799
14800  ;
14801  return 0;
14802}
14803_ACEOF
14804if ac_fn_c_try_run "$LINENO"
14805then :
14806  ac_cv_func_fork_works=yes
14807else $as_nop
14808  ac_cv_func_fork_works=no
14809fi
14810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14811  conftest.$ac_objext conftest.beam conftest.$ac_ext
14812fi
14813
14814fi
14815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14816printf "%s\n" "$ac_cv_func_fork_works" >&6; }
14817
14818else
14819  ac_cv_func_fork_works=$ac_cv_func_fork
14820fi
14821if test "x$ac_cv_func_fork_works" = xcross; then
14822  case $host in
14823    *-*-amigaos* | *-*-msdosdjgpp*)
14824      # Override, as these systems have only a dummy fork() stub
14825      ac_cv_func_fork_works=no
14826      ;;
14827    *)
14828      ac_cv_func_fork_works=yes
14829      ;;
14830  esac
14831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14832printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14833fi
14834ac_cv_func_vfork_works=$ac_cv_func_vfork
14835if test "x$ac_cv_func_vfork" = xyes; then
14836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14837printf %s "checking for working vfork... " >&6; }
14838if test ${ac_cv_func_vfork_works+y}
14839then :
14840  printf %s "(cached) " >&6
14841else $as_nop
14842  if test "$cross_compiling" = yes
14843then :
14844  ac_cv_func_vfork_works=cross
14845else $as_nop
14846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847/* end confdefs.h.  */
14848/* Thanks to Paul Eggert for this test.  */
14849$ac_includes_default
14850#include <signal.h>
14851#include <sys/wait.h>
14852#ifdef HAVE_VFORK_H
14853# include <vfork.h>
14854#endif
14855
14856static void
14857do_nothing (int sig)
14858{
14859  (void) sig;
14860}
14861
14862/* On some sparc systems, changes by the child to local and incoming
14863   argument registers are propagated back to the parent.  The compiler
14864   is told about this with #include <vfork.h>, but some compilers
14865   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14866   static variable whose address is put into a register that is
14867   clobbered by the vfork.  */
14868static void
14869sparc_address_test (int arg)
14870{
14871  static pid_t child;
14872  if (!child) {
14873    child = vfork ();
14874    if (child < 0) {
14875      perror ("vfork");
14876      _exit(2);
14877    }
14878    if (!child) {
14879      arg = getpid();
14880      write(-1, "", 0);
14881      _exit (arg);
14882    }
14883  }
14884}
14885
14886int
14887main (void)
14888{
14889  pid_t parent = getpid ();
14890  pid_t child;
14891
14892  sparc_address_test (0);
14893
14894  /* On Solaris 2.4, changes by the child to the signal handler
14895     also munge signal handlers in the parent.  To detect this,
14896     start by putting the parent's handler in a known state.  */
14897  signal (SIGTERM, SIG_DFL);
14898
14899  child = vfork ();
14900
14901  if (child == 0) {
14902    /* Here is another test for sparc vfork register problems.  This
14903       test uses lots of local variables, at least as many local
14904       variables as main has allocated so far including compiler
14905       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14906       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14907       reuse the register of parent for one of the local variables,
14908       since it will think that parent can't possibly be used any more
14909       in this routine.  Assigning to the local variable will thus
14910       munge parent in the parent process.  */
14911    pid_t
14912      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14913      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14914    /* Convince the compiler that p..p7 are live; otherwise, it might
14915       use the same hardware register for all 8 local variables.  */
14916    if (p != p1 || p != p2 || p != p3 || p != p4
14917	|| p != p5 || p != p6 || p != p7)
14918      _exit(1);
14919
14920    /* Alter the child's signal handler.  */
14921    if (signal (SIGTERM, do_nothing) != SIG_DFL)
14922      _exit(1);
14923
14924    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14925       from child file descriptors.  If the child closes a descriptor
14926       before it execs or exits, this munges the parent's descriptor
14927       as well.  Test for this by closing stdout in the child.  */
14928    _exit(close(fileno(stdout)) != 0);
14929  } else {
14930    int status;
14931    struct stat st;
14932
14933    while (wait(&status) != child)
14934      ;
14935    return (
14936	 /* Was there some problem with vforking?  */
14937	 child < 0
14938
14939	 /* Did the child munge the parent's signal handler?  */
14940	 || signal (SIGTERM, SIG_DFL) != SIG_DFL
14941
14942	 /* Did the child fail?  (This shouldn't happen.)  */
14943	 || status
14944
14945	 /* Did the vfork/compiler bug occur?  */
14946	 || parent != getpid()
14947
14948	 /* Did the file descriptor bug occur?  */
14949	 || fstat(fileno(stdout), &st) != 0
14950	 );
14951  }
14952}
14953_ACEOF
14954if ac_fn_c_try_run "$LINENO"
14955then :
14956  ac_cv_func_vfork_works=yes
14957else $as_nop
14958  ac_cv_func_vfork_works=no
14959fi
14960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14961  conftest.$ac_objext conftest.beam conftest.$ac_ext
14962fi
14963
14964fi
14965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14966printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
14967
14968fi;
14969if test "x$ac_cv_func_fork_works" = xcross; then
14970  ac_cv_func_vfork_works=$ac_cv_func_vfork
14971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14972printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14973fi
14974
14975if test "x$ac_cv_func_vfork_works" = xyes; then
14976
14977printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14978
14979else
14980
14981printf "%s\n" "#define vfork fork" >>confdefs.h
14982
14983fi
14984if test "x$ac_cv_func_fork_works" = xyes; then
14985
14986printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
14987
14988fi
14989
14990
14991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14992printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14993if test ${ac_cv_func_mbrtowc+y}
14994then :
14995  printf %s "(cached) " >&6
14996else $as_nop
14997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998/* end confdefs.h.  */
14999#include <wchar.h>
15000int
15001main (void)
15002{
15003wchar_t wc;
15004	      char const s[] = "";
15005	      size_t n = 1;
15006	      mbstate_t state;
15007	      return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
15008  ;
15009  return 0;
15010}
15011_ACEOF
15012if ac_fn_c_try_link "$LINENO"
15013then :
15014  ac_cv_func_mbrtowc=yes
15015else $as_nop
15016  ac_cv_func_mbrtowc=no
15017fi
15018rm -f core conftest.err conftest.$ac_objext conftest.beam \
15019    conftest$ac_exeext conftest.$ac_ext
15020fi
15021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
15022printf "%s\n" "$ac_cv_func_mbrtowc" >&6; }
15023  if test $ac_cv_func_mbrtowc = yes; then
15024
15025printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
15026
15027  fi
15028
15029
15030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
15031printf %s "checking for gcc compiler warnings... " >&6; }
15032# Check whether --enable-warnings was given.
15033if test ${enable_warnings+y}
15034then :
15035  enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
15036   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037printf "%s\n" "no" >&6; }
15038   WARNINGS=
15039else
15040   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15041printf "%s\n" "yes" >&6; }
15042   WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
15043       -Wmissing-declarations -Wredundant-decls -Wnested-externs \
15044       -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
15045       -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
15046fi
15047else $as_nop
15048
15049if test "$GCC" = yes; then
15050   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15051printf "%s\n" "yes" >&6; }
15052   WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
15053       -Wmissing-declarations -Wredundant-decls -Wnested-externs \
15054       -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
15055       -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
15056else
15057   WARNINGS=
15058   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15059printf "%s\n" "no" >&6; }
15060fi
15061fi
15062
15063
15064ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
15065if test "x$ac_cv_func_strndup" = xyes
15066then :
15067  printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
15068
15069fi
15070ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15071if test "x$ac_cv_func_mkstemp" = xyes
15072then :
15073  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15074
15075fi
15076ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
15077if test "x$ac_cv_func_mkostemp" = xyes
15078then :
15079  printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
15080
15081fi
15082ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
15083if test "x$ac_cv_func_utimes" = xyes
15084then :
15085  printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
15086
15087fi
15088ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
15089if test "x$ac_cv_func_utime" = xyes
15090then :
15091  printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
15092
15093fi
15094ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
15095if test "x$ac_cv_func_wcwidth" = xyes
15096then :
15097  printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h
15098
15099fi
15100ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
15101if test "x$ac_cv_func_strtof" = xyes
15102then :
15103  printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h
15104
15105fi
15106ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
15107if test "x$ac_cv_func_newlocale" = xyes
15108then :
15109  printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h
15110
15111fi
15112ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
15113if test "x$ac_cv_func_uselocale" = xyes
15114then :
15115  printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
15116
15117fi
15118ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale"
15119if test "x$ac_cv_func_freelocale" = xyes
15120then :
15121  printf "%s\n" "#define HAVE_FREELOCALE 1" >>confdefs.h
15122
15123fi
15124ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15125if test "x$ac_cv_func_memmem" = xyes
15126then :
15127  printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h
15128
15129fi
15130ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
15131if test "x$ac_cv_func_pipe2" = xyes
15132then :
15133  printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
15134
15135fi
15136ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
15137if test "x$ac_cv_func_posix_spawnp" = xyes
15138then :
15139  printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
15140
15141fi
15142
15143
15144ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15145if test "x$ac_cv_func_getopt_long" = xyes
15146then :
15147  printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
15148
15149else $as_nop
15150  case " $LIBOBJS " in
15151  *" getopt_long.$ac_objext "* ) ;;
15152  *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
15153 ;;
15154esac
15155
15156fi
15157ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
15158if test "x$ac_cv_func_asprintf" = xyes
15159then :
15160  printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
15161
15162else $as_nop
15163  case " $LIBOBJS " in
15164  *" asprintf.$ac_objext "* ) ;;
15165  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
15166 ;;
15167esac
15168
15169fi
15170ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
15171if test "x$ac_cv_func_vasprintf" = xyes
15172then :
15173  printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
15174
15175else $as_nop
15176  case " $LIBOBJS " in
15177  *" vasprintf.$ac_objext "* ) ;;
15178  *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
15179 ;;
15180esac
15181
15182fi
15183ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15184if test "x$ac_cv_func_strlcpy" = xyes
15185then :
15186  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
15187
15188else $as_nop
15189  case " $LIBOBJS " in
15190  *" strlcpy.$ac_objext "* ) ;;
15191  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
15192 ;;
15193esac
15194
15195fi
15196ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
15197if test "x$ac_cv_func_strlcat" = xyes
15198then :
15199  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
15200
15201else $as_nop
15202  case " $LIBOBJS " in
15203  *" strlcat.$ac_objext "* ) ;;
15204  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
15205 ;;
15206esac
15207
15208fi
15209ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
15210if test "x$ac_cv_func_getline" = xyes
15211then :
15212  printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
15213
15214else $as_nop
15215  case " $LIBOBJS " in
15216  *" getline.$ac_objext "* ) ;;
15217  *) LIBOBJS="$LIBOBJS getline.$ac_objext"
15218 ;;
15219esac
15220
15221fi
15222ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
15223if test "x$ac_cv_func_ctime_r" = xyes
15224then :
15225  printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
15226
15227else $as_nop
15228  case " $LIBOBJS " in
15229  *" ctime_r.$ac_objext "* ) ;;
15230  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
15231 ;;
15232esac
15233
15234fi
15235ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
15236if test "x$ac_cv_func_asctime_r" = xyes
15237then :
15238  printf "%s\n" "#define HAVE_ASCTIME_R 1" >>confdefs.h
15239
15240else $as_nop
15241  case " $LIBOBJS " in
15242  *" asctime_r.$ac_objext "* ) ;;
15243  *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
15244 ;;
15245esac
15246
15247fi
15248ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
15249if test "x$ac_cv_func_localtime_r" = xyes
15250then :
15251  printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
15252
15253else $as_nop
15254  case " $LIBOBJS " in
15255  *" localtime_r.$ac_objext "* ) ;;
15256  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
15257 ;;
15258esac
15259
15260fi
15261ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
15262if test "x$ac_cv_func_gmtime_r" = xyes
15263then :
15264  printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
15265
15266else $as_nop
15267  case " $LIBOBJS " in
15268  *" gmtime_r.$ac_objext "* ) ;;
15269  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
15270 ;;
15271esac
15272
15273fi
15274ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
15275if test "x$ac_cv_func_pread" = xyes
15276then :
15277  printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
15278
15279else $as_nop
15280  case " $LIBOBJS " in
15281  *" pread.$ac_objext "* ) ;;
15282  *) LIBOBJS="$LIBOBJS pread.$ac_objext"
15283 ;;
15284esac
15285
15286fi
15287ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
15288if test "x$ac_cv_func_strcasestr" = xyes
15289then :
15290  printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
15291
15292else $as_nop
15293  case " $LIBOBJS " in
15294  *" strcasestr.$ac_objext "* ) ;;
15295  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
15296 ;;
15297esac
15298
15299fi
15300ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
15301if test "x$ac_cv_func_fmtcheck" = xyes
15302then :
15303  printf "%s\n" "#define HAVE_FMTCHECK 1" >>confdefs.h
15304
15305else $as_nop
15306  case " $LIBOBJS " in
15307  *" fmtcheck.$ac_objext "* ) ;;
15308  *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
15309 ;;
15310esac
15311
15312fi
15313ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
15314if test "x$ac_cv_func_dprintf" = xyes
15315then :
15316  printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h
15317
15318else $as_nop
15319  case " $LIBOBJS " in
15320  *" dprintf.$ac_objext "* ) ;;
15321  *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
15322 ;;
15323esac
15324
15325fi
15326
15327
15328if test "$enable_zlib" != "no"; then
15329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
15330printf %s "checking for gzopen in -lz... " >&6; }
15331if test ${ac_cv_lib_z_gzopen+y}
15332then :
15333  printf %s "(cached) " >&6
15334else $as_nop
15335  ac_check_lib_save_LIBS=$LIBS
15336LIBS="-lz  $LIBS"
15337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338/* end confdefs.h.  */
15339
15340/* Override any GCC internal prototype to avoid an error.
15341   Use char because int might match the return type of a GCC
15342   builtin and then its argument prototype would still apply.  */
15343char gzopen ();
15344int
15345main (void)
15346{
15347return gzopen ();
15348  ;
15349  return 0;
15350}
15351_ACEOF
15352if ac_fn_c_try_link "$LINENO"
15353then :
15354  ac_cv_lib_z_gzopen=yes
15355else $as_nop
15356  ac_cv_lib_z_gzopen=no
15357fi
15358rm -f core conftest.err conftest.$ac_objext conftest.beam \
15359    conftest$ac_exeext conftest.$ac_ext
15360LIBS=$ac_check_lib_save_LIBS
15361fi
15362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
15363printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
15364if test "x$ac_cv_lib_z_gzopen" = xyes
15365then :
15366  printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
15367
15368  LIBS="-lz $LIBS"
15369
15370fi
15371
15372fi
15373if test "$enable_bzlib" != "no"; then
15374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15375printf %s "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15376if test ${ac_cv_lib_bz2_BZ2_bzCompressInit+y}
15377then :
15378  printf %s "(cached) " >&6
15379else $as_nop
15380  ac_check_lib_save_LIBS=$LIBS
15381LIBS="-lbz2  $LIBS"
15382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383/* end confdefs.h.  */
15384
15385/* Override any GCC internal prototype to avoid an error.
15386   Use char because int might match the return type of a GCC
15387   builtin and then its argument prototype would still apply.  */
15388char BZ2_bzCompressInit ();
15389int
15390main (void)
15391{
15392return BZ2_bzCompressInit ();
15393  ;
15394  return 0;
15395}
15396_ACEOF
15397if ac_fn_c_try_link "$LINENO"
15398then :
15399  ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15400else $as_nop
15401  ac_cv_lib_bz2_BZ2_bzCompressInit=no
15402fi
15403rm -f core conftest.err conftest.$ac_objext conftest.beam \
15404    conftest$ac_exeext conftest.$ac_ext
15405LIBS=$ac_check_lib_save_LIBS
15406fi
15407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15408printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15409if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes
15410then :
15411  printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
15412
15413  LIBS="-lbz2 $LIBS"
15414
15415fi
15416
15417fi
15418if test "$enable_xzlib" != "no"; then
15419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
15420printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }
15421if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}
15422then :
15423  printf %s "(cached) " >&6
15424else $as_nop
15425  ac_check_lib_save_LIBS=$LIBS
15426LIBS="-llzma  $LIBS"
15427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428/* end confdefs.h.  */
15429
15430/* Override any GCC internal prototype to avoid an error.
15431   Use char because int might match the return type of a GCC
15432   builtin and then its argument prototype would still apply.  */
15433char lzma_stream_decoder ();
15434int
15435main (void)
15436{
15437return lzma_stream_decoder ();
15438  ;
15439  return 0;
15440}
15441_ACEOF
15442if ac_fn_c_try_link "$LINENO"
15443then :
15444  ac_cv_lib_lzma_lzma_stream_decoder=yes
15445else $as_nop
15446  ac_cv_lib_lzma_lzma_stream_decoder=no
15447fi
15448rm -f core conftest.err conftest.$ac_objext conftest.beam \
15449    conftest$ac_exeext conftest.$ac_ext
15450LIBS=$ac_check_lib_save_LIBS
15451fi
15452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
15453printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
15454if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes
15455then :
15456  printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h
15457
15458  LIBS="-llzma $LIBS"
15459
15460fi
15461
15462fi
15463if test "$enable_libseccomp" != "no"; then
15464    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
15465printf %s "checking for seccomp_init in -lseccomp... " >&6; }
15466if test ${ac_cv_lib_seccomp_seccomp_init+y}
15467then :
15468  printf %s "(cached) " >&6
15469else $as_nop
15470  ac_check_lib_save_LIBS=$LIBS
15471LIBS="-lseccomp  $LIBS"
15472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473/* end confdefs.h.  */
15474
15475/* Override any GCC internal prototype to avoid an error.
15476   Use char because int might match the return type of a GCC
15477   builtin and then its argument prototype would still apply.  */
15478char seccomp_init ();
15479int
15480main (void)
15481{
15482return seccomp_init ();
15483  ;
15484  return 0;
15485}
15486_ACEOF
15487if ac_fn_c_try_link "$LINENO"
15488then :
15489  ac_cv_lib_seccomp_seccomp_init=yes
15490else $as_nop
15491  ac_cv_lib_seccomp_seccomp_init=no
15492fi
15493rm -f core conftest.err conftest.$ac_objext conftest.beam \
15494    conftest$ac_exeext conftest.$ac_ext
15495LIBS=$ac_check_lib_save_LIBS
15496fi
15497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
15498printf "%s\n" "$ac_cv_lib_seccomp_seccomp_init" >&6; }
15499if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes
15500then :
15501  printf "%s\n" "#define HAVE_LIBSECCOMP 1" >>confdefs.h
15502
15503  LIBS="-lseccomp $LIBS"
15504
15505fi
15506
15507fi
15508if test "$MINGW" = 1; then
15509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
15510printf %s "checking for regexec in -lgnurx... " >&6; }
15511if test ${ac_cv_lib_gnurx_regexec+y}
15512then :
15513  printf %s "(cached) " >&6
15514else $as_nop
15515  ac_check_lib_save_LIBS=$LIBS
15516LIBS="-lgnurx  $LIBS"
15517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518/* end confdefs.h.  */
15519
15520/* Override any GCC internal prototype to avoid an error.
15521   Use char because int might match the return type of a GCC
15522   builtin and then its argument prototype would still apply.  */
15523char regexec ();
15524int
15525main (void)
15526{
15527return regexec ();
15528  ;
15529  return 0;
15530}
15531_ACEOF
15532if ac_fn_c_try_link "$LINENO"
15533then :
15534  ac_cv_lib_gnurx_regexec=yes
15535else $as_nop
15536  ac_cv_lib_gnurx_regexec=no
15537fi
15538rm -f core conftest.err conftest.$ac_objext conftest.beam \
15539    conftest$ac_exeext conftest.$ac_ext
15540LIBS=$ac_check_lib_save_LIBS
15541fi
15542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
15543printf "%s\n" "$ac_cv_lib_gnurx_regexec" >&6; }
15544if test "x$ac_cv_lib_gnurx_regexec" = xyes
15545then :
15546  printf "%s\n" "#define HAVE_LIBGNURX 1" >>confdefs.h
15547
15548  LIBS="-lgnurx $LIBS"
15549
15550else $as_nop
15551  as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
15552fi
15553
15554fi
15555
15556 if test "$cross_compiling" = yes; then
15557  IS_CROSS_COMPILE_TRUE=
15558  IS_CROSS_COMPILE_FALSE='#'
15559else
15560  IS_CROSS_COMPILE_TRUE='#'
15561  IS_CROSS_COMPILE_FALSE=
15562fi
15563
15564
15565if test "$enable_zlib" = "yes"; then
15566  if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
15567    as_fn_error $? "zlib support requested but not found" "$LINENO" 5
15568  fi
15569fi
15570if  test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
15571
15572printf "%s\n" "#define ZLIBSUPPORT 1" >>confdefs.h
15573
15574fi
15575if test "$enable_bzlib" = "yes"; then
15576  if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
15577    as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
15578  fi
15579fi
15580if  test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
15581
15582printf "%s\n" "#define BZLIBSUPPORT 1" >>confdefs.h
15583
15584fi
15585if test "$enable_xzlib" = "yes"; then
15586  if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
15587    as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
15588  fi
15589fi
15590if  test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
15591
15592printf "%s\n" "#define XZLIBSUPPORT 1" >>confdefs.h
15593
15594fi
15595
15596ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
15597
15598cat >confcache <<\_ACEOF
15599# This file is a shell script that caches the results of configure
15600# tests run on this system so they can be shared between configure
15601# scripts and configure runs, see configure's option --config-cache.
15602# It is not useful on other systems.  If it contains results you don't
15603# want to keep, you may remove or edit it.
15604#
15605# config.status only pays attention to the cache file if you give it
15606# the --recheck option to rerun configure.
15607#
15608# `ac_cv_env_foo' variables (set or unset) will be overridden when
15609# loading this file, other *unset* `ac_cv_foo' will be assigned the
15610# following values.
15611
15612_ACEOF
15613
15614# The following way of writing the cache mishandles newlines in values,
15615# but we know of no workaround that is simple, portable, and efficient.
15616# So, we kill variables containing newlines.
15617# Ultrix sh set writes to stderr and can't be redirected directly,
15618# and sets the high bit in the cache file unless we assign to the vars.
15619(
15620  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15621    eval ac_val=\$$ac_var
15622    case $ac_val in #(
15623    *${as_nl}*)
15624      case $ac_var in #(
15625      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15626printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15627      esac
15628      case $ac_var in #(
15629      _ | IFS | as_nl) ;; #(
15630      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15631      *) { eval $ac_var=; unset $ac_var;} ;;
15632      esac ;;
15633    esac
15634  done
15635
15636  (set) 2>&1 |
15637    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15638    *${as_nl}ac_space=\ *)
15639      # `set' does not quote correctly, so add quotes: double-quote
15640      # substitution turns \\\\ into \\, and sed turns \\ into \.
15641      sed -n \
15642	"s/'/'\\\\''/g;
15643	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15644      ;; #(
15645    *)
15646      # `set' quotes correctly as required by POSIX, so do not add quotes.
15647      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15648      ;;
15649    esac |
15650    sort
15651) |
15652  sed '
15653     /^ac_cv_env_/b end
15654     t clear
15655     :clear
15656     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15657     t end
15658     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15659     :end' >>confcache
15660if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15661  if test -w "$cache_file"; then
15662    if test "x$cache_file" != "x/dev/null"; then
15663      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15664printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15665      if test ! -f "$cache_file" || test -h "$cache_file"; then
15666	cat confcache >"$cache_file"
15667      else
15668        case $cache_file in #(
15669        */* | ?:*)
15670	  mv -f confcache "$cache_file"$$ &&
15671	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15672        *)
15673	  mv -f confcache "$cache_file" ;;
15674	esac
15675      fi
15676    fi
15677  else
15678    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15679printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15680  fi
15681fi
15682rm -f confcache
15683
15684test "x$prefix" = xNONE && prefix=$ac_default_prefix
15685# Let make expand exec_prefix.
15686test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15687
15688DEFS=-DHAVE_CONFIG_H
15689
15690ac_libobjs=
15691ac_ltlibobjs=
15692U=
15693for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15694  # 1. Remove the extension, and $U if already installed.
15695  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15696  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15697  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15698  #    will be set to the directory where LIBOBJS objects are built.
15699  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15700  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15701done
15702LIBOBJS=$ac_libobjs
15703
15704LTLIBOBJS=$ac_ltlibobjs
15705
15706
15707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15708printf %s "checking that generated files are newer than configure... " >&6; }
15709   if test -n "$am_sleep_pid"; then
15710     # Hide warnings about reused PIDs.
15711     wait $am_sleep_pid 2>/dev/null
15712   fi
15713   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15714printf "%s\n" "done" >&6; }
15715 if test -n "$EXEEXT"; then
15716  am__EXEEXT_TRUE=
15717  am__EXEEXT_FALSE='#'
15718else
15719  am__EXEEXT_TRUE='#'
15720  am__EXEEXT_FALSE=
15721fi
15722
15723if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
15724  as_fn_error $? "conditional \"MINGW\" was never defined.
15725Usually this means the macro was only invoked conditionally." "$LINENO" 5
15726fi
15727if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
15728  as_fn_error $? "conditional \"FSECT5\" was never defined.
15729Usually this means the macro was only invoked conditionally." "$LINENO" 5
15730fi
15731if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15732  as_fn_error $? "conditional \"AMDEP\" was never defined.
15733Usually this means the macro was only invoked conditionally." "$LINENO" 5
15734fi
15735if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15736  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15737Usually this means the macro was only invoked conditionally." "$LINENO" 5
15738fi
15739
15740if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
15741  as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
15742Usually this means the macro was only invoked conditionally." "$LINENO" 5
15743fi
15744
15745: "${CONFIG_STATUS=./config.status}"
15746ac_write_fail=0
15747ac_clean_files_save=$ac_clean_files
15748ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15750printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15751as_write_fail=0
15752cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15753#! $SHELL
15754# Generated by $as_me.
15755# Run this file to recreate the current configuration.
15756# Compiler output produced by configure, useful for debugging
15757# configure, is in config.log if it exists.
15758
15759debug=false
15760ac_cs_recheck=false
15761ac_cs_silent=false
15762
15763SHELL=\${CONFIG_SHELL-$SHELL}
15764export SHELL
15765_ASEOF
15766cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15767## -------------------- ##
15768## M4sh Initialization. ##
15769## -------------------- ##
15770
15771# Be more Bourne compatible
15772DUALCASE=1; export DUALCASE # for MKS sh
15773as_nop=:
15774if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15775then :
15776  emulate sh
15777  NULLCMD=:
15778  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15779  # is contrary to our usage.  Disable this feature.
15780  alias -g '${1+"$@"}'='"$@"'
15781  setopt NO_GLOB_SUBST
15782else $as_nop
15783  case `(set -o) 2>/dev/null` in #(
15784  *posix*) :
15785    set -o posix ;; #(
15786  *) :
15787     ;;
15788esac
15789fi
15790
15791
15792
15793# Reset variables that may have inherited troublesome values from
15794# the environment.
15795
15796# IFS needs to be set, to space, tab, and newline, in precisely that order.
15797# (If _AS_PATH_WALK were called with IFS unset, it would have the
15798# side effect of setting IFS to empty, thus disabling word splitting.)
15799# Quoting is to prevent editors from complaining about space-tab.
15800as_nl='
15801'
15802export as_nl
15803IFS=" ""	$as_nl"
15804
15805PS1='$ '
15806PS2='> '
15807PS4='+ '
15808
15809# Ensure predictable behavior from utilities with locale-dependent output.
15810LC_ALL=C
15811export LC_ALL
15812LANGUAGE=C
15813export LANGUAGE
15814
15815# We cannot yet rely on "unset" to work, but we need these variables
15816# to be unset--not just set to an empty or harmless value--now, to
15817# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
15818# also avoids known problems related to "unset" and subshell syntax
15819# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15820for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15821do eval test \${$as_var+y} \
15822  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15823done
15824
15825# Ensure that fds 0, 1, and 2 are open.
15826if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15827if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15828if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
15829
15830# The user is always right.
15831if ${PATH_SEPARATOR+false} :; then
15832  PATH_SEPARATOR=:
15833  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15834    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15835      PATH_SEPARATOR=';'
15836  }
15837fi
15838
15839
15840# Find who we are.  Look in the path if we contain no directory separator.
15841as_myself=
15842case $0 in #((
15843  *[\\/]* ) as_myself=$0 ;;
15844  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15845for as_dir in $PATH
15846do
15847  IFS=$as_save_IFS
15848  case $as_dir in #(((
15849    '') as_dir=./ ;;
15850    */) ;;
15851    *) as_dir=$as_dir/ ;;
15852  esac
15853    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15854  done
15855IFS=$as_save_IFS
15856
15857     ;;
15858esac
15859# We did not find ourselves, most probably we were run as `sh COMMAND'
15860# in which case we are not to be found in the path.
15861if test "x$as_myself" = x; then
15862  as_myself=$0
15863fi
15864if test ! -f "$as_myself"; then
15865  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15866  exit 1
15867fi
15868
15869
15870
15871# as_fn_error STATUS ERROR [LINENO LOG_FD]
15872# ----------------------------------------
15873# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15874# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15875# script with STATUS, using 1 if that was 0.
15876as_fn_error ()
15877{
15878  as_status=$1; test $as_status -eq 0 && as_status=1
15879  if test "$4"; then
15880    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15881    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15882  fi
15883  printf "%s\n" "$as_me: error: $2" >&2
15884  as_fn_exit $as_status
15885} # as_fn_error
15886
15887
15888
15889# as_fn_set_status STATUS
15890# -----------------------
15891# Set $? to STATUS, without forking.
15892as_fn_set_status ()
15893{
15894  return $1
15895} # as_fn_set_status
15896
15897# as_fn_exit STATUS
15898# -----------------
15899# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15900as_fn_exit ()
15901{
15902  set +e
15903  as_fn_set_status $1
15904  exit $1
15905} # as_fn_exit
15906
15907# as_fn_unset VAR
15908# ---------------
15909# Portably unset VAR.
15910as_fn_unset ()
15911{
15912  { eval $1=; unset $1;}
15913}
15914as_unset=as_fn_unset
15915
15916# as_fn_append VAR VALUE
15917# ----------------------
15918# Append the text in VALUE to the end of the definition contained in VAR. Take
15919# advantage of any shell optimizations that allow amortized linear growth over
15920# repeated appends, instead of the typical quadratic growth present in naive
15921# implementations.
15922if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15923then :
15924  eval 'as_fn_append ()
15925  {
15926    eval $1+=\$2
15927  }'
15928else $as_nop
15929  as_fn_append ()
15930  {
15931    eval $1=\$$1\$2
15932  }
15933fi # as_fn_append
15934
15935# as_fn_arith ARG...
15936# ------------------
15937# Perform arithmetic evaluation on the ARGs, and store the result in the
15938# global $as_val. Take advantage of shells that can avoid forks. The arguments
15939# must be portable across $(()) and expr.
15940if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15941then :
15942  eval 'as_fn_arith ()
15943  {
15944    as_val=$(( $* ))
15945  }'
15946else $as_nop
15947  as_fn_arith ()
15948  {
15949    as_val=`expr "$@" || test $? -eq 1`
15950  }
15951fi # as_fn_arith
15952
15953
15954if expr a : '\(a\)' >/dev/null 2>&1 &&
15955   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15956  as_expr=expr
15957else
15958  as_expr=false
15959fi
15960
15961if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15962  as_basename=basename
15963else
15964  as_basename=false
15965fi
15966
15967if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15968  as_dirname=dirname
15969else
15970  as_dirname=false
15971fi
15972
15973as_me=`$as_basename -- "$0" ||
15974$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15975	 X"$0" : 'X\(//\)$' \| \
15976	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15977printf "%s\n" X/"$0" |
15978    sed '/^.*\/\([^/][^/]*\)\/*$/{
15979	    s//\1/
15980	    q
15981	  }
15982	  /^X\/\(\/\/\)$/{
15983	    s//\1/
15984	    q
15985	  }
15986	  /^X\/\(\/\).*/{
15987	    s//\1/
15988	    q
15989	  }
15990	  s/.*/./; q'`
15991
15992# Avoid depending upon Character Ranges.
15993as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15994as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15995as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15996as_cr_digits='0123456789'
15997as_cr_alnum=$as_cr_Letters$as_cr_digits
15998
15999
16000# Determine whether it's possible to make 'echo' print without a newline.
16001# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16002# for compatibility with existing Makefiles.
16003ECHO_C= ECHO_N= ECHO_T=
16004case `echo -n x` in #(((((
16005-n*)
16006  case `echo 'xy\c'` in
16007  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16008  xy)  ECHO_C='\c';;
16009  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16010       ECHO_T='	';;
16011  esac;;
16012*)
16013  ECHO_N='-n';;
16014esac
16015
16016# For backward compatibility with old third-party macros, we provide
16017# the shell variables $as_echo and $as_echo_n.  New code should use
16018# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16019as_echo='printf %s\n'
16020as_echo_n='printf %s'
16021
16022rm -f conf$$ conf$$.exe conf$$.file
16023if test -d conf$$.dir; then
16024  rm -f conf$$.dir/conf$$.file
16025else
16026  rm -f conf$$.dir
16027  mkdir conf$$.dir 2>/dev/null
16028fi
16029if (echo >conf$$.file) 2>/dev/null; then
16030  if ln -s conf$$.file conf$$ 2>/dev/null; then
16031    as_ln_s='ln -s'
16032    # ... but there are two gotchas:
16033    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16034    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16035    # In both cases, we have to default to `cp -pR'.
16036    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16037      as_ln_s='cp -pR'
16038  elif ln conf$$.file conf$$ 2>/dev/null; then
16039    as_ln_s=ln
16040  else
16041    as_ln_s='cp -pR'
16042  fi
16043else
16044  as_ln_s='cp -pR'
16045fi
16046rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16047rmdir conf$$.dir 2>/dev/null
16048
16049
16050# as_fn_mkdir_p
16051# -------------
16052# Create "$as_dir" as a directory, including parents if necessary.
16053as_fn_mkdir_p ()
16054{
16055
16056  case $as_dir in #(
16057  -*) as_dir=./$as_dir;;
16058  esac
16059  test -d "$as_dir" || eval $as_mkdir_p || {
16060    as_dirs=
16061    while :; do
16062      case $as_dir in #(
16063      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16064      *) as_qdir=$as_dir;;
16065      esac
16066      as_dirs="'$as_qdir' $as_dirs"
16067      as_dir=`$as_dirname -- "$as_dir" ||
16068$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16069	 X"$as_dir" : 'X\(//\)[^/]' \| \
16070	 X"$as_dir" : 'X\(//\)$' \| \
16071	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16072printf "%s\n" X"$as_dir" |
16073    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16074	    s//\1/
16075	    q
16076	  }
16077	  /^X\(\/\/\)[^/].*/{
16078	    s//\1/
16079	    q
16080	  }
16081	  /^X\(\/\/\)$/{
16082	    s//\1/
16083	    q
16084	  }
16085	  /^X\(\/\).*/{
16086	    s//\1/
16087	    q
16088	  }
16089	  s/.*/./; q'`
16090      test -d "$as_dir" && break
16091    done
16092    test -z "$as_dirs" || eval "mkdir $as_dirs"
16093  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16094
16095
16096} # as_fn_mkdir_p
16097if mkdir -p . 2>/dev/null; then
16098  as_mkdir_p='mkdir -p "$as_dir"'
16099else
16100  test -d ./-p && rmdir ./-p
16101  as_mkdir_p=false
16102fi
16103
16104
16105# as_fn_executable_p FILE
16106# -----------------------
16107# Test if FILE is an executable regular file.
16108as_fn_executable_p ()
16109{
16110  test -f "$1" && test -x "$1"
16111} # as_fn_executable_p
16112as_test_x='test -x'
16113as_executable_p=as_fn_executable_p
16114
16115# Sed expression to map a string onto a valid CPP name.
16116as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16117
16118# Sed expression to map a string onto a valid variable name.
16119as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16120
16121
16122exec 6>&1
16123## ----------------------------------- ##
16124## Main body of $CONFIG_STATUS script. ##
16125## ----------------------------------- ##
16126_ASEOF
16127test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16128
16129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16130# Save the log message, to keep $0 and so on meaningful, and to
16131# report actual input values of CONFIG_FILES etc. instead of their
16132# values after options handling.
16133ac_log="
16134This file was extended by file $as_me 5.43, which was
16135generated by GNU Autoconf 2.71.  Invocation command line was
16136
16137  CONFIG_FILES    = $CONFIG_FILES
16138  CONFIG_HEADERS  = $CONFIG_HEADERS
16139  CONFIG_LINKS    = $CONFIG_LINKS
16140  CONFIG_COMMANDS = $CONFIG_COMMANDS
16141  $ $0 $@
16142
16143on `(hostname || uname -n) 2>/dev/null | sed 1q`
16144"
16145
16146_ACEOF
16147
16148case $ac_config_files in *"
16149"*) set x $ac_config_files; shift; ac_config_files=$*;;
16150esac
16151
16152case $ac_config_headers in *"
16153"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16154esac
16155
16156
16157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16158# Files that config.status was made for.
16159config_files="$ac_config_files"
16160config_headers="$ac_config_headers"
16161config_commands="$ac_config_commands"
16162
16163_ACEOF
16164
16165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16166ac_cs_usage="\
16167\`$as_me' instantiates files and other configuration actions
16168from templates according to the current configuration.  Unless the files
16169and actions are specified as TAGs, all are instantiated by default.
16170
16171Usage: $0 [OPTION]... [TAG]...
16172
16173  -h, --help       print this help, then exit
16174  -V, --version    print version number and configuration settings, then exit
16175      --config     print configuration, then exit
16176  -q, --quiet, --silent
16177                   do not print progress messages
16178  -d, --debug      don't remove temporary files
16179      --recheck    update $as_me by reconfiguring in the same conditions
16180      --file=FILE[:TEMPLATE]
16181                   instantiate the configuration file FILE
16182      --header=FILE[:TEMPLATE]
16183                   instantiate the configuration header FILE
16184
16185Configuration files:
16186$config_files
16187
16188Configuration headers:
16189$config_headers
16190
16191Configuration commands:
16192$config_commands
16193
16194Report bugs to <christos@astron.com>."
16195
16196_ACEOF
16197ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16198ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16200ac_cs_config='$ac_cs_config_escaped'
16201ac_cs_version="\\
16202file config.status 5.43
16203configured by $0, generated by GNU Autoconf 2.71,
16204  with options \\"\$ac_cs_config\\"
16205
16206Copyright (C) 2021 Free Software Foundation, Inc.
16207This config.status script is free software; the Free Software Foundation
16208gives unlimited permission to copy, distribute and modify it."
16209
16210ac_pwd='$ac_pwd'
16211srcdir='$srcdir'
16212INSTALL='$INSTALL'
16213MKDIR_P='$MKDIR_P'
16214AWK='$AWK'
16215test -n "\$AWK" || AWK=awk
16216_ACEOF
16217
16218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16219# The default lists apply if the user does not specify any file.
16220ac_need_defaults=:
16221while test $# != 0
16222do
16223  case $1 in
16224  --*=?*)
16225    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16226    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16227    ac_shift=:
16228    ;;
16229  --*=)
16230    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16231    ac_optarg=
16232    ac_shift=:
16233    ;;
16234  *)
16235    ac_option=$1
16236    ac_optarg=$2
16237    ac_shift=shift
16238    ;;
16239  esac
16240
16241  case $ac_option in
16242  # Handling of the options.
16243  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16244    ac_cs_recheck=: ;;
16245  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16246    printf "%s\n" "$ac_cs_version"; exit ;;
16247  --config | --confi | --conf | --con | --co | --c )
16248    printf "%s\n" "$ac_cs_config"; exit ;;
16249  --debug | --debu | --deb | --de | --d | -d )
16250    debug=: ;;
16251  --file | --fil | --fi | --f )
16252    $ac_shift
16253    case $ac_optarg in
16254    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16255    '') as_fn_error $? "missing file argument" ;;
16256    esac
16257    as_fn_append CONFIG_FILES " '$ac_optarg'"
16258    ac_need_defaults=false;;
16259  --header | --heade | --head | --hea )
16260    $ac_shift
16261    case $ac_optarg in
16262    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16263    esac
16264    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16265    ac_need_defaults=false;;
16266  --he | --h)
16267    # Conflict between --help and --header
16268    as_fn_error $? "ambiguous option: \`$1'
16269Try \`$0 --help' for more information.";;
16270  --help | --hel | -h )
16271    printf "%s\n" "$ac_cs_usage"; exit ;;
16272  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16273  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16274    ac_cs_silent=: ;;
16275
16276  # This is an error.
16277  -*) as_fn_error $? "unrecognized option: \`$1'
16278Try \`$0 --help' for more information." ;;
16279
16280  *) as_fn_append ac_config_targets " $1"
16281     ac_need_defaults=false ;;
16282
16283  esac
16284  shift
16285done
16286
16287ac_configure_extra_args=
16288
16289if $ac_cs_silent; then
16290  exec 6>/dev/null
16291  ac_configure_extra_args="$ac_configure_extra_args --silent"
16292fi
16293
16294_ACEOF
16295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296if \$ac_cs_recheck; then
16297  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16298  shift
16299  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16300  CONFIG_SHELL='$SHELL'
16301  export CONFIG_SHELL
16302  exec "\$@"
16303fi
16304
16305_ACEOF
16306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16307exec 5>>config.log
16308{
16309  echo
16310  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16311## Running $as_me. ##
16312_ASBOX
16313  printf "%s\n" "$ac_log"
16314} >&5
16315
16316_ACEOF
16317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16318#
16319# INIT-COMMANDS
16320#
16321AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16322
16323
16324# The HP-UX ksh and POSIX shell print the target directory to stdout
16325# if CDPATH is set.
16326(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16327
16328sed_quote_subst='$sed_quote_subst'
16329double_quote_subst='$double_quote_subst'
16330delay_variable_subst='$delay_variable_subst'
16331macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16332macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16333enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16334pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16335enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16336enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16337shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16338SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16339ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16340PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16341host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16342host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16343host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16344build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16345build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16346build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16347SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16348Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16349GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16350EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16351FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16352LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16353NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16354LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16355max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16356ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16357exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16358lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16359lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16360lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16361lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16362lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16363reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16364reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16365OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16366deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16367file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16368file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16369want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16370DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16371sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16372AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16373AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16374archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16375STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16376RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16377old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16378old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16379old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16380lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16381CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16382CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16383compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16384GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16385lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16386lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16387lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16388lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16389lt_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"`'
16390lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16391nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16392lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16393lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16394objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16395MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16396lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16397lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16398lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16399lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16400lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16401need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16402MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16403DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16404NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16405LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16406OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16407OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16408libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16409shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16410extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16411archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16412enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16413export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16414whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16415compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16416old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16417old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16418archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16419archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16420module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16421module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16422with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16423allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16424no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16425hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16426hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16427hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16428hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16429hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16430hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16431hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16432inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16433link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16434always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16435export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16436exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16437include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16438prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16439postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16440file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16441variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16442need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16443need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16444version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16445runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16446shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16447shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16448libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16449library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16450soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16451install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16452postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16453postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16454finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16455finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16456hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16457sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16458configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16459configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16460hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16461enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16462enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16463enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16464old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16465striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16466
16467LTCC='$LTCC'
16468LTCFLAGS='$LTCFLAGS'
16469compiler='$compiler_DEFAULT'
16470
16471# A function that is used when there is no print builtin or printf.
16472func_fallback_echo ()
16473{
16474  eval 'cat <<_LTECHO_EOF
16475\$1
16476_LTECHO_EOF'
16477}
16478
16479# Quote evaled strings.
16480for var in SHELL \
16481ECHO \
16482PATH_SEPARATOR \
16483SED \
16484GREP \
16485EGREP \
16486FGREP \
16487LD \
16488NM \
16489LN_S \
16490lt_SP2NL \
16491lt_NL2SP \
16492reload_flag \
16493OBJDUMP \
16494deplibs_check_method \
16495file_magic_cmd \
16496file_magic_glob \
16497want_nocaseglob \
16498DLLTOOL \
16499sharedlib_from_linklib_cmd \
16500AR \
16501AR_FLAGS \
16502archiver_list_spec \
16503STRIP \
16504RANLIB \
16505CC \
16506CFLAGS \
16507compiler \
16508lt_cv_sys_global_symbol_pipe \
16509lt_cv_sys_global_symbol_to_cdecl \
16510lt_cv_sys_global_symbol_to_import \
16511lt_cv_sys_global_symbol_to_c_name_address \
16512lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16513lt_cv_nm_interface \
16514nm_file_list_spec \
16515lt_cv_truncate_bin \
16516lt_prog_compiler_no_builtin_flag \
16517lt_prog_compiler_pic \
16518lt_prog_compiler_wl \
16519lt_prog_compiler_static \
16520lt_cv_prog_compiler_c_o \
16521need_locks \
16522MANIFEST_TOOL \
16523DSYMUTIL \
16524NMEDIT \
16525LIPO \
16526OTOOL \
16527OTOOL64 \
16528shrext_cmds \
16529export_dynamic_flag_spec \
16530whole_archive_flag_spec \
16531compiler_needs_object \
16532with_gnu_ld \
16533allow_undefined_flag \
16534no_undefined_flag \
16535hardcode_libdir_flag_spec \
16536hardcode_libdir_separator \
16537exclude_expsyms \
16538include_expsyms \
16539file_list_spec \
16540variables_saved_for_relink \
16541libname_spec \
16542library_names_spec \
16543soname_spec \
16544install_override_mode \
16545finish_eval \
16546old_striplib \
16547striplib; do
16548    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16549    *[\\\\\\\`\\"\\\$]*)
16550      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16551      ;;
16552    *)
16553      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16554      ;;
16555    esac
16556done
16557
16558# Double-quote double-evaled strings.
16559for var in reload_cmds \
16560old_postinstall_cmds \
16561old_postuninstall_cmds \
16562old_archive_cmds \
16563extract_expsyms_cmds \
16564old_archive_from_new_cmds \
16565old_archive_from_expsyms_cmds \
16566archive_cmds \
16567archive_expsym_cmds \
16568module_cmds \
16569module_expsym_cmds \
16570export_symbols_cmds \
16571prelink_cmds \
16572postlink_cmds \
16573postinstall_cmds \
16574postuninstall_cmds \
16575finish_cmds \
16576sys_lib_search_path_spec \
16577configure_time_dlsearch_path \
16578configure_time_lt_sys_library_path; do
16579    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16580    *[\\\\\\\`\\"\\\$]*)
16581      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16582      ;;
16583    *)
16584      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16585      ;;
16586    esac
16587done
16588
16589ac_aux_dir='$ac_aux_dir'
16590
16591# See if we are running on zsh, and set the options that allow our
16592# commands through without removal of \ escapes INIT.
16593if test -n "\${ZSH_VERSION+set}"; then
16594   setopt NO_GLOB_SUBST
16595fi
16596
16597
16598    PACKAGE='$PACKAGE'
16599    VERSION='$VERSION'
16600    RM='$RM'
16601    ofile='$ofile'
16602
16603
16604
16605
16606_ACEOF
16607
16608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16609
16610# Handling of arguments.
16611for ac_config_target in $ac_config_targets
16612do
16613  case $ac_config_target in
16614    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16615    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16616    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16617    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16618    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16619    "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
16620    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16621    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16622    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16623    "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
16624
16625  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16626  esac
16627done
16628
16629
16630# If the user did not use the arguments to specify the items to instantiate,
16631# then the envvar interface is used.  Set only those that are not.
16632# We use the long form for the default assignment because of an extremely
16633# bizarre bug on SunOS 4.1.3.
16634if $ac_need_defaults; then
16635  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16636  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16637  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16638fi
16639
16640# Have a temporary directory for convenience.  Make it in the build tree
16641# simply because there is no reason against having it here, and in addition,
16642# creating and moving files from /tmp can sometimes cause problems.
16643# Hook for its removal unless debugging.
16644# Note that there is a small window in which the directory will not be cleaned:
16645# after its creation but before its name has been assigned to `$tmp'.
16646$debug ||
16647{
16648  tmp= ac_tmp=
16649  trap 'exit_status=$?
16650  : "${ac_tmp:=$tmp}"
16651  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16652' 0
16653  trap 'as_fn_exit 1' 1 2 13 15
16654}
16655# Create a (secure) tmp directory for tmp files.
16656
16657{
16658  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16659  test -d "$tmp"
16660}  ||
16661{
16662  tmp=./conf$$-$RANDOM
16663  (umask 077 && mkdir "$tmp")
16664} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16665ac_tmp=$tmp
16666
16667# Set up the scripts for CONFIG_FILES section.
16668# No need to generate them if there are no CONFIG_FILES.
16669# This happens for instance with `./config.status config.h'.
16670if test -n "$CONFIG_FILES"; then
16671
16672
16673ac_cr=`echo X | tr X '\015'`
16674# On cygwin, bash can eat \r inside `` if the user requested igncr.
16675# But we know of no other shell where ac_cr would be empty at this
16676# point, so we can use a bashism as a fallback.
16677if test "x$ac_cr" = x; then
16678  eval ac_cr=\$\'\\r\'
16679fi
16680ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16681if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16682  ac_cs_awk_cr='\\r'
16683else
16684  ac_cs_awk_cr=$ac_cr
16685fi
16686
16687echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16688_ACEOF
16689
16690
16691{
16692  echo "cat >conf$$subs.awk <<_ACEOF" &&
16693  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16694  echo "_ACEOF"
16695} >conf$$subs.sh ||
16696  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16697ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16698ac_delim='%!_!# '
16699for ac_last_try in false false false false false :; do
16700  . ./conf$$subs.sh ||
16701    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16702
16703  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16704  if test $ac_delim_n = $ac_delim_num; then
16705    break
16706  elif $ac_last_try; then
16707    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16708  else
16709    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16710  fi
16711done
16712rm -f conf$$subs.sh
16713
16714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16715cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16716_ACEOF
16717sed -n '
16718h
16719s/^/S["/; s/!.*/"]=/
16720p
16721g
16722s/^[^!]*!//
16723:repl
16724t repl
16725s/'"$ac_delim"'$//
16726t delim
16727:nl
16728h
16729s/\(.\{148\}\)..*/\1/
16730t more1
16731s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16732p
16733n
16734b repl
16735:more1
16736s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16737p
16738g
16739s/.\{148\}//
16740t nl
16741:delim
16742h
16743s/\(.\{148\}\)..*/\1/
16744t more2
16745s/["\\]/\\&/g; s/^/"/; s/$/"/
16746p
16747b
16748:more2
16749s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16750p
16751g
16752s/.\{148\}//
16753t delim
16754' <conf$$subs.awk | sed '
16755/^[^""]/{
16756  N
16757  s/\n//
16758}
16759' >>$CONFIG_STATUS || ac_write_fail=1
16760rm -f conf$$subs.awk
16761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16762_ACAWK
16763cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16764  for (key in S) S_is_set[key] = 1
16765  FS = ""
16766
16767}
16768{
16769  line = $ 0
16770  nfields = split(line, field, "@")
16771  substed = 0
16772  len = length(field[1])
16773  for (i = 2; i < nfields; i++) {
16774    key = field[i]
16775    keylen = length(key)
16776    if (S_is_set[key]) {
16777      value = S[key]
16778      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16779      len += length(value) + length(field[++i])
16780      substed = 1
16781    } else
16782      len += 1 + keylen
16783  }
16784
16785  print line
16786}
16787
16788_ACAWK
16789_ACEOF
16790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16791if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16792  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16793else
16794  cat
16795fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16796  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16797_ACEOF
16798
16799# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16800# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16801# trailing colons and then remove the whole line if VPATH becomes empty
16802# (actually we leave an empty line to preserve line numbers).
16803if test "x$srcdir" = x.; then
16804  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16805h
16806s///
16807s/^/:/
16808s/[	 ]*$/:/
16809s/:\$(srcdir):/:/g
16810s/:\${srcdir}:/:/g
16811s/:@srcdir@:/:/g
16812s/^:*//
16813s/:*$//
16814x
16815s/\(=[	 ]*\).*/\1/
16816G
16817s/\n//
16818s/^[^=]*=[	 ]*$//
16819}'
16820fi
16821
16822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16823fi # test -n "$CONFIG_FILES"
16824
16825# Set up the scripts for CONFIG_HEADERS section.
16826# No need to generate them if there are no CONFIG_HEADERS.
16827# This happens for instance with `./config.status Makefile'.
16828if test -n "$CONFIG_HEADERS"; then
16829cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16830BEGIN {
16831_ACEOF
16832
16833# Transform confdefs.h into an awk script `defines.awk', embedded as
16834# here-document in config.status, that substitutes the proper values into
16835# config.h.in to produce config.h.
16836
16837# Create a delimiter string that does not exist in confdefs.h, to ease
16838# handling of long lines.
16839ac_delim='%!_!# '
16840for ac_last_try in false false :; do
16841  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16842  if test -z "$ac_tt"; then
16843    break
16844  elif $ac_last_try; then
16845    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16846  else
16847    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16848  fi
16849done
16850
16851# For the awk script, D is an array of macro values keyed by name,
16852# likewise P contains macro parameters if any.  Preserve backslash
16853# newline sequences.
16854
16855ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16856sed -n '
16857s/.\{148\}/&'"$ac_delim"'/g
16858t rset
16859:rset
16860s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16861t def
16862d
16863:def
16864s/\\$//
16865t bsnl
16866s/["\\]/\\&/g
16867s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16868D["\1"]=" \3"/p
16869s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16870d
16871:bsnl
16872s/["\\]/\\&/g
16873s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16874D["\1"]=" \3\\\\\\n"\\/p
16875t cont
16876s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16877t cont
16878d
16879:cont
16880n
16881s/.\{148\}/&'"$ac_delim"'/g
16882t clear
16883:clear
16884s/\\$//
16885t bsnlc
16886s/["\\]/\\&/g; s/^/"/; s/$/"/p
16887d
16888:bsnlc
16889s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16890b cont
16891' <confdefs.h | sed '
16892s/'"$ac_delim"'/"\\\
16893"/g' >>$CONFIG_STATUS || ac_write_fail=1
16894
16895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16896  for (key in D) D_is_set[key] = 1
16897  FS = ""
16898}
16899/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16900  line = \$ 0
16901  split(line, arg, " ")
16902  if (arg[1] == "#") {
16903    defundef = arg[2]
16904    mac1 = arg[3]
16905  } else {
16906    defundef = substr(arg[1], 2)
16907    mac1 = arg[2]
16908  }
16909  split(mac1, mac2, "(") #)
16910  macro = mac2[1]
16911  prefix = substr(line, 1, index(line, defundef) - 1)
16912  if (D_is_set[macro]) {
16913    # Preserve the white space surrounding the "#".
16914    print prefix "define", macro P[macro] D[macro]
16915    next
16916  } else {
16917    # Replace #undef with comments.  This is necessary, for example,
16918    # in the case of _POSIX_SOURCE, which is predefined and required
16919    # on some systems where configure will not decide to define it.
16920    if (defundef == "undef") {
16921      print "/*", prefix defundef, macro, "*/"
16922      next
16923    }
16924  }
16925}
16926{ print }
16927_ACAWK
16928_ACEOF
16929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16930  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16931fi # test -n "$CONFIG_HEADERS"
16932
16933
16934eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16935shift
16936for ac_tag
16937do
16938  case $ac_tag in
16939  :[FHLC]) ac_mode=$ac_tag; continue;;
16940  esac
16941  case $ac_mode$ac_tag in
16942  :[FHL]*:*);;
16943  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16944  :[FH]-) ac_tag=-:-;;
16945  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16946  esac
16947  ac_save_IFS=$IFS
16948  IFS=:
16949  set x $ac_tag
16950  IFS=$ac_save_IFS
16951  shift
16952  ac_file=$1
16953  shift
16954
16955  case $ac_mode in
16956  :L) ac_source=$1;;
16957  :[FH])
16958    ac_file_inputs=
16959    for ac_f
16960    do
16961      case $ac_f in
16962      -) ac_f="$ac_tmp/stdin";;
16963      *) # Look for the file first in the build tree, then in the source tree
16964	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16965	 # because $ac_f cannot contain `:'.
16966	 test -f "$ac_f" ||
16967	   case $ac_f in
16968	   [\\/$]*) false;;
16969	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16970	   esac ||
16971	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16972      esac
16973      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16974      as_fn_append ac_file_inputs " '$ac_f'"
16975    done
16976
16977    # Let's still pretend it is `configure' which instantiates (i.e., don't
16978    # use $as_me), people would be surprised to read:
16979    #    /* config.h.  Generated by config.status.  */
16980    configure_input='Generated from '`
16981	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16982	`' by configure.'
16983    if test x"$ac_file" != x-; then
16984      configure_input="$ac_file.  $configure_input"
16985      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16986printf "%s\n" "$as_me: creating $ac_file" >&6;}
16987    fi
16988    # Neutralize special characters interpreted by sed in replacement strings.
16989    case $configure_input in #(
16990    *\&* | *\|* | *\\* )
16991       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16992       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16993    *) ac_sed_conf_input=$configure_input;;
16994    esac
16995
16996    case $ac_tag in
16997    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16998      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16999    esac
17000    ;;
17001  esac
17002
17003  ac_dir=`$as_dirname -- "$ac_file" ||
17004$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17005	 X"$ac_file" : 'X\(//\)[^/]' \| \
17006	 X"$ac_file" : 'X\(//\)$' \| \
17007	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17008printf "%s\n" X"$ac_file" |
17009    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17010	    s//\1/
17011	    q
17012	  }
17013	  /^X\(\/\/\)[^/].*/{
17014	    s//\1/
17015	    q
17016	  }
17017	  /^X\(\/\/\)$/{
17018	    s//\1/
17019	    q
17020	  }
17021	  /^X\(\/\).*/{
17022	    s//\1/
17023	    q
17024	  }
17025	  s/.*/./; q'`
17026  as_dir="$ac_dir"; as_fn_mkdir_p
17027  ac_builddir=.
17028
17029case "$ac_dir" in
17030.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17031*)
17032  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17033  # A ".." for each directory in $ac_dir_suffix.
17034  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17035  case $ac_top_builddir_sub in
17036  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17037  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17038  esac ;;
17039esac
17040ac_abs_top_builddir=$ac_pwd
17041ac_abs_builddir=$ac_pwd$ac_dir_suffix
17042# for backward compatibility:
17043ac_top_builddir=$ac_top_build_prefix
17044
17045case $srcdir in
17046  .)  # We are building in place.
17047    ac_srcdir=.
17048    ac_top_srcdir=$ac_top_builddir_sub
17049    ac_abs_top_srcdir=$ac_pwd ;;
17050  [\\/]* | ?:[\\/]* )  # Absolute name.
17051    ac_srcdir=$srcdir$ac_dir_suffix;
17052    ac_top_srcdir=$srcdir
17053    ac_abs_top_srcdir=$srcdir ;;
17054  *) # Relative name.
17055    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17056    ac_top_srcdir=$ac_top_build_prefix$srcdir
17057    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17058esac
17059ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17060
17061
17062  case $ac_mode in
17063  :F)
17064  #
17065  # CONFIG_FILE
17066  #
17067
17068  case $INSTALL in
17069  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17070  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17071  esac
17072  ac_MKDIR_P=$MKDIR_P
17073  case $MKDIR_P in
17074  [\\/$]* | ?:[\\/]* ) ;;
17075  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17076  esac
17077_ACEOF
17078
17079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17080# If the template does not know about datarootdir, expand it.
17081# FIXME: This hack should be removed a few years after 2.60.
17082ac_datarootdir_hack=; ac_datarootdir_seen=
17083ac_sed_dataroot='
17084/datarootdir/ {
17085  p
17086  q
17087}
17088/@datadir@/p
17089/@docdir@/p
17090/@infodir@/p
17091/@localedir@/p
17092/@mandir@/p'
17093case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17094*datarootdir*) ac_datarootdir_seen=yes;;
17095*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17097printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17098_ACEOF
17099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17100  ac_datarootdir_hack='
17101  s&@datadir@&$datadir&g
17102  s&@docdir@&$docdir&g
17103  s&@infodir@&$infodir&g
17104  s&@localedir@&$localedir&g
17105  s&@mandir@&$mandir&g
17106  s&\\\${datarootdir}&$datarootdir&g' ;;
17107esac
17108_ACEOF
17109
17110# Neutralize VPATH when `$srcdir' = `.'.
17111# Shell code in configure.ac might set extrasub.
17112# FIXME: do we really want to maintain this feature?
17113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17114ac_sed_extra="$ac_vpsub
17115$extrasub
17116_ACEOF
17117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17118:t
17119/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17120s|@configure_input@|$ac_sed_conf_input|;t t
17121s&@top_builddir@&$ac_top_builddir_sub&;t t
17122s&@top_build_prefix@&$ac_top_build_prefix&;t t
17123s&@srcdir@&$ac_srcdir&;t t
17124s&@abs_srcdir@&$ac_abs_srcdir&;t t
17125s&@top_srcdir@&$ac_top_srcdir&;t t
17126s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17127s&@builddir@&$ac_builddir&;t t
17128s&@abs_builddir@&$ac_abs_builddir&;t t
17129s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17130s&@INSTALL@&$ac_INSTALL&;t t
17131s&@MKDIR_P@&$ac_MKDIR_P&;t t
17132$ac_datarootdir_hack
17133"
17134eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17135  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17136
17137test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17138  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17139  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17140      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17142which seems to be undefined.  Please make sure it is defined" >&5
17143printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17144which seems to be undefined.  Please make sure it is defined" >&2;}
17145
17146  rm -f "$ac_tmp/stdin"
17147  case $ac_file in
17148  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17149  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17150  esac \
17151  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17152 ;;
17153  :H)
17154  #
17155  # CONFIG_HEADER
17156  #
17157  if test x"$ac_file" != x-; then
17158    {
17159      printf "%s\n" "/* $configure_input  */" >&1 \
17160      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17161    } >"$ac_tmp/config.h" \
17162      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17163    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17164      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17165printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17166    else
17167      rm -f "$ac_file"
17168      mv "$ac_tmp/config.h" "$ac_file" \
17169	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17170    fi
17171  else
17172    printf "%s\n" "/* $configure_input  */" >&1 \
17173      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17174      || as_fn_error $? "could not create -" "$LINENO" 5
17175  fi
17176# Compute "$ac_file"'s index in $config_headers.
17177_am_arg="$ac_file"
17178_am_stamp_count=1
17179for _am_header in $config_headers :; do
17180  case $_am_header in
17181    $_am_arg | $_am_arg:* )
17182      break ;;
17183    * )
17184      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17185  esac
17186done
17187echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17188$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17189	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17190	 X"$_am_arg" : 'X\(//\)$' \| \
17191	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17192printf "%s\n" X"$_am_arg" |
17193    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17194	    s//\1/
17195	    q
17196	  }
17197	  /^X\(\/\/\)[^/].*/{
17198	    s//\1/
17199	    q
17200	  }
17201	  /^X\(\/\/\)$/{
17202	    s//\1/
17203	    q
17204	  }
17205	  /^X\(\/\).*/{
17206	    s//\1/
17207	    q
17208	  }
17209	  s/.*/./; q'`/stamp-h$_am_stamp_count
17210 ;;
17211
17212  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17213printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17214 ;;
17215  esac
17216
17217
17218  case $ac_file$ac_mode in
17219    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17220  # Older Autoconf quotes --file arguments for eval, but not when files
17221  # are listed without --file.  Let's play safe and only enable the eval
17222  # if we detect the quoting.
17223  # TODO: see whether this extra hack can be removed once we start
17224  # requiring Autoconf 2.70 or later.
17225  case $CONFIG_FILES in #(
17226  *\'*) :
17227    eval set x "$CONFIG_FILES" ;; #(
17228  *) :
17229    set x $CONFIG_FILES ;; #(
17230  *) :
17231     ;;
17232esac
17233  shift
17234  # Used to flag and report bootstrapping failures.
17235  am_rc=0
17236  for am_mf
17237  do
17238    # Strip MF so we end up with the name of the file.
17239    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17240    # Check whether this is an Automake generated Makefile which includes
17241    # dependency-tracking related rules and includes.
17242    # Grep'ing the whole file directly is not great: AIX grep has a line
17243    # limit of 2048, but all sed's we know have understand at least 4000.
17244    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17245      || continue
17246    am_dirpart=`$as_dirname -- "$am_mf" ||
17247$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17248	 X"$am_mf" : 'X\(//\)[^/]' \| \
17249	 X"$am_mf" : 'X\(//\)$' \| \
17250	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17251printf "%s\n" X"$am_mf" |
17252    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17253	    s//\1/
17254	    q
17255	  }
17256	  /^X\(\/\/\)[^/].*/{
17257	    s//\1/
17258	    q
17259	  }
17260	  /^X\(\/\/\)$/{
17261	    s//\1/
17262	    q
17263	  }
17264	  /^X\(\/\).*/{
17265	    s//\1/
17266	    q
17267	  }
17268	  s/.*/./; q'`
17269    am_filepart=`$as_basename -- "$am_mf" ||
17270$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17271	 X"$am_mf" : 'X\(//\)$' \| \
17272	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17273printf "%s\n" X/"$am_mf" |
17274    sed '/^.*\/\([^/][^/]*\)\/*$/{
17275	    s//\1/
17276	    q
17277	  }
17278	  /^X\/\(\/\/\)$/{
17279	    s//\1/
17280	    q
17281	  }
17282	  /^X\/\(\/\).*/{
17283	    s//\1/
17284	    q
17285	  }
17286	  s/.*/./; q'`
17287    { echo "$as_me:$LINENO: cd "$am_dirpart" \
17288      && sed -e '/# am--include-marker/d' "$am_filepart" \
17289        | $MAKE -f - am--depfiles" >&5
17290   (cd "$am_dirpart" \
17291      && sed -e '/# am--include-marker/d' "$am_filepart" \
17292        | $MAKE -f - am--depfiles) >&5 2>&5
17293   ac_status=$?
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); } || am_rc=$?
17296  done
17297  if test $am_rc -ne 0; then
17298    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17299printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17300as_fn_error $? "Something went wrong bootstrapping makefile fragments
17301    for automatic dependency tracking.  If GNU make was not used, consider
17302    re-running the configure script with MAKE=\"gmake\" (or whatever is
17303    necessary).  You can also try re-running configure with the
17304    '--disable-dependency-tracking' option to at least be able to build
17305    the package (albeit without support for automatic dependency tracking).
17306See \`config.log' for more details" "$LINENO" 5; }
17307  fi
17308  { am_dirpart=; unset am_dirpart;}
17309  { am_filepart=; unset am_filepart;}
17310  { am_mf=; unset am_mf;}
17311  { am_rc=; unset am_rc;}
17312  rm -f conftest-deps.mk
17313}
17314 ;;
17315    "libtool":C)
17316
17317    # See if we are running on zsh, and set the options that allow our
17318    # commands through without removal of \ escapes.
17319    if test -n "${ZSH_VERSION+set}"; then
17320      setopt NO_GLOB_SUBST
17321    fi
17322
17323    cfgfile=${ofile}T
17324    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17325    $RM "$cfgfile"
17326
17327    cat <<_LT_EOF >> "$cfgfile"
17328#! $SHELL
17329# Generated automatically by $as_me ($PACKAGE) $VERSION
17330# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17331# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17332
17333# Provide generalized library-building support services.
17334# Written by Gordon Matzigkeit, 1996
17335
17336# Copyright (C) 2014 Free Software Foundation, Inc.
17337# This is free software; see the source for copying conditions.  There is NO
17338# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17339
17340# GNU Libtool is free software; you can redistribute it and/or modify
17341# it under the terms of the GNU General Public License as published by
17342# the Free Software Foundation; either version 2 of of the License, or
17343# (at your option) any later version.
17344#
17345# As a special exception to the GNU General Public License, if you
17346# distribute this file as part of a program or library that is built
17347# using GNU Libtool, you may include this file under the  same
17348# distribution terms that you use for the rest of that program.
17349#
17350# GNU Libtool is distributed in the hope that it will be useful, but
17351# WITHOUT ANY WARRANTY; without even the implied warranty of
17352# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17353# GNU General Public License for more details.
17354#
17355# You should have received a copy of the GNU General Public License
17356# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17357
17358
17359# The names of the tagged configurations supported by this script.
17360available_tags=''
17361
17362# Configured defaults for sys_lib_dlsearch_path munging.
17363: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17364
17365# ### BEGIN LIBTOOL CONFIG
17366
17367# Which release of libtool.m4 was used?
17368macro_version=$macro_version
17369macro_revision=$macro_revision
17370
17371# Whether or not to build static libraries.
17372build_old_libs=$enable_static
17373
17374# What type of objects to build.
17375pic_mode=$pic_mode
17376
17377# Whether or not to build shared libraries.
17378build_libtool_libs=$enable_shared
17379
17380# Whether or not to optimize for fast installation.
17381fast_install=$enable_fast_install
17382
17383# Shared archive member basename,for filename based shared library versioning on AIX.
17384shared_archive_member_spec=$shared_archive_member_spec
17385
17386# Shell to use when invoking shell scripts.
17387SHELL=$lt_SHELL
17388
17389# An echo program that protects backslashes.
17390ECHO=$lt_ECHO
17391
17392# The PATH separator for the build system.
17393PATH_SEPARATOR=$lt_PATH_SEPARATOR
17394
17395# The host system.
17396host_alias=$host_alias
17397host=$host
17398host_os=$host_os
17399
17400# The build system.
17401build_alias=$build_alias
17402build=$build
17403build_os=$build_os
17404
17405# A sed program that does not truncate output.
17406SED=$lt_SED
17407
17408# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17409Xsed="\$SED -e 1s/^X//"
17410
17411# A grep program that handles long lines.
17412GREP=$lt_GREP
17413
17414# An ERE matcher.
17415EGREP=$lt_EGREP
17416
17417# A literal string matcher.
17418FGREP=$lt_FGREP
17419
17420# A BSD- or MS-compatible name lister.
17421NM=$lt_NM
17422
17423# Whether we need soft or hard links.
17424LN_S=$lt_LN_S
17425
17426# What is the maximum length of a command?
17427max_cmd_len=$max_cmd_len
17428
17429# Object file suffix (normally "o").
17430objext=$ac_objext
17431
17432# Executable file suffix (normally "").
17433exeext=$exeext
17434
17435# whether the shell understands "unset".
17436lt_unset=$lt_unset
17437
17438# turn spaces into newlines.
17439SP2NL=$lt_lt_SP2NL
17440
17441# turn newlines into spaces.
17442NL2SP=$lt_lt_NL2SP
17443
17444# convert \$build file names to \$host format.
17445to_host_file_cmd=$lt_cv_to_host_file_cmd
17446
17447# convert \$build files to toolchain format.
17448to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17449
17450# An object symbol dumper.
17451OBJDUMP=$lt_OBJDUMP
17452
17453# Method to check whether dependent libraries are shared objects.
17454deplibs_check_method=$lt_deplibs_check_method
17455
17456# Command to use when deplibs_check_method = "file_magic".
17457file_magic_cmd=$lt_file_magic_cmd
17458
17459# How to find potential files when deplibs_check_method = "file_magic".
17460file_magic_glob=$lt_file_magic_glob
17461
17462# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17463want_nocaseglob=$lt_want_nocaseglob
17464
17465# DLL creation program.
17466DLLTOOL=$lt_DLLTOOL
17467
17468# Command to associate shared and link libraries.
17469sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17470
17471# The archiver.
17472AR=$lt_AR
17473
17474# Flags to create an archive.
17475AR_FLAGS=$lt_AR_FLAGS
17476
17477# How to feed a file listing to the archiver.
17478archiver_list_spec=$lt_archiver_list_spec
17479
17480# A symbol stripping program.
17481STRIP=$lt_STRIP
17482
17483# Commands used to install an old-style archive.
17484RANLIB=$lt_RANLIB
17485old_postinstall_cmds=$lt_old_postinstall_cmds
17486old_postuninstall_cmds=$lt_old_postuninstall_cmds
17487
17488# Whether to use a lock for old archive extraction.
17489lock_old_archive_extraction=$lock_old_archive_extraction
17490
17491# A C compiler.
17492LTCC=$lt_CC
17493
17494# LTCC compiler flags.
17495LTCFLAGS=$lt_CFLAGS
17496
17497# Take the output of nm and produce a listing of raw symbols and C names.
17498global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17499
17500# Transform the output of nm in a proper C declaration.
17501global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17502
17503# Transform the output of nm into a list of symbols to manually relocate.
17504global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17505
17506# Transform the output of nm in a C name address pair.
17507global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17508
17509# Transform the output of nm in a C name address pair when lib prefix is needed.
17510global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17511
17512# The name lister interface.
17513nm_interface=$lt_lt_cv_nm_interface
17514
17515# Specify filename containing input files for \$NM.
17516nm_file_list_spec=$lt_nm_file_list_spec
17517
17518# The root where to search for dependent libraries,and where our libraries should be installed.
17519lt_sysroot=$lt_sysroot
17520
17521# Command to truncate a binary pipe.
17522lt_truncate_bin=$lt_lt_cv_truncate_bin
17523
17524# The name of the directory that contains temporary libtool files.
17525objdir=$objdir
17526
17527# Used to examine libraries when file_magic_cmd begins with "file".
17528MAGIC_CMD=$MAGIC_CMD
17529
17530# Must we lock files when doing compilation?
17531need_locks=$lt_need_locks
17532
17533# Manifest tool.
17534MANIFEST_TOOL=$lt_MANIFEST_TOOL
17535
17536# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17537DSYMUTIL=$lt_DSYMUTIL
17538
17539# Tool to change global to local symbols on Mac OS X.
17540NMEDIT=$lt_NMEDIT
17541
17542# Tool to manipulate fat objects and archives on Mac OS X.
17543LIPO=$lt_LIPO
17544
17545# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17546OTOOL=$lt_OTOOL
17547
17548# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17549OTOOL64=$lt_OTOOL64
17550
17551# Old archive suffix (normally "a").
17552libext=$libext
17553
17554# Shared library suffix (normally ".so").
17555shrext_cmds=$lt_shrext_cmds
17556
17557# The commands to extract the exported symbol list from a shared archive.
17558extract_expsyms_cmds=$lt_extract_expsyms_cmds
17559
17560# Variables whose values should be saved in libtool wrapper scripts and
17561# restored at link time.
17562variables_saved_for_relink=$lt_variables_saved_for_relink
17563
17564# Do we need the "lib" prefix for modules?
17565need_lib_prefix=$need_lib_prefix
17566
17567# Do we need a version for libraries?
17568need_version=$need_version
17569
17570# Library versioning type.
17571version_type=$version_type
17572
17573# Shared library runtime path variable.
17574runpath_var=$runpath_var
17575
17576# Shared library path variable.
17577shlibpath_var=$shlibpath_var
17578
17579# Is shlibpath searched before the hard-coded library search path?
17580shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17581
17582# Format of library name prefix.
17583libname_spec=$lt_libname_spec
17584
17585# List of archive names.  First name is the real one, the rest are links.
17586# The last name is the one that the linker finds with -lNAME
17587library_names_spec=$lt_library_names_spec
17588
17589# The coded name of the library, if different from the real name.
17590soname_spec=$lt_soname_spec
17591
17592# Permission mode override for installation of shared libraries.
17593install_override_mode=$lt_install_override_mode
17594
17595# Command to use after installation of a shared archive.
17596postinstall_cmds=$lt_postinstall_cmds
17597
17598# Command to use after uninstallation of a shared archive.
17599postuninstall_cmds=$lt_postuninstall_cmds
17600
17601# Commands used to finish a libtool library installation in a directory.
17602finish_cmds=$lt_finish_cmds
17603
17604# As "finish_cmds", except a single script fragment to be evaled but
17605# not shown.
17606finish_eval=$lt_finish_eval
17607
17608# Whether we should hardcode library paths into libraries.
17609hardcode_into_libs=$hardcode_into_libs
17610
17611# Compile-time system search path for libraries.
17612sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17613
17614# Detected run-time system search path for libraries.
17615sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17616
17617# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17618configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17619
17620# Whether dlopen is supported.
17621dlopen_support=$enable_dlopen
17622
17623# Whether dlopen of programs is supported.
17624dlopen_self=$enable_dlopen_self
17625
17626# Whether dlopen of statically linked programs is supported.
17627dlopen_self_static=$enable_dlopen_self_static
17628
17629# Commands to strip libraries.
17630old_striplib=$lt_old_striplib
17631striplib=$lt_striplib
17632
17633
17634# The linker used to build libraries.
17635LD=$lt_LD
17636
17637# How to create reloadable object files.
17638reload_flag=$lt_reload_flag
17639reload_cmds=$lt_reload_cmds
17640
17641# Commands used to build an old-style archive.
17642old_archive_cmds=$lt_old_archive_cmds
17643
17644# A language specific compiler.
17645CC=$lt_compiler
17646
17647# Is the compiler the GNU compiler?
17648with_gcc=$GCC
17649
17650# Compiler flag to turn off builtin functions.
17651no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17652
17653# Additional compiler flags for building library objects.
17654pic_flag=$lt_lt_prog_compiler_pic
17655
17656# How to pass a linker flag through the compiler.
17657wl=$lt_lt_prog_compiler_wl
17658
17659# Compiler flag to prevent dynamic linking.
17660link_static_flag=$lt_lt_prog_compiler_static
17661
17662# Does compiler simultaneously support -c and -o options?
17663compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17664
17665# Whether or not to add -lc for building shared libraries.
17666build_libtool_need_lc=$archive_cmds_need_lc
17667
17668# Whether or not to disallow shared libs when runtime libs are static.
17669allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17670
17671# Compiler flag to allow reflexive dlopens.
17672export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17673
17674# Compiler flag to generate shared objects directly from archives.
17675whole_archive_flag_spec=$lt_whole_archive_flag_spec
17676
17677# Whether the compiler copes with passing no objects directly.
17678compiler_needs_object=$lt_compiler_needs_object
17679
17680# Create an old-style archive from a shared archive.
17681old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17682
17683# Create a temporary old-style archive to link instead of a shared archive.
17684old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17685
17686# Commands used to build a shared archive.
17687archive_cmds=$lt_archive_cmds
17688archive_expsym_cmds=$lt_archive_expsym_cmds
17689
17690# Commands used to build a loadable module if different from building
17691# a shared archive.
17692module_cmds=$lt_module_cmds
17693module_expsym_cmds=$lt_module_expsym_cmds
17694
17695# Whether we are building with GNU ld or not.
17696with_gnu_ld=$lt_with_gnu_ld
17697
17698# Flag that allows shared libraries with undefined symbols to be built.
17699allow_undefined_flag=$lt_allow_undefined_flag
17700
17701# Flag that enforces no undefined symbols.
17702no_undefined_flag=$lt_no_undefined_flag
17703
17704# Flag to hardcode \$libdir into a binary during linking.
17705# This must work even if \$libdir does not exist
17706hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17707
17708# Whether we need a single "-rpath" flag with a separated argument.
17709hardcode_libdir_separator=$lt_hardcode_libdir_separator
17710
17711# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17712# DIR into the resulting binary.
17713hardcode_direct=$hardcode_direct
17714
17715# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17716# DIR into the resulting binary and the resulting library dependency is
17717# "absolute",i.e impossible to change by setting \$shlibpath_var if the
17718# library is relocated.
17719hardcode_direct_absolute=$hardcode_direct_absolute
17720
17721# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17722# into the resulting binary.
17723hardcode_minus_L=$hardcode_minus_L
17724
17725# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17726# into the resulting binary.
17727hardcode_shlibpath_var=$hardcode_shlibpath_var
17728
17729# Set to "yes" if building a shared library automatically hardcodes DIR
17730# into the library and all subsequent libraries and executables linked
17731# against it.
17732hardcode_automatic=$hardcode_automatic
17733
17734# Set to yes if linker adds runtime paths of dependent libraries
17735# to runtime path list.
17736inherit_rpath=$inherit_rpath
17737
17738# Whether libtool must link a program against all its dependency libraries.
17739link_all_deplibs=$link_all_deplibs
17740
17741# Set to "yes" if exported symbols are required.
17742always_export_symbols=$always_export_symbols
17743
17744# The commands to list exported symbols.
17745export_symbols_cmds=$lt_export_symbols_cmds
17746
17747# Symbols that should not be listed in the preloaded symbols.
17748exclude_expsyms=$lt_exclude_expsyms
17749
17750# Symbols that must always be exported.
17751include_expsyms=$lt_include_expsyms
17752
17753# Commands necessary for linking programs (against libraries) with templates.
17754prelink_cmds=$lt_prelink_cmds
17755
17756# Commands necessary for finishing linking programs.
17757postlink_cmds=$lt_postlink_cmds
17758
17759# Specify filename containing input files.
17760file_list_spec=$lt_file_list_spec
17761
17762# How to hardcode a shared library path into an executable.
17763hardcode_action=$hardcode_action
17764
17765# ### END LIBTOOL CONFIG
17766
17767_LT_EOF
17768
17769    cat <<'_LT_EOF' >> "$cfgfile"
17770
17771# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17772
17773# func_munge_path_list VARIABLE PATH
17774# -----------------------------------
17775# VARIABLE is name of variable containing _space_ separated list of
17776# directories to be munged by the contents of PATH, which is string
17777# having a format:
17778# "DIR[:DIR]:"
17779#       string "DIR[ DIR]" will be prepended to VARIABLE
17780# ":DIR[:DIR]"
17781#       string "DIR[ DIR]" will be appended to VARIABLE
17782# "DIRP[:DIRP]::[DIRA:]DIRA"
17783#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17784#       "DIRA[ DIRA]" will be appended to VARIABLE
17785# "DIR[:DIR]"
17786#       VARIABLE will be replaced by "DIR[ DIR]"
17787func_munge_path_list ()
17788{
17789    case x$2 in
17790    x)
17791        ;;
17792    *:)
17793        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17794        ;;
17795    x:*)
17796        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17797        ;;
17798    *::*)
17799        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17800        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17801        ;;
17802    *)
17803        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17804        ;;
17805    esac
17806}
17807
17808
17809# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17810func_cc_basename ()
17811{
17812    for cc_temp in $*""; do
17813      case $cc_temp in
17814        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17815        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17816        \-*) ;;
17817        *) break;;
17818      esac
17819    done
17820    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17821}
17822
17823
17824# ### END FUNCTIONS SHARED WITH CONFIGURE
17825
17826_LT_EOF
17827
17828  case $host_os in
17829  aix3*)
17830    cat <<\_LT_EOF >> "$cfgfile"
17831# AIX sometimes has problems with the GCC collect2 program.  For some
17832# reason, if we set the COLLECT_NAMES environment variable, the problems
17833# vanish in a puff of smoke.
17834if test set != "${COLLECT_NAMES+set}"; then
17835  COLLECT_NAMES=
17836  export COLLECT_NAMES
17837fi
17838_LT_EOF
17839    ;;
17840  esac
17841
17842
17843
17844ltmain=$ac_aux_dir/ltmain.sh
17845
17846
17847  # We use sed instead of cat because bash on DJGPP gets confused if
17848  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17849  # text mode, it properly converts lines to CR/LF.  This bash problem
17850  # is reportedly fixed, but why not run on old versions too?
17851  sed '$q' "$ltmain" >> "$cfgfile" \
17852     || (rm -f "$cfgfile"; exit 1)
17853
17854   mv -f "$cfgfile" "$ofile" ||
17855    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17856  chmod +x "$ofile"
17857
17858 ;;
17859
17860  esac
17861done # for ac_tag
17862
17863
17864as_fn_exit 0
17865_ACEOF
17866ac_clean_files=$ac_clean_files_save
17867
17868test $ac_write_fail = 0 ||
17869  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17870
17871
17872# configure is writing to config.log, and then calls config.status.
17873# config.status does its own redirection, appending to config.log.
17874# Unfortunately, on DOS this fails, as config.log is still kept open
17875# by configure, so config.status won't be able to write to it; its
17876# output is simply discarded.  So we exec the FD to /dev/null,
17877# effectively closing config.log, so it can be properly (re)opened and
17878# appended to by config.status.  When coming back to configure, we
17879# need to make the FD available again.
17880if test "$no_create" != yes; then
17881  ac_cs_success=:
17882  ac_config_status_args=
17883  test "$silent" = yes &&
17884    ac_config_status_args="$ac_config_status_args --quiet"
17885  exec 5>/dev/null
17886  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17887  exec 5>>config.log
17888  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17889  # would make configure fail if this is the last instruction.
17890  $ac_cs_success || as_fn_exit 1
17891fi
17892if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17894printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17895fi
17896
17897
17898