1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libyubikey 1.13.
4#
5# Report bugs to <yubico-devel@googlegroups.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: yubico-devel@googlegroups.com about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libyubikey'
592PACKAGE_TARNAME='libyubikey'
593PACKAGE_VERSION='1.13'
594PACKAGE_STRING='libyubikey 1.13'
595PACKAGE_BUGREPORT='yubico-devel@googlegroups.com'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638WARN_CFLAGS
639VALGRIND
640HAVE_LD_VERSION_SCRIPT_FALSE
641HAVE_LD_VERSION_SCRIPT_TRUE
642A2X
643CPP
644OTOOL64
645OTOOL
646LIPO
647NMEDIT
648DSYMUTIL
649MANIFEST_TOOL
650RANLIB
651LN_S
652NM
653ac_ct_DUMPBIN
654DUMPBIN
655LD
656FGREP
657EGREP
658GREP
659SED
660LIBTOOL
661OBJDUMP
662DLLTOOL
663AS
664host_os
665host_vendor
666host_cpu
667host
668build_os
669build_vendor
670build_cpu
671build
672ac_ct_AR
673AR
674am__fastdepCC_FALSE
675am__fastdepCC_TRUE
676CCDEPMODE
677am__nodep
678AMDEPBACKSLASH
679AMDEP_FALSE
680AMDEP_TRUE
681am__quote
682am__include
683DEPDIR
684OBJEXT
685EXEEXT
686ac_ct_CC
687CPPFLAGS
688LDFLAGS
689CFLAGS
690CC
691AM_BACKSLASH
692AM_DEFAULT_VERBOSITY
693AM_DEFAULT_V
694AM_V
695am__untar
696am__tar
697AMTAR
698am__leading_dot
699SET_MAKE
700AWK
701mkdir_p
702MKDIR_P
703INSTALL_STRIP_PROGRAM
704STRIP
705install_sh
706MAKEINFO
707AUTOHEADER
708AUTOMAKE
709AUTOCONF
710ACLOCAL
711VERSION
712PACKAGE
713CYGPATH_W
714am__isrc
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718LT_AGE
719LT_REVISION
720LT_CURRENT
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
751PACKAGE_URL
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
758SHELL'
759ac_subst_files=''
760ac_user_opts='
761enable_option_checking
762enable_silent_rules
763enable_dependency_tracking
764enable_shared
765enable_static
766with_pic
767enable_fast_install
768with_gnu_ld
769with_sysroot
770enable_libtool_lock
771enable_ld_version_script
772enable_valgrind_tests
773enable_gcc_warnings
774'
775      ac_precious_vars='build_alias
776host_alias
777target_alias
778CC
779CFLAGS
780LDFLAGS
781LIBS
782CPPFLAGS
783CPP'
784
785
786# Initialize some variables set by options.
787ac_init_help=
788ac_init_version=false
789ac_unrecognized_opts=
790ac_unrecognized_sep=
791# The variables have the same names as the options, with
792# dashes changed to underlines.
793cache_file=/dev/null
794exec_prefix=NONE
795no_create=
796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
804verbose=
805x_includes=NONE
806x_libraries=NONE
807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
813# (The list follows the same order as the GNU Coding Standards.)
814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
822includedir='${prefix}/include'
823oldincludedir='/usr/include'
824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
833
834ac_prev=
835ac_dashdash=
836for ac_option
837do
838  # If the previous option needs an argument, assign it.
839  if test -n "$ac_prev"; then
840    eval $ac_prev=\$ac_option
841    ac_prev=
842    continue
843  fi
844
845  case $ac_option in
846  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847  *=)   ac_optarg= ;;
848  *)    ac_optarg=yes ;;
849  esac
850
851  # Accept the important Cygnus configure options, so we can diagnose typos.
852
853  case $ac_dashdash$ac_option in
854  --)
855    ac_dashdash=yes ;;
856
857  -bindir | --bindir | --bindi | --bind | --bin | --bi)
858    ac_prev=bindir ;;
859  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860    bindir=$ac_optarg ;;
861
862  -build | --build | --buil | --bui | --bu)
863    ac_prev=build_alias ;;
864  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865    build_alias=$ac_optarg ;;
866
867  -cache-file | --cache-file | --cache-fil | --cache-fi \
868  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869    ac_prev=cache_file ;;
870  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872    cache_file=$ac_optarg ;;
873
874  --config-cache | -C)
875    cache_file=config.cache ;;
876
877  -datadir | --datadir | --datadi | --datad)
878    ac_prev=datadir ;;
879  -datadir=* | --datadir=* | --datadi=* | --datad=*)
880    datadir=$ac_optarg ;;
881
882  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883  | --dataroo | --dataro | --datar)
884    ac_prev=datarootdir ;;
885  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887    datarootdir=$ac_optarg ;;
888
889  -disable-* | --disable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error $? "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=no ;;
904
905  -docdir | --docdir | --docdi | --doc | --do)
906    ac_prev=docdir ;;
907  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908    docdir=$ac_optarg ;;
909
910  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911    ac_prev=dvidir ;;
912  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913    dvidir=$ac_optarg ;;
914
915  -enable-* | --enable-*)
916    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917    # Reject names that are not valid shell variable names.
918    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919      as_fn_error $? "invalid feature name: $ac_useropt"
920    ac_useropt_orig=$ac_useropt
921    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922    case $ac_user_opts in
923      *"
924"enable_$ac_useropt"
925"*) ;;
926      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927	 ac_unrecognized_sep=', ';;
928    esac
929    eval enable_$ac_useropt=\$ac_optarg ;;
930
931  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933  | --exec | --exe | --ex)
934    ac_prev=exec_prefix ;;
935  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937  | --exec=* | --exe=* | --ex=*)
938    exec_prefix=$ac_optarg ;;
939
940  -gas | --gas | --ga | --g)
941    # Obsolete; use --with-gas.
942    with_gas=yes ;;
943
944  -help | --help | --hel | --he | -h)
945    ac_init_help=long ;;
946  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947    ac_init_help=recursive ;;
948  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949    ac_init_help=short ;;
950
951  -host | --host | --hos | --ho)
952    ac_prev=host_alias ;;
953  -host=* | --host=* | --hos=* | --ho=*)
954    host_alias=$ac_optarg ;;
955
956  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957    ac_prev=htmldir ;;
958  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959  | --ht=*)
960    htmldir=$ac_optarg ;;
961
962  -includedir | --includedir | --includedi | --included | --include \
963  | --includ | --inclu | --incl | --inc)
964    ac_prev=includedir ;;
965  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966  | --includ=* | --inclu=* | --incl=* | --inc=*)
967    includedir=$ac_optarg ;;
968
969  -infodir | --infodir | --infodi | --infod | --info | --inf)
970    ac_prev=infodir ;;
971  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972    infodir=$ac_optarg ;;
973
974  -libdir | --libdir | --libdi | --libd)
975    ac_prev=libdir ;;
976  -libdir=* | --libdir=* | --libdi=* | --libd=*)
977    libdir=$ac_optarg ;;
978
979  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980  | --libexe | --libex | --libe)
981    ac_prev=libexecdir ;;
982  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983  | --libexe=* | --libex=* | --libe=*)
984    libexecdir=$ac_optarg ;;
985
986  -localedir | --localedir | --localedi | --localed | --locale)
987    ac_prev=localedir ;;
988  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989    localedir=$ac_optarg ;;
990
991  -localstatedir | --localstatedir | --localstatedi | --localstated \
992  | --localstate | --localstat | --localsta | --localst | --locals)
993    ac_prev=localstatedir ;;
994  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996    localstatedir=$ac_optarg ;;
997
998  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999    ac_prev=mandir ;;
1000  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001    mandir=$ac_optarg ;;
1002
1003  -nfp | --nfp | --nf)
1004    # Obsolete; use --without-fp.
1005    with_fp=no ;;
1006
1007  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008  | --no-cr | --no-c | -n)
1009    no_create=yes ;;
1010
1011  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013    no_recursion=yes ;;
1014
1015  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017  | --oldin | --oldi | --old | --ol | --o)
1018    ac_prev=oldincludedir ;;
1019  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022    oldincludedir=$ac_optarg ;;
1023
1024  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025    ac_prev=prefix ;;
1026  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027    prefix=$ac_optarg ;;
1028
1029  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030  | --program-pre | --program-pr | --program-p)
1031    ac_prev=program_prefix ;;
1032  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034    program_prefix=$ac_optarg ;;
1035
1036  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037  | --program-suf | --program-su | --program-s)
1038    ac_prev=program_suffix ;;
1039  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041    program_suffix=$ac_optarg ;;
1042
1043  -program-transform-name | --program-transform-name \
1044  | --program-transform-nam | --program-transform-na \
1045  | --program-transform-n | --program-transform- \
1046  | --program-transform | --program-transfor \
1047  | --program-transfo | --program-transf \
1048  | --program-trans | --program-tran \
1049  | --progr-tra | --program-tr | --program-t)
1050    ac_prev=program_transform_name ;;
1051  -program-transform-name=* | --program-transform-name=* \
1052  | --program-transform-nam=* | --program-transform-na=* \
1053  | --program-transform-n=* | --program-transform-=* \
1054  | --program-transform=* | --program-transfor=* \
1055  | --program-transfo=* | --program-transf=* \
1056  | --program-trans=* | --program-tran=* \
1057  | --progr-tra=* | --program-tr=* | --program-t=*)
1058    program_transform_name=$ac_optarg ;;
1059
1060  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061    ac_prev=pdfdir ;;
1062  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063    pdfdir=$ac_optarg ;;
1064
1065  -psdir | --psdir | --psdi | --psd | --ps)
1066    ac_prev=psdir ;;
1067  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068    psdir=$ac_optarg ;;
1069
1070  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071  | -silent | --silent | --silen | --sile | --sil)
1072    silent=yes ;;
1073
1074  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075    ac_prev=sbindir ;;
1076  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077  | --sbi=* | --sb=*)
1078    sbindir=$ac_optarg ;;
1079
1080  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082  | --sharedst | --shareds | --shared | --share | --shar \
1083  | --sha | --sh)
1084    ac_prev=sharedstatedir ;;
1085  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088  | --sha=* | --sh=*)
1089    sharedstatedir=$ac_optarg ;;
1090
1091  -site | --site | --sit)
1092    ac_prev=site ;;
1093  -site=* | --site=* | --sit=*)
1094    site=$ac_optarg ;;
1095
1096  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097    ac_prev=srcdir ;;
1098  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099    srcdir=$ac_optarg ;;
1100
1101  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102  | --syscon | --sysco | --sysc | --sys | --sy)
1103    ac_prev=sysconfdir ;;
1104  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106    sysconfdir=$ac_optarg ;;
1107
1108  -target | --target | --targe | --targ | --tar | --ta | --t)
1109    ac_prev=target_alias ;;
1110  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111    target_alias=$ac_optarg ;;
1112
1113  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114    verbose=yes ;;
1115
1116  -version | --version | --versio | --versi | --vers | -V)
1117    ac_init_version=: ;;
1118
1119  -with-* | --with-*)
1120    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123      as_fn_error $? "invalid package name: $ac_useropt"
1124    ac_useropt_orig=$ac_useropt
1125    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126    case $ac_user_opts in
1127      *"
1128"with_$ac_useropt"
1129"*) ;;
1130      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131	 ac_unrecognized_sep=', ';;
1132    esac
1133    eval with_$ac_useropt=\$ac_optarg ;;
1134
1135  -without-* | --without-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error $? "invalid package name: $ac_useropt"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"with_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval with_$ac_useropt=no ;;
1150
1151  --x)
1152    # Obsolete; use --with-x.
1153    with_x=yes ;;
1154
1155  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156  | --x-incl | --x-inc | --x-in | --x-i)
1157    ac_prev=x_includes ;;
1158  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160    x_includes=$ac_optarg ;;
1161
1162  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164    ac_prev=x_libraries ;;
1165  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167    x_libraries=$ac_optarg ;;
1168
1169  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information"
1171    ;;
1172
1173  *=*)
1174    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175    # Reject names that are not valid shell variable names.
1176    case $ac_envvar in #(
1177      '' | [0-9]* | *[!_$as_cr_alnum]* )
1178      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179    esac
1180    eval $ac_envvar=\$ac_optarg
1181    export $ac_envvar ;;
1182
1183  *)
1184    # FIXME: should be removed in autoconf 3.0.
1185    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189    ;;
1190
1191  esac
1192done
1193
1194if test -n "$ac_prev"; then
1195  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196  as_fn_error $? "missing argument to $ac_option"
1197fi
1198
1199if test -n "$ac_unrecognized_opts"; then
1200  case $enable_option_checking in
1201    no) ;;
1202    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204  esac
1205fi
1206
1207# Check all directory arguments for consistency.
1208for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209		datadir sysconfdir sharedstatedir localstatedir includedir \
1210		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211		libdir localedir mandir
1212do
1213  eval ac_val=\$$ac_var
1214  # Remove trailing slashes.
1215  case $ac_val in
1216    */ )
1217      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218      eval $ac_var=\$ac_val;;
1219  esac
1220  # Be sure to have absolute directory names.
1221  case $ac_val in
1222    [\\/$]* | ?:[\\/]* )  continue;;
1223    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224  esac
1225  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237  if test "x$build_alias" = x; then
1238    cross_compiling=maybe
1239  elif test "x$build_alias" != "x$host_alias"; then
1240    cross_compiling=yes
1241  fi
1242fi
1243
1244ac_tool_prefix=
1245test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247test "$silent" = yes && exec 6>/dev/null
1248
1249
1250ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251ac_ls_di=`ls -di .` &&
1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253  as_fn_error $? "working directory cannot be determined"
1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255  as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258# Find the source files, if location was not specified.
1259if test -z "$srcdir"; then
1260  ac_srcdir_defaulted=yes
1261  # Try the directory containing this script, then the parent directory.
1262  ac_confdir=`$as_dirname -- "$as_myself" ||
1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264	 X"$as_myself" : 'X\(//\)[^/]' \| \
1265	 X"$as_myself" : 'X\(//\)$' \| \
1266	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267$as_echo X"$as_myself" |
1268    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\/\)[^/].*/{
1273	    s//\1/
1274	    q
1275	  }
1276	  /^X\(\/\/\)$/{
1277	    s//\1/
1278	    q
1279	  }
1280	  /^X\(\/\).*/{
1281	    s//\1/
1282	    q
1283	  }
1284	  s/.*/./; q'`
1285  srcdir=$ac_confdir
1286  if test ! -r "$srcdir/$ac_unique_file"; then
1287    srcdir=..
1288  fi
1289else
1290  ac_srcdir_defaulted=no
1291fi
1292if test ! -r "$srcdir/$ac_unique_file"; then
1293  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295fi
1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
1298	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299	pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302  srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312  eval ac_env_${ac_var}_value=\$${ac_var}
1313  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
1316
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321  # Omit some internal or obsolete options to make the list less imposing.
1322  # This message is too long to be a string in the A/UX 3.1 sh.
1323  cat <<_ACEOF
1324\`configure' configures libyubikey 1.13 to adapt to many kinds of systems.
1325
1326Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE.  See below for descriptions of some of the useful variables.
1330
1331Defaults for the options are specified in brackets.
1332
1333Configuration:
1334  -h, --help              display this help and exit
1335      --help=short        display options specific to this package
1336      --help=recursive    display the short help of all the included packages
1337  -V, --version           display version information and exit
1338  -q, --quiet, --silent   do not print \`checking ...' messages
1339      --cache-file=FILE   cache test results in FILE [disabled]
1340  -C, --config-cache      alias for \`--cache-file=config.cache'
1341  -n, --no-create         do not create output files
1342      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1343
1344Installation directories:
1345  --prefix=PREFIX         install architecture-independent files in PREFIX
1346                          [$ac_default_prefix]
1347  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1348                          [PREFIX]
1349
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
1354
1355For better control, use the options below.
1356
1357Fine tuning of the installation directories:
1358  --bindir=DIR            user executables [EPREFIX/bin]
1359  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1360  --libexecdir=DIR        program executables [EPREFIX/libexec]
1361  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1362  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1363  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1364  --libdir=DIR            object code libraries [EPREFIX/lib]
1365  --includedir=DIR        C header files [PREFIX/include]
1366  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1367  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1368  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1369  --infodir=DIR           info documentation [DATAROOTDIR/info]
1370  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1371  --mandir=DIR            man documentation [DATAROOTDIR/man]
1372  --docdir=DIR            documentation root [DATAROOTDIR/doc/libyubikey]
1373  --htmldir=DIR           html documentation [DOCDIR]
1374  --dvidir=DIR            dvi documentation [DOCDIR]
1375  --pdfdir=DIR            pdf documentation [DOCDIR]
1376  --psdir=DIR             ps documentation [DOCDIR]
1377_ACEOF
1378
1379  cat <<\_ACEOF
1380
1381Program names:
1382  --program-prefix=PREFIX            prepend PREFIX to installed program names
1383  --program-suffix=SUFFIX            append SUFFIX to installed program names
1384  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1385
1386System types:
1387  --build=BUILD     configure for building on BUILD [guessed]
1388  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389_ACEOF
1390fi
1391
1392if test -n "$ac_init_help"; then
1393  case $ac_init_help in
1394     short | recursive ) echo "Configuration of libyubikey 1.13:";;
1395   esac
1396  cat <<\_ACEOF
1397
1398Optional Features:
1399  --disable-option-checking  ignore unrecognized --enable/--with options
1400  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402  --enable-silent-rules   less verbose build output (undo: "make V=1")
1403  --disable-silent-rules  verbose build output (undo: "make V=0")
1404  --enable-dependency-tracking
1405                          do not reject slow dependency extractors
1406  --disable-dependency-tracking
1407                          speeds up one-time build
1408  --enable-shared[=PKGS]  build shared libraries [default=yes]
1409  --enable-static[=PKGS]  build static libraries [default=yes]
1410  --enable-fast-install[=PKGS]
1411                          optimize for fast installation [default=yes]
1412  --disable-libtool-lock  avoid locking (might break parallel builds)
1413  --enable-ld-version-script
1414                          enable linker version script (default is enabled
1415                          when possible)
1416  --enable-valgrind-tests run self tests under valgrind
1417  --enable-gcc-warnings   turn on lots of GCC warnings (for developers)
1418
1419Optional Packages:
1420  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1421  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1422  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1423                          both]
1424  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1425  --with-sysroot=DIR Search for dependent libraries within DIR
1426                        (or the compiler's sysroot if not specified).
1427
1428Some influential environment variables:
1429  CC          C compiler command
1430  CFLAGS      C compiler flags
1431  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1432              nonstandard directory <lib dir>
1433  LIBS        libraries to pass to the linker, e.g. -l<library>
1434  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435              you have headers in a nonstandard directory <include dir>
1436  CPP         C preprocessor
1437
1438Use these variables to override the choices made by `configure' or to help
1439it to find libraries and programs with nonstandard names/locations.
1440
1441Report bugs to <yubico-devel@googlegroups.com>.
1442_ACEOF
1443ac_status=$?
1444fi
1445
1446if test "$ac_init_help" = "recursive"; then
1447  # If there are subdirs, report their specific --help.
1448  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449    test -d "$ac_dir" ||
1450      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451      continue
1452    ac_builddir=.
1453
1454case "$ac_dir" in
1455.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456*)
1457  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458  # A ".." for each directory in $ac_dir_suffix.
1459  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460  case $ac_top_builddir_sub in
1461  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463  esac ;;
1464esac
1465ac_abs_top_builddir=$ac_pwd
1466ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467# for backward compatibility:
1468ac_top_builddir=$ac_top_build_prefix
1469
1470case $srcdir in
1471  .)  # We are building in place.
1472    ac_srcdir=.
1473    ac_top_srcdir=$ac_top_builddir_sub
1474    ac_abs_top_srcdir=$ac_pwd ;;
1475  [\\/]* | ?:[\\/]* )  # Absolute name.
1476    ac_srcdir=$srcdir$ac_dir_suffix;
1477    ac_top_srcdir=$srcdir
1478    ac_abs_top_srcdir=$srcdir ;;
1479  *) # Relative name.
1480    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481    ac_top_srcdir=$ac_top_build_prefix$srcdir
1482    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483esac
1484ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486    cd "$ac_dir" || { ac_status=$?; continue; }
1487    # Check for guested configure.
1488    if test -f "$ac_srcdir/configure.gnu"; then
1489      echo &&
1490      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491    elif test -f "$ac_srcdir/configure"; then
1492      echo &&
1493      $SHELL "$ac_srcdir/configure" --help=recursive
1494    else
1495      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496    fi || ac_status=$?
1497    cd "$ac_pwd" || { ac_status=$?; break; }
1498  done
1499fi
1500
1501test -n "$ac_init_help" && exit $ac_status
1502if $ac_init_version; then
1503  cat <<\_ACEOF
1504libyubikey configure 1.13
1505generated by GNU Autoconf 2.69
1506
1507Copyright (C) 2012 Free Software Foundation, Inc.
1508This configure script is free software; the Free Software Foundation
1509gives unlimited permission to copy, distribute and modify it.
1510_ACEOF
1511  exit
1512fi
1513
1514## ------------------------ ##
1515## Autoconf initialization. ##
1516## ------------------------ ##
1517
1518# ac_fn_c_try_compile LINENO
1519# --------------------------
1520# Try to compile conftest.$ac_ext, and return whether this succeeded.
1521ac_fn_c_try_compile ()
1522{
1523  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524  rm -f conftest.$ac_objext
1525  if { { ac_try="$ac_compile"
1526case "(($ac_try" in
1527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528  *) ac_try_echo=$ac_try;;
1529esac
1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531$as_echo "$ac_try_echo"; } >&5
1532  (eval "$ac_compile") 2>conftest.err
1533  ac_status=$?
1534  if test -s conftest.err; then
1535    grep -v '^ *+' conftest.err >conftest.er1
1536    cat conftest.er1 >&5
1537    mv -f conftest.er1 conftest.err
1538  fi
1539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540  test $ac_status = 0; } && {
1541	 test -z "$ac_c_werror_flag" ||
1542	 test ! -s conftest.err
1543       } && test -s conftest.$ac_objext; then :
1544  ac_retval=0
1545else
1546  $as_echo "$as_me: failed program was:" >&5
1547sed 's/^/| /' conftest.$ac_ext >&5
1548
1549	ac_retval=1
1550fi
1551  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552  as_fn_set_status $ac_retval
1553
1554} # ac_fn_c_try_compile
1555
1556# ac_fn_c_try_link LINENO
1557# -----------------------
1558# Try to link conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_link ()
1560{
1561  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562  rm -f conftest.$ac_objext conftest$ac_exeext
1563  if { { ac_try="$ac_link"
1564case "(($ac_try" in
1565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566  *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570  (eval "$ac_link") 2>conftest.err
1571  ac_status=$?
1572  if test -s conftest.err; then
1573    grep -v '^ *+' conftest.err >conftest.er1
1574    cat conftest.er1 >&5
1575    mv -f conftest.er1 conftest.err
1576  fi
1577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578  test $ac_status = 0; } && {
1579	 test -z "$ac_c_werror_flag" ||
1580	 test ! -s conftest.err
1581       } && test -s conftest$ac_exeext && {
1582	 test "$cross_compiling" = yes ||
1583	 test -x conftest$ac_exeext
1584       }; then :
1585  ac_retval=0
1586else
1587  $as_echo "$as_me: failed program was:" >&5
1588sed 's/^/| /' conftest.$ac_ext >&5
1589
1590	ac_retval=1
1591fi
1592  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1593  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1594  # interfere with the next link command; also delete a directory that is
1595  # left behind by Apple's compiler.  We do this before executing the actions.
1596  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598  as_fn_set_status $ac_retval
1599
1600} # ac_fn_c_try_link
1601
1602# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1603# -------------------------------------------------------
1604# Tests whether HEADER exists and can be compiled using the include files in
1605# INCLUDES, setting the cache variable VAR accordingly.
1606ac_fn_c_check_header_compile ()
1607{
1608  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610$as_echo_n "checking for $2... " >&6; }
1611if eval \${$3+:} false; then :
1612  $as_echo_n "(cached) " >&6
1613else
1614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615/* end confdefs.h.  */
1616$4
1617#include <$2>
1618_ACEOF
1619if ac_fn_c_try_compile "$LINENO"; then :
1620  eval "$3=yes"
1621else
1622  eval "$3=no"
1623fi
1624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625fi
1626eval ac_res=\$$3
1627	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628$as_echo "$ac_res" >&6; }
1629  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630
1631} # ac_fn_c_check_header_compile
1632
1633# ac_fn_c_try_cpp LINENO
1634# ----------------------
1635# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636ac_fn_c_try_cpp ()
1637{
1638  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639  if { { ac_try="$ac_cpp conftest.$ac_ext"
1640case "(($ac_try" in
1641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642  *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1647  ac_status=$?
1648  if test -s conftest.err; then
1649    grep -v '^ *+' conftest.err >conftest.er1
1650    cat conftest.er1 >&5
1651    mv -f conftest.er1 conftest.err
1652  fi
1653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654  test $ac_status = 0; } > conftest.i && {
1655	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656	 test ! -s conftest.err
1657       }; then :
1658  ac_retval=0
1659else
1660  $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663    ac_retval=1
1664fi
1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666  as_fn_set_status $ac_retval
1667
1668} # ac_fn_c_try_cpp
1669
1670# ac_fn_c_try_run LINENO
1671# ----------------------
1672# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673# that executables *can* be run.
1674ac_fn_c_try_run ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  if { { ac_try="$ac_link"
1678case "(($ac_try" in
1679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680  *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684  (eval "$ac_link") 2>&5
1685  ac_status=$?
1686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688  { { case "(($ac_try" in
1689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690  *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694  (eval "$ac_try") 2>&5
1695  ac_status=$?
1696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697  test $ac_status = 0; }; }; then :
1698  ac_retval=0
1699else
1700  $as_echo "$as_me: program exited with status $ac_status" >&5
1701       $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704       ac_retval=$ac_status
1705fi
1706  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708  as_fn_set_status $ac_retval
1709
1710} # ac_fn_c_try_run
1711
1712# ac_fn_c_check_func LINENO FUNC VAR
1713# ----------------------------------
1714# Tests whether FUNC exists, setting the cache variable VAR accordingly
1715ac_fn_c_check_func ()
1716{
1717  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719$as_echo_n "checking for $2... " >&6; }
1720if eval \${$3+:} false; then :
1721  $as_echo_n "(cached) " >&6
1722else
1723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724/* end confdefs.h.  */
1725/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1727#define $2 innocuous_$2
1728
1729/* System header to define __stub macros and hopefully few prototypes,
1730    which can conflict with char $2 (); below.
1731    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732    <limits.h> exists even on freestanding compilers.  */
1733
1734#ifdef __STDC__
1735# include <limits.h>
1736#else
1737# include <assert.h>
1738#endif
1739
1740#undef $2
1741
1742/* Override any GCC internal prototype to avoid an error.
1743   Use char because int might match the return type of a GCC
1744   builtin and then its argument prototype would still apply.  */
1745#ifdef __cplusplus
1746extern "C"
1747#endif
1748char $2 ();
1749/* The GNU C library defines this for functions which it implements
1750    to always fail with ENOSYS.  Some functions are actually named
1751    something starting with __ and the normal name is an alias.  */
1752#if defined __stub_$2 || defined __stub___$2
1753choke me
1754#endif
1755
1756int
1757main ()
1758{
1759return $2 ();
1760  ;
1761  return 0;
1762}
1763_ACEOF
1764if ac_fn_c_try_link "$LINENO"; then :
1765  eval "$3=yes"
1766else
1767  eval "$3=no"
1768fi
1769rm -f core conftest.err conftest.$ac_objext \
1770    conftest$ac_exeext conftest.$ac_ext
1771fi
1772eval ac_res=\$$3
1773	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774$as_echo "$ac_res" >&6; }
1775  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777} # ac_fn_c_check_func
1778cat >config.log <<_ACEOF
1779This file contains any messages produced by compilers while
1780running configure, to aid debugging if configure makes a mistake.
1781
1782It was created by libyubikey $as_me 1.13, which was
1783generated by GNU Autoconf 2.69.  Invocation command line was
1784
1785  $ $0 $@
1786
1787_ACEOF
1788exec 5>>config.log
1789{
1790cat <<_ASUNAME
1791## --------- ##
1792## Platform. ##
1793## --------- ##
1794
1795hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1796uname -m = `(uname -m) 2>/dev/null || echo unknown`
1797uname -r = `(uname -r) 2>/dev/null || echo unknown`
1798uname -s = `(uname -s) 2>/dev/null || echo unknown`
1799uname -v = `(uname -v) 2>/dev/null || echo unknown`
1800
1801/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1802/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1803
1804/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1805/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1806/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1807/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1808/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1809/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1810/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1811
1812_ASUNAME
1813
1814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815for as_dir in $PATH
1816do
1817  IFS=$as_save_IFS
1818  test -z "$as_dir" && as_dir=.
1819    $as_echo "PATH: $as_dir"
1820  done
1821IFS=$as_save_IFS
1822
1823} >&5
1824
1825cat >&5 <<_ACEOF
1826
1827
1828## ----------- ##
1829## Core tests. ##
1830## ----------- ##
1831
1832_ACEOF
1833
1834
1835# Keep a trace of the command line.
1836# Strip out --no-create and --no-recursion so they do not pile up.
1837# Strip out --silent because we don't want to record it for future runs.
1838# Also quote any args containing shell meta-characters.
1839# Make two passes to allow for proper duplicate-argument suppression.
1840ac_configure_args=
1841ac_configure_args0=
1842ac_configure_args1=
1843ac_must_keep_next=false
1844for ac_pass in 1 2
1845do
1846  for ac_arg
1847  do
1848    case $ac_arg in
1849    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1850    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1851    | -silent | --silent | --silen | --sile | --sil)
1852      continue ;;
1853    *\'*)
1854      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1855    esac
1856    case $ac_pass in
1857    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1858    2)
1859      as_fn_append ac_configure_args1 " '$ac_arg'"
1860      if test $ac_must_keep_next = true; then
1861	ac_must_keep_next=false # Got value, back to normal.
1862      else
1863	case $ac_arg in
1864	  *=* | --config-cache | -C | -disable-* | --disable-* \
1865	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1866	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1867	  | -with-* | --with-* | -without-* | --without-* | --x)
1868	    case "$ac_configure_args0 " in
1869	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1870	    esac
1871	    ;;
1872	  -* ) ac_must_keep_next=true ;;
1873	esac
1874      fi
1875      as_fn_append ac_configure_args " '$ac_arg'"
1876      ;;
1877    esac
1878  done
1879done
1880{ ac_configure_args0=; unset ac_configure_args0;}
1881{ ac_configure_args1=; unset ac_configure_args1;}
1882
1883# When interrupted or exit'd, cleanup temporary files, and complete
1884# config.log.  We remove comments because anyway the quotes in there
1885# would cause problems or look ugly.
1886# WARNING: Use '\'' to represent an apostrophe within the trap.
1887# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1888trap 'exit_status=$?
1889  # Save into config.log some information that might help in debugging.
1890  {
1891    echo
1892
1893    $as_echo "## ---------------- ##
1894## Cache variables. ##
1895## ---------------- ##"
1896    echo
1897    # The following way of writing the cache mishandles newlines in values,
1898(
1899  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1900    eval ac_val=\$$ac_var
1901    case $ac_val in #(
1902    *${as_nl}*)
1903      case $ac_var in #(
1904      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1905$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1906      esac
1907      case $ac_var in #(
1908      _ | IFS | as_nl) ;; #(
1909      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1910      *) { eval $ac_var=; unset $ac_var;} ;;
1911      esac ;;
1912    esac
1913  done
1914  (set) 2>&1 |
1915    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1916    *${as_nl}ac_space=\ *)
1917      sed -n \
1918	"s/'\''/'\''\\\\'\'''\''/g;
1919	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1920      ;; #(
1921    *)
1922      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1923      ;;
1924    esac |
1925    sort
1926)
1927    echo
1928
1929    $as_echo "## ----------------- ##
1930## Output variables. ##
1931## ----------------- ##"
1932    echo
1933    for ac_var in $ac_subst_vars
1934    do
1935      eval ac_val=\$$ac_var
1936      case $ac_val in
1937      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1938      esac
1939      $as_echo "$ac_var='\''$ac_val'\''"
1940    done | sort
1941    echo
1942
1943    if test -n "$ac_subst_files"; then
1944      $as_echo "## ------------------- ##
1945## File substitutions. ##
1946## ------------------- ##"
1947      echo
1948      for ac_var in $ac_subst_files
1949      do
1950	eval ac_val=\$$ac_var
1951	case $ac_val in
1952	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1953	esac
1954	$as_echo "$ac_var='\''$ac_val'\''"
1955      done | sort
1956      echo
1957    fi
1958
1959    if test -s confdefs.h; then
1960      $as_echo "## ----------- ##
1961## confdefs.h. ##
1962## ----------- ##"
1963      echo
1964      cat confdefs.h
1965      echo
1966    fi
1967    test "$ac_signal" != 0 &&
1968      $as_echo "$as_me: caught signal $ac_signal"
1969    $as_echo "$as_me: exit $exit_status"
1970  } >&5
1971  rm -f core *.core core.conftest.* &&
1972    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1973    exit $exit_status
1974' 0
1975for ac_signal in 1 2 13 15; do
1976  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1977done
1978ac_signal=0
1979
1980# confdefs.h avoids OS command line length limits that DEFS can exceed.
1981rm -f -r conftest* confdefs.h
1982
1983$as_echo "/* confdefs.h */" > confdefs.h
1984
1985# Predefined preprocessor variables.
1986
1987cat >>confdefs.h <<_ACEOF
1988#define PACKAGE_NAME "$PACKAGE_NAME"
1989_ACEOF
1990
1991cat >>confdefs.h <<_ACEOF
1992#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1993_ACEOF
1994
1995cat >>confdefs.h <<_ACEOF
1996#define PACKAGE_VERSION "$PACKAGE_VERSION"
1997_ACEOF
1998
1999cat >>confdefs.h <<_ACEOF
2000#define PACKAGE_STRING "$PACKAGE_STRING"
2001_ACEOF
2002
2003cat >>confdefs.h <<_ACEOF
2004#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2005_ACEOF
2006
2007cat >>confdefs.h <<_ACEOF
2008#define PACKAGE_URL "$PACKAGE_URL"
2009_ACEOF
2010
2011
2012# Let the site file select an alternate cache file if it wants to.
2013# Prefer an explicitly selected file to automatically selected ones.
2014ac_site_file1=NONE
2015ac_site_file2=NONE
2016if test -n "$CONFIG_SITE"; then
2017  # We do not want a PATH search for config.site.
2018  case $CONFIG_SITE in #((
2019    -*)  ac_site_file1=./$CONFIG_SITE;;
2020    */*) ac_site_file1=$CONFIG_SITE;;
2021    *)   ac_site_file1=./$CONFIG_SITE;;
2022  esac
2023elif test "x$prefix" != xNONE; then
2024  ac_site_file1=$prefix/share/config.site
2025  ac_site_file2=$prefix/etc/config.site
2026else
2027  ac_site_file1=$ac_default_prefix/share/config.site
2028  ac_site_file2=$ac_default_prefix/etc/config.site
2029fi
2030for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2031do
2032  test "x$ac_site_file" = xNONE && continue
2033  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2034    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2035$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2036    sed 's/^/| /' "$ac_site_file" >&5
2037    . "$ac_site_file" \
2038      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2040as_fn_error $? "failed to load site script $ac_site_file
2041See \`config.log' for more details" "$LINENO" 5; }
2042  fi
2043done
2044
2045if test -r "$cache_file"; then
2046  # Some versions of bash will fail to source /dev/null (special files
2047  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2048  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2049    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2050$as_echo "$as_me: loading cache $cache_file" >&6;}
2051    case $cache_file in
2052      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2053      *)                      . "./$cache_file";;
2054    esac
2055  fi
2056else
2057  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2058$as_echo "$as_me: creating cache $cache_file" >&6;}
2059  >$cache_file
2060fi
2061
2062# Check that the precious variables saved in the cache have kept the same
2063# value.
2064ac_cache_corrupted=false
2065for ac_var in $ac_precious_vars; do
2066  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2067  eval ac_new_set=\$ac_env_${ac_var}_set
2068  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2069  eval ac_new_val=\$ac_env_${ac_var}_value
2070  case $ac_old_set,$ac_new_set in
2071    set,)
2072      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2073$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2074      ac_cache_corrupted=: ;;
2075    ,set)
2076      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2077$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2078      ac_cache_corrupted=: ;;
2079    ,);;
2080    *)
2081      if test "x$ac_old_val" != "x$ac_new_val"; then
2082	# differences in whitespace do not lead to failure.
2083	ac_old_val_w=`echo x $ac_old_val`
2084	ac_new_val_w=`echo x $ac_new_val`
2085	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2086	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2087$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2088	  ac_cache_corrupted=:
2089	else
2090	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2091$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2092	  eval $ac_var=\$ac_old_val
2093	fi
2094	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2095$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2096	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2097$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2098      fi;;
2099  esac
2100  # Pass precious variables to config.status.
2101  if test "$ac_new_set" = set; then
2102    case $ac_new_val in
2103    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2104    *) ac_arg=$ac_var=$ac_new_val ;;
2105    esac
2106    case " $ac_configure_args " in
2107      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2108      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2109    esac
2110  fi
2111done
2112if $ac_cache_corrupted; then
2113  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2116$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2117  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2118fi
2119## -------------------- ##
2120## Main body of script. ##
2121## -------------------- ##
2122
2123ac_ext=c
2124ac_cpp='$CPP $CPPFLAGS'
2125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2127ac_compiler_gnu=$ac_cv_c_compiler_gnu
2128
2129
2130ac_aux_dir=
2131for ac_dir in build-aux "$srcdir"/build-aux; do
2132  if test -f "$ac_dir/install-sh"; then
2133    ac_aux_dir=$ac_dir
2134    ac_install_sh="$ac_aux_dir/install-sh -c"
2135    break
2136  elif test -f "$ac_dir/install.sh"; then
2137    ac_aux_dir=$ac_dir
2138    ac_install_sh="$ac_aux_dir/install.sh -c"
2139    break
2140  elif test -f "$ac_dir/shtool"; then
2141    ac_aux_dir=$ac_dir
2142    ac_install_sh="$ac_aux_dir/shtool install -c"
2143    break
2144  fi
2145done
2146if test -z "$ac_aux_dir"; then
2147  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2148fi
2149
2150# These three variables are undocumented and unsupported,
2151# and are intended to be withdrawn in a future Autoconf release.
2152# They can cause serious problems if a builder's source tree is in a directory
2153# whose full name contains unusual characters.
2154ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2155ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2156ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2157
2158
2159
2160
2161# Library code modified:                              REVISION++
2162# Interfaces changed/added/removed:   CURRENT++       REVISION=0
2163# Interfaces added:                             AGE++
2164# Interfaces removed:                           AGE=0
2165LT_CURRENT=1
2166
2167LT_REVISION=7
2168
2169LT_AGE=1
2170
2171
2172am__api_version='1.14'
2173
2174# Find a good install program.  We prefer a C program (faster),
2175# so one script is as good as another.  But avoid the broken or
2176# incompatible versions:
2177# SysV /etc/install, /usr/sbin/install
2178# SunOS /usr/etc/install
2179# IRIX /sbin/install
2180# AIX /bin/install
2181# AmigaOS /C/install, which installs bootblocks on floppy discs
2182# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2183# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2184# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2185# OS/2's system install, which has a completely different semantic
2186# ./install, which can be erroneously created by make from ./install.sh.
2187# Reject install programs that cannot install multiple files.
2188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2189$as_echo_n "checking for a BSD-compatible install... " >&6; }
2190if test -z "$INSTALL"; then
2191if ${ac_cv_path_install+:} false; then :
2192  $as_echo_n "(cached) " >&6
2193else
2194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195for as_dir in $PATH
2196do
2197  IFS=$as_save_IFS
2198  test -z "$as_dir" && as_dir=.
2199    # Account for people who put trailing slashes in PATH elements.
2200case $as_dir/ in #((
2201  ./ | .// | /[cC]/* | \
2202  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2203  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2204  /usr/ucb/* ) ;;
2205  *)
2206    # OSF1 and SCO ODT 3.0 have their own names for install.
2207    # Don't use installbsd from OSF since it installs stuff as root
2208    # by default.
2209    for ac_prog in ginstall scoinst install; do
2210      for ac_exec_ext in '' $ac_executable_extensions; do
2211	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2212	  if test $ac_prog = install &&
2213	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2214	    # AIX install.  It has an incompatible calling convention.
2215	    :
2216	  elif test $ac_prog = install &&
2217	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2218	    # program-specific install script used by HP pwplus--don't use.
2219	    :
2220	  else
2221	    rm -rf conftest.one conftest.two conftest.dir
2222	    echo one > conftest.one
2223	    echo two > conftest.two
2224	    mkdir conftest.dir
2225	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2226	      test -s conftest.one && test -s conftest.two &&
2227	      test -s conftest.dir/conftest.one &&
2228	      test -s conftest.dir/conftest.two
2229	    then
2230	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2231	      break 3
2232	    fi
2233	  fi
2234	fi
2235      done
2236    done
2237    ;;
2238esac
2239
2240  done
2241IFS=$as_save_IFS
2242
2243rm -rf conftest.one conftest.two conftest.dir
2244
2245fi
2246  if test "${ac_cv_path_install+set}" = set; then
2247    INSTALL=$ac_cv_path_install
2248  else
2249    # As a last resort, use the slow shell script.  Don't cache a
2250    # value for INSTALL within a source directory, because that will
2251    # break other packages using the cache if that directory is
2252    # removed, or if the value is a relative name.
2253    INSTALL=$ac_install_sh
2254  fi
2255fi
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2257$as_echo "$INSTALL" >&6; }
2258
2259# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2260# It thinks the first close brace ends the variable substitution.
2261test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2262
2263test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2264
2265test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2266
2267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2268$as_echo_n "checking whether build environment is sane... " >&6; }
2269# Reject unsafe characters in $srcdir or the absolute working directory
2270# name.  Accept space and tab only in the latter.
2271am_lf='
2272'
2273case `pwd` in
2274  *[\\\"\#\$\&\'\`$am_lf]*)
2275    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2276esac
2277case $srcdir in
2278  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2279    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2280esac
2281
2282# Do 'set' in a subshell so we don't clobber the current shell's
2283# arguments.  Must try -L first in case configure is actually a
2284# symlink; some systems play weird games with the mod time of symlinks
2285# (eg FreeBSD returns the mod time of the symlink's containing
2286# directory).
2287if (
2288   am_has_slept=no
2289   for am_try in 1 2; do
2290     echo "timestamp, slept: $am_has_slept" > conftest.file
2291     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2292     if test "$*" = "X"; then
2293	# -L didn't work.
2294	set X `ls -t "$srcdir/configure" conftest.file`
2295     fi
2296     if test "$*" != "X $srcdir/configure conftest.file" \
2297	&& test "$*" != "X conftest.file $srcdir/configure"; then
2298
2299	# If neither matched, then we have a broken ls.  This can happen
2300	# if, for instance, CONFIG_SHELL is bash and it inherits a
2301	# broken ls alias from the environment.  This has actually
2302	# happened.  Such a system could not be considered "sane".
2303	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2304  alias in your environment" "$LINENO" 5
2305     fi
2306     if test "$2" = conftest.file || test $am_try -eq 2; then
2307       break
2308     fi
2309     # Just in case.
2310     sleep 1
2311     am_has_slept=yes
2312   done
2313   test "$2" = conftest.file
2314   )
2315then
2316   # Ok.
2317   :
2318else
2319   as_fn_error $? "newly created file is older than distributed files!
2320Check your system clock" "$LINENO" 5
2321fi
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2323$as_echo "yes" >&6; }
2324# If we didn't sleep, we still need to ensure time stamps of config.status and
2325# generated files are strictly newer.
2326am_sleep_pid=
2327if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2328  ( sleep 1 ) &
2329  am_sleep_pid=$!
2330fi
2331
2332rm -f conftest.file
2333
2334test "$program_prefix" != NONE &&
2335  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2336# Use a double $ so make ignores it.
2337test "$program_suffix" != NONE &&
2338  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2339# Double any \ or $.
2340# By default was `s,x,x', remove it if useless.
2341ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2342program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2343
2344# expand $ac_aux_dir to an absolute path
2345am_aux_dir=`cd $ac_aux_dir && pwd`
2346
2347if test x"${MISSING+set}" != xset; then
2348  case $am_aux_dir in
2349  *\ * | *\	*)
2350    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2351  *)
2352    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2353  esac
2354fi
2355# Use eval to expand $SHELL
2356if eval "$MISSING --is-lightweight"; then
2357  am_missing_run="$MISSING "
2358else
2359  am_missing_run=
2360  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2361$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2362fi
2363
2364if test x"${install_sh}" != xset; then
2365  case $am_aux_dir in
2366  *\ * | *\	*)
2367    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2368  *)
2369    install_sh="\${SHELL} $am_aux_dir/install-sh"
2370  esac
2371fi
2372
2373# Installed binaries are usually stripped using 'strip' when the user
2374# run "make install-strip".  However 'strip' might not be the right
2375# tool to use in cross-compilation environments, therefore Automake
2376# will honor the 'STRIP' environment variable to overrule this program.
2377if test "$cross_compiling" != no; then
2378  if test -n "$ac_tool_prefix"; then
2379  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2380set dummy ${ac_tool_prefix}strip; ac_word=$2
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2382$as_echo_n "checking for $ac_word... " >&6; }
2383if ${ac_cv_prog_STRIP+:} false; then :
2384  $as_echo_n "(cached) " >&6
2385else
2386  if test -n "$STRIP"; then
2387  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2388else
2389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390for as_dir in $PATH
2391do
2392  IFS=$as_save_IFS
2393  test -z "$as_dir" && as_dir=.
2394    for ac_exec_ext in '' $ac_executable_extensions; do
2395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2396    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2398    break 2
2399  fi
2400done
2401  done
2402IFS=$as_save_IFS
2403
2404fi
2405fi
2406STRIP=$ac_cv_prog_STRIP
2407if test -n "$STRIP"; then
2408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2409$as_echo "$STRIP" >&6; }
2410else
2411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2412$as_echo "no" >&6; }
2413fi
2414
2415
2416fi
2417if test -z "$ac_cv_prog_STRIP"; then
2418  ac_ct_STRIP=$STRIP
2419  # Extract the first word of "strip", so it can be a program name with args.
2420set dummy strip; ac_word=$2
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2422$as_echo_n "checking for $ac_word... " >&6; }
2423if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2424  $as_echo_n "(cached) " >&6
2425else
2426  if test -n "$ac_ct_STRIP"; then
2427  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2428else
2429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430for as_dir in $PATH
2431do
2432  IFS=$as_save_IFS
2433  test -z "$as_dir" && as_dir=.
2434    for ac_exec_ext in '' $ac_executable_extensions; do
2435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436    ac_cv_prog_ac_ct_STRIP="strip"
2437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2438    break 2
2439  fi
2440done
2441  done
2442IFS=$as_save_IFS
2443
2444fi
2445fi
2446ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2447if test -n "$ac_ct_STRIP"; then
2448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2449$as_echo "$ac_ct_STRIP" >&6; }
2450else
2451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2452$as_echo "no" >&6; }
2453fi
2454
2455  if test "x$ac_ct_STRIP" = x; then
2456    STRIP=":"
2457  else
2458    case $cross_compiling:$ac_tool_warned in
2459yes:)
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2462ac_tool_warned=yes ;;
2463esac
2464    STRIP=$ac_ct_STRIP
2465  fi
2466else
2467  STRIP="$ac_cv_prog_STRIP"
2468fi
2469
2470fi
2471INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2472
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2474$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2475if test -z "$MKDIR_P"; then
2476  if ${ac_cv_path_mkdir+:} false; then :
2477  $as_echo_n "(cached) " >&6
2478else
2479  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2481do
2482  IFS=$as_save_IFS
2483  test -z "$as_dir" && as_dir=.
2484    for ac_prog in mkdir gmkdir; do
2485	 for ac_exec_ext in '' $ac_executable_extensions; do
2486	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2487	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2488	     'mkdir (GNU coreutils) '* | \
2489	     'mkdir (coreutils) '* | \
2490	     'mkdir (fileutils) '4.1*)
2491	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2492	       break 3;;
2493	   esac
2494	 done
2495       done
2496  done
2497IFS=$as_save_IFS
2498
2499fi
2500
2501  test -d ./--version && rmdir ./--version
2502  if test "${ac_cv_path_mkdir+set}" = set; then
2503    MKDIR_P="$ac_cv_path_mkdir -p"
2504  else
2505    # As a last resort, use the slow shell script.  Don't cache a
2506    # value for MKDIR_P within a source directory, because that will
2507    # break other packages using the cache if that directory is
2508    # removed, or if the value is a relative name.
2509    MKDIR_P="$ac_install_sh -d"
2510  fi
2511fi
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2513$as_echo "$MKDIR_P" >&6; }
2514
2515for ac_prog in gawk mawk nawk awk
2516do
2517  # Extract the first word of "$ac_prog", so it can be a program name with args.
2518set dummy $ac_prog; ac_word=$2
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520$as_echo_n "checking for $ac_word... " >&6; }
2521if ${ac_cv_prog_AWK+:} false; then :
2522  $as_echo_n "(cached) " >&6
2523else
2524  if test -n "$AWK"; then
2525  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2526else
2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528for as_dir in $PATH
2529do
2530  IFS=$as_save_IFS
2531  test -z "$as_dir" && as_dir=.
2532    for ac_exec_ext in '' $ac_executable_extensions; do
2533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534    ac_cv_prog_AWK="$ac_prog"
2535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536    break 2
2537  fi
2538done
2539  done
2540IFS=$as_save_IFS
2541
2542fi
2543fi
2544AWK=$ac_cv_prog_AWK
2545if test -n "$AWK"; then
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2547$as_echo "$AWK" >&6; }
2548else
2549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550$as_echo "no" >&6; }
2551fi
2552
2553
2554  test -n "$AWK" && break
2555done
2556
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2558$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2559set x ${MAKE-make}
2560ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2561if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2562  $as_echo_n "(cached) " >&6
2563else
2564  cat >conftest.make <<\_ACEOF
2565SHELL = /bin/sh
2566all:
2567	@echo '@@@%%%=$(MAKE)=@@@%%%'
2568_ACEOF
2569# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2570case `${MAKE-make} -f conftest.make 2>/dev/null` in
2571  *@@@%%%=?*=@@@%%%*)
2572    eval ac_cv_prog_make_${ac_make}_set=yes;;
2573  *)
2574    eval ac_cv_prog_make_${ac_make}_set=no;;
2575esac
2576rm -f conftest.make
2577fi
2578if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2580$as_echo "yes" >&6; }
2581  SET_MAKE=
2582else
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584$as_echo "no" >&6; }
2585  SET_MAKE="MAKE=${MAKE-make}"
2586fi
2587
2588rm -rf .tst 2>/dev/null
2589mkdir .tst 2>/dev/null
2590if test -d .tst; then
2591  am__leading_dot=.
2592else
2593  am__leading_dot=_
2594fi
2595rmdir .tst 2>/dev/null
2596
2597# Check whether --enable-silent-rules was given.
2598if test "${enable_silent_rules+set}" = set; then :
2599  enableval=$enable_silent_rules;
2600fi
2601
2602case $enable_silent_rules in # (((
2603  yes) AM_DEFAULT_VERBOSITY=0;;
2604   no) AM_DEFAULT_VERBOSITY=1;;
2605    *) AM_DEFAULT_VERBOSITY=1;;
2606esac
2607am_make=${MAKE-make}
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2609$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2610if ${am_cv_make_support_nested_variables+:} false; then :
2611  $as_echo_n "(cached) " >&6
2612else
2613  if $as_echo 'TRUE=$(BAR$(V))
2614BAR0=false
2615BAR1=true
2616V=1
2617am__doit:
2618	@$(TRUE)
2619.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2620  am_cv_make_support_nested_variables=yes
2621else
2622  am_cv_make_support_nested_variables=no
2623fi
2624fi
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2626$as_echo "$am_cv_make_support_nested_variables" >&6; }
2627if test $am_cv_make_support_nested_variables = yes; then
2628    AM_V='$(V)'
2629  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2630else
2631  AM_V=$AM_DEFAULT_VERBOSITY
2632  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2633fi
2634AM_BACKSLASH='\'
2635
2636if test "`cd $srcdir && pwd`" != "`pwd`"; then
2637  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2638  # is not polluted with repeated "-I."
2639  am__isrc=' -I$(srcdir)'
2640  # test to see if srcdir already configured
2641  if test -f $srcdir/config.status; then
2642    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2643  fi
2644fi
2645
2646# test whether we have cygpath
2647if test -z "$CYGPATH_W"; then
2648  if (cygpath --version) >/dev/null 2>/dev/null; then
2649    CYGPATH_W='cygpath -w'
2650  else
2651    CYGPATH_W=echo
2652  fi
2653fi
2654
2655
2656# Define the identity of the package.
2657 PACKAGE='libyubikey'
2658 VERSION='1.13'
2659
2660
2661cat >>confdefs.h <<_ACEOF
2662#define PACKAGE "$PACKAGE"
2663_ACEOF
2664
2665
2666cat >>confdefs.h <<_ACEOF
2667#define VERSION "$VERSION"
2668_ACEOF
2669
2670# Some tools Automake needs.
2671
2672ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2673
2674
2675AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2676
2677
2678AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2679
2680
2681AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2682
2683
2684MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2685
2686# For better backward compatibility.  To be removed once Automake 1.9.x
2687# dies out for good.  For more background, see:
2688# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2689# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2690mkdir_p='$(MKDIR_P)'
2691
2692# We need awk for the "check" target.  The system "awk" is bad on
2693# some platforms.
2694# Always define AMTAR for backward compatibility.  Yes, it's still used
2695# in the wild :-(  We should find a proper way to deprecate it ...
2696AMTAR='$${TAR-tar}'
2697
2698
2699# We'll loop over all known methods to create a tar archive until one works.
2700_am_tools='gnutar  pax cpio none'
2701
2702am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2703
2704
2705
2706
2707
2708
2709# POSIX will say in a future version that running "rm -f" with no argument
2710# is OK; and we want to be able to make that assumption in our Makefile
2711# recipes.  So use an aggressive probe to check that the usage we want is
2712# actually supported "in the wild" to an acceptable degree.
2713# See automake bug#10828.
2714# To make any issue more visible, cause the running configure to be aborted
2715# by default if the 'rm' program in use doesn't match our expectations; the
2716# user can still override this though.
2717if rm -f && rm -fr && rm -rf; then : OK; else
2718  cat >&2 <<'END'
2719Oops!
2720
2721Your 'rm' program seems unable to run without file operands specified
2722on the command line, even when the '-f' option is present.  This is contrary
2723to the behaviour of most rm programs out there, and not conforming with
2724the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2725
2726Please tell bug-automake@gnu.org about your system, including the value
2727of your $PATH and any error possibly output before this message.  This
2728can help us improve future automake versions.
2729
2730END
2731  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2732    echo 'Configuration will proceed anyway, since you have set the' >&2
2733    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2734    echo >&2
2735  else
2736    cat >&2 <<'END'
2737Aborting the configuration process, to ensure you take notice of the issue.
2738
2739You can download and install GNU coreutils to get an 'rm' implementation
2740that behaves properly: <http://www.gnu.org/software/coreutils/>.
2741
2742If you want to complete the configuration process using your problematic
2743'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2744to "yes", and re-run configure.
2745
2746END
2747    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2748  fi
2749fi
2750# Check whether --enable-silent-rules was given.
2751if test "${enable_silent_rules+set}" = set; then :
2752  enableval=$enable_silent_rules;
2753fi
2754
2755case $enable_silent_rules in # (((
2756  yes) AM_DEFAULT_VERBOSITY=0;;
2757   no) AM_DEFAULT_VERBOSITY=1;;
2758    *) AM_DEFAULT_VERBOSITY=0;;
2759esac
2760am_make=${MAKE-make}
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2762$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2763if ${am_cv_make_support_nested_variables+:} false; then :
2764  $as_echo_n "(cached) " >&6
2765else
2766  if $as_echo 'TRUE=$(BAR$(V))
2767BAR0=false
2768BAR1=true
2769V=1
2770am__doit:
2771	@$(TRUE)
2772.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2773  am_cv_make_support_nested_variables=yes
2774else
2775  am_cv_make_support_nested_variables=no
2776fi
2777fi
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2779$as_echo "$am_cv_make_support_nested_variables" >&6; }
2780if test $am_cv_make_support_nested_variables = yes; then
2781    AM_V='$(V)'
2782  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2783else
2784  AM_V=$AM_DEFAULT_VERBOSITY
2785  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2786fi
2787AM_BACKSLASH='\'
2788
2789ac_ext=c
2790ac_cpp='$CPP $CPPFLAGS'
2791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794if test -n "$ac_tool_prefix"; then
2795  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796set dummy ${ac_tool_prefix}gcc; ac_word=$2
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798$as_echo_n "checking for $ac_word... " >&6; }
2799if ${ac_cv_prog_CC+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  if test -n "$CC"; then
2803  ac_cv_prog_CC="$CC" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808  IFS=$as_save_IFS
2809  test -z "$as_dir" && as_dir=.
2810    for ac_exec_ext in '' $ac_executable_extensions; do
2811  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814    break 2
2815  fi
2816done
2817  done
2818IFS=$as_save_IFS
2819
2820fi
2821fi
2822CC=$ac_cv_prog_CC
2823if test -n "$CC"; then
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825$as_echo "$CC" >&6; }
2826else
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828$as_echo "no" >&6; }
2829fi
2830
2831
2832fi
2833if test -z "$ac_cv_prog_CC"; then
2834  ac_ct_CC=$CC
2835  # Extract the first word of "gcc", so it can be a program name with args.
2836set dummy gcc; ac_word=$2
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838$as_echo_n "checking for $ac_word... " >&6; }
2839if ${ac_cv_prog_ac_ct_CC+:} false; then :
2840  $as_echo_n "(cached) " >&6
2841else
2842  if test -n "$ac_ct_CC"; then
2843  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848  IFS=$as_save_IFS
2849  test -z "$as_dir" && as_dir=.
2850    for ac_exec_ext in '' $ac_executable_extensions; do
2851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852    ac_cv_prog_ac_ct_CC="gcc"
2853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857  done
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863if test -n "$ac_ct_CC"; then
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2865$as_echo "$ac_ct_CC" >&6; }
2866else
2867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868$as_echo "no" >&6; }
2869fi
2870
2871  if test "x$ac_ct_CC" = x; then
2872    CC=""
2873  else
2874    case $cross_compiling:$ac_tool_warned in
2875yes:)
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878ac_tool_warned=yes ;;
2879esac
2880    CC=$ac_ct_CC
2881  fi
2882else
2883  CC="$ac_cv_prog_CC"
2884fi
2885
2886if test -z "$CC"; then
2887          if test -n "$ac_tool_prefix"; then
2888    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2889set dummy ${ac_tool_prefix}cc; ac_word=$2
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891$as_echo_n "checking for $ac_word... " >&6; }
2892if ${ac_cv_prog_CC+:} false; then :
2893  $as_echo_n "(cached) " >&6
2894else
2895  if test -n "$CC"; then
2896  ac_cv_prog_CC="$CC" # Let the user override the test.
2897else
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901  IFS=$as_save_IFS
2902  test -z "$as_dir" && as_dir=.
2903    for ac_exec_ext in '' $ac_executable_extensions; do
2904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905    ac_cv_prog_CC="${ac_tool_prefix}cc"
2906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907    break 2
2908  fi
2909done
2910  done
2911IFS=$as_save_IFS
2912
2913fi
2914fi
2915CC=$ac_cv_prog_CC
2916if test -n "$CC"; then
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918$as_echo "$CC" >&6; }
2919else
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921$as_echo "no" >&6; }
2922fi
2923
2924
2925  fi
2926fi
2927if test -z "$CC"; then
2928  # Extract the first word of "cc", so it can be a program name with args.
2929set dummy cc; ac_word=$2
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if ${ac_cv_prog_CC+:} false; then :
2933  $as_echo_n "(cached) " >&6
2934else
2935  if test -n "$CC"; then
2936  ac_cv_prog_CC="$CC" # Let the user override the test.
2937else
2938  ac_prog_rejected=no
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  test -z "$as_dir" && as_dir=.
2944    for ac_exec_ext in '' $ac_executable_extensions; do
2945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2947       ac_prog_rejected=yes
2948       continue
2949     fi
2950    ac_cv_prog_CC="cc"
2951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952    break 2
2953  fi
2954done
2955  done
2956IFS=$as_save_IFS
2957
2958if test $ac_prog_rejected = yes; then
2959  # We found a bogon in the path, so make sure we never use it.
2960  set dummy $ac_cv_prog_CC
2961  shift
2962  if test $# != 0; then
2963    # We chose a different compiler from the bogus one.
2964    # However, it has the same basename, so the bogon will be chosen
2965    # first if we set CC to just the basename; use the full file name.
2966    shift
2967    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2968  fi
2969fi
2970fi
2971fi
2972CC=$ac_cv_prog_CC
2973if test -n "$CC"; then
2974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975$as_echo "$CC" >&6; }
2976else
2977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978$as_echo "no" >&6; }
2979fi
2980
2981
2982fi
2983if test -z "$CC"; then
2984  if test -n "$ac_tool_prefix"; then
2985  for ac_prog in cl.exe
2986  do
2987    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990$as_echo_n "checking for $ac_word... " >&6; }
2991if ${ac_cv_prog_CC+:} false; then :
2992  $as_echo_n "(cached) " >&6
2993else
2994  if test -n "$CC"; then
2995  ac_cv_prog_CC="$CC" # Let the user override the test.
2996else
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000  IFS=$as_save_IFS
3001  test -z "$as_dir" && as_dir=.
3002    for ac_exec_ext in '' $ac_executable_extensions; do
3003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006    break 2
3007  fi
3008done
3009  done
3010IFS=$as_save_IFS
3011
3012fi
3013fi
3014CC=$ac_cv_prog_CC
3015if test -n "$CC"; then
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017$as_echo "$CC" >&6; }
3018else
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
3021fi
3022
3023
3024    test -n "$CC" && break
3025  done
3026fi
3027if test -z "$CC"; then
3028  ac_ct_CC=$CC
3029  for ac_prog in cl.exe
3030do
3031  # Extract the first word of "$ac_prog", so it can be a program name with args.
3032set dummy $ac_prog; ac_word=$2
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034$as_echo_n "checking for $ac_word... " >&6; }
3035if ${ac_cv_prog_ac_ct_CC+:} false; then :
3036  $as_echo_n "(cached) " >&6
3037else
3038  if test -n "$ac_ct_CC"; then
3039  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3040else
3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH
3043do
3044  IFS=$as_save_IFS
3045  test -z "$as_dir" && as_dir=.
3046    for ac_exec_ext in '' $ac_executable_extensions; do
3047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048    ac_cv_prog_ac_ct_CC="$ac_prog"
3049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050    break 2
3051  fi
3052done
3053  done
3054IFS=$as_save_IFS
3055
3056fi
3057fi
3058ac_ct_CC=$ac_cv_prog_ac_ct_CC
3059if test -n "$ac_ct_CC"; then
3060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3061$as_echo "$ac_ct_CC" >&6; }
3062else
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064$as_echo "no" >&6; }
3065fi
3066
3067
3068  test -n "$ac_ct_CC" && break
3069done
3070
3071  if test "x$ac_ct_CC" = x; then
3072    CC=""
3073  else
3074    case $cross_compiling:$ac_tool_warned in
3075yes:)
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078ac_tool_warned=yes ;;
3079esac
3080    CC=$ac_ct_CC
3081  fi
3082fi
3083
3084fi
3085
3086
3087test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089as_fn_error $? "no acceptable C compiler found in \$PATH
3090See \`config.log' for more details" "$LINENO" 5; }
3091
3092# Provide some information about the compiler.
3093$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3094set X $ac_compile
3095ac_compiler=$2
3096for ac_option in --version -v -V -qversion; do
3097  { { ac_try="$ac_compiler $ac_option >&5"
3098case "(($ac_try" in
3099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100  *) ac_try_echo=$ac_try;;
3101esac
3102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103$as_echo "$ac_try_echo"; } >&5
3104  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3105  ac_status=$?
3106  if test -s conftest.err; then
3107    sed '10a\
3108... rest of stderr output deleted ...
3109         10q' conftest.err >conftest.er1
3110    cat conftest.er1 >&5
3111  fi
3112  rm -f conftest.er1 conftest.err
3113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114  test $ac_status = 0; }
3115done
3116
3117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118/* end confdefs.h.  */
3119
3120int
3121main ()
3122{
3123
3124  ;
3125  return 0;
3126}
3127_ACEOF
3128ac_clean_files_save=$ac_clean_files
3129ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3130# Try to create an executable without -o first, disregard a.out.
3131# It will help us diagnose broken compilers, and finding out an intuition
3132# of exeext.
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3134$as_echo_n "checking whether the C compiler works... " >&6; }
3135ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3136
3137# The possible output files:
3138ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3139
3140ac_rmfiles=
3141for ac_file in $ac_files
3142do
3143  case $ac_file in
3144    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3145    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3146  esac
3147done
3148rm -f $ac_rmfiles
3149
3150if { { ac_try="$ac_link_default"
3151case "(($ac_try" in
3152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153  *) ac_try_echo=$ac_try;;
3154esac
3155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156$as_echo "$ac_try_echo"; } >&5
3157  (eval "$ac_link_default") 2>&5
3158  ac_status=$?
3159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160  test $ac_status = 0; }; then :
3161  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3162# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3163# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3164# so that the user can short-circuit this test for compilers unknown to
3165# Autoconf.
3166for ac_file in $ac_files ''
3167do
3168  test -f "$ac_file" || continue
3169  case $ac_file in
3170    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3171	;;
3172    [ab].out )
3173	# We found the default executable, but exeext='' is most
3174	# certainly right.
3175	break;;
3176    *.* )
3177	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3178	then :; else
3179	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3180	fi
3181	# We set ac_cv_exeext here because the later test for it is not
3182	# safe: cross compilers may not add the suffix if given an `-o'
3183	# argument, so we may need to know it at that point already.
3184	# Even if this section looks crufty: it has the advantage of
3185	# actually working.
3186	break;;
3187    * )
3188	break;;
3189  esac
3190done
3191test "$ac_cv_exeext" = no && ac_cv_exeext=
3192
3193else
3194  ac_file=''
3195fi
3196if test -z "$ac_file"; then :
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198$as_echo "no" >&6; }
3199$as_echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204as_fn_error 77 "C compiler cannot create executables
3205See \`config.log' for more details" "$LINENO" 5; }
3206else
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208$as_echo "yes" >&6; }
3209fi
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3211$as_echo_n "checking for C compiler default output file name... " >&6; }
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3213$as_echo "$ac_file" >&6; }
3214ac_exeext=$ac_cv_exeext
3215
3216rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3217ac_clean_files=$ac_clean_files_save
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3219$as_echo_n "checking for suffix of executables... " >&6; }
3220if { { ac_try="$ac_link"
3221case "(($ac_try" in
3222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223  *) ac_try_echo=$ac_try;;
3224esac
3225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226$as_echo "$ac_try_echo"; } >&5
3227  (eval "$ac_link") 2>&5
3228  ac_status=$?
3229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230  test $ac_status = 0; }; then :
3231  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3232# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3233# work properly (i.e., refer to `conftest.exe'), while it won't with
3234# `rm'.
3235for ac_file in conftest.exe conftest conftest.*; do
3236  test -f "$ac_file" || continue
3237  case $ac_file in
3238    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3239    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240	  break;;
3241    * ) break;;
3242  esac
3243done
3244else
3245  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3248See \`config.log' for more details" "$LINENO" 5; }
3249fi
3250rm -f conftest conftest$ac_cv_exeext
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3252$as_echo "$ac_cv_exeext" >&6; }
3253
3254rm -f conftest.$ac_ext
3255EXEEXT=$ac_cv_exeext
3256ac_exeext=$EXEEXT
3257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258/* end confdefs.h.  */
3259#include <stdio.h>
3260int
3261main ()
3262{
3263FILE *f = fopen ("conftest.out", "w");
3264 return ferror (f) || fclose (f) != 0;
3265
3266  ;
3267  return 0;
3268}
3269_ACEOF
3270ac_clean_files="$ac_clean_files conftest.out"
3271# Check that the compiler produces executables we can run.  If not, either
3272# the compiler is broken, or we cross compile.
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3274$as_echo_n "checking whether we are cross compiling... " >&6; }
3275if test "$cross_compiling" != yes; then
3276  { { ac_try="$ac_link"
3277case "(($ac_try" in
3278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279  *) ac_try_echo=$ac_try;;
3280esac
3281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282$as_echo "$ac_try_echo"; } >&5
3283  (eval "$ac_link") 2>&5
3284  ac_status=$?
3285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286  test $ac_status = 0; }
3287  if { ac_try='./conftest$ac_cv_exeext'
3288  { { case "(($ac_try" in
3289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290  *) ac_try_echo=$ac_try;;
3291esac
3292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293$as_echo "$ac_try_echo"; } >&5
3294  (eval "$ac_try") 2>&5
3295  ac_status=$?
3296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297  test $ac_status = 0; }; }; then
3298    cross_compiling=no
3299  else
3300    if test "$cross_compiling" = maybe; then
3301	cross_compiling=yes
3302    else
3303	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305as_fn_error $? "cannot run C compiled programs.
3306If you meant to cross compile, use \`--host'.
3307See \`config.log' for more details" "$LINENO" 5; }
3308    fi
3309  fi
3310fi
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3312$as_echo "$cross_compiling" >&6; }
3313
3314rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3315ac_clean_files=$ac_clean_files_save
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3317$as_echo_n "checking for suffix of object files... " >&6; }
3318if ${ac_cv_objext+:} false; then :
3319  $as_echo_n "(cached) " >&6
3320else
3321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322/* end confdefs.h.  */
3323
3324int
3325main ()
3326{
3327
3328  ;
3329  return 0;
3330}
3331_ACEOF
3332rm -f conftest.o conftest.obj
3333if { { ac_try="$ac_compile"
3334case "(($ac_try" in
3335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336  *) ac_try_echo=$ac_try;;
3337esac
3338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339$as_echo "$ac_try_echo"; } >&5
3340  (eval "$ac_compile") 2>&5
3341  ac_status=$?
3342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343  test $ac_status = 0; }; then :
3344  for ac_file in conftest.o conftest.obj conftest.*; do
3345  test -f "$ac_file" || continue;
3346  case $ac_file in
3347    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3348    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3349       break;;
3350  esac
3351done
3352else
3353  $as_echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358as_fn_error $? "cannot compute suffix of object files: cannot compile
3359See \`config.log' for more details" "$LINENO" 5; }
3360fi
3361rm -f conftest.$ac_cv_objext conftest.$ac_ext
3362fi
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3364$as_echo "$ac_cv_objext" >&6; }
3365OBJEXT=$ac_cv_objext
3366ac_objext=$OBJEXT
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3368$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3369if ${ac_cv_c_compiler_gnu+:} false; then :
3370  $as_echo_n "(cached) " >&6
3371else
3372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373/* end confdefs.h.  */
3374
3375int
3376main ()
3377{
3378#ifndef __GNUC__
3379       choke me
3380#endif
3381
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386if ac_fn_c_try_compile "$LINENO"; then :
3387  ac_compiler_gnu=yes
3388else
3389  ac_compiler_gnu=no
3390fi
3391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392ac_cv_c_compiler_gnu=$ac_compiler_gnu
3393
3394fi
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3396$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3397if test $ac_compiler_gnu = yes; then
3398  GCC=yes
3399else
3400  GCC=
3401fi
3402ac_test_CFLAGS=${CFLAGS+set}
3403ac_save_CFLAGS=$CFLAGS
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3405$as_echo_n "checking whether $CC accepts -g... " >&6; }
3406if ${ac_cv_prog_cc_g+:} false; then :
3407  $as_echo_n "(cached) " >&6
3408else
3409  ac_save_c_werror_flag=$ac_c_werror_flag
3410   ac_c_werror_flag=yes
3411   ac_cv_prog_cc_g=no
3412   CFLAGS="-g"
3413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414/* end confdefs.h.  */
3415
3416int
3417main ()
3418{
3419
3420  ;
3421  return 0;
3422}
3423_ACEOF
3424if ac_fn_c_try_compile "$LINENO"; then :
3425  ac_cv_prog_cc_g=yes
3426else
3427  CFLAGS=""
3428      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429/* end confdefs.h.  */
3430
3431int
3432main ()
3433{
3434
3435  ;
3436  return 0;
3437}
3438_ACEOF
3439if ac_fn_c_try_compile "$LINENO"; then :
3440
3441else
3442  ac_c_werror_flag=$ac_save_c_werror_flag
3443	 CFLAGS="-g"
3444	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445/* end confdefs.h.  */
3446
3447int
3448main ()
3449{
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455if ac_fn_c_try_compile "$LINENO"; then :
3456  ac_cv_prog_cc_g=yes
3457fi
3458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459fi
3460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461fi
3462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463   ac_c_werror_flag=$ac_save_c_werror_flag
3464fi
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3466$as_echo "$ac_cv_prog_cc_g" >&6; }
3467if test "$ac_test_CFLAGS" = set; then
3468  CFLAGS=$ac_save_CFLAGS
3469elif test $ac_cv_prog_cc_g = yes; then
3470  if test "$GCC" = yes; then
3471    CFLAGS="-g -O2"
3472  else
3473    CFLAGS="-g"
3474  fi
3475else
3476  if test "$GCC" = yes; then
3477    CFLAGS="-O2"
3478  else
3479    CFLAGS=
3480  fi
3481fi
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3483$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3484if ${ac_cv_prog_cc_c89+:} false; then :
3485  $as_echo_n "(cached) " >&6
3486else
3487  ac_cv_prog_cc_c89=no
3488ac_save_CC=$CC
3489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h.  */
3491#include <stdarg.h>
3492#include <stdio.h>
3493struct stat;
3494/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3495struct buf { int x; };
3496FILE * (*rcsopen) (struct buf *, struct stat *, int);
3497static char *e (p, i)
3498     char **p;
3499     int i;
3500{
3501  return p[i];
3502}
3503static char *f (char * (*g) (char **, int), char **p, ...)
3504{
3505  char *s;
3506  va_list v;
3507  va_start (v,p);
3508  s = g (p, va_arg (v,int));
3509  va_end (v);
3510  return s;
3511}
3512
3513/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3514   function prototypes and stuff, but not '\xHH' hex character constants.
3515   These don't provoke an error unfortunately, instead are silently treated
3516   as 'x'.  The following induces an error, until -std is added to get
3517   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3518   array size at least.  It's necessary to write '\x00'==0 to get something
3519   that's true only with -std.  */
3520int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3521
3522/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3523   inside strings and character constants.  */
3524#define FOO(x) 'x'
3525int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3526
3527int test (int i, double x);
3528struct s1 {int (*f) (int a);};
3529struct s2 {int (*f) (double a);};
3530int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3531int argc;
3532char **argv;
3533int
3534main ()
3535{
3536return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3537  ;
3538  return 0;
3539}
3540_ACEOF
3541for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3542	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3543do
3544  CC="$ac_save_CC $ac_arg"
3545  if ac_fn_c_try_compile "$LINENO"; then :
3546  ac_cv_prog_cc_c89=$ac_arg
3547fi
3548rm -f core conftest.err conftest.$ac_objext
3549  test "x$ac_cv_prog_cc_c89" != "xno" && break
3550done
3551rm -f conftest.$ac_ext
3552CC=$ac_save_CC
3553
3554fi
3555# AC_CACHE_VAL
3556case "x$ac_cv_prog_cc_c89" in
3557  x)
3558    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3559$as_echo "none needed" >&6; } ;;
3560  xno)
3561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3562$as_echo "unsupported" >&6; } ;;
3563  *)
3564    CC="$CC $ac_cv_prog_cc_c89"
3565    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3566$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3567esac
3568if test "x$ac_cv_prog_cc_c89" != xno; then :
3569
3570fi
3571
3572ac_ext=c
3573ac_cpp='$CPP $CPPFLAGS'
3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578ac_ext=c
3579ac_cpp='$CPP $CPPFLAGS'
3580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3584$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3585if ${am_cv_prog_cc_c_o+:} false; then :
3586  $as_echo_n "(cached) " >&6
3587else
3588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h.  */
3590
3591int
3592main ()
3593{
3594
3595  ;
3596  return 0;
3597}
3598_ACEOF
3599  # Make sure it works both with $CC and with simple cc.
3600  # Following AC_PROG_CC_C_O, we do the test twice because some
3601  # compilers refuse to overwrite an existing .o file with -o,
3602  # though they will create one.
3603  am_cv_prog_cc_c_o=yes
3604  for am_i in 1 2; do
3605    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3606   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); } \
3610         && test -f conftest2.$ac_objext; then
3611      : OK
3612    else
3613      am_cv_prog_cc_c_o=no
3614      break
3615    fi
3616  done
3617  rm -f core conftest*
3618  unset am_i
3619fi
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3621$as_echo "$am_cv_prog_cc_c_o" >&6; }
3622if test "$am_cv_prog_cc_c_o" != yes; then
3623   # Losing compiler, so override with the script.
3624   # FIXME: It is wrong to rewrite CC.
3625   # But if we don't then we get into trouble of one sort or another.
3626   # A longer-term fix would be to have automake use am__CC in this case,
3627   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3628   CC="$am_aux_dir/compile $CC"
3629fi
3630ac_ext=c
3631ac_cpp='$CPP $CPPFLAGS'
3632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635
3636DEPDIR="${am__leading_dot}deps"
3637
3638ac_config_commands="$ac_config_commands depfiles"
3639
3640
3641am_make=${MAKE-make}
3642cat > confinc << 'END'
3643am__doit:
3644	@echo this is the am__doit target
3645.PHONY: am__doit
3646END
3647# If we don't find an include directive, just comment out the code.
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3649$as_echo_n "checking for style of include used by $am_make... " >&6; }
3650am__include="#"
3651am__quote=
3652_am_result=none
3653# First try GNU make style include.
3654echo "include confinc" > confmf
3655# Ignore all kinds of additional output from 'make'.
3656case `$am_make -s -f confmf 2> /dev/null` in #(
3657*the\ am__doit\ target*)
3658  am__include=include
3659  am__quote=
3660  _am_result=GNU
3661  ;;
3662esac
3663# Now try BSD make style include.
3664if test "$am__include" = "#"; then
3665   echo '.include "confinc"' > confmf
3666   case `$am_make -s -f confmf 2> /dev/null` in #(
3667   *the\ am__doit\ target*)
3668     am__include=.include
3669     am__quote="\""
3670     _am_result=BSD
3671     ;;
3672   esac
3673fi
3674
3675
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3677$as_echo "$_am_result" >&6; }
3678rm -f confinc confmf
3679
3680# Check whether --enable-dependency-tracking was given.
3681if test "${enable_dependency_tracking+set}" = set; then :
3682  enableval=$enable_dependency_tracking;
3683fi
3684
3685if test "x$enable_dependency_tracking" != xno; then
3686  am_depcomp="$ac_aux_dir/depcomp"
3687  AMDEPBACKSLASH='\'
3688  am__nodep='_no'
3689fi
3690 if test "x$enable_dependency_tracking" != xno; then
3691  AMDEP_TRUE=
3692  AMDEP_FALSE='#'
3693else
3694  AMDEP_TRUE='#'
3695  AMDEP_FALSE=
3696fi
3697
3698
3699
3700depcc="$CC"   am_compiler_list=
3701
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3703$as_echo_n "checking dependency style of $depcc... " >&6; }
3704if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3705  $as_echo_n "(cached) " >&6
3706else
3707  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3708  # We make a subdir and do the tests there.  Otherwise we can end up
3709  # making bogus files that we don't know about and never remove.  For
3710  # instance it was reported that on HP-UX the gcc test will end up
3711  # making a dummy file named 'D' -- because '-MD' means "put the output
3712  # in D".
3713  rm -rf conftest.dir
3714  mkdir conftest.dir
3715  # Copy depcomp to subdir because otherwise we won't find it if we're
3716  # using a relative directory.
3717  cp "$am_depcomp" conftest.dir
3718  cd conftest.dir
3719  # We will build objects and dependencies in a subdirectory because
3720  # it helps to detect inapplicable dependency modes.  For instance
3721  # both Tru64's cc and ICC support -MD to output dependencies as a
3722  # side effect of compilation, but ICC will put the dependencies in
3723  # the current directory while Tru64 will put them in the object
3724  # directory.
3725  mkdir sub
3726
3727  am_cv_CC_dependencies_compiler_type=none
3728  if test "$am_compiler_list" = ""; then
3729     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3730  fi
3731  am__universal=false
3732  case " $depcc " in #(
3733     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3734     esac
3735
3736  for depmode in $am_compiler_list; do
3737    # Setup a source with many dependencies, because some compilers
3738    # like to wrap large dependency lists on column 80 (with \), and
3739    # we should not choose a depcomp mode which is confused by this.
3740    #
3741    # We need to recreate these files for each test, as the compiler may
3742    # overwrite some of them when testing with obscure command lines.
3743    # This happens at least with the AIX C compiler.
3744    : > sub/conftest.c
3745    for i in 1 2 3 4 5 6; do
3746      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3747      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3748      # Solaris 10 /bin/sh.
3749      echo '/* dummy */' > sub/conftst$i.h
3750    done
3751    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3752
3753    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3754    # mode.  It turns out that the SunPro C++ compiler does not properly
3755    # handle '-M -o', and we need to detect this.  Also, some Intel
3756    # versions had trouble with output in subdirs.
3757    am__obj=sub/conftest.${OBJEXT-o}
3758    am__minus_obj="-o $am__obj"
3759    case $depmode in
3760    gcc)
3761      # This depmode causes a compiler race in universal mode.
3762      test "$am__universal" = false || continue
3763      ;;
3764    nosideeffect)
3765      # After this tag, mechanisms are not by side-effect, so they'll
3766      # only be used when explicitly requested.
3767      if test "x$enable_dependency_tracking" = xyes; then
3768	continue
3769      else
3770	break
3771      fi
3772      ;;
3773    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3774      # This compiler won't grok '-c -o', but also, the minuso test has
3775      # not run yet.  These depmodes are late enough in the game, and
3776      # so weak that their functioning should not be impacted.
3777      am__obj=conftest.${OBJEXT-o}
3778      am__minus_obj=
3779      ;;
3780    none) break ;;
3781    esac
3782    if depmode=$depmode \
3783       source=sub/conftest.c object=$am__obj \
3784       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3785       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3786         >/dev/null 2>conftest.err &&
3787       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3788       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3789       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3790       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3791      # icc doesn't choke on unknown options, it will just issue warnings
3792      # or remarks (even with -Werror).  So we grep stderr for any message
3793      # that says an option was ignored or not supported.
3794      # When given -MP, icc 7.0 and 7.1 complain thusly:
3795      #   icc: Command line warning: ignoring option '-M'; no argument required
3796      # The diagnosis changed in icc 8.0:
3797      #   icc: Command line remark: option '-MP' not supported
3798      if (grep 'ignoring option' conftest.err ||
3799          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3800        am_cv_CC_dependencies_compiler_type=$depmode
3801        break
3802      fi
3803    fi
3804  done
3805
3806  cd ..
3807  rm -rf conftest.dir
3808else
3809  am_cv_CC_dependencies_compiler_type=none
3810fi
3811
3812fi
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3814$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3815CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3816
3817 if
3818  test "x$enable_dependency_tracking" != xno \
3819  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3820  am__fastdepCC_TRUE=
3821  am__fastdepCC_FALSE='#'
3822else
3823  am__fastdepCC_TRUE='#'
3824  am__fastdepCC_FALSE=
3825fi
3826
3827
3828
3829# workaround for automake 1.12
3830
3831
3832if test -n "$ac_tool_prefix"; then
3833  for ac_prog in ar lib "link -lib"
3834  do
3835    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3836set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838$as_echo_n "checking for $ac_word... " >&6; }
3839if ${ac_cv_prog_AR+:} false; then :
3840  $as_echo_n "(cached) " >&6
3841else
3842  if test -n "$AR"; then
3843  ac_cv_prog_AR="$AR" # Let the user override the test.
3844else
3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH
3847do
3848  IFS=$as_save_IFS
3849  test -z "$as_dir" && as_dir=.
3850    for ac_exec_ext in '' $ac_executable_extensions; do
3851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854    break 2
3855  fi
3856done
3857  done
3858IFS=$as_save_IFS
3859
3860fi
3861fi
3862AR=$ac_cv_prog_AR
3863if test -n "$AR"; then
3864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3865$as_echo "$AR" >&6; }
3866else
3867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868$as_echo "no" >&6; }
3869fi
3870
3871
3872    test -n "$AR" && break
3873  done
3874fi
3875if test -z "$AR"; then
3876  ac_ct_AR=$AR
3877  for ac_prog in ar lib "link -lib"
3878do
3879  # Extract the first word of "$ac_prog", so it can be a program name with args.
3880set dummy $ac_prog; ac_word=$2
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882$as_echo_n "checking for $ac_word... " >&6; }
3883if ${ac_cv_prog_ac_ct_AR+:} false; then :
3884  $as_echo_n "(cached) " >&6
3885else
3886  if test -n "$ac_ct_AR"; then
3887  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3888else
3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH
3891do
3892  IFS=$as_save_IFS
3893  test -z "$as_dir" && as_dir=.
3894    for ac_exec_ext in '' $ac_executable_extensions; do
3895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896    ac_cv_prog_ac_ct_AR="$ac_prog"
3897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898    break 2
3899  fi
3900done
3901  done
3902IFS=$as_save_IFS
3903
3904fi
3905fi
3906ac_ct_AR=$ac_cv_prog_ac_ct_AR
3907if test -n "$ac_ct_AR"; then
3908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3909$as_echo "$ac_ct_AR" >&6; }
3910else
3911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912$as_echo "no" >&6; }
3913fi
3914
3915
3916  test -n "$ac_ct_AR" && break
3917done
3918
3919  if test "x$ac_ct_AR" = x; then
3920    AR="false"
3921  else
3922    case $cross_compiling:$ac_tool_warned in
3923yes:)
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3926ac_tool_warned=yes ;;
3927esac
3928    AR=$ac_ct_AR
3929  fi
3930fi
3931
3932: ${AR=ar}
3933
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3935$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3936if ${am_cv_ar_interface+:} false; then :
3937  $as_echo_n "(cached) " >&6
3938else
3939  ac_ext=c
3940ac_cpp='$CPP $CPPFLAGS'
3941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944
3945   am_cv_ar_interface=ar
3946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947/* end confdefs.h.  */
3948int some_variable = 0;
3949_ACEOF
3950if ac_fn_c_try_compile "$LINENO"; then :
3951  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3952      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3953  (eval $am_ar_try) 2>&5
3954  ac_status=$?
3955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956  test $ac_status = 0; }
3957      if test "$ac_status" -eq 0; then
3958        am_cv_ar_interface=ar
3959      else
3960        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3961        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3962  (eval $am_ar_try) 2>&5
3963  ac_status=$?
3964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965  test $ac_status = 0; }
3966        if test "$ac_status" -eq 0; then
3967          am_cv_ar_interface=lib
3968        else
3969          am_cv_ar_interface=unknown
3970        fi
3971      fi
3972      rm -f conftest.lib libconftest.a
3973
3974fi
3975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976   ac_ext=c
3977ac_cpp='$CPP $CPPFLAGS'
3978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3980ac_compiler_gnu=$ac_cv_c_compiler_gnu
3981
3982fi
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3984$as_echo "$am_cv_ar_interface" >&6; }
3985
3986case $am_cv_ar_interface in
3987ar)
3988  ;;
3989lib)
3990  # Microsoft lib, so override with the ar-lib wrapper script.
3991  # FIXME: It is wrong to rewrite AR.
3992  # But if we don't then we get into trouble of one sort or another.
3993  # A longer-term fix would be to have automake use am__AR in this case,
3994  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3995  # similar.
3996  AR="$am_aux_dir/ar-lib $AR"
3997  ;;
3998unknown)
3999  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4000  ;;
4001esac
4002
4003
4004# Make sure we can run config.sub.
4005$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4006  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4007
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4009$as_echo_n "checking build system type... " >&6; }
4010if ${ac_cv_build+:} false; then :
4011  $as_echo_n "(cached) " >&6
4012else
4013  ac_build_alias=$build_alias
4014test "x$ac_build_alias" = x &&
4015  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4016test "x$ac_build_alias" = x &&
4017  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4018ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4019  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4020
4021fi
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4023$as_echo "$ac_cv_build" >&6; }
4024case $ac_cv_build in
4025*-*-*) ;;
4026*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4027esac
4028build=$ac_cv_build
4029ac_save_IFS=$IFS; IFS='-'
4030set x $ac_cv_build
4031shift
4032build_cpu=$1
4033build_vendor=$2
4034shift; shift
4035# Remember, the first character of IFS is used to create $*,
4036# except with old shells:
4037build_os=$*
4038IFS=$ac_save_IFS
4039case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4040
4041
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4043$as_echo_n "checking host system type... " >&6; }
4044if ${ac_cv_host+:} false; then :
4045  $as_echo_n "(cached) " >&6
4046else
4047  if test "x$host_alias" = x; then
4048  ac_cv_host=$ac_cv_build
4049else
4050  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4051    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4052fi
4053
4054fi
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4056$as_echo "$ac_cv_host" >&6; }
4057case $ac_cv_host in
4058*-*-*) ;;
4059*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4060esac
4061host=$ac_cv_host
4062ac_save_IFS=$IFS; IFS='-'
4063set x $ac_cv_host
4064shift
4065host_cpu=$1
4066host_vendor=$2
4067shift; shift
4068# Remember, the first character of IFS is used to create $*,
4069# except with old shells:
4070host_os=$*
4071IFS=$ac_save_IFS
4072case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4073
4074
4075enable_win32_dll=yes
4076
4077case $host in
4078*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4079  if test -n "$ac_tool_prefix"; then
4080  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4081set dummy ${ac_tool_prefix}as; ac_word=$2
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083$as_echo_n "checking for $ac_word... " >&6; }
4084if ${ac_cv_prog_AS+:} false; then :
4085  $as_echo_n "(cached) " >&6
4086else
4087  if test -n "$AS"; then
4088  ac_cv_prog_AS="$AS" # Let the user override the test.
4089else
4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093  IFS=$as_save_IFS
4094  test -z "$as_dir" && as_dir=.
4095    for ac_exec_ext in '' $ac_executable_extensions; do
4096  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097    ac_cv_prog_AS="${ac_tool_prefix}as"
4098    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099    break 2
4100  fi
4101done
4102  done
4103IFS=$as_save_IFS
4104
4105fi
4106fi
4107AS=$ac_cv_prog_AS
4108if test -n "$AS"; then
4109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4110$as_echo "$AS" >&6; }
4111else
4112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113$as_echo "no" >&6; }
4114fi
4115
4116
4117fi
4118if test -z "$ac_cv_prog_AS"; then
4119  ac_ct_AS=$AS
4120  # Extract the first word of "as", so it can be a program name with args.
4121set dummy as; ac_word=$2
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123$as_echo_n "checking for $ac_word... " >&6; }
4124if ${ac_cv_prog_ac_ct_AS+:} false; then :
4125  $as_echo_n "(cached) " >&6
4126else
4127  if test -n "$ac_ct_AS"; then
4128  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4129else
4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH
4132do
4133  IFS=$as_save_IFS
4134  test -z "$as_dir" && as_dir=.
4135    for ac_exec_ext in '' $ac_executable_extensions; do
4136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137    ac_cv_prog_ac_ct_AS="as"
4138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139    break 2
4140  fi
4141done
4142  done
4143IFS=$as_save_IFS
4144
4145fi
4146fi
4147ac_ct_AS=$ac_cv_prog_ac_ct_AS
4148if test -n "$ac_ct_AS"; then
4149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4150$as_echo "$ac_ct_AS" >&6; }
4151else
4152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153$as_echo "no" >&6; }
4154fi
4155
4156  if test "x$ac_ct_AS" = x; then
4157    AS="false"
4158  else
4159    case $cross_compiling:$ac_tool_warned in
4160yes:)
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4163ac_tool_warned=yes ;;
4164esac
4165    AS=$ac_ct_AS
4166  fi
4167else
4168  AS="$ac_cv_prog_AS"
4169fi
4170
4171  if test -n "$ac_tool_prefix"; then
4172  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4173set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175$as_echo_n "checking for $ac_word... " >&6; }
4176if ${ac_cv_prog_DLLTOOL+:} false; then :
4177  $as_echo_n "(cached) " >&6
4178else
4179  if test -n "$DLLTOOL"; then
4180  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4181else
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185  IFS=$as_save_IFS
4186  test -z "$as_dir" && as_dir=.
4187    for ac_exec_ext in '' $ac_executable_extensions; do
4188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191    break 2
4192  fi
4193done
4194  done
4195IFS=$as_save_IFS
4196
4197fi
4198fi
4199DLLTOOL=$ac_cv_prog_DLLTOOL
4200if test -n "$DLLTOOL"; then
4201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4202$as_echo "$DLLTOOL" >&6; }
4203else
4204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205$as_echo "no" >&6; }
4206fi
4207
4208
4209fi
4210if test -z "$ac_cv_prog_DLLTOOL"; then
4211  ac_ct_DLLTOOL=$DLLTOOL
4212  # Extract the first word of "dlltool", so it can be a program name with args.
4213set dummy dlltool; ac_word=$2
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215$as_echo_n "checking for $ac_word... " >&6; }
4216if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4217  $as_echo_n "(cached) " >&6
4218else
4219  if test -n "$ac_ct_DLLTOOL"; then
4220  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4221else
4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225  IFS=$as_save_IFS
4226  test -z "$as_dir" && as_dir=.
4227    for ac_exec_ext in '' $ac_executable_extensions; do
4228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231    break 2
4232  fi
4233done
4234  done
4235IFS=$as_save_IFS
4236
4237fi
4238fi
4239ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4240if test -n "$ac_ct_DLLTOOL"; then
4241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4242$as_echo "$ac_ct_DLLTOOL" >&6; }
4243else
4244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245$as_echo "no" >&6; }
4246fi
4247
4248  if test "x$ac_ct_DLLTOOL" = x; then
4249    DLLTOOL="false"
4250  else
4251    case $cross_compiling:$ac_tool_warned in
4252yes:)
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255ac_tool_warned=yes ;;
4256esac
4257    DLLTOOL=$ac_ct_DLLTOOL
4258  fi
4259else
4260  DLLTOOL="$ac_cv_prog_DLLTOOL"
4261fi
4262
4263  if test -n "$ac_tool_prefix"; then
4264  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4265set dummy ${ac_tool_prefix}objdump; ac_word=$2
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267$as_echo_n "checking for $ac_word... " >&6; }
4268if ${ac_cv_prog_OBJDUMP+:} false; then :
4269  $as_echo_n "(cached) " >&6
4270else
4271  if test -n "$OBJDUMP"; then
4272  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4273else
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277  IFS=$as_save_IFS
4278  test -z "$as_dir" && as_dir=.
4279    for ac_exec_ext in '' $ac_executable_extensions; do
4280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283    break 2
4284  fi
4285done
4286  done
4287IFS=$as_save_IFS
4288
4289fi
4290fi
4291OBJDUMP=$ac_cv_prog_OBJDUMP
4292if test -n "$OBJDUMP"; then
4293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4294$as_echo "$OBJDUMP" >&6; }
4295else
4296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297$as_echo "no" >&6; }
4298fi
4299
4300
4301fi
4302if test -z "$ac_cv_prog_OBJDUMP"; then
4303  ac_ct_OBJDUMP=$OBJDUMP
4304  # Extract the first word of "objdump", so it can be a program name with args.
4305set dummy objdump; ac_word=$2
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307$as_echo_n "checking for $ac_word... " >&6; }
4308if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4309  $as_echo_n "(cached) " >&6
4310else
4311  if test -n "$ac_ct_OBJDUMP"; then
4312  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4313else
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317  IFS=$as_save_IFS
4318  test -z "$as_dir" && as_dir=.
4319    for ac_exec_ext in '' $ac_executable_extensions; do
4320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323    break 2
4324  fi
4325done
4326  done
4327IFS=$as_save_IFS
4328
4329fi
4330fi
4331ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4332if test -n "$ac_ct_OBJDUMP"; then
4333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4334$as_echo "$ac_ct_OBJDUMP" >&6; }
4335else
4336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337$as_echo "no" >&6; }
4338fi
4339
4340  if test "x$ac_ct_OBJDUMP" = x; then
4341    OBJDUMP="false"
4342  else
4343    case $cross_compiling:$ac_tool_warned in
4344yes:)
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4347ac_tool_warned=yes ;;
4348esac
4349    OBJDUMP=$ac_ct_OBJDUMP
4350  fi
4351else
4352  OBJDUMP="$ac_cv_prog_OBJDUMP"
4353fi
4354
4355  ;;
4356esac
4357
4358test -z "$AS" && AS=as
4359
4360
4361
4362
4363
4364test -z "$DLLTOOL" && DLLTOOL=dlltool
4365
4366
4367
4368
4369
4370test -z "$OBJDUMP" && OBJDUMP=objdump
4371
4372
4373
4374
4375
4376
4377
4378case `pwd` in
4379  *\ * | *\	*)
4380    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4381$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4382esac
4383
4384
4385
4386macro_version='2.4.2'
4387macro_revision='1.3337'
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401ltmain="$ac_aux_dir/ltmain.sh"
4402
4403# Backslashify metacharacters that are still active within
4404# double-quoted strings.
4405sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4406
4407# Same as above, but do not quote variable references.
4408double_quote_subst='s/\(["`\\]\)/\\\1/g'
4409
4410# Sed substitution to delay expansion of an escaped shell variable in a
4411# double_quote_subst'ed string.
4412delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4413
4414# Sed substitution to delay expansion of an escaped single quote.
4415delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4416
4417# Sed substitution to avoid accidental globbing in evaled expressions
4418no_glob_subst='s/\*/\\\*/g'
4419
4420ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4421ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4422ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4423
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4425$as_echo_n "checking how to print strings... " >&6; }
4426# Test print first, because it will be a builtin if present.
4427if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4428   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4429  ECHO='print -r --'
4430elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4431  ECHO='printf %s\n'
4432else
4433  # Use this function as a fallback that always works.
4434  func_fallback_echo ()
4435  {
4436    eval 'cat <<_LTECHO_EOF
4437$1
4438_LTECHO_EOF'
4439  }
4440  ECHO='func_fallback_echo'
4441fi
4442
4443# func_echo_all arg...
4444# Invoke $ECHO with all args, space-separated.
4445func_echo_all ()
4446{
4447    $ECHO ""
4448}
4449
4450case "$ECHO" in
4451  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4452$as_echo "printf" >&6; } ;;
4453  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4454$as_echo "print -r" >&6; } ;;
4455  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4456$as_echo "cat" >&6; } ;;
4457esac
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4473$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4474if ${ac_cv_path_SED+:} false; then :
4475  $as_echo_n "(cached) " >&6
4476else
4477            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4478     for ac_i in 1 2 3 4 5 6 7; do
4479       ac_script="$ac_script$as_nl$ac_script"
4480     done
4481     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4482     { ac_script=; unset ac_script;}
4483     if test -z "$SED"; then
4484  ac_path_SED_found=false
4485  # Loop through the user's path and test for each of PROGNAME-LIST
4486  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487for as_dir in $PATH
4488do
4489  IFS=$as_save_IFS
4490  test -z "$as_dir" && as_dir=.
4491    for ac_prog in sed gsed; do
4492    for ac_exec_ext in '' $ac_executable_extensions; do
4493      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4494      as_fn_executable_p "$ac_path_SED" || continue
4495# Check for GNU ac_path_SED and select it if it is found.
4496  # Check for GNU $ac_path_SED
4497case `"$ac_path_SED" --version 2>&1` in
4498*GNU*)
4499  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4500*)
4501  ac_count=0
4502  $as_echo_n 0123456789 >"conftest.in"
4503  while :
4504  do
4505    cat "conftest.in" "conftest.in" >"conftest.tmp"
4506    mv "conftest.tmp" "conftest.in"
4507    cp "conftest.in" "conftest.nl"
4508    $as_echo '' >> "conftest.nl"
4509    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4510    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4511    as_fn_arith $ac_count + 1 && ac_count=$as_val
4512    if test $ac_count -gt ${ac_path_SED_max-0}; then
4513      # Best one so far, save it but keep looking for a better one
4514      ac_cv_path_SED="$ac_path_SED"
4515      ac_path_SED_max=$ac_count
4516    fi
4517    # 10*(2^10) chars as input seems more than enough
4518    test $ac_count -gt 10 && break
4519  done
4520  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4521esac
4522
4523      $ac_path_SED_found && break 3
4524    done
4525  done
4526  done
4527IFS=$as_save_IFS
4528  if test -z "$ac_cv_path_SED"; then
4529    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4530  fi
4531else
4532  ac_cv_path_SED=$SED
4533fi
4534
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4537$as_echo "$ac_cv_path_SED" >&6; }
4538 SED="$ac_cv_path_SED"
4539  rm -f conftest.sed
4540
4541test -z "$SED" && SED=sed
4542Xsed="$SED -e 1s/^X//"
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4555$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4556if ${ac_cv_path_GREP+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559  if test -z "$GREP"; then
4560  ac_path_GREP_found=false
4561  # Loop through the user's path and test for each of PROGNAME-LIST
4562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4564do
4565  IFS=$as_save_IFS
4566  test -z "$as_dir" && as_dir=.
4567    for ac_prog in grep ggrep; do
4568    for ac_exec_ext in '' $ac_executable_extensions; do
4569      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4570      as_fn_executable_p "$ac_path_GREP" || continue
4571# Check for GNU ac_path_GREP and select it if it is found.
4572  # Check for GNU $ac_path_GREP
4573case `"$ac_path_GREP" --version 2>&1` in
4574*GNU*)
4575  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4576*)
4577  ac_count=0
4578  $as_echo_n 0123456789 >"conftest.in"
4579  while :
4580  do
4581    cat "conftest.in" "conftest.in" >"conftest.tmp"
4582    mv "conftest.tmp" "conftest.in"
4583    cp "conftest.in" "conftest.nl"
4584    $as_echo 'GREP' >> "conftest.nl"
4585    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587    as_fn_arith $ac_count + 1 && ac_count=$as_val
4588    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4589      # Best one so far, save it but keep looking for a better one
4590      ac_cv_path_GREP="$ac_path_GREP"
4591      ac_path_GREP_max=$ac_count
4592    fi
4593    # 10*(2^10) chars as input seems more than enough
4594    test $ac_count -gt 10 && break
4595  done
4596  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597esac
4598
4599      $ac_path_GREP_found && break 3
4600    done
4601  done
4602  done
4603IFS=$as_save_IFS
4604  if test -z "$ac_cv_path_GREP"; then
4605    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4606  fi
4607else
4608  ac_cv_path_GREP=$GREP
4609fi
4610
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4613$as_echo "$ac_cv_path_GREP" >&6; }
4614 GREP="$ac_cv_path_GREP"
4615
4616
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4618$as_echo_n "checking for egrep... " >&6; }
4619if ${ac_cv_path_EGREP+:} false; then :
4620  $as_echo_n "(cached) " >&6
4621else
4622  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4623   then ac_cv_path_EGREP="$GREP -E"
4624   else
4625     if test -z "$EGREP"; then
4626  ac_path_EGREP_found=false
4627  # Loop through the user's path and test for each of PROGNAME-LIST
4628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4630do
4631  IFS=$as_save_IFS
4632  test -z "$as_dir" && as_dir=.
4633    for ac_prog in egrep; do
4634    for ac_exec_ext in '' $ac_executable_extensions; do
4635      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4636      as_fn_executable_p "$ac_path_EGREP" || continue
4637# Check for GNU ac_path_EGREP and select it if it is found.
4638  # Check for GNU $ac_path_EGREP
4639case `"$ac_path_EGREP" --version 2>&1` in
4640*GNU*)
4641  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4642*)
4643  ac_count=0
4644  $as_echo_n 0123456789 >"conftest.in"
4645  while :
4646  do
4647    cat "conftest.in" "conftest.in" >"conftest.tmp"
4648    mv "conftest.tmp" "conftest.in"
4649    cp "conftest.in" "conftest.nl"
4650    $as_echo 'EGREP' >> "conftest.nl"
4651    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4652    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4653    as_fn_arith $ac_count + 1 && ac_count=$as_val
4654    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4655      # Best one so far, save it but keep looking for a better one
4656      ac_cv_path_EGREP="$ac_path_EGREP"
4657      ac_path_EGREP_max=$ac_count
4658    fi
4659    # 10*(2^10) chars as input seems more than enough
4660    test $ac_count -gt 10 && break
4661  done
4662  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4663esac
4664
4665      $ac_path_EGREP_found && break 3
4666    done
4667  done
4668  done
4669IFS=$as_save_IFS
4670  if test -z "$ac_cv_path_EGREP"; then
4671    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4672  fi
4673else
4674  ac_cv_path_EGREP=$EGREP
4675fi
4676
4677   fi
4678fi
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4680$as_echo "$ac_cv_path_EGREP" >&6; }
4681 EGREP="$ac_cv_path_EGREP"
4682
4683
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4685$as_echo_n "checking for fgrep... " >&6; }
4686if ${ac_cv_path_FGREP+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4690   then ac_cv_path_FGREP="$GREP -F"
4691   else
4692     if test -z "$FGREP"; then
4693  ac_path_FGREP_found=false
4694  # Loop through the user's path and test for each of PROGNAME-LIST
4695  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4697do
4698  IFS=$as_save_IFS
4699  test -z "$as_dir" && as_dir=.
4700    for ac_prog in fgrep; do
4701    for ac_exec_ext in '' $ac_executable_extensions; do
4702      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4703      as_fn_executable_p "$ac_path_FGREP" || continue
4704# Check for GNU ac_path_FGREP and select it if it is found.
4705  # Check for GNU $ac_path_FGREP
4706case `"$ac_path_FGREP" --version 2>&1` in
4707*GNU*)
4708  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4709*)
4710  ac_count=0
4711  $as_echo_n 0123456789 >"conftest.in"
4712  while :
4713  do
4714    cat "conftest.in" "conftest.in" >"conftest.tmp"
4715    mv "conftest.tmp" "conftest.in"
4716    cp "conftest.in" "conftest.nl"
4717    $as_echo 'FGREP' >> "conftest.nl"
4718    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4719    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4720    as_fn_arith $ac_count + 1 && ac_count=$as_val
4721    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4722      # Best one so far, save it but keep looking for a better one
4723      ac_cv_path_FGREP="$ac_path_FGREP"
4724      ac_path_FGREP_max=$ac_count
4725    fi
4726    # 10*(2^10) chars as input seems more than enough
4727    test $ac_count -gt 10 && break
4728  done
4729  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4730esac
4731
4732      $ac_path_FGREP_found && break 3
4733    done
4734  done
4735  done
4736IFS=$as_save_IFS
4737  if test -z "$ac_cv_path_FGREP"; then
4738    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4739  fi
4740else
4741  ac_cv_path_FGREP=$FGREP
4742fi
4743
4744   fi
4745fi
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4747$as_echo "$ac_cv_path_FGREP" >&6; }
4748 FGREP="$ac_cv_path_FGREP"
4749
4750
4751test -z "$GREP" && GREP=grep
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771# Check whether --with-gnu-ld was given.
4772if test "${with_gnu_ld+set}" = set; then :
4773  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4774else
4775  with_gnu_ld=no
4776fi
4777
4778ac_prog=ld
4779if test "$GCC" = yes; then
4780  # Check if gcc -print-prog-name=ld gives a path.
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4782$as_echo_n "checking for ld used by $CC... " >&6; }
4783  case $host in
4784  *-*-mingw*)
4785    # gcc leaves a trailing carriage return which upsets mingw
4786    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4787  *)
4788    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4789  esac
4790  case $ac_prog in
4791    # Accept absolute paths.
4792    [\\/]* | ?:[\\/]*)
4793      re_direlt='/[^/][^/]*/\.\./'
4794      # Canonicalize the pathname of ld
4795      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4796      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4797	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4798      done
4799      test -z "$LD" && LD="$ac_prog"
4800      ;;
4801  "")
4802    # If it fails, then pretend we aren't using GCC.
4803    ac_prog=ld
4804    ;;
4805  *)
4806    # If it is relative, then search for the first ld in PATH.
4807    with_gnu_ld=unknown
4808    ;;
4809  esac
4810elif test "$with_gnu_ld" = yes; then
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4812$as_echo_n "checking for GNU ld... " >&6; }
4813else
4814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4815$as_echo_n "checking for non-GNU ld... " >&6; }
4816fi
4817if ${lt_cv_path_LD+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  if test -z "$LD"; then
4821  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4822  for ac_dir in $PATH; do
4823    IFS="$lt_save_ifs"
4824    test -z "$ac_dir" && ac_dir=.
4825    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4826      lt_cv_path_LD="$ac_dir/$ac_prog"
4827      # Check to see if the program is GNU ld.  I'd rather use --version,
4828      # but apparently some variants of GNU ld only accept -v.
4829      # Break only if it was the GNU/non-GNU ld that we prefer.
4830      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4831      *GNU* | *'with BFD'*)
4832	test "$with_gnu_ld" != no && break
4833	;;
4834      *)
4835	test "$with_gnu_ld" != yes && break
4836	;;
4837      esac
4838    fi
4839  done
4840  IFS="$lt_save_ifs"
4841else
4842  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4843fi
4844fi
4845
4846LD="$lt_cv_path_LD"
4847if test -n "$LD"; then
4848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4849$as_echo "$LD" >&6; }
4850else
4851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853fi
4854test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4856$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4857if ${lt_cv_prog_gnu_ld+:} false; then :
4858  $as_echo_n "(cached) " >&6
4859else
4860  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4861case `$LD -v 2>&1 </dev/null` in
4862*GNU* | *'with BFD'*)
4863  lt_cv_prog_gnu_ld=yes
4864  ;;
4865*)
4866  lt_cv_prog_gnu_ld=no
4867  ;;
4868esac
4869fi
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4871$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4872with_gnu_ld=$lt_cv_prog_gnu_ld
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4883$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4884if ${lt_cv_path_NM+:} false; then :
4885  $as_echo_n "(cached) " >&6
4886else
4887  if test -n "$NM"; then
4888  # Let the user override the test.
4889  lt_cv_path_NM="$NM"
4890else
4891  lt_nm_to_check="${ac_tool_prefix}nm"
4892  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4893    lt_nm_to_check="$lt_nm_to_check nm"
4894  fi
4895  for lt_tmp_nm in $lt_nm_to_check; do
4896    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4897    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4898      IFS="$lt_save_ifs"
4899      test -z "$ac_dir" && ac_dir=.
4900      tmp_nm="$ac_dir/$lt_tmp_nm"
4901      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4902	# Check to see if the nm accepts a BSD-compat flag.
4903	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4904	#   nm: unknown option "B" ignored
4905	# Tru64's nm complains that /dev/null is an invalid object file
4906	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4907	*/dev/null* | *'Invalid file or object type'*)
4908	  lt_cv_path_NM="$tmp_nm -B"
4909	  break
4910	  ;;
4911	*)
4912	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4913	  */dev/null*)
4914	    lt_cv_path_NM="$tmp_nm -p"
4915	    break
4916	    ;;
4917	  *)
4918	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4919	    continue # so that we can try to find one that supports BSD flags
4920	    ;;
4921	  esac
4922	  ;;
4923	esac
4924      fi
4925    done
4926    IFS="$lt_save_ifs"
4927  done
4928  : ${lt_cv_path_NM=no}
4929fi
4930fi
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4932$as_echo "$lt_cv_path_NM" >&6; }
4933if test "$lt_cv_path_NM" != "no"; then
4934  NM="$lt_cv_path_NM"
4935else
4936  # Didn't find any BSD compatible name lister, look for dumpbin.
4937  if test -n "$DUMPBIN"; then :
4938    # Let the user override the test.
4939  else
4940    if test -n "$ac_tool_prefix"; then
4941  for ac_prog in dumpbin "link -dump"
4942  do
4943    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4944set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946$as_echo_n "checking for $ac_word... " >&6; }
4947if ${ac_cv_prog_DUMPBIN+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  if test -n "$DUMPBIN"; then
4951  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965  done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970DUMPBIN=$ac_cv_prog_DUMPBIN
4971if test -n "$DUMPBIN"; then
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4973$as_echo "$DUMPBIN" >&6; }
4974else
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
4977fi
4978
4979
4980    test -n "$DUMPBIN" && break
4981  done
4982fi
4983if test -z "$DUMPBIN"; then
4984  ac_ct_DUMPBIN=$DUMPBIN
4985  for ac_prog in dumpbin "link -dump"
4986do
4987  # Extract the first word of "$ac_prog", so it can be a program name with args.
4988set dummy $ac_prog; ac_word=$2
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990$as_echo_n "checking for $ac_word... " >&6; }
4991if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4992  $as_echo_n "(cached) " >&6
4993else
4994  if test -n "$ac_ct_DUMPBIN"; then
4995  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4996else
4997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998for as_dir in $PATH
4999do
5000  IFS=$as_save_IFS
5001  test -z "$as_dir" && as_dir=.
5002    for ac_exec_ext in '' $ac_executable_extensions; do
5003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006    break 2
5007  fi
5008done
5009  done
5010IFS=$as_save_IFS
5011
5012fi
5013fi
5014ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5015if test -n "$ac_ct_DUMPBIN"; then
5016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5017$as_echo "$ac_ct_DUMPBIN" >&6; }
5018else
5019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020$as_echo "no" >&6; }
5021fi
5022
5023
5024  test -n "$ac_ct_DUMPBIN" && break
5025done
5026
5027  if test "x$ac_ct_DUMPBIN" = x; then
5028    DUMPBIN=":"
5029  else
5030    case $cross_compiling:$ac_tool_warned in
5031yes:)
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5034ac_tool_warned=yes ;;
5035esac
5036    DUMPBIN=$ac_ct_DUMPBIN
5037  fi
5038fi
5039
5040    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5041    *COFF*)
5042      DUMPBIN="$DUMPBIN -symbols"
5043      ;;
5044    *)
5045      DUMPBIN=:
5046      ;;
5047    esac
5048  fi
5049
5050  if test "$DUMPBIN" != ":"; then
5051    NM="$DUMPBIN"
5052  fi
5053fi
5054test -z "$NM" && NM=nm
5055
5056
5057
5058
5059
5060
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5062$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5063if ${lt_cv_nm_interface+:} false; then :
5064  $as_echo_n "(cached) " >&6
5065else
5066  lt_cv_nm_interface="BSD nm"
5067  echo "int some_variable = 0;" > conftest.$ac_ext
5068  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5069  (eval "$ac_compile" 2>conftest.err)
5070  cat conftest.err >&5
5071  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5072  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5073  cat conftest.err >&5
5074  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5075  cat conftest.out >&5
5076  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5077    lt_cv_nm_interface="MS dumpbin"
5078  fi
5079  rm -f conftest*
5080fi
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5082$as_echo "$lt_cv_nm_interface" >&6; }
5083
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5085$as_echo_n "checking whether ln -s works... " >&6; }
5086LN_S=$as_ln_s
5087if test "$LN_S" = "ln -s"; then
5088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5089$as_echo "yes" >&6; }
5090else
5091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5092$as_echo "no, using $LN_S" >&6; }
5093fi
5094
5095# find the maximum length of command line arguments
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5097$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5098if ${lt_cv_sys_max_cmd_len+:} false; then :
5099  $as_echo_n "(cached) " >&6
5100else
5101    i=0
5102  teststring="ABCD"
5103
5104  case $build_os in
5105  msdosdjgpp*)
5106    # On DJGPP, this test can blow up pretty badly due to problems in libc
5107    # (any single argument exceeding 2000 bytes causes a buffer overrun
5108    # during glob expansion).  Even if it were fixed, the result of this
5109    # check would be larger than it should be.
5110    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5111    ;;
5112
5113  gnu*)
5114    # Under GNU Hurd, this test is not required because there is
5115    # no limit to the length of command line arguments.
5116    # Libtool will interpret -1 as no limit whatsoever
5117    lt_cv_sys_max_cmd_len=-1;
5118    ;;
5119
5120  cygwin* | mingw* | cegcc*)
5121    # On Win9x/ME, this test blows up -- it succeeds, but takes
5122    # about 5 minutes as the teststring grows exponentially.
5123    # Worse, since 9x/ME are not pre-emptively multitasking,
5124    # you end up with a "frozen" computer, even though with patience
5125    # the test eventually succeeds (with a max line length of 256k).
5126    # Instead, let's just punt: use the minimum linelength reported by
5127    # all of the supported platforms: 8192 (on NT/2K/XP).
5128    lt_cv_sys_max_cmd_len=8192;
5129    ;;
5130
5131  mint*)
5132    # On MiNT this can take a long time and run out of memory.
5133    lt_cv_sys_max_cmd_len=8192;
5134    ;;
5135
5136  amigaos*)
5137    # On AmigaOS with pdksh, this test takes hours, literally.
5138    # So we just punt and use a minimum line length of 8192.
5139    lt_cv_sys_max_cmd_len=8192;
5140    ;;
5141
5142  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5143    # This has been around since 386BSD, at least.  Likely further.
5144    if test -x /sbin/sysctl; then
5145      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5146    elif test -x /usr/sbin/sysctl; then
5147      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5148    else
5149      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5150    fi
5151    # And add a safety zone
5152    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5153    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5154    ;;
5155
5156  interix*)
5157    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5158    lt_cv_sys_max_cmd_len=196608
5159    ;;
5160
5161  os2*)
5162    # The test takes a long time on OS/2.
5163    lt_cv_sys_max_cmd_len=8192
5164    ;;
5165
5166  osf*)
5167    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5168    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5169    # nice to cause kernel panics so lets avoid the loop below.
5170    # First set a reasonable default.
5171    lt_cv_sys_max_cmd_len=16384
5172    #
5173    if test -x /sbin/sysconfig; then
5174      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5175        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5176      esac
5177    fi
5178    ;;
5179  sco3.2v5*)
5180    lt_cv_sys_max_cmd_len=102400
5181    ;;
5182  sysv5* | sco5v6* | sysv4.2uw2*)
5183    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5184    if test -n "$kargmax"; then
5185      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5186    else
5187      lt_cv_sys_max_cmd_len=32768
5188    fi
5189    ;;
5190  *)
5191    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5192    if test -n "$lt_cv_sys_max_cmd_len" && \
5193	test undefined != "$lt_cv_sys_max_cmd_len"; then
5194      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5195      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5196    else
5197      # Make teststring a little bigger before we do anything with it.
5198      # a 1K string should be a reasonable start.
5199      for i in 1 2 3 4 5 6 7 8 ; do
5200        teststring=$teststring$teststring
5201      done
5202      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5203      # If test is not a shell built-in, we'll probably end up computing a
5204      # maximum length that is only half of the actual maximum length, but
5205      # we can't tell.
5206      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5207	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5208	      test $i != 17 # 1/2 MB should be enough
5209      do
5210        i=`expr $i + 1`
5211        teststring=$teststring$teststring
5212      done
5213      # Only check the string length outside the loop.
5214      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5215      teststring=
5216      # Add a significant safety factor because C++ compilers can tack on
5217      # massive amounts of additional arguments before passing them to the
5218      # linker.  It appears as though 1/2 is a usable value.
5219      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5220    fi
5221    ;;
5222  esac
5223
5224fi
5225
5226if test -n $lt_cv_sys_max_cmd_len ; then
5227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5228$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5229else
5230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5231$as_echo "none" >&6; }
5232fi
5233max_cmd_len=$lt_cv_sys_max_cmd_len
5234
5235
5236
5237
5238
5239
5240: ${CP="cp -f"}
5241: ${MV="mv -f"}
5242: ${RM="rm -f"}
5243
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5245$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5246# Try some XSI features
5247xsi_shell=no
5248( _lt_dummy="a/b/c"
5249  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5250      = c,a/b,b/c, \
5251    && eval 'test $(( 1 + 1 )) -eq 2 \
5252    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5253  && xsi_shell=yes
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5255$as_echo "$xsi_shell" >&6; }
5256
5257
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5259$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5260lt_shell_append=no
5261( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5262    >/dev/null 2>&1 \
5263  && lt_shell_append=yes
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5265$as_echo "$lt_shell_append" >&6; }
5266
5267
5268if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5269  lt_unset=unset
5270else
5271  lt_unset=false
5272fi
5273
5274
5275
5276
5277
5278# test EBCDIC or ASCII
5279case `echo X|tr X '\101'` in
5280 A) # ASCII based system
5281    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5282  lt_SP2NL='tr \040 \012'
5283  lt_NL2SP='tr \015\012 \040\040'
5284  ;;
5285 *) # EBCDIC based system
5286  lt_SP2NL='tr \100 \n'
5287  lt_NL2SP='tr \r\n \100\100'
5288  ;;
5289esac
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5300$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5301if ${lt_cv_to_host_file_cmd+:} false; then :
5302  $as_echo_n "(cached) " >&6
5303else
5304  case $host in
5305  *-*-mingw* )
5306    case $build in
5307      *-*-mingw* ) # actually msys
5308        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5309        ;;
5310      *-*-cygwin* )
5311        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5312        ;;
5313      * ) # otherwise, assume *nix
5314        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5315        ;;
5316    esac
5317    ;;
5318  *-*-cygwin* )
5319    case $build in
5320      *-*-mingw* ) # actually msys
5321        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5322        ;;
5323      *-*-cygwin* )
5324        lt_cv_to_host_file_cmd=func_convert_file_noop
5325        ;;
5326      * ) # otherwise, assume *nix
5327        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5328        ;;
5329    esac
5330    ;;
5331  * ) # unhandled hosts (and "normal" native builds)
5332    lt_cv_to_host_file_cmd=func_convert_file_noop
5333    ;;
5334esac
5335
5336fi
5337
5338to_host_file_cmd=$lt_cv_to_host_file_cmd
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5340$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5341
5342
5343
5344
5345
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5347$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5348if ${lt_cv_to_tool_file_cmd+:} false; then :
5349  $as_echo_n "(cached) " >&6
5350else
5351  #assume ordinary cross tools, or native build.
5352lt_cv_to_tool_file_cmd=func_convert_file_noop
5353case $host in
5354  *-*-mingw* )
5355    case $build in
5356      *-*-mingw* ) # actually msys
5357        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5358        ;;
5359    esac
5360    ;;
5361esac
5362
5363fi
5364
5365to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5367$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5368
5369
5370
5371
5372
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5374$as_echo_n "checking for $LD option to reload object files... " >&6; }
5375if ${lt_cv_ld_reload_flag+:} false; then :
5376  $as_echo_n "(cached) " >&6
5377else
5378  lt_cv_ld_reload_flag='-r'
5379fi
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5381$as_echo "$lt_cv_ld_reload_flag" >&6; }
5382reload_flag=$lt_cv_ld_reload_flag
5383case $reload_flag in
5384"" | " "*) ;;
5385*) reload_flag=" $reload_flag" ;;
5386esac
5387reload_cmds='$LD$reload_flag -o $output$reload_objs'
5388case $host_os in
5389  cygwin* | mingw* | pw32* | cegcc*)
5390    if test "$GCC" != yes; then
5391      reload_cmds=false
5392    fi
5393    ;;
5394  darwin*)
5395    if test "$GCC" = yes; then
5396      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5397    else
5398      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5399    fi
5400    ;;
5401esac
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411if test -n "$ac_tool_prefix"; then
5412  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5413set dummy ${ac_tool_prefix}objdump; ac_word=$2
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415$as_echo_n "checking for $ac_word... " >&6; }
5416if ${ac_cv_prog_OBJDUMP+:} false; then :
5417  $as_echo_n "(cached) " >&6
5418else
5419  if test -n "$OBJDUMP"; then
5420  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5421else
5422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423for as_dir in $PATH
5424do
5425  IFS=$as_save_IFS
5426  test -z "$as_dir" && as_dir=.
5427    for ac_exec_ext in '' $ac_executable_extensions; do
5428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431    break 2
5432  fi
5433done
5434  done
5435IFS=$as_save_IFS
5436
5437fi
5438fi
5439OBJDUMP=$ac_cv_prog_OBJDUMP
5440if test -n "$OBJDUMP"; then
5441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5442$as_echo "$OBJDUMP" >&6; }
5443else
5444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445$as_echo "no" >&6; }
5446fi
5447
5448
5449fi
5450if test -z "$ac_cv_prog_OBJDUMP"; then
5451  ac_ct_OBJDUMP=$OBJDUMP
5452  # Extract the first word of "objdump", so it can be a program name with args.
5453set dummy objdump; ac_word=$2
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455$as_echo_n "checking for $ac_word... " >&6; }
5456if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5457  $as_echo_n "(cached) " >&6
5458else
5459  if test -n "$ac_ct_OBJDUMP"; then
5460  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5461else
5462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463for as_dir in $PATH
5464do
5465  IFS=$as_save_IFS
5466  test -z "$as_dir" && as_dir=.
5467    for ac_exec_ext in '' $ac_executable_extensions; do
5468  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471    break 2
5472  fi
5473done
5474  done
5475IFS=$as_save_IFS
5476
5477fi
5478fi
5479ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5480if test -n "$ac_ct_OBJDUMP"; then
5481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5482$as_echo "$ac_ct_OBJDUMP" >&6; }
5483else
5484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485$as_echo "no" >&6; }
5486fi
5487
5488  if test "x$ac_ct_OBJDUMP" = x; then
5489    OBJDUMP="false"
5490  else
5491    case $cross_compiling:$ac_tool_warned in
5492yes:)
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5495ac_tool_warned=yes ;;
5496esac
5497    OBJDUMP=$ac_ct_OBJDUMP
5498  fi
5499else
5500  OBJDUMP="$ac_cv_prog_OBJDUMP"
5501fi
5502
5503test -z "$OBJDUMP" && OBJDUMP=objdump
5504
5505
5506
5507
5508
5509
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5511$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5512if ${lt_cv_deplibs_check_method+:} false; then :
5513  $as_echo_n "(cached) " >&6
5514else
5515  lt_cv_file_magic_cmd='$MAGIC_CMD'
5516lt_cv_file_magic_test_file=
5517lt_cv_deplibs_check_method='unknown'
5518# Need to set the preceding variable on all platforms that support
5519# interlibrary dependencies.
5520# 'none' -- dependencies not supported.
5521# `unknown' -- same as none, but documents that we really don't know.
5522# 'pass_all' -- all dependencies passed with no checks.
5523# 'test_compile' -- check by making test program.
5524# 'file_magic [[regex]]' -- check by looking for files in library path
5525# which responds to the $file_magic_cmd with a given extended regex.
5526# If you have `file' or equivalent on your system and you're not sure
5527# whether `pass_all' will *always* work, you probably want this one.
5528
5529case $host_os in
5530aix[4-9]*)
5531  lt_cv_deplibs_check_method=pass_all
5532  ;;
5533
5534beos*)
5535  lt_cv_deplibs_check_method=pass_all
5536  ;;
5537
5538bsdi[45]*)
5539  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5540  lt_cv_file_magic_cmd='/usr/bin/file -L'
5541  lt_cv_file_magic_test_file=/shlib/libc.so
5542  ;;
5543
5544cygwin*)
5545  # func_win32_libid is a shell function defined in ltmain.sh
5546  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5547  lt_cv_file_magic_cmd='func_win32_libid'
5548  ;;
5549
5550mingw* | pw32*)
5551  # Base MSYS/MinGW do not provide the 'file' command needed by
5552  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5553  # unless we find 'file', for example because we are cross-compiling.
5554  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5555  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5556    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5557    lt_cv_file_magic_cmd='func_win32_libid'
5558  else
5559    # Keep this pattern in sync with the one in func_win32_libid.
5560    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5561    lt_cv_file_magic_cmd='$OBJDUMP -f'
5562  fi
5563  ;;
5564
5565cegcc*)
5566  # use the weaker test based on 'objdump'. See mingw*.
5567  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5568  lt_cv_file_magic_cmd='$OBJDUMP -f'
5569  ;;
5570
5571darwin* | rhapsody*)
5572  lt_cv_deplibs_check_method=pass_all
5573  ;;
5574
5575freebsd* | dragonfly*)
5576  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5577    case $host_cpu in
5578    i*86 )
5579      # Not sure whether the presence of OpenBSD here was a mistake.
5580      # Let's accept both of them until this is cleared up.
5581      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5582      lt_cv_file_magic_cmd=/usr/bin/file
5583      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5584      ;;
5585    esac
5586  else
5587    lt_cv_deplibs_check_method=pass_all
5588  fi
5589  ;;
5590
5591haiku*)
5592  lt_cv_deplibs_check_method=pass_all
5593  ;;
5594
5595hpux10.20* | hpux11*)
5596  lt_cv_file_magic_cmd=/usr/bin/file
5597  case $host_cpu in
5598  ia64*)
5599    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5600    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5601    ;;
5602  hppa*64*)
5603    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]'
5604    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5605    ;;
5606  *)
5607    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5608    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5609    ;;
5610  esac
5611  ;;
5612
5613interix[3-9]*)
5614  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5615  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5616  ;;
5617
5618irix5* | irix6* | nonstopux*)
5619  case $LD in
5620  *-32|*"-32 ") libmagic=32-bit;;
5621  *-n32|*"-n32 ") libmagic=N32;;
5622  *-64|*"-64 ") libmagic=64-bit;;
5623  *) libmagic=never-match;;
5624  esac
5625  lt_cv_deplibs_check_method=pass_all
5626  ;;
5627
5628# This must be glibc/ELF.
5629linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5630  lt_cv_deplibs_check_method=pass_all
5631  ;;
5632
5633netbsd* | netbsdelf*-gnu)
5634  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5635    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5636  else
5637    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5638  fi
5639  ;;
5640
5641newos6*)
5642  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5643  lt_cv_file_magic_cmd=/usr/bin/file
5644  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5645  ;;
5646
5647*nto* | *qnx*)
5648  lt_cv_deplibs_check_method=pass_all
5649  ;;
5650
5651openbsd*)
5652  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5653    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5654  else
5655    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5656  fi
5657  ;;
5658
5659osf3* | osf4* | osf5*)
5660  lt_cv_deplibs_check_method=pass_all
5661  ;;
5662
5663rdos*)
5664  lt_cv_deplibs_check_method=pass_all
5665  ;;
5666
5667solaris*)
5668  lt_cv_deplibs_check_method=pass_all
5669  ;;
5670
5671sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5672  lt_cv_deplibs_check_method=pass_all
5673  ;;
5674
5675sysv4 | sysv4.3*)
5676  case $host_vendor in
5677  motorola)
5678    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]'
5679    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5680    ;;
5681  ncr)
5682    lt_cv_deplibs_check_method=pass_all
5683    ;;
5684  sequent)
5685    lt_cv_file_magic_cmd='/bin/file'
5686    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5687    ;;
5688  sni)
5689    lt_cv_file_magic_cmd='/bin/file'
5690    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5691    lt_cv_file_magic_test_file=/lib/libc.so
5692    ;;
5693  siemens)
5694    lt_cv_deplibs_check_method=pass_all
5695    ;;
5696  pc)
5697    lt_cv_deplibs_check_method=pass_all
5698    ;;
5699  esac
5700  ;;
5701
5702tpf*)
5703  lt_cv_deplibs_check_method=pass_all
5704  ;;
5705esac
5706
5707fi
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5709$as_echo "$lt_cv_deplibs_check_method" >&6; }
5710
5711file_magic_glob=
5712want_nocaseglob=no
5713if test "$build" = "$host"; then
5714  case $host_os in
5715  mingw* | pw32*)
5716    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5717      want_nocaseglob=yes
5718    else
5719      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5720    fi
5721    ;;
5722  esac
5723fi
5724
5725file_magic_cmd=$lt_cv_file_magic_cmd
5726deplibs_check_method=$lt_cv_deplibs_check_method
5727test -z "$deplibs_check_method" && deplibs_check_method=unknown
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750if test -n "$ac_tool_prefix"; then
5751  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5752set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754$as_echo_n "checking for $ac_word... " >&6; }
5755if ${ac_cv_prog_DLLTOOL+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758  if test -n "$DLLTOOL"; then
5759  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5760else
5761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762for as_dir in $PATH
5763do
5764  IFS=$as_save_IFS
5765  test -z "$as_dir" && as_dir=.
5766    for ac_exec_ext in '' $ac_executable_extensions; do
5767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770    break 2
5771  fi
5772done
5773  done
5774IFS=$as_save_IFS
5775
5776fi
5777fi
5778DLLTOOL=$ac_cv_prog_DLLTOOL
5779if test -n "$DLLTOOL"; then
5780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5781$as_echo "$DLLTOOL" >&6; }
5782else
5783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784$as_echo "no" >&6; }
5785fi
5786
5787
5788fi
5789if test -z "$ac_cv_prog_DLLTOOL"; then
5790  ac_ct_DLLTOOL=$DLLTOOL
5791  # Extract the first word of "dlltool", so it can be a program name with args.
5792set dummy dlltool; ac_word=$2
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794$as_echo_n "checking for $ac_word... " >&6; }
5795if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5796  $as_echo_n "(cached) " >&6
5797else
5798  if test -n "$ac_ct_DLLTOOL"; then
5799  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5800else
5801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804  IFS=$as_save_IFS
5805  test -z "$as_dir" && as_dir=.
5806    for ac_exec_ext in '' $ac_executable_extensions; do
5807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810    break 2
5811  fi
5812done
5813  done
5814IFS=$as_save_IFS
5815
5816fi
5817fi
5818ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5819if test -n "$ac_ct_DLLTOOL"; then
5820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5821$as_echo "$ac_ct_DLLTOOL" >&6; }
5822else
5823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824$as_echo "no" >&6; }
5825fi
5826
5827  if test "x$ac_ct_DLLTOOL" = x; then
5828    DLLTOOL="false"
5829  else
5830    case $cross_compiling:$ac_tool_warned in
5831yes:)
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5834ac_tool_warned=yes ;;
5835esac
5836    DLLTOOL=$ac_ct_DLLTOOL
5837  fi
5838else
5839  DLLTOOL="$ac_cv_prog_DLLTOOL"
5840fi
5841
5842test -z "$DLLTOOL" && DLLTOOL=dlltool
5843
5844
5845
5846
5847
5848
5849
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5851$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5852if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5853  $as_echo_n "(cached) " >&6
5854else
5855  lt_cv_sharedlib_from_linklib_cmd='unknown'
5856
5857case $host_os in
5858cygwin* | mingw* | pw32* | cegcc*)
5859  # two different shell functions defined in ltmain.sh
5860  # decide which to use based on capabilities of $DLLTOOL
5861  case `$DLLTOOL --help 2>&1` in
5862  *--identify-strict*)
5863    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5864    ;;
5865  *)
5866    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5867    ;;
5868  esac
5869  ;;
5870*)
5871  # fallback: assume linklib IS sharedlib
5872  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5873  ;;
5874esac
5875
5876fi
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5878$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5879sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5880test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5881
5882
5883
5884
5885
5886
5887
5888if test -n "$ac_tool_prefix"; then
5889  for ac_prog in ar
5890  do
5891    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5892set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894$as_echo_n "checking for $ac_word... " >&6; }
5895if ${ac_cv_prog_AR+:} false; then :
5896  $as_echo_n "(cached) " >&6
5897else
5898  if test -n "$AR"; then
5899  ac_cv_prog_AR="$AR" # Let the user override the test.
5900else
5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902for as_dir in $PATH
5903do
5904  IFS=$as_save_IFS
5905  test -z "$as_dir" && as_dir=.
5906    for ac_exec_ext in '' $ac_executable_extensions; do
5907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910    break 2
5911  fi
5912done
5913  done
5914IFS=$as_save_IFS
5915
5916fi
5917fi
5918AR=$ac_cv_prog_AR
5919if test -n "$AR"; then
5920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5921$as_echo "$AR" >&6; }
5922else
5923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924$as_echo "no" >&6; }
5925fi
5926
5927
5928    test -n "$AR" && break
5929  done
5930fi
5931if test -z "$AR"; then
5932  ac_ct_AR=$AR
5933  for ac_prog in ar
5934do
5935  # Extract the first word of "$ac_prog", so it can be a program name with args.
5936set dummy $ac_prog; ac_word=$2
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938$as_echo_n "checking for $ac_word... " >&6; }
5939if ${ac_cv_prog_ac_ct_AR+:} false; then :
5940  $as_echo_n "(cached) " >&6
5941else
5942  if test -n "$ac_ct_AR"; then
5943  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5944else
5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH
5947do
5948  IFS=$as_save_IFS
5949  test -z "$as_dir" && as_dir=.
5950    for ac_exec_ext in '' $ac_executable_extensions; do
5951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952    ac_cv_prog_ac_ct_AR="$ac_prog"
5953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954    break 2
5955  fi
5956done
5957  done
5958IFS=$as_save_IFS
5959
5960fi
5961fi
5962ac_ct_AR=$ac_cv_prog_ac_ct_AR
5963if test -n "$ac_ct_AR"; then
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5965$as_echo "$ac_ct_AR" >&6; }
5966else
5967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968$as_echo "no" >&6; }
5969fi
5970
5971
5972  test -n "$ac_ct_AR" && break
5973done
5974
5975  if test "x$ac_ct_AR" = x; then
5976    AR="false"
5977  else
5978    case $cross_compiling:$ac_tool_warned in
5979yes:)
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982ac_tool_warned=yes ;;
5983esac
5984    AR=$ac_ct_AR
5985  fi
5986fi
5987
5988: ${AR=ar}
5989: ${AR_FLAGS=cru}
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6002$as_echo_n "checking for archiver @FILE support... " >&6; }
6003if ${lt_cv_ar_at_file+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  lt_cv_ar_at_file=no
6007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h.  */
6009
6010int
6011main ()
6012{
6013
6014  ;
6015  return 0;
6016}
6017_ACEOF
6018if ac_fn_c_try_compile "$LINENO"; then :
6019  echo conftest.$ac_objext > conftest.lst
6020      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6021      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6022  (eval $lt_ar_try) 2>&5
6023  ac_status=$?
6024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6025  test $ac_status = 0; }
6026      if test "$ac_status" -eq 0; then
6027	# Ensure the archiver fails upon bogus file names.
6028	rm -f conftest.$ac_objext libconftest.a
6029	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6030  (eval $lt_ar_try) 2>&5
6031  ac_status=$?
6032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6033  test $ac_status = 0; }
6034	if test "$ac_status" -ne 0; then
6035          lt_cv_ar_at_file=@
6036        fi
6037      fi
6038      rm -f conftest.* libconftest.a
6039
6040fi
6041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042
6043fi
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6045$as_echo "$lt_cv_ar_at_file" >&6; }
6046
6047if test "x$lt_cv_ar_at_file" = xno; then
6048  archiver_list_spec=
6049else
6050  archiver_list_spec=$lt_cv_ar_at_file
6051fi
6052
6053
6054
6055
6056
6057
6058
6059if test -n "$ac_tool_prefix"; then
6060  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6061set dummy ${ac_tool_prefix}strip; ac_word=$2
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063$as_echo_n "checking for $ac_word... " >&6; }
6064if ${ac_cv_prog_STRIP+:} false; then :
6065  $as_echo_n "(cached) " >&6
6066else
6067  if test -n "$STRIP"; then
6068  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6069else
6070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071for as_dir in $PATH
6072do
6073  IFS=$as_save_IFS
6074  test -z "$as_dir" && as_dir=.
6075    for ac_exec_ext in '' $ac_executable_extensions; do
6076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079    break 2
6080  fi
6081done
6082  done
6083IFS=$as_save_IFS
6084
6085fi
6086fi
6087STRIP=$ac_cv_prog_STRIP
6088if test -n "$STRIP"; then
6089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6090$as_echo "$STRIP" >&6; }
6091else
6092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093$as_echo "no" >&6; }
6094fi
6095
6096
6097fi
6098if test -z "$ac_cv_prog_STRIP"; then
6099  ac_ct_STRIP=$STRIP
6100  # Extract the first word of "strip", so it can be a program name with args.
6101set dummy strip; ac_word=$2
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103$as_echo_n "checking for $ac_word... " >&6; }
6104if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6105  $as_echo_n "(cached) " >&6
6106else
6107  if test -n "$ac_ct_STRIP"; then
6108  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6109else
6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111for as_dir in $PATH
6112do
6113  IFS=$as_save_IFS
6114  test -z "$as_dir" && as_dir=.
6115    for ac_exec_ext in '' $ac_executable_extensions; do
6116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6117    ac_cv_prog_ac_ct_STRIP="strip"
6118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119    break 2
6120  fi
6121done
6122  done
6123IFS=$as_save_IFS
6124
6125fi
6126fi
6127ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6128if test -n "$ac_ct_STRIP"; then
6129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6130$as_echo "$ac_ct_STRIP" >&6; }
6131else
6132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133$as_echo "no" >&6; }
6134fi
6135
6136  if test "x$ac_ct_STRIP" = x; then
6137    STRIP=":"
6138  else
6139    case $cross_compiling:$ac_tool_warned in
6140yes:)
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143ac_tool_warned=yes ;;
6144esac
6145    STRIP=$ac_ct_STRIP
6146  fi
6147else
6148  STRIP="$ac_cv_prog_STRIP"
6149fi
6150
6151test -z "$STRIP" && STRIP=:
6152
6153
6154
6155
6156
6157
6158if test -n "$ac_tool_prefix"; then
6159  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6160set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162$as_echo_n "checking for $ac_word... " >&6; }
6163if ${ac_cv_prog_RANLIB+:} false; then :
6164  $as_echo_n "(cached) " >&6
6165else
6166  if test -n "$RANLIB"; then
6167  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6168else
6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH
6171do
6172  IFS=$as_save_IFS
6173  test -z "$as_dir" && as_dir=.
6174    for ac_exec_ext in '' $ac_executable_extensions; do
6175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178    break 2
6179  fi
6180done
6181  done
6182IFS=$as_save_IFS
6183
6184fi
6185fi
6186RANLIB=$ac_cv_prog_RANLIB
6187if test -n "$RANLIB"; then
6188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6189$as_echo "$RANLIB" >&6; }
6190else
6191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192$as_echo "no" >&6; }
6193fi
6194
6195
6196fi
6197if test -z "$ac_cv_prog_RANLIB"; then
6198  ac_ct_RANLIB=$RANLIB
6199  # Extract the first word of "ranlib", so it can be a program name with args.
6200set dummy ranlib; ac_word=$2
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202$as_echo_n "checking for $ac_word... " >&6; }
6203if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6204  $as_echo_n "(cached) " >&6
6205else
6206  if test -n "$ac_ct_RANLIB"; then
6207  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212  IFS=$as_save_IFS
6213  test -z "$as_dir" && as_dir=.
6214    for ac_exec_ext in '' $ac_executable_extensions; do
6215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216    ac_cv_prog_ac_ct_RANLIB="ranlib"
6217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218    break 2
6219  fi
6220done
6221  done
6222IFS=$as_save_IFS
6223
6224fi
6225fi
6226ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6227if test -n "$ac_ct_RANLIB"; then
6228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6229$as_echo "$ac_ct_RANLIB" >&6; }
6230else
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232$as_echo "no" >&6; }
6233fi
6234
6235  if test "x$ac_ct_RANLIB" = x; then
6236    RANLIB=":"
6237  else
6238    case $cross_compiling:$ac_tool_warned in
6239yes:)
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6242ac_tool_warned=yes ;;
6243esac
6244    RANLIB=$ac_ct_RANLIB
6245  fi
6246else
6247  RANLIB="$ac_cv_prog_RANLIB"
6248fi
6249
6250test -z "$RANLIB" && RANLIB=:
6251
6252
6253
6254
6255
6256
6257# Determine commands to create old-style static archives.
6258old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6259old_postinstall_cmds='chmod 644 $oldlib'
6260old_postuninstall_cmds=
6261
6262if test -n "$RANLIB"; then
6263  case $host_os in
6264  openbsd*)
6265    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6266    ;;
6267  *)
6268    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6269    ;;
6270  esac
6271  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6272fi
6273
6274case $host_os in
6275  darwin*)
6276    lock_old_archive_extraction=yes ;;
6277  *)
6278    lock_old_archive_extraction=no ;;
6279esac
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319# If no C compiler was specified, use CC.
6320LTCC=${LTCC-"$CC"}
6321
6322# If no C compiler flags were specified, use CFLAGS.
6323LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6324
6325# Allow CC to be a program name with arguments.
6326compiler=$CC
6327
6328
6329# Check for command to grab the raw symbol name followed by C symbol from nm.
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6331$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6332if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6333  $as_echo_n "(cached) " >&6
6334else
6335
6336# These are sane defaults that work on at least a few old systems.
6337# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6338
6339# Character class describing NM global symbol codes.
6340symcode='[BCDEGRST]'
6341
6342# Regexp to match symbols that can be accessed directly from C.
6343sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6344
6345# Define system-specific variables.
6346case $host_os in
6347aix*)
6348  symcode='[BCDT]'
6349  ;;
6350cygwin* | mingw* | pw32* | cegcc*)
6351  symcode='[ABCDGISTW]'
6352  ;;
6353hpux*)
6354  if test "$host_cpu" = ia64; then
6355    symcode='[ABCDEGRST]'
6356  fi
6357  ;;
6358irix* | nonstopux*)
6359  symcode='[BCDEGRST]'
6360  ;;
6361osf*)
6362  symcode='[BCDEGQRST]'
6363  ;;
6364solaris*)
6365  symcode='[BDRT]'
6366  ;;
6367sco3.2v5*)
6368  symcode='[DT]'
6369  ;;
6370sysv4.2uw2*)
6371  symcode='[DT]'
6372  ;;
6373sysv5* | sco5v6* | unixware* | OpenUNIX*)
6374  symcode='[ABDT]'
6375  ;;
6376sysv4)
6377  symcode='[DFNSTU]'
6378  ;;
6379esac
6380
6381# If we're using GNU nm, then use its standard symbol codes.
6382case `$NM -V 2>&1` in
6383*GNU* | *'with BFD'*)
6384  symcode='[ABCDGIRSTW]' ;;
6385esac
6386
6387# Transform an extracted symbol line into a proper C declaration.
6388# Some systems (esp. on ia64) link data and code symbols differently,
6389# so use this general approach.
6390lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6391
6392# Transform an extracted symbol line into symbol name and symbol address
6393lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6394lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6395
6396# Handle CRLF in mingw tool chain
6397opt_cr=
6398case $build_os in
6399mingw*)
6400  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6401  ;;
6402esac
6403
6404# Try without a prefix underscore, then with it.
6405for ac_symprfx in "" "_"; do
6406
6407  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6408  symxfrm="\\1 $ac_symprfx\\2 \\2"
6409
6410  # Write the raw and C identifiers.
6411  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6412    # Fake it for dumpbin and say T for any non-static function
6413    # and D for any global variable.
6414    # Also find C++ and __fastcall symbols from MSVC++,
6415    # which start with @ or ?.
6416    lt_cv_sys_global_symbol_pipe="$AWK '"\
6417"     {last_section=section; section=\$ 3};"\
6418"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6419"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6420"     \$ 0!~/External *\|/{next};"\
6421"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6422"     {if(hide[section]) next};"\
6423"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6424"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6425"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6426"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6427"     ' prfx=^$ac_symprfx"
6428  else
6429    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6430  fi
6431  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6432
6433  # Check to see that the pipe works correctly.
6434  pipe_works=no
6435
6436  rm -f conftest*
6437  cat > conftest.$ac_ext <<_LT_EOF
6438#ifdef __cplusplus
6439extern "C" {
6440#endif
6441char nm_test_var;
6442void nm_test_func(void);
6443void nm_test_func(void){}
6444#ifdef __cplusplus
6445}
6446#endif
6447int main(){nm_test_var='a';nm_test_func();return(0);}
6448_LT_EOF
6449
6450  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6451  (eval $ac_compile) 2>&5
6452  ac_status=$?
6453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454  test $ac_status = 0; }; then
6455    # Now try to grab the symbols.
6456    nlist=conftest.nm
6457    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6458  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6459  ac_status=$?
6460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6461  test $ac_status = 0; } && test -s "$nlist"; then
6462      # Try sorting and uniquifying the output.
6463      if sort "$nlist" | uniq > "$nlist"T; then
6464	mv -f "$nlist"T "$nlist"
6465      else
6466	rm -f "$nlist"T
6467      fi
6468
6469      # Make sure that we snagged all the symbols we need.
6470      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6471	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6472	  cat <<_LT_EOF > conftest.$ac_ext
6473/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6474#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6475/* DATA imports from DLLs on WIN32 con't be const, because runtime
6476   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6477# define LT_DLSYM_CONST
6478#elif defined(__osf__)
6479/* This system does not cope well with relocations in const data.  */
6480# define LT_DLSYM_CONST
6481#else
6482# define LT_DLSYM_CONST const
6483#endif
6484
6485#ifdef __cplusplus
6486extern "C" {
6487#endif
6488
6489_LT_EOF
6490	  # Now generate the symbol file.
6491	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6492
6493	  cat <<_LT_EOF >> conftest.$ac_ext
6494
6495/* The mapping between symbol names and symbols.  */
6496LT_DLSYM_CONST struct {
6497  const char *name;
6498  void       *address;
6499}
6500lt__PROGRAM__LTX_preloaded_symbols[] =
6501{
6502  { "@PROGRAM@", (void *) 0 },
6503_LT_EOF
6504	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6505	  cat <<\_LT_EOF >> conftest.$ac_ext
6506  {0, (void *) 0}
6507};
6508
6509/* This works around a problem in FreeBSD linker */
6510#ifdef FREEBSD_WORKAROUND
6511static const void *lt_preloaded_setup() {
6512  return lt__PROGRAM__LTX_preloaded_symbols;
6513}
6514#endif
6515
6516#ifdef __cplusplus
6517}
6518#endif
6519_LT_EOF
6520	  # Now try linking the two files.
6521	  mv conftest.$ac_objext conftstm.$ac_objext
6522	  lt_globsym_save_LIBS=$LIBS
6523	  lt_globsym_save_CFLAGS=$CFLAGS
6524	  LIBS="conftstm.$ac_objext"
6525	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6526	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6527  (eval $ac_link) 2>&5
6528  ac_status=$?
6529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6530  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6531	    pipe_works=yes
6532	  fi
6533	  LIBS=$lt_globsym_save_LIBS
6534	  CFLAGS=$lt_globsym_save_CFLAGS
6535	else
6536	  echo "cannot find nm_test_func in $nlist" >&5
6537	fi
6538      else
6539	echo "cannot find nm_test_var in $nlist" >&5
6540      fi
6541    else
6542      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6543    fi
6544  else
6545    echo "$progname: failed program was:" >&5
6546    cat conftest.$ac_ext >&5
6547  fi
6548  rm -rf conftest* conftst*
6549
6550  # Do not use the global_symbol_pipe unless it works.
6551  if test "$pipe_works" = yes; then
6552    break
6553  else
6554    lt_cv_sys_global_symbol_pipe=
6555  fi
6556done
6557
6558fi
6559
6560if test -z "$lt_cv_sys_global_symbol_pipe"; then
6561  lt_cv_sys_global_symbol_to_cdecl=
6562fi
6563if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6565$as_echo "failed" >&6; }
6566else
6567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6568$as_echo "ok" >&6; }
6569fi
6570
6571# Response file support.
6572if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6573  nm_file_list_spec='@'
6574elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6575  nm_file_list_spec='@'
6576fi
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6605$as_echo_n "checking for sysroot... " >&6; }
6606
6607# Check whether --with-sysroot was given.
6608if test "${with_sysroot+set}" = set; then :
6609  withval=$with_sysroot;
6610else
6611  with_sysroot=no
6612fi
6613
6614
6615lt_sysroot=
6616case ${with_sysroot} in #(
6617 yes)
6618   if test "$GCC" = yes; then
6619     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6620   fi
6621   ;; #(
6622 /*)
6623   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6624   ;; #(
6625 no|'')
6626   ;; #(
6627 *)
6628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6629$as_echo "${with_sysroot}" >&6; }
6630   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6631   ;;
6632esac
6633
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6635$as_echo "${lt_sysroot:-no}" >&6; }
6636
6637
6638
6639
6640
6641# Check whether --enable-libtool-lock was given.
6642if test "${enable_libtool_lock+set}" = set; then :
6643  enableval=$enable_libtool_lock;
6644fi
6645
6646test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6647
6648# Some flags need to be propagated to the compiler or linker for good
6649# libtool support.
6650case $host in
6651ia64-*-hpux*)
6652  # Find out which ABI we are using.
6653  echo 'int i;' > conftest.$ac_ext
6654  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6655  (eval $ac_compile) 2>&5
6656  ac_status=$?
6657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6658  test $ac_status = 0; }; then
6659    case `/usr/bin/file conftest.$ac_objext` in
6660      *ELF-32*)
6661	HPUX_IA64_MODE="32"
6662	;;
6663      *ELF-64*)
6664	HPUX_IA64_MODE="64"
6665	;;
6666    esac
6667  fi
6668  rm -rf conftest*
6669  ;;
6670*-*-irix6*)
6671  # Find out which ABI we are using.
6672  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6673  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6674  (eval $ac_compile) 2>&5
6675  ac_status=$?
6676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677  test $ac_status = 0; }; then
6678    if test "$lt_cv_prog_gnu_ld" = yes; then
6679      case `/usr/bin/file conftest.$ac_objext` in
6680	*32-bit*)
6681	  LD="${LD-ld} -melf32bsmip"
6682	  ;;
6683	*N32*)
6684	  LD="${LD-ld} -melf32bmipn32"
6685	  ;;
6686	*64-bit*)
6687	  LD="${LD-ld} -melf64bmip"
6688	;;
6689      esac
6690    else
6691      case `/usr/bin/file conftest.$ac_objext` in
6692	*32-bit*)
6693	  LD="${LD-ld} -32"
6694	  ;;
6695	*N32*)
6696	  LD="${LD-ld} -n32"
6697	  ;;
6698	*64-bit*)
6699	  LD="${LD-ld} -64"
6700	  ;;
6701      esac
6702    fi
6703  fi
6704  rm -rf conftest*
6705  ;;
6706
6707x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6708s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6709  # Find out which ABI we are using.
6710  echo 'int i;' > conftest.$ac_ext
6711  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6712  (eval $ac_compile) 2>&5
6713  ac_status=$?
6714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715  test $ac_status = 0; }; then
6716    case `/usr/bin/file conftest.o` in
6717      *32-bit*)
6718	case $host in
6719	  x86_64-*kfreebsd*-gnu)
6720	    LD="${LD-ld} -m elf_i386_fbsd"
6721	    ;;
6722	  x86_64-*linux*)
6723	    case `/usr/bin/file conftest.o` in
6724	      *x86-64*)
6725		LD="${LD-ld} -m elf32_x86_64"
6726		;;
6727	      *)
6728		LD="${LD-ld} -m elf_i386"
6729		;;
6730	    esac
6731	    ;;
6732	  powerpc64le-*)
6733	    LD="${LD-ld} -m elf32lppclinux"
6734	    ;;
6735	  powerpc64-*)
6736	    LD="${LD-ld} -m elf32ppclinux"
6737	    ;;
6738	  s390x-*linux*)
6739	    LD="${LD-ld} -m elf_s390"
6740	    ;;
6741	  sparc64-*linux*)
6742	    LD="${LD-ld} -m elf32_sparc"
6743	    ;;
6744	esac
6745	;;
6746      *64-bit*)
6747	case $host in
6748	  x86_64-*kfreebsd*-gnu)
6749	    LD="${LD-ld} -m elf_x86_64_fbsd"
6750	    ;;
6751	  x86_64-*linux*)
6752	    LD="${LD-ld} -m elf_x86_64"
6753	    ;;
6754	  powerpcle-*)
6755	    LD="${LD-ld} -m elf64lppc"
6756	    ;;
6757	  powerpc-*)
6758	    LD="${LD-ld} -m elf64ppc"
6759	    ;;
6760	  s390*-*linux*|s390*-*tpf*)
6761	    LD="${LD-ld} -m elf64_s390"
6762	    ;;
6763	  sparc*-*linux*)
6764	    LD="${LD-ld} -m elf64_sparc"
6765	    ;;
6766	esac
6767	;;
6768    esac
6769  fi
6770  rm -rf conftest*
6771  ;;
6772
6773*-*-sco3.2v5*)
6774  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6775  SAVE_CFLAGS="$CFLAGS"
6776  CFLAGS="$CFLAGS -belf"
6777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6778$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6779if ${lt_cv_cc_needs_belf+:} false; then :
6780  $as_echo_n "(cached) " >&6
6781else
6782  ac_ext=c
6783ac_cpp='$CPP $CPPFLAGS'
6784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786ac_compiler_gnu=$ac_cv_c_compiler_gnu
6787
6788     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789/* end confdefs.h.  */
6790
6791int
6792main ()
6793{
6794
6795  ;
6796  return 0;
6797}
6798_ACEOF
6799if ac_fn_c_try_link "$LINENO"; then :
6800  lt_cv_cc_needs_belf=yes
6801else
6802  lt_cv_cc_needs_belf=no
6803fi
6804rm -f core conftest.err conftest.$ac_objext \
6805    conftest$ac_exeext conftest.$ac_ext
6806     ac_ext=c
6807ac_cpp='$CPP $CPPFLAGS'
6808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810ac_compiler_gnu=$ac_cv_c_compiler_gnu
6811
6812fi
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6814$as_echo "$lt_cv_cc_needs_belf" >&6; }
6815  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6816    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6817    CFLAGS="$SAVE_CFLAGS"
6818  fi
6819  ;;
6820*-*solaris*)
6821  # Find out which ABI we are using.
6822  echo 'int i;' > conftest.$ac_ext
6823  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6824  (eval $ac_compile) 2>&5
6825  ac_status=$?
6826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6827  test $ac_status = 0; }; then
6828    case `/usr/bin/file conftest.o` in
6829    *64-bit*)
6830      case $lt_cv_prog_gnu_ld in
6831      yes*)
6832        case $host in
6833        i?86-*-solaris*)
6834          LD="${LD-ld} -m elf_x86_64"
6835          ;;
6836        sparc*-*-solaris*)
6837          LD="${LD-ld} -m elf64_sparc"
6838          ;;
6839        esac
6840        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6841        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6842          LD="${LD-ld}_sol2"
6843        fi
6844        ;;
6845      *)
6846	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6847	  LD="${LD-ld} -64"
6848	fi
6849	;;
6850      esac
6851      ;;
6852    esac
6853  fi
6854  rm -rf conftest*
6855  ;;
6856esac
6857
6858need_locks="$enable_libtool_lock"
6859
6860if test -n "$ac_tool_prefix"; then
6861  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6862set dummy ${ac_tool_prefix}mt; ac_word=$2
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864$as_echo_n "checking for $ac_word... " >&6; }
6865if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6866  $as_echo_n "(cached) " >&6
6867else
6868  if test -n "$MANIFEST_TOOL"; then
6869  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6870else
6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874  IFS=$as_save_IFS
6875  test -z "$as_dir" && as_dir=.
6876    for ac_exec_ext in '' $ac_executable_extensions; do
6877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880    break 2
6881  fi
6882done
6883  done
6884IFS=$as_save_IFS
6885
6886fi
6887fi
6888MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6889if test -n "$MANIFEST_TOOL"; then
6890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6891$as_echo "$MANIFEST_TOOL" >&6; }
6892else
6893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894$as_echo "no" >&6; }
6895fi
6896
6897
6898fi
6899if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6900  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6901  # Extract the first word of "mt", so it can be a program name with args.
6902set dummy mt; ac_word=$2
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904$as_echo_n "checking for $ac_word... " >&6; }
6905if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6906  $as_echo_n "(cached) " >&6
6907else
6908  if test -n "$ac_ct_MANIFEST_TOOL"; then
6909  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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  test -z "$as_dir" && as_dir=.
6916    for ac_exec_ext in '' $ac_executable_extensions; do
6917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920    break 2
6921  fi
6922done
6923  done
6924IFS=$as_save_IFS
6925
6926fi
6927fi
6928ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6929if test -n "$ac_ct_MANIFEST_TOOL"; then
6930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6931$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6932else
6933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934$as_echo "no" >&6; }
6935fi
6936
6937  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6938    MANIFEST_TOOL=":"
6939  else
6940    case $cross_compiling:$ac_tool_warned in
6941yes:)
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944ac_tool_warned=yes ;;
6945esac
6946    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6947  fi
6948else
6949  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6950fi
6951
6952test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6954$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6955if ${lt_cv_path_mainfest_tool+:} false; then :
6956  $as_echo_n "(cached) " >&6
6957else
6958  lt_cv_path_mainfest_tool=no
6959  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6960  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6961  cat conftest.err >&5
6962  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6963    lt_cv_path_mainfest_tool=yes
6964  fi
6965  rm -f conftest*
6966fi
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6968$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6969if test "x$lt_cv_path_mainfest_tool" != xyes; then
6970  MANIFEST_TOOL=:
6971fi
6972
6973
6974
6975
6976
6977
6978  case $host_os in
6979    rhapsody* | darwin*)
6980    if test -n "$ac_tool_prefix"; then
6981  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6982set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984$as_echo_n "checking for $ac_word... " >&6; }
6985if ${ac_cv_prog_DSYMUTIL+:} false; then :
6986  $as_echo_n "(cached) " >&6
6987else
6988  if test -n "$DSYMUTIL"; then
6989  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6990else
6991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994  IFS=$as_save_IFS
6995  test -z "$as_dir" && as_dir=.
6996    for ac_exec_ext in '' $ac_executable_extensions; do
6997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000    break 2
7001  fi
7002done
7003  done
7004IFS=$as_save_IFS
7005
7006fi
7007fi
7008DSYMUTIL=$ac_cv_prog_DSYMUTIL
7009if test -n "$DSYMUTIL"; then
7010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7011$as_echo "$DSYMUTIL" >&6; }
7012else
7013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014$as_echo "no" >&6; }
7015fi
7016
7017
7018fi
7019if test -z "$ac_cv_prog_DSYMUTIL"; then
7020  ac_ct_DSYMUTIL=$DSYMUTIL
7021  # Extract the first word of "dsymutil", so it can be a program name with args.
7022set dummy dsymutil; ac_word=$2
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024$as_echo_n "checking for $ac_word... " >&6; }
7025if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7026  $as_echo_n "(cached) " >&6
7027else
7028  if test -n "$ac_ct_DSYMUTIL"; then
7029  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034  IFS=$as_save_IFS
7035  test -z "$as_dir" && as_dir=.
7036    for ac_exec_ext in '' $ac_executable_extensions; do
7037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040    break 2
7041  fi
7042done
7043  done
7044IFS=$as_save_IFS
7045
7046fi
7047fi
7048ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7049if test -n "$ac_ct_DSYMUTIL"; then
7050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7051$as_echo "$ac_ct_DSYMUTIL" >&6; }
7052else
7053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054$as_echo "no" >&6; }
7055fi
7056
7057  if test "x$ac_ct_DSYMUTIL" = x; then
7058    DSYMUTIL=":"
7059  else
7060    case $cross_compiling:$ac_tool_warned in
7061yes:)
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7064ac_tool_warned=yes ;;
7065esac
7066    DSYMUTIL=$ac_ct_DSYMUTIL
7067  fi
7068else
7069  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7070fi
7071
7072    if test -n "$ac_tool_prefix"; then
7073  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7074set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076$as_echo_n "checking for $ac_word... " >&6; }
7077if ${ac_cv_prog_NMEDIT+:} false; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080  if test -n "$NMEDIT"; then
7081  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7082else
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086  IFS=$as_save_IFS
7087  test -z "$as_dir" && as_dir=.
7088    for ac_exec_ext in '' $ac_executable_extensions; do
7089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092    break 2
7093  fi
7094done
7095  done
7096IFS=$as_save_IFS
7097
7098fi
7099fi
7100NMEDIT=$ac_cv_prog_NMEDIT
7101if test -n "$NMEDIT"; then
7102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7103$as_echo "$NMEDIT" >&6; }
7104else
7105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106$as_echo "no" >&6; }
7107fi
7108
7109
7110fi
7111if test -z "$ac_cv_prog_NMEDIT"; then
7112  ac_ct_NMEDIT=$NMEDIT
7113  # Extract the first word of "nmedit", so it can be a program name with args.
7114set dummy nmedit; ac_word=$2
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116$as_echo_n "checking for $ac_word... " >&6; }
7117if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7118  $as_echo_n "(cached) " >&6
7119else
7120  if test -n "$ac_ct_NMEDIT"; then
7121  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7122else
7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126  IFS=$as_save_IFS
7127  test -z "$as_dir" && as_dir=.
7128    for ac_exec_ext in '' $ac_executable_extensions; do
7129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7130    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132    break 2
7133  fi
7134done
7135  done
7136IFS=$as_save_IFS
7137
7138fi
7139fi
7140ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7141if test -n "$ac_ct_NMEDIT"; then
7142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7143$as_echo "$ac_ct_NMEDIT" >&6; }
7144else
7145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146$as_echo "no" >&6; }
7147fi
7148
7149  if test "x$ac_ct_NMEDIT" = x; then
7150    NMEDIT=":"
7151  else
7152    case $cross_compiling:$ac_tool_warned in
7153yes:)
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7156ac_tool_warned=yes ;;
7157esac
7158    NMEDIT=$ac_ct_NMEDIT
7159  fi
7160else
7161  NMEDIT="$ac_cv_prog_NMEDIT"
7162fi
7163
7164    if test -n "$ac_tool_prefix"; then
7165  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7166set dummy ${ac_tool_prefix}lipo; ac_word=$2
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168$as_echo_n "checking for $ac_word... " >&6; }
7169if ${ac_cv_prog_LIPO+:} false; then :
7170  $as_echo_n "(cached) " >&6
7171else
7172  if test -n "$LIPO"; then
7173  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7174else
7175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176for as_dir in $PATH
7177do
7178  IFS=$as_save_IFS
7179  test -z "$as_dir" && as_dir=.
7180    for ac_exec_ext in '' $ac_executable_extensions; do
7181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7182    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184    break 2
7185  fi
7186done
7187  done
7188IFS=$as_save_IFS
7189
7190fi
7191fi
7192LIPO=$ac_cv_prog_LIPO
7193if test -n "$LIPO"; then
7194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7195$as_echo "$LIPO" >&6; }
7196else
7197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198$as_echo "no" >&6; }
7199fi
7200
7201
7202fi
7203if test -z "$ac_cv_prog_LIPO"; then
7204  ac_ct_LIPO=$LIPO
7205  # Extract the first word of "lipo", so it can be a program name with args.
7206set dummy lipo; ac_word=$2
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208$as_echo_n "checking for $ac_word... " >&6; }
7209if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7210  $as_echo_n "(cached) " >&6
7211else
7212  if test -n "$ac_ct_LIPO"; then
7213  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7214else
7215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218  IFS=$as_save_IFS
7219  test -z "$as_dir" && as_dir=.
7220    for ac_exec_ext in '' $ac_executable_extensions; do
7221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222    ac_cv_prog_ac_ct_LIPO="lipo"
7223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224    break 2
7225  fi
7226done
7227  done
7228IFS=$as_save_IFS
7229
7230fi
7231fi
7232ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7233if test -n "$ac_ct_LIPO"; then
7234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7235$as_echo "$ac_ct_LIPO" >&6; }
7236else
7237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238$as_echo "no" >&6; }
7239fi
7240
7241  if test "x$ac_ct_LIPO" = x; then
7242    LIPO=":"
7243  else
7244    case $cross_compiling:$ac_tool_warned in
7245yes:)
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7248ac_tool_warned=yes ;;
7249esac
7250    LIPO=$ac_ct_LIPO
7251  fi
7252else
7253  LIPO="$ac_cv_prog_LIPO"
7254fi
7255
7256    if test -n "$ac_tool_prefix"; then
7257  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7258set dummy ${ac_tool_prefix}otool; ac_word=$2
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260$as_echo_n "checking for $ac_word... " >&6; }
7261if ${ac_cv_prog_OTOOL+:} false; then :
7262  $as_echo_n "(cached) " >&6
7263else
7264  if test -n "$OTOOL"; then
7265  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7266else
7267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270  IFS=$as_save_IFS
7271  test -z "$as_dir" && as_dir=.
7272    for ac_exec_ext in '' $ac_executable_extensions; do
7273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276    break 2
7277  fi
7278done
7279  done
7280IFS=$as_save_IFS
7281
7282fi
7283fi
7284OTOOL=$ac_cv_prog_OTOOL
7285if test -n "$OTOOL"; then
7286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7287$as_echo "$OTOOL" >&6; }
7288else
7289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290$as_echo "no" >&6; }
7291fi
7292
7293
7294fi
7295if test -z "$ac_cv_prog_OTOOL"; then
7296  ac_ct_OTOOL=$OTOOL
7297  # Extract the first word of "otool", so it can be a program name with args.
7298set dummy otool; ac_word=$2
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300$as_echo_n "checking for $ac_word... " >&6; }
7301if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7302  $as_echo_n "(cached) " >&6
7303else
7304  if test -n "$ac_ct_OTOOL"; then
7305  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7306else
7307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310  IFS=$as_save_IFS
7311  test -z "$as_dir" && as_dir=.
7312    for ac_exec_ext in '' $ac_executable_extensions; do
7313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7314    ac_cv_prog_ac_ct_OTOOL="otool"
7315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316    break 2
7317  fi
7318done
7319  done
7320IFS=$as_save_IFS
7321
7322fi
7323fi
7324ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7325if test -n "$ac_ct_OTOOL"; then
7326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7327$as_echo "$ac_ct_OTOOL" >&6; }
7328else
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330$as_echo "no" >&6; }
7331fi
7332
7333  if test "x$ac_ct_OTOOL" = x; then
7334    OTOOL=":"
7335  else
7336    case $cross_compiling:$ac_tool_warned in
7337yes:)
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7340ac_tool_warned=yes ;;
7341esac
7342    OTOOL=$ac_ct_OTOOL
7343  fi
7344else
7345  OTOOL="$ac_cv_prog_OTOOL"
7346fi
7347
7348    if test -n "$ac_tool_prefix"; then
7349  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7350set dummy ${ac_tool_prefix}otool64; ac_word=$2
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352$as_echo_n "checking for $ac_word... " >&6; }
7353if ${ac_cv_prog_OTOOL64+:} false; then :
7354  $as_echo_n "(cached) " >&6
7355else
7356  if test -n "$OTOOL64"; then
7357  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7358else
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362  IFS=$as_save_IFS
7363  test -z "$as_dir" && as_dir=.
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_OTOOL64="${ac_tool_prefix}otool64"
7367    $as_echo "$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
7376OTOOL64=$ac_cv_prog_OTOOL64
7377if test -n "$OTOOL64"; then
7378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7379$as_echo "$OTOOL64" >&6; }
7380else
7381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382$as_echo "no" >&6; }
7383fi
7384
7385
7386fi
7387if test -z "$ac_cv_prog_OTOOL64"; then
7388  ac_ct_OTOOL64=$OTOOL64
7389  # Extract the first word of "otool64", so it can be a program name with args.
7390set dummy otool64; ac_word=$2
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392$as_echo_n "checking for $ac_word... " >&6; }
7393if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  if test -n "$ac_ct_OTOOL64"; then
7397  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7398else
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402  IFS=$as_save_IFS
7403  test -z "$as_dir" && as_dir=.
7404    for ac_exec_ext in '' $ac_executable_extensions; do
7405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406    ac_cv_prog_ac_ct_OTOOL64="otool64"
7407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408    break 2
7409  fi
7410done
7411  done
7412IFS=$as_save_IFS
7413
7414fi
7415fi
7416ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7417if test -n "$ac_ct_OTOOL64"; then
7418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7419$as_echo "$ac_ct_OTOOL64" >&6; }
7420else
7421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422$as_echo "no" >&6; }
7423fi
7424
7425  if test "x$ac_ct_OTOOL64" = x; then
7426    OTOOL64=":"
7427  else
7428    case $cross_compiling:$ac_tool_warned in
7429yes:)
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7432ac_tool_warned=yes ;;
7433esac
7434    OTOOL64=$ac_ct_OTOOL64
7435  fi
7436else
7437  OTOOL64="$ac_cv_prog_OTOOL64"
7438fi
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    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7467$as_echo_n "checking for -single_module linker flag... " >&6; }
7468if ${lt_cv_apple_cc_single_mod+:} false; then :
7469  $as_echo_n "(cached) " >&6
7470else
7471  lt_cv_apple_cc_single_mod=no
7472      if test -z "${LT_MULTI_MODULE}"; then
7473	# By default we will add the -single_module flag. You can override
7474	# by either setting the environment variable LT_MULTI_MODULE
7475	# non-empty at configure time, or by adding -multi_module to the
7476	# link flags.
7477	rm -rf libconftest.dylib*
7478	echo "int foo(void){return 1;}" > conftest.c
7479	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7480-dynamiclib -Wl,-single_module conftest.c" >&5
7481	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7482	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7483        _lt_result=$?
7484	# If there is a non-empty error log, and "single_module"
7485	# appears in it, assume the flag caused a linker warning
7486        if test -s conftest.err && $GREP single_module conftest.err; then
7487	  cat conftest.err >&5
7488	# Otherwise, if the output was created with a 0 exit code from
7489	# the compiler, it worked.
7490	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7491	  lt_cv_apple_cc_single_mod=yes
7492	else
7493	  cat conftest.err >&5
7494	fi
7495	rm -rf libconftest.dylib*
7496	rm -f conftest.*
7497      fi
7498fi
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7500$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7501
7502    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7503$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7504if ${lt_cv_ld_exported_symbols_list+:} false; then :
7505  $as_echo_n "(cached) " >&6
7506else
7507  lt_cv_ld_exported_symbols_list=no
7508      save_LDFLAGS=$LDFLAGS
7509      echo "_main" > conftest.sym
7510      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7511      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512/* end confdefs.h.  */
7513
7514int
7515main ()
7516{
7517
7518  ;
7519  return 0;
7520}
7521_ACEOF
7522if ac_fn_c_try_link "$LINENO"; then :
7523  lt_cv_ld_exported_symbols_list=yes
7524else
7525  lt_cv_ld_exported_symbols_list=no
7526fi
7527rm -f core conftest.err conftest.$ac_objext \
7528    conftest$ac_exeext conftest.$ac_ext
7529	LDFLAGS="$save_LDFLAGS"
7530
7531fi
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7533$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7534
7535    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7536$as_echo_n "checking for -force_load linker flag... " >&6; }
7537if ${lt_cv_ld_force_load+:} false; then :
7538  $as_echo_n "(cached) " >&6
7539else
7540  lt_cv_ld_force_load=no
7541      cat > conftest.c << _LT_EOF
7542int forced_loaded() { return 2;}
7543_LT_EOF
7544      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7545      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7546      echo "$AR cru libconftest.a conftest.o" >&5
7547      $AR cru libconftest.a conftest.o 2>&5
7548      echo "$RANLIB libconftest.a" >&5
7549      $RANLIB libconftest.a 2>&5
7550      cat > conftest.c << _LT_EOF
7551int main() { return 0;}
7552_LT_EOF
7553      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7554      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7555      _lt_result=$?
7556      if test -s conftest.err && $GREP force_load conftest.err; then
7557	cat conftest.err >&5
7558      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7559	lt_cv_ld_force_load=yes
7560      else
7561	cat conftest.err >&5
7562      fi
7563        rm -f conftest.err libconftest.a conftest conftest.c
7564        rm -rf conftest.dSYM
7565
7566fi
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7568$as_echo "$lt_cv_ld_force_load" >&6; }
7569    case $host_os in
7570    rhapsody* | darwin1.[012])
7571      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7572    darwin1.*)
7573      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7574    darwin*) # darwin 5.x on
7575      # if running on 10.5 or later, the deployment target defaults
7576      # to the OS version, if on x86, and 10.4, the deployment
7577      # target defaults to 10.4. Don't you love it?
7578      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7579	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7580	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7581	10.[012]*)
7582	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7583	10.*)
7584	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7585      esac
7586    ;;
7587  esac
7588    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7589      _lt_dar_single_mod='$single_module'
7590    fi
7591    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7592      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7593    else
7594      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7595    fi
7596    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7597      _lt_dsymutil='~$DSYMUTIL $lib || :'
7598    else
7599      _lt_dsymutil=
7600    fi
7601    ;;
7602  esac
7603
7604ac_ext=c
7605ac_cpp='$CPP $CPPFLAGS'
7606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7608ac_compiler_gnu=$ac_cv_c_compiler_gnu
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7610$as_echo_n "checking how to run the C preprocessor... " >&6; }
7611# On Suns, sometimes $CPP names a directory.
7612if test -n "$CPP" && test -d "$CPP"; then
7613  CPP=
7614fi
7615if test -z "$CPP"; then
7616  if ${ac_cv_prog_CPP+:} false; then :
7617  $as_echo_n "(cached) " >&6
7618else
7619      # Double quotes because CPP needs to be expanded
7620    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7621    do
7622      ac_preproc_ok=false
7623for ac_c_preproc_warn_flag in '' yes
7624do
7625  # Use a header file that comes with gcc, so configuring glibc
7626  # with a fresh cross-compiler works.
7627  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7628  # <limits.h> exists even on freestanding compilers.
7629  # On the NeXT, cc -E runs the code through the compiler's parser,
7630  # not just through cpp. "Syntax error" is here to catch this case.
7631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632/* end confdefs.h.  */
7633#ifdef __STDC__
7634# include <limits.h>
7635#else
7636# include <assert.h>
7637#endif
7638		     Syntax error
7639_ACEOF
7640if ac_fn_c_try_cpp "$LINENO"; then :
7641
7642else
7643  # Broken: fails on valid input.
7644continue
7645fi
7646rm -f conftest.err conftest.i conftest.$ac_ext
7647
7648  # OK, works on sane cases.  Now check whether nonexistent headers
7649  # can be detected and how.
7650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651/* end confdefs.h.  */
7652#include <ac_nonexistent.h>
7653_ACEOF
7654if ac_fn_c_try_cpp "$LINENO"; then :
7655  # Broken: success on invalid input.
7656continue
7657else
7658  # Passes both tests.
7659ac_preproc_ok=:
7660break
7661fi
7662rm -f conftest.err conftest.i conftest.$ac_ext
7663
7664done
7665# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7666rm -f conftest.i conftest.err conftest.$ac_ext
7667if $ac_preproc_ok; then :
7668  break
7669fi
7670
7671    done
7672    ac_cv_prog_CPP=$CPP
7673
7674fi
7675  CPP=$ac_cv_prog_CPP
7676else
7677  ac_cv_prog_CPP=$CPP
7678fi
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7680$as_echo "$CPP" >&6; }
7681ac_preproc_ok=false
7682for ac_c_preproc_warn_flag in '' yes
7683do
7684  # Use a header file that comes with gcc, so configuring glibc
7685  # with a fresh cross-compiler works.
7686  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7687  # <limits.h> exists even on freestanding compilers.
7688  # On the NeXT, cc -E runs the code through the compiler's parser,
7689  # not just through cpp. "Syntax error" is here to catch this case.
7690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691/* end confdefs.h.  */
7692#ifdef __STDC__
7693# include <limits.h>
7694#else
7695# include <assert.h>
7696#endif
7697		     Syntax error
7698_ACEOF
7699if ac_fn_c_try_cpp "$LINENO"; then :
7700
7701else
7702  # Broken: fails on valid input.
7703continue
7704fi
7705rm -f conftest.err conftest.i conftest.$ac_ext
7706
7707  # OK, works on sane cases.  Now check whether nonexistent headers
7708  # can be detected and how.
7709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h.  */
7711#include <ac_nonexistent.h>
7712_ACEOF
7713if ac_fn_c_try_cpp "$LINENO"; then :
7714  # Broken: success on invalid input.
7715continue
7716else
7717  # Passes both tests.
7718ac_preproc_ok=:
7719break
7720fi
7721rm -f conftest.err conftest.i conftest.$ac_ext
7722
7723done
7724# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7725rm -f conftest.i conftest.err conftest.$ac_ext
7726if $ac_preproc_ok; then :
7727
7728else
7729  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7731as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7732See \`config.log' for more details" "$LINENO" 5; }
7733fi
7734
7735ac_ext=c
7736ac_cpp='$CPP $CPPFLAGS'
7737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7739ac_compiler_gnu=$ac_cv_c_compiler_gnu
7740
7741
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7743$as_echo_n "checking for ANSI C header files... " >&6; }
7744if ${ac_cv_header_stdc+:} false; then :
7745  $as_echo_n "(cached) " >&6
7746else
7747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748/* end confdefs.h.  */
7749#include <stdlib.h>
7750#include <stdarg.h>
7751#include <string.h>
7752#include <float.h>
7753
7754int
7755main ()
7756{
7757
7758  ;
7759  return 0;
7760}
7761_ACEOF
7762if ac_fn_c_try_compile "$LINENO"; then :
7763  ac_cv_header_stdc=yes
7764else
7765  ac_cv_header_stdc=no
7766fi
7767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768
7769if test $ac_cv_header_stdc = yes; then
7770  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772/* end confdefs.h.  */
7773#include <string.h>
7774
7775_ACEOF
7776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7777  $EGREP "memchr" >/dev/null 2>&1; then :
7778
7779else
7780  ac_cv_header_stdc=no
7781fi
7782rm -f conftest*
7783
7784fi
7785
7786if test $ac_cv_header_stdc = yes; then
7787  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789/* end confdefs.h.  */
7790#include <stdlib.h>
7791
7792_ACEOF
7793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7794  $EGREP "free" >/dev/null 2>&1; then :
7795
7796else
7797  ac_cv_header_stdc=no
7798fi
7799rm -f conftest*
7800
7801fi
7802
7803if test $ac_cv_header_stdc = yes; then
7804  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7805  if test "$cross_compiling" = yes; then :
7806  :
7807else
7808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h.  */
7810#include <ctype.h>
7811#include <stdlib.h>
7812#if ((' ' & 0x0FF) == 0x020)
7813# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7814# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7815#else
7816# define ISLOWER(c) \
7817		   (('a' <= (c) && (c) <= 'i') \
7818		     || ('j' <= (c) && (c) <= 'r') \
7819		     || ('s' <= (c) && (c) <= 'z'))
7820# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7821#endif
7822
7823#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7824int
7825main ()
7826{
7827  int i;
7828  for (i = 0; i < 256; i++)
7829    if (XOR (islower (i), ISLOWER (i))
7830	|| toupper (i) != TOUPPER (i))
7831      return 2;
7832  return 0;
7833}
7834_ACEOF
7835if ac_fn_c_try_run "$LINENO"; then :
7836
7837else
7838  ac_cv_header_stdc=no
7839fi
7840rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7841  conftest.$ac_objext conftest.beam conftest.$ac_ext
7842fi
7843
7844fi
7845fi
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7847$as_echo "$ac_cv_header_stdc" >&6; }
7848if test $ac_cv_header_stdc = yes; then
7849
7850$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7851
7852fi
7853
7854# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7855for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7856		  inttypes.h stdint.h unistd.h
7857do :
7858  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7859ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7860"
7861if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7862  cat >>confdefs.h <<_ACEOF
7863#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7864_ACEOF
7865
7866fi
7867
7868done
7869
7870
7871for ac_header in dlfcn.h
7872do :
7873  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7874"
7875if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7876  cat >>confdefs.h <<_ACEOF
7877#define HAVE_DLFCN_H 1
7878_ACEOF
7879
7880fi
7881
7882done
7883
7884
7885
7886
7887
7888# Set options
7889
7890
7891
7892        enable_dlopen=no
7893
7894
7895
7896            # Check whether --enable-shared was given.
7897if test "${enable_shared+set}" = set; then :
7898  enableval=$enable_shared; p=${PACKAGE-default}
7899    case $enableval in
7900    yes) enable_shared=yes ;;
7901    no) enable_shared=no ;;
7902    *)
7903      enable_shared=no
7904      # Look at the argument we got.  We use all the common list separators.
7905      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7906      for pkg in $enableval; do
7907	IFS="$lt_save_ifs"
7908	if test "X$pkg" = "X$p"; then
7909	  enable_shared=yes
7910	fi
7911      done
7912      IFS="$lt_save_ifs"
7913      ;;
7914    esac
7915else
7916  enable_shared=yes
7917fi
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927  # Check whether --enable-static was given.
7928if test "${enable_static+set}" = set; then :
7929  enableval=$enable_static; p=${PACKAGE-default}
7930    case $enableval in
7931    yes) enable_static=yes ;;
7932    no) enable_static=no ;;
7933    *)
7934     enable_static=no
7935      # Look at the argument we got.  We use all the common list separators.
7936      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7937      for pkg in $enableval; do
7938	IFS="$lt_save_ifs"
7939	if test "X$pkg" = "X$p"; then
7940	  enable_static=yes
7941	fi
7942      done
7943      IFS="$lt_save_ifs"
7944      ;;
7945    esac
7946else
7947  enable_static=yes
7948fi
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959# Check whether --with-pic was given.
7960if test "${with_pic+set}" = set; then :
7961  withval=$with_pic; lt_p=${PACKAGE-default}
7962    case $withval in
7963    yes|no) pic_mode=$withval ;;
7964    *)
7965      pic_mode=default
7966      # Look at the argument we got.  We use all the common list separators.
7967      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7968      for lt_pkg in $withval; do
7969	IFS="$lt_save_ifs"
7970	if test "X$lt_pkg" = "X$lt_p"; then
7971	  pic_mode=yes
7972	fi
7973      done
7974      IFS="$lt_save_ifs"
7975      ;;
7976    esac
7977else
7978  pic_mode=default
7979fi
7980
7981
7982test -z "$pic_mode" && pic_mode=default
7983
7984
7985
7986
7987
7988
7989
7990  # Check whether --enable-fast-install was given.
7991if test "${enable_fast_install+set}" = set; then :
7992  enableval=$enable_fast_install; p=${PACKAGE-default}
7993    case $enableval in
7994    yes) enable_fast_install=yes ;;
7995    no) enable_fast_install=no ;;
7996    *)
7997      enable_fast_install=no
7998      # Look at the argument we got.  We use all the common list separators.
7999      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8000      for pkg in $enableval; do
8001	IFS="$lt_save_ifs"
8002	if test "X$pkg" = "X$p"; then
8003	  enable_fast_install=yes
8004	fi
8005      done
8006      IFS="$lt_save_ifs"
8007      ;;
8008    esac
8009else
8010  enable_fast_install=yes
8011fi
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023# This can be used to rebuild libtool when needed
8024LIBTOOL_DEPS="$ltmain"
8025
8026# Always use our own libtool.
8027LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058test -z "$LN_S" && LN_S="ln -s"
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073if test -n "${ZSH_VERSION+set}" ; then
8074   setopt NO_GLOB_SUBST
8075fi
8076
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8078$as_echo_n "checking for objdir... " >&6; }
8079if ${lt_cv_objdir+:} false; then :
8080  $as_echo_n "(cached) " >&6
8081else
8082  rm -f .libs 2>/dev/null
8083mkdir .libs 2>/dev/null
8084if test -d .libs; then
8085  lt_cv_objdir=.libs
8086else
8087  # MS-DOS does not allow filenames that begin with a dot.
8088  lt_cv_objdir=_libs
8089fi
8090rmdir .libs 2>/dev/null
8091fi
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8093$as_echo "$lt_cv_objdir" >&6; }
8094objdir=$lt_cv_objdir
8095
8096
8097
8098
8099
8100cat >>confdefs.h <<_ACEOF
8101#define LT_OBJDIR "$lt_cv_objdir/"
8102_ACEOF
8103
8104
8105
8106
8107case $host_os in
8108aix3*)
8109  # AIX sometimes has problems with the GCC collect2 program.  For some
8110  # reason, if we set the COLLECT_NAMES environment variable, the problems
8111  # vanish in a puff of smoke.
8112  if test "X${COLLECT_NAMES+set}" != Xset; then
8113    COLLECT_NAMES=
8114    export COLLECT_NAMES
8115  fi
8116  ;;
8117esac
8118
8119# Global variables:
8120ofile=libtool
8121can_build_shared=yes
8122
8123# All known linkers require a `.a' archive for static linking (except MSVC,
8124# which needs '.lib').
8125libext=a
8126
8127with_gnu_ld="$lt_cv_prog_gnu_ld"
8128
8129old_CC="$CC"
8130old_CFLAGS="$CFLAGS"
8131
8132# Set sane defaults for various variables
8133test -z "$CC" && CC=cc
8134test -z "$LTCC" && LTCC=$CC
8135test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8136test -z "$LD" && LD=ld
8137test -z "$ac_objext" && ac_objext=o
8138
8139for cc_temp in $compiler""; do
8140  case $cc_temp in
8141    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8142    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8143    \-*) ;;
8144    *) break;;
8145  esac
8146done
8147cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8148
8149
8150# Only perform the check for file, if the check method requires it
8151test -z "$MAGIC_CMD" && MAGIC_CMD=file
8152case $deplibs_check_method in
8153file_magic*)
8154  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8156$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8157if ${lt_cv_path_MAGIC_CMD+:} false; then :
8158  $as_echo_n "(cached) " >&6
8159else
8160  case $MAGIC_CMD in
8161[\\/*] |  ?:[\\/]*)
8162  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8163  ;;
8164*)
8165  lt_save_MAGIC_CMD="$MAGIC_CMD"
8166  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8167  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8168  for ac_dir in $ac_dummy; do
8169    IFS="$lt_save_ifs"
8170    test -z "$ac_dir" && ac_dir=.
8171    if test -f $ac_dir/${ac_tool_prefix}file; then
8172      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8173      if test -n "$file_magic_test_file"; then
8174	case $deplibs_check_method in
8175	"file_magic "*)
8176	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8177	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8178	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8179	    $EGREP "$file_magic_regex" > /dev/null; then
8180	    :
8181	  else
8182	    cat <<_LT_EOF 1>&2
8183
8184*** Warning: the command libtool uses to detect shared libraries,
8185*** $file_magic_cmd, produces output that libtool cannot recognize.
8186*** The result is that libtool may fail to recognize shared libraries
8187*** as such.  This will affect the creation of libtool libraries that
8188*** depend on shared libraries, but programs linked with such libtool
8189*** libraries will work regardless of this problem.  Nevertheless, you
8190*** may want to report the problem to your system manager and/or to
8191*** bug-libtool@gnu.org
8192
8193_LT_EOF
8194	  fi ;;
8195	esac
8196      fi
8197      break
8198    fi
8199  done
8200  IFS="$lt_save_ifs"
8201  MAGIC_CMD="$lt_save_MAGIC_CMD"
8202  ;;
8203esac
8204fi
8205
8206MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8207if test -n "$MAGIC_CMD"; then
8208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8209$as_echo "$MAGIC_CMD" >&6; }
8210else
8211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212$as_echo "no" >&6; }
8213fi
8214
8215
8216
8217
8218
8219if test -z "$lt_cv_path_MAGIC_CMD"; then
8220  if test -n "$ac_tool_prefix"; then
8221    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8222$as_echo_n "checking for file... " >&6; }
8223if ${lt_cv_path_MAGIC_CMD+:} false; then :
8224  $as_echo_n "(cached) " >&6
8225else
8226  case $MAGIC_CMD in
8227[\\/*] |  ?:[\\/]*)
8228  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8229  ;;
8230*)
8231  lt_save_MAGIC_CMD="$MAGIC_CMD"
8232  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8233  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8234  for ac_dir in $ac_dummy; do
8235    IFS="$lt_save_ifs"
8236    test -z "$ac_dir" && ac_dir=.
8237    if test -f $ac_dir/file; then
8238      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8239      if test -n "$file_magic_test_file"; then
8240	case $deplibs_check_method in
8241	"file_magic "*)
8242	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8243	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8244	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8245	    $EGREP "$file_magic_regex" > /dev/null; then
8246	    :
8247	  else
8248	    cat <<_LT_EOF 1>&2
8249
8250*** Warning: the command libtool uses to detect shared libraries,
8251*** $file_magic_cmd, produces output that libtool cannot recognize.
8252*** The result is that libtool may fail to recognize shared libraries
8253*** as such.  This will affect the creation of libtool libraries that
8254*** depend on shared libraries, but programs linked with such libtool
8255*** libraries will work regardless of this problem.  Nevertheless, you
8256*** may want to report the problem to your system manager and/or to
8257*** bug-libtool@gnu.org
8258
8259_LT_EOF
8260	  fi ;;
8261	esac
8262      fi
8263      break
8264    fi
8265  done
8266  IFS="$lt_save_ifs"
8267  MAGIC_CMD="$lt_save_MAGIC_CMD"
8268  ;;
8269esac
8270fi
8271
8272MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8273if test -n "$MAGIC_CMD"; then
8274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8275$as_echo "$MAGIC_CMD" >&6; }
8276else
8277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278$as_echo "no" >&6; }
8279fi
8280
8281
8282  else
8283    MAGIC_CMD=:
8284  fi
8285fi
8286
8287  fi
8288  ;;
8289esac
8290
8291# Use C for the default configuration in the libtool script
8292
8293lt_save_CC="$CC"
8294ac_ext=c
8295ac_cpp='$CPP $CPPFLAGS'
8296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8298ac_compiler_gnu=$ac_cv_c_compiler_gnu
8299
8300
8301# Source file extension for C test sources.
8302ac_ext=c
8303
8304# Object file extension for compiled C test sources.
8305objext=o
8306objext=$objext
8307
8308# Code to be used in simple compile tests
8309lt_simple_compile_test_code="int some_variable = 0;"
8310
8311# Code to be used in simple link tests
8312lt_simple_link_test_code='int main(){return(0);}'
8313
8314
8315
8316
8317
8318
8319
8320# If no C compiler was specified, use CC.
8321LTCC=${LTCC-"$CC"}
8322
8323# If no C compiler flags were specified, use CFLAGS.
8324LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8325
8326# Allow CC to be a program name with arguments.
8327compiler=$CC
8328
8329# Save the default compiler, since it gets overwritten when the other
8330# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8331compiler_DEFAULT=$CC
8332
8333# save warnings/boilerplate of simple test code
8334ac_outfile=conftest.$ac_objext
8335echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8336eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8337_lt_compiler_boilerplate=`cat conftest.err`
8338$RM conftest*
8339
8340ac_outfile=conftest.$ac_objext
8341echo "$lt_simple_link_test_code" >conftest.$ac_ext
8342eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8343_lt_linker_boilerplate=`cat conftest.err`
8344$RM -r conftest*
8345
8346
8347## CAVEAT EMPTOR:
8348## There is no encapsulation within the following macros, do not change
8349## the running order or otherwise move them around unless you know exactly
8350## what you are doing...
8351if test -n "$compiler"; then
8352
8353lt_prog_compiler_no_builtin_flag=
8354
8355if test "$GCC" = yes; then
8356  case $cc_basename in
8357  nvcc*)
8358    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8359  *)
8360    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8361  esac
8362
8363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8364$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8365if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8366  $as_echo_n "(cached) " >&6
8367else
8368  lt_cv_prog_compiler_rtti_exceptions=no
8369   ac_outfile=conftest.$ac_objext
8370   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8371   lt_compiler_flag="-fno-rtti -fno-exceptions"
8372   # Insert the option either (1) after the last *FLAGS variable, or
8373   # (2) before a word containing "conftest.", or (3) at the end.
8374   # Note that $ac_compile itself does not contain backslashes and begins
8375   # with a dollar sign (not a hyphen), so the echo should work correctly.
8376   # The option is referenced via a variable to avoid confusing sed.
8377   lt_compile=`echo "$ac_compile" | $SED \
8378   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8379   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8380   -e 's:$: $lt_compiler_flag:'`
8381   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8382   (eval "$lt_compile" 2>conftest.err)
8383   ac_status=$?
8384   cat conftest.err >&5
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   if (exit $ac_status) && test -s "$ac_outfile"; then
8387     # The compiler can only warn and ignore the option if not recognized
8388     # So say no if there are warnings other than the usual output.
8389     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8390     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8391     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8392       lt_cv_prog_compiler_rtti_exceptions=yes
8393     fi
8394   fi
8395   $RM conftest*
8396
8397fi
8398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8399$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8400
8401if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8402    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8403else
8404    :
8405fi
8406
8407fi
8408
8409
8410
8411
8412
8413
8414  lt_prog_compiler_wl=
8415lt_prog_compiler_pic=
8416lt_prog_compiler_static=
8417
8418
8419  if test "$GCC" = yes; then
8420    lt_prog_compiler_wl='-Wl,'
8421    lt_prog_compiler_static='-static'
8422
8423    case $host_os in
8424      aix*)
8425      # All AIX code is PIC.
8426      if test "$host_cpu" = ia64; then
8427	# AIX 5 now supports IA64 processor
8428	lt_prog_compiler_static='-Bstatic'
8429      fi
8430      ;;
8431
8432    amigaos*)
8433      case $host_cpu in
8434      powerpc)
8435            # see comment about AmigaOS4 .so support
8436            lt_prog_compiler_pic='-fPIC'
8437        ;;
8438      m68k)
8439            # FIXME: we need at least 68020 code to build shared libraries, but
8440            # adding the `-m68020' flag to GCC prevents building anything better,
8441            # like `-m68040'.
8442            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8443        ;;
8444      esac
8445      ;;
8446
8447    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8448      # PIC is the default for these OSes.
8449      ;;
8450
8451    mingw* | cygwin* | pw32* | os2* | cegcc*)
8452      # This hack is so that the source file can tell whether it is being
8453      # built for inclusion in a dll (and should export symbols for example).
8454      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8455      # (--disable-auto-import) libraries
8456      lt_prog_compiler_pic='-DDLL_EXPORT'
8457      ;;
8458
8459    darwin* | rhapsody*)
8460      # PIC is the default on this platform
8461      # Common symbols not allowed in MH_DYLIB files
8462      lt_prog_compiler_pic='-fno-common'
8463      ;;
8464
8465    haiku*)
8466      # PIC is the default for Haiku.
8467      # The "-static" flag exists, but is broken.
8468      lt_prog_compiler_static=
8469      ;;
8470
8471    hpux*)
8472      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8473      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8474      # sets the default TLS model and affects inlining.
8475      case $host_cpu in
8476      hppa*64*)
8477	# +Z the default
8478	;;
8479      *)
8480	lt_prog_compiler_pic='-fPIC'
8481	;;
8482      esac
8483      ;;
8484
8485    interix[3-9]*)
8486      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8487      # Instead, we relocate shared libraries at runtime.
8488      ;;
8489
8490    msdosdjgpp*)
8491      # Just because we use GCC doesn't mean we suddenly get shared libraries
8492      # on systems that don't support them.
8493      lt_prog_compiler_can_build_shared=no
8494      enable_shared=no
8495      ;;
8496
8497    *nto* | *qnx*)
8498      # QNX uses GNU C++, but need to define -shared option too, otherwise
8499      # it will coredump.
8500      lt_prog_compiler_pic='-fPIC -shared'
8501      ;;
8502
8503    sysv4*MP*)
8504      if test -d /usr/nec; then
8505	lt_prog_compiler_pic=-Kconform_pic
8506      fi
8507      ;;
8508
8509    *)
8510      lt_prog_compiler_pic='-fPIC'
8511      ;;
8512    esac
8513
8514    case $cc_basename in
8515    nvcc*) # Cuda Compiler Driver 2.2
8516      lt_prog_compiler_wl='-Xlinker '
8517      if test -n "$lt_prog_compiler_pic"; then
8518        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8519      fi
8520      ;;
8521    esac
8522  else
8523    # PORTME Check for flag to pass linker flags through the system compiler.
8524    case $host_os in
8525    aix*)
8526      lt_prog_compiler_wl='-Wl,'
8527      if test "$host_cpu" = ia64; then
8528	# AIX 5 now supports IA64 processor
8529	lt_prog_compiler_static='-Bstatic'
8530      else
8531	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8532      fi
8533      ;;
8534
8535    mingw* | cygwin* | pw32* | os2* | cegcc*)
8536      # This hack is so that the source file can tell whether it is being
8537      # built for inclusion in a dll (and should export symbols for example).
8538      lt_prog_compiler_pic='-DDLL_EXPORT'
8539      ;;
8540
8541    hpux9* | hpux10* | hpux11*)
8542      lt_prog_compiler_wl='-Wl,'
8543      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8544      # not for PA HP-UX.
8545      case $host_cpu in
8546      hppa*64*|ia64*)
8547	# +Z the default
8548	;;
8549      *)
8550	lt_prog_compiler_pic='+Z'
8551	;;
8552      esac
8553      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8554      lt_prog_compiler_static='${wl}-a ${wl}archive'
8555      ;;
8556
8557    irix5* | irix6* | nonstopux*)
8558      lt_prog_compiler_wl='-Wl,'
8559      # PIC (with -KPIC) is the default.
8560      lt_prog_compiler_static='-non_shared'
8561      ;;
8562
8563    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8564      case $cc_basename in
8565      # old Intel for x86_64 which still supported -KPIC.
8566      ecc*)
8567	lt_prog_compiler_wl='-Wl,'
8568	lt_prog_compiler_pic='-KPIC'
8569	lt_prog_compiler_static='-static'
8570        ;;
8571      # icc used to be incompatible with GCC.
8572      # ICC 10 doesn't accept -KPIC any more.
8573      icc* | ifort*)
8574	lt_prog_compiler_wl='-Wl,'
8575	lt_prog_compiler_pic='-fPIC'
8576	lt_prog_compiler_static='-static'
8577        ;;
8578      # Lahey Fortran 8.1.
8579      lf95*)
8580	lt_prog_compiler_wl='-Wl,'
8581	lt_prog_compiler_pic='--shared'
8582	lt_prog_compiler_static='--static'
8583	;;
8584      nagfor*)
8585	# NAG Fortran compiler
8586	lt_prog_compiler_wl='-Wl,-Wl,,'
8587	lt_prog_compiler_pic='-PIC'
8588	lt_prog_compiler_static='-Bstatic'
8589	;;
8590      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8591        # Portland Group compilers (*not* the Pentium gcc compiler,
8592	# which looks to be a dead project)
8593	lt_prog_compiler_wl='-Wl,'
8594	lt_prog_compiler_pic='-fpic'
8595	lt_prog_compiler_static='-Bstatic'
8596        ;;
8597      ccc*)
8598        lt_prog_compiler_wl='-Wl,'
8599        # All Alpha code is PIC.
8600        lt_prog_compiler_static='-non_shared'
8601        ;;
8602      xl* | bgxl* | bgf* | mpixl*)
8603	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8604	lt_prog_compiler_wl='-Wl,'
8605	lt_prog_compiler_pic='-qpic'
8606	lt_prog_compiler_static='-qstaticlink'
8607	;;
8608      *)
8609	case `$CC -V 2>&1 | sed 5q` in
8610	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8611	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8612	  lt_prog_compiler_pic='-KPIC'
8613	  lt_prog_compiler_static='-Bstatic'
8614	  lt_prog_compiler_wl=''
8615	  ;;
8616	*Sun\ F* | *Sun*Fortran*)
8617	  lt_prog_compiler_pic='-KPIC'
8618	  lt_prog_compiler_static='-Bstatic'
8619	  lt_prog_compiler_wl='-Qoption ld '
8620	  ;;
8621	*Sun\ C*)
8622	  # Sun C 5.9
8623	  lt_prog_compiler_pic='-KPIC'
8624	  lt_prog_compiler_static='-Bstatic'
8625	  lt_prog_compiler_wl='-Wl,'
8626	  ;;
8627        *Intel*\ [CF]*Compiler*)
8628	  lt_prog_compiler_wl='-Wl,'
8629	  lt_prog_compiler_pic='-fPIC'
8630	  lt_prog_compiler_static='-static'
8631	  ;;
8632	*Portland\ Group*)
8633	  lt_prog_compiler_wl='-Wl,'
8634	  lt_prog_compiler_pic='-fpic'
8635	  lt_prog_compiler_static='-Bstatic'
8636	  ;;
8637	esac
8638	;;
8639      esac
8640      ;;
8641
8642    newsos6)
8643      lt_prog_compiler_pic='-KPIC'
8644      lt_prog_compiler_static='-Bstatic'
8645      ;;
8646
8647    *nto* | *qnx*)
8648      # QNX uses GNU C++, but need to define -shared option too, otherwise
8649      # it will coredump.
8650      lt_prog_compiler_pic='-fPIC -shared'
8651      ;;
8652
8653    osf3* | osf4* | osf5*)
8654      lt_prog_compiler_wl='-Wl,'
8655      # All OSF/1 code is PIC.
8656      lt_prog_compiler_static='-non_shared'
8657      ;;
8658
8659    rdos*)
8660      lt_prog_compiler_static='-non_shared'
8661      ;;
8662
8663    solaris*)
8664      lt_prog_compiler_pic='-KPIC'
8665      lt_prog_compiler_static='-Bstatic'
8666      case $cc_basename in
8667      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8668	lt_prog_compiler_wl='-Qoption ld ';;
8669      *)
8670	lt_prog_compiler_wl='-Wl,';;
8671      esac
8672      ;;
8673
8674    sunos4*)
8675      lt_prog_compiler_wl='-Qoption ld '
8676      lt_prog_compiler_pic='-PIC'
8677      lt_prog_compiler_static='-Bstatic'
8678      ;;
8679
8680    sysv4 | sysv4.2uw2* | sysv4.3*)
8681      lt_prog_compiler_wl='-Wl,'
8682      lt_prog_compiler_pic='-KPIC'
8683      lt_prog_compiler_static='-Bstatic'
8684      ;;
8685
8686    sysv4*MP*)
8687      if test -d /usr/nec ;then
8688	lt_prog_compiler_pic='-Kconform_pic'
8689	lt_prog_compiler_static='-Bstatic'
8690      fi
8691      ;;
8692
8693    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8694      lt_prog_compiler_wl='-Wl,'
8695      lt_prog_compiler_pic='-KPIC'
8696      lt_prog_compiler_static='-Bstatic'
8697      ;;
8698
8699    unicos*)
8700      lt_prog_compiler_wl='-Wl,'
8701      lt_prog_compiler_can_build_shared=no
8702      ;;
8703
8704    uts4*)
8705      lt_prog_compiler_pic='-pic'
8706      lt_prog_compiler_static='-Bstatic'
8707      ;;
8708
8709    *)
8710      lt_prog_compiler_can_build_shared=no
8711      ;;
8712    esac
8713  fi
8714
8715case $host_os in
8716  # For platforms which do not support PIC, -DPIC is meaningless:
8717  *djgpp*)
8718    lt_prog_compiler_pic=
8719    ;;
8720  *)
8721    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8722    ;;
8723esac
8724
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8726$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8727if ${lt_cv_prog_compiler_pic+:} false; then :
8728  $as_echo_n "(cached) " >&6
8729else
8730  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8731fi
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8733$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8734lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8735
8736#
8737# Check to make sure the PIC flag actually works.
8738#
8739if test -n "$lt_prog_compiler_pic"; then
8740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8741$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8742if ${lt_cv_prog_compiler_pic_works+:} false; then :
8743  $as_echo_n "(cached) " >&6
8744else
8745  lt_cv_prog_compiler_pic_works=no
8746   ac_outfile=conftest.$ac_objext
8747   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8748   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8749   # Insert the option either (1) after the last *FLAGS variable, or
8750   # (2) before a word containing "conftest.", or (3) at the end.
8751   # Note that $ac_compile itself does not contain backslashes and begins
8752   # with a dollar sign (not a hyphen), so the echo should work correctly.
8753   # The option is referenced via a variable to avoid confusing sed.
8754   lt_compile=`echo "$ac_compile" | $SED \
8755   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8756   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8757   -e 's:$: $lt_compiler_flag:'`
8758   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8759   (eval "$lt_compile" 2>conftest.err)
8760   ac_status=$?
8761   cat conftest.err >&5
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   if (exit $ac_status) && test -s "$ac_outfile"; then
8764     # The compiler can only warn and ignore the option if not recognized
8765     # So say no if there are warnings other than the usual output.
8766     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8767     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8768     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8769       lt_cv_prog_compiler_pic_works=yes
8770     fi
8771   fi
8772   $RM conftest*
8773
8774fi
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8776$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8777
8778if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8779    case $lt_prog_compiler_pic in
8780     "" | " "*) ;;
8781     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8782     esac
8783else
8784    lt_prog_compiler_pic=
8785     lt_prog_compiler_can_build_shared=no
8786fi
8787
8788fi
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800#
8801# Check to make sure the static flag actually works.
8802#
8803wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8805$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8806if ${lt_cv_prog_compiler_static_works+:} false; then :
8807  $as_echo_n "(cached) " >&6
8808else
8809  lt_cv_prog_compiler_static_works=no
8810   save_LDFLAGS="$LDFLAGS"
8811   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8812   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8813   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8814     # The linker can only warn and ignore the option if not recognized
8815     # So say no if there are warnings
8816     if test -s conftest.err; then
8817       # Append any errors to the config.log.
8818       cat conftest.err 1>&5
8819       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8820       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8821       if diff conftest.exp conftest.er2 >/dev/null; then
8822         lt_cv_prog_compiler_static_works=yes
8823       fi
8824     else
8825       lt_cv_prog_compiler_static_works=yes
8826     fi
8827   fi
8828   $RM -r conftest*
8829   LDFLAGS="$save_LDFLAGS"
8830
8831fi
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8833$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8834
8835if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8836    :
8837else
8838    lt_prog_compiler_static=
8839fi
8840
8841
8842
8843
8844
8845
8846
8847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8848$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8849if ${lt_cv_prog_compiler_c_o+:} false; then :
8850  $as_echo_n "(cached) " >&6
8851else
8852  lt_cv_prog_compiler_c_o=no
8853   $RM -r conftest 2>/dev/null
8854   mkdir conftest
8855   cd conftest
8856   mkdir out
8857   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8858
8859   lt_compiler_flag="-o out/conftest2.$ac_objext"
8860   # Insert the option either (1) after the last *FLAGS variable, or
8861   # (2) before a word containing "conftest.", or (3) at the end.
8862   # Note that $ac_compile itself does not contain backslashes and begins
8863   # with a dollar sign (not a hyphen), so the echo should work correctly.
8864   lt_compile=`echo "$ac_compile" | $SED \
8865   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8866   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8867   -e 's:$: $lt_compiler_flag:'`
8868   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8869   (eval "$lt_compile" 2>out/conftest.err)
8870   ac_status=$?
8871   cat out/conftest.err >&5
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8874   then
8875     # The compiler can only warn and ignore the option if not recognized
8876     # So say no if there are warnings
8877     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8878     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8879     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8880       lt_cv_prog_compiler_c_o=yes
8881     fi
8882   fi
8883   chmod u+w . 2>&5
8884   $RM conftest*
8885   # SGI C++ compiler will create directory out/ii_files/ for
8886   # template instantiation
8887   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8888   $RM out/* && rmdir out
8889   cd ..
8890   $RM -r conftest
8891   $RM conftest*
8892
8893fi
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8895$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8896
8897
8898
8899
8900
8901
8902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8903$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8904if ${lt_cv_prog_compiler_c_o+:} false; then :
8905  $as_echo_n "(cached) " >&6
8906else
8907  lt_cv_prog_compiler_c_o=no
8908   $RM -r conftest 2>/dev/null
8909   mkdir conftest
8910   cd conftest
8911   mkdir out
8912   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8913
8914   lt_compiler_flag="-o out/conftest2.$ac_objext"
8915   # Insert the option either (1) after the last *FLAGS variable, or
8916   # (2) before a word containing "conftest.", or (3) at the end.
8917   # Note that $ac_compile itself does not contain backslashes and begins
8918   # with a dollar sign (not a hyphen), so the echo should work correctly.
8919   lt_compile=`echo "$ac_compile" | $SED \
8920   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8921   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8922   -e 's:$: $lt_compiler_flag:'`
8923   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8924   (eval "$lt_compile" 2>out/conftest.err)
8925   ac_status=$?
8926   cat out/conftest.err >&5
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8929   then
8930     # The compiler can only warn and ignore the option if not recognized
8931     # So say no if there are warnings
8932     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8933     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8934     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8935       lt_cv_prog_compiler_c_o=yes
8936     fi
8937   fi
8938   chmod u+w . 2>&5
8939   $RM conftest*
8940   # SGI C++ compiler will create directory out/ii_files/ for
8941   # template instantiation
8942   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8943   $RM out/* && rmdir out
8944   cd ..
8945   $RM -r conftest
8946   $RM conftest*
8947
8948fi
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8950$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8951
8952
8953
8954
8955hard_links="nottested"
8956if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8957  # do not overwrite the value of need_locks provided by the user
8958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8959$as_echo_n "checking if we can lock with hard links... " >&6; }
8960  hard_links=yes
8961  $RM conftest*
8962  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8963  touch conftest.a
8964  ln conftest.a conftest.b 2>&5 || hard_links=no
8965  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8967$as_echo "$hard_links" >&6; }
8968  if test "$hard_links" = no; then
8969    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8970$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8971    need_locks=warn
8972  fi
8973else
8974  need_locks=no
8975fi
8976
8977
8978
8979
8980
8981
8982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8983$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8984
8985  runpath_var=
8986  allow_undefined_flag=
8987  always_export_symbols=no
8988  archive_cmds=
8989  archive_expsym_cmds=
8990  compiler_needs_object=no
8991  enable_shared_with_static_runtimes=no
8992  export_dynamic_flag_spec=
8993  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8994  hardcode_automatic=no
8995  hardcode_direct=no
8996  hardcode_direct_absolute=no
8997  hardcode_libdir_flag_spec=
8998  hardcode_libdir_separator=
8999  hardcode_minus_L=no
9000  hardcode_shlibpath_var=unsupported
9001  inherit_rpath=no
9002  link_all_deplibs=unknown
9003  module_cmds=
9004  module_expsym_cmds=
9005  old_archive_from_new_cmds=
9006  old_archive_from_expsyms_cmds=
9007  thread_safe_flag_spec=
9008  whole_archive_flag_spec=
9009  # include_expsyms should be a list of space-separated symbols to be *always*
9010  # included in the symbol list
9011  include_expsyms=
9012  # exclude_expsyms can be an extended regexp of symbols to exclude
9013  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9014  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9015  # as well as any symbol that contains `d'.
9016  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9017  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9018  # platforms (ab)use it in PIC code, but their linkers get confused if
9019  # the symbol is explicitly referenced.  Since portable code cannot
9020  # rely on this symbol name, it's probably fine to never include it in
9021  # preloaded symbol tables.
9022  # Exclude shared library initialization/finalization symbols.
9023  extract_expsyms_cmds=
9024
9025  case $host_os in
9026  cygwin* | mingw* | pw32* | cegcc*)
9027    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9028    # When not using gcc, we currently assume that we are using
9029    # Microsoft Visual C++.
9030    if test "$GCC" != yes; then
9031      with_gnu_ld=no
9032    fi
9033    ;;
9034  interix*)
9035    # we just hope/assume this is gcc and not c89 (= MSVC++)
9036    with_gnu_ld=yes
9037    ;;
9038  openbsd*)
9039    with_gnu_ld=no
9040    ;;
9041  linux* | k*bsd*-gnu | gnu*)
9042    link_all_deplibs=no
9043    ;;
9044  esac
9045
9046  ld_shlibs=yes
9047
9048  # On some targets, GNU ld is compatible enough with the native linker
9049  # that we're better off using the native interface for both.
9050  lt_use_gnu_ld_interface=no
9051  if test "$with_gnu_ld" = yes; then
9052    case $host_os in
9053      aix*)
9054	# The AIX port of GNU ld has always aspired to compatibility
9055	# with the native linker.  However, as the warning in the GNU ld
9056	# block says, versions before 2.19.5* couldn't really create working
9057	# shared libraries, regardless of the interface used.
9058	case `$LD -v 2>&1` in
9059	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9060	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9061	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9062	  *)
9063	    lt_use_gnu_ld_interface=yes
9064	    ;;
9065	esac
9066	;;
9067      *)
9068	lt_use_gnu_ld_interface=yes
9069	;;
9070    esac
9071  fi
9072
9073  if test "$lt_use_gnu_ld_interface" = yes; then
9074    # If archive_cmds runs LD, not CC, wlarc should be empty
9075    wlarc='${wl}'
9076
9077    # Set some defaults for GNU ld with shared library support. These
9078    # are reset later if shared libraries are not supported. Putting them
9079    # here allows them to be overridden if necessary.
9080    runpath_var=LD_RUN_PATH
9081    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9082    export_dynamic_flag_spec='${wl}--export-dynamic'
9083    # ancient GNU ld didn't support --whole-archive et. al.
9084    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9085      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9086    else
9087      whole_archive_flag_spec=
9088    fi
9089    supports_anon_versioning=no
9090    case `$LD -v 2>&1` in
9091      *GNU\ gold*) supports_anon_versioning=yes ;;
9092      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9093      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9094      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9095      *\ 2.11.*) ;; # other 2.11 versions
9096      *) supports_anon_versioning=yes ;;
9097    esac
9098
9099    # See if GNU ld supports shared libraries.
9100    case $host_os in
9101    aix[3-9]*)
9102      # On AIX/PPC, the GNU linker is very broken
9103      if test "$host_cpu" != ia64; then
9104	ld_shlibs=no
9105	cat <<_LT_EOF 1>&2
9106
9107*** Warning: the GNU linker, at least up to release 2.19, is reported
9108*** to be unable to reliably create shared libraries on AIX.
9109*** Therefore, libtool is disabling shared libraries support.  If you
9110*** really care for shared libraries, you may want to install binutils
9111*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9112*** You will then need to restart the configuration process.
9113
9114_LT_EOF
9115      fi
9116      ;;
9117
9118    amigaos*)
9119      case $host_cpu in
9120      powerpc)
9121            # see comment about AmigaOS4 .so support
9122            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9123            archive_expsym_cmds=''
9124        ;;
9125      m68k)
9126            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)'
9127            hardcode_libdir_flag_spec='-L$libdir'
9128            hardcode_minus_L=yes
9129        ;;
9130      esac
9131      ;;
9132
9133    beos*)
9134      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9135	allow_undefined_flag=unsupported
9136	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9137	# support --undefined.  This deserves some investigation.  FIXME
9138	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9139      else
9140	ld_shlibs=no
9141      fi
9142      ;;
9143
9144    cygwin* | mingw* | pw32* | cegcc*)
9145      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9146      # as there is no search path for DLLs.
9147      hardcode_libdir_flag_spec='-L$libdir'
9148      export_dynamic_flag_spec='${wl}--export-all-symbols'
9149      allow_undefined_flag=unsupported
9150      always_export_symbols=no
9151      enable_shared_with_static_runtimes=yes
9152      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'
9153      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9154
9155      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9156        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9157	# If the export-symbols file already is a .def file (1st line
9158	# is EXPORTS), use it as is; otherwise, prepend...
9159	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9160	  cp $export_symbols $output_objdir/$soname.def;
9161	else
9162	  echo EXPORTS > $output_objdir/$soname.def;
9163	  cat $export_symbols >> $output_objdir/$soname.def;
9164	fi~
9165	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9166      else
9167	ld_shlibs=no
9168      fi
9169      ;;
9170
9171    haiku*)
9172      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173      link_all_deplibs=yes
9174      ;;
9175
9176    interix[3-9]*)
9177      hardcode_direct=no
9178      hardcode_shlibpath_var=no
9179      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9180      export_dynamic_flag_spec='${wl}-E'
9181      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9182      # Instead, shared libraries are loaded at an image base (0x10000000 by
9183      # default) and relocated if they conflict, which is a slow very memory
9184      # consuming and fragmenting process.  To avoid this, we pick a random,
9185      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9186      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9187      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9188      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'
9189      ;;
9190
9191    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9192      tmp_diet=no
9193      if test "$host_os" = linux-dietlibc; then
9194	case $cc_basename in
9195	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9196	esac
9197      fi
9198      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9199	 && test "$tmp_diet" = no
9200      then
9201	tmp_addflag=' $pic_flag'
9202	tmp_sharedflag='-shared'
9203	case $cc_basename,$host_cpu in
9204        pgcc*)				# Portland Group C compiler
9205	  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'
9206	  tmp_addflag=' $pic_flag'
9207	  ;;
9208	pgf77* | pgf90* | pgf95* | pgfortran*)
9209					# Portland Group f77 and f90 compilers
9210	  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'
9211	  tmp_addflag=' $pic_flag -Mnomain' ;;
9212	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9213	  tmp_addflag=' -i_dynamic' ;;
9214	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9215	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9216	ifc* | ifort*)			# Intel Fortran compiler
9217	  tmp_addflag=' -nofor_main' ;;
9218	lf95*)				# Lahey Fortran 8.1
9219	  whole_archive_flag_spec=
9220	  tmp_sharedflag='--shared' ;;
9221	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9222	  tmp_sharedflag='-qmkshrobj'
9223	  tmp_addflag= ;;
9224	nvcc*)	# Cuda Compiler Driver 2.2
9225	  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'
9226	  compiler_needs_object=yes
9227	  ;;
9228	esac
9229	case `$CC -V 2>&1 | sed 5q` in
9230	*Sun\ C*)			# Sun C 5.9
9231	  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'
9232	  compiler_needs_object=yes
9233	  tmp_sharedflag='-G' ;;
9234	*Sun\ F*)			# Sun Fortran 8.3
9235	  tmp_sharedflag='-G' ;;
9236	esac
9237	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9238
9239        if test "x$supports_anon_versioning" = xyes; then
9240          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9241	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9242	    echo "local: *; };" >> $output_objdir/$libname.ver~
9243	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9244        fi
9245
9246	case $cc_basename in
9247	xlf* | bgf* | bgxlf* | mpixlf*)
9248	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9249	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9250	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9251	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9252	  if test "x$supports_anon_versioning" = xyes; then
9253	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9254	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9255	      echo "local: *; };" >> $output_objdir/$libname.ver~
9256	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9257	  fi
9258	  ;;
9259	esac
9260      else
9261        ld_shlibs=no
9262      fi
9263      ;;
9264
9265    netbsd* | netbsdelf*-gnu)
9266      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9267	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9268	wlarc=
9269      else
9270	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9271	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9272      fi
9273      ;;
9274
9275    solaris*)
9276      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9277	ld_shlibs=no
9278	cat <<_LT_EOF 1>&2
9279
9280*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9281*** create shared libraries on Solaris systems.  Therefore, libtool
9282*** is disabling shared libraries support.  We urge you to upgrade GNU
9283*** binutils to release 2.9.1 or newer.  Another option is to modify
9284*** your PATH or compiler configuration so that the native linker is
9285*** used, and then restart.
9286
9287_LT_EOF
9288      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9289	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9290	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9291      else
9292	ld_shlibs=no
9293      fi
9294      ;;
9295
9296    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9297      case `$LD -v 2>&1` in
9298        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9299	ld_shlibs=no
9300	cat <<_LT_EOF 1>&2
9301
9302*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9303*** reliably create shared libraries on SCO systems.  Therefore, libtool
9304*** is disabling shared libraries support.  We urge you to upgrade GNU
9305*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9306*** your PATH or compiler configuration so that the native linker is
9307*** used, and then restart.
9308
9309_LT_EOF
9310	;;
9311	*)
9312	  # For security reasons, it is highly recommended that you always
9313	  # use absolute paths for naming shared libraries, and exclude the
9314	  # DT_RUNPATH tag from executables and libraries.  But doing so
9315	  # requires that you compile everything twice, which is a pain.
9316	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9317	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9318	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9320	  else
9321	    ld_shlibs=no
9322	  fi
9323	;;
9324      esac
9325      ;;
9326
9327    sunos4*)
9328      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9329      wlarc=
9330      hardcode_direct=yes
9331      hardcode_shlibpath_var=no
9332      ;;
9333
9334    *)
9335      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9336	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9337	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9338      else
9339	ld_shlibs=no
9340      fi
9341      ;;
9342    esac
9343
9344    if test "$ld_shlibs" = no; then
9345      runpath_var=
9346      hardcode_libdir_flag_spec=
9347      export_dynamic_flag_spec=
9348      whole_archive_flag_spec=
9349    fi
9350  else
9351    # PORTME fill in a description of your system's linker (not GNU ld)
9352    case $host_os in
9353    aix3*)
9354      allow_undefined_flag=unsupported
9355      always_export_symbols=yes
9356      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'
9357      # Note: this linker hardcodes the directories in LIBPATH if there
9358      # are no directories specified by -L.
9359      hardcode_minus_L=yes
9360      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9361	# Neither direct hardcoding nor static linking is supported with a
9362	# broken collect2.
9363	hardcode_direct=unsupported
9364      fi
9365      ;;
9366
9367    aix[4-9]*)
9368      if test "$host_cpu" = ia64; then
9369	# On IA64, the linker does run time linking by default, so we don't
9370	# have to do anything special.
9371	aix_use_runtimelinking=no
9372	exp_sym_flag='-Bexport'
9373	no_entry_flag=""
9374      else
9375	# If we're using GNU nm, then we don't want the "-C" option.
9376	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9377	# Also, AIX nm treats weak defined symbols like other global
9378	# defined symbols, whereas GNU nm marks them as "W".
9379	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9380	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9381	else
9382	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9383	fi
9384	aix_use_runtimelinking=no
9385
9386	# Test if we are trying to use run time linking or normal
9387	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9388	# need to do runtime linking.
9389	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9390	  for ld_flag in $LDFLAGS; do
9391	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9392	    aix_use_runtimelinking=yes
9393	    break
9394	  fi
9395	  done
9396	  ;;
9397	esac
9398
9399	exp_sym_flag='-bexport'
9400	no_entry_flag='-bnoentry'
9401      fi
9402
9403      # When large executables or shared objects are built, AIX ld can
9404      # have problems creating the table of contents.  If linking a library
9405      # or program results in "error TOC overflow" add -mminimal-toc to
9406      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9407      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9408
9409      archive_cmds=''
9410      hardcode_direct=yes
9411      hardcode_direct_absolute=yes
9412      hardcode_libdir_separator=':'
9413      link_all_deplibs=yes
9414      file_list_spec='${wl}-f,'
9415
9416      if test "$GCC" = yes; then
9417	case $host_os in aix4.[012]|aix4.[012].*)
9418	# We only want to do this on AIX 4.2 and lower, the check
9419	# below for broken collect2 doesn't work under 4.3+
9420	  collect2name=`${CC} -print-prog-name=collect2`
9421	  if test -f "$collect2name" &&
9422	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9423	  then
9424	  # We have reworked collect2
9425	  :
9426	  else
9427	  # We have old collect2
9428	  hardcode_direct=unsupported
9429	  # It fails to find uninstalled libraries when the uninstalled
9430	  # path is not listed in the libpath.  Setting hardcode_minus_L
9431	  # to unsupported forces relinking
9432	  hardcode_minus_L=yes
9433	  hardcode_libdir_flag_spec='-L$libdir'
9434	  hardcode_libdir_separator=
9435	  fi
9436	  ;;
9437	esac
9438	shared_flag='-shared'
9439	if test "$aix_use_runtimelinking" = yes; then
9440	  shared_flag="$shared_flag "'${wl}-G'
9441	fi
9442	link_all_deplibs=no
9443      else
9444	# not using gcc
9445	if test "$host_cpu" = ia64; then
9446	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9447	# chokes on -Wl,-G. The following line is correct:
9448	  shared_flag='-G'
9449	else
9450	  if test "$aix_use_runtimelinking" = yes; then
9451	    shared_flag='${wl}-G'
9452	  else
9453	    shared_flag='${wl}-bM:SRE'
9454	  fi
9455	fi
9456      fi
9457
9458      export_dynamic_flag_spec='${wl}-bexpall'
9459      # It seems that -bexpall does not export symbols beginning with
9460      # underscore (_), so it is better to generate a list of symbols to export.
9461      always_export_symbols=yes
9462      if test "$aix_use_runtimelinking" = yes; then
9463	# Warning - without using the other runtime loading flags (-brtl),
9464	# -berok will link without error, but may produce a broken library.
9465	allow_undefined_flag='-berok'
9466        # Determine the default libpath from the value encoded in an
9467        # empty executable.
9468        if test "${lt_cv_aix_libpath+set}" = set; then
9469  aix_libpath=$lt_cv_aix_libpath
9470else
9471  if ${lt_cv_aix_libpath_+:} false; then :
9472  $as_echo_n "(cached) " >&6
9473else
9474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475/* end confdefs.h.  */
9476
9477int
9478main ()
9479{
9480
9481  ;
9482  return 0;
9483}
9484_ACEOF
9485if ac_fn_c_try_link "$LINENO"; then :
9486
9487  lt_aix_libpath_sed='
9488      /Import File Strings/,/^$/ {
9489	  /^0/ {
9490	      s/^0  *\([^ ]*\) *$/\1/
9491	      p
9492	  }
9493      }'
9494  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9495  # Check for a 64-bit object if we didn't find anything.
9496  if test -z "$lt_cv_aix_libpath_"; then
9497    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9498  fi
9499fi
9500rm -f core conftest.err conftest.$ac_objext \
9501    conftest$ac_exeext conftest.$ac_ext
9502  if test -z "$lt_cv_aix_libpath_"; then
9503    lt_cv_aix_libpath_="/usr/lib:/lib"
9504  fi
9505
9506fi
9507
9508  aix_libpath=$lt_cv_aix_libpath_
9509fi
9510
9511        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9512        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9513      else
9514	if test "$host_cpu" = ia64; then
9515	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9516	  allow_undefined_flag="-z nodefs"
9517	  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"
9518	else
9519	 # Determine the default libpath from the value encoded in an
9520	 # empty executable.
9521	 if test "${lt_cv_aix_libpath+set}" = set; then
9522  aix_libpath=$lt_cv_aix_libpath
9523else
9524  if ${lt_cv_aix_libpath_+:} false; then :
9525  $as_echo_n "(cached) " >&6
9526else
9527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528/* end confdefs.h.  */
9529
9530int
9531main ()
9532{
9533
9534  ;
9535  return 0;
9536}
9537_ACEOF
9538if ac_fn_c_try_link "$LINENO"; then :
9539
9540  lt_aix_libpath_sed='
9541      /Import File Strings/,/^$/ {
9542	  /^0/ {
9543	      s/^0  *\([^ ]*\) *$/\1/
9544	      p
9545	  }
9546      }'
9547  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9548  # Check for a 64-bit object if we didn't find anything.
9549  if test -z "$lt_cv_aix_libpath_"; then
9550    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9551  fi
9552fi
9553rm -f core conftest.err conftest.$ac_objext \
9554    conftest$ac_exeext conftest.$ac_ext
9555  if test -z "$lt_cv_aix_libpath_"; then
9556    lt_cv_aix_libpath_="/usr/lib:/lib"
9557  fi
9558
9559fi
9560
9561  aix_libpath=$lt_cv_aix_libpath_
9562fi
9563
9564	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9565	  # Warning - without using the other run time loading flags,
9566	  # -berok will link without error, but may produce a broken library.
9567	  no_undefined_flag=' ${wl}-bernotok'
9568	  allow_undefined_flag=' ${wl}-berok'
9569	  if test "$with_gnu_ld" = yes; then
9570	    # We only use this code for GNU lds that support --whole-archive.
9571	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9572	  else
9573	    # Exported symbols can be pulled into shared objects from archives
9574	    whole_archive_flag_spec='$convenience'
9575	  fi
9576	  archive_cmds_need_lc=yes
9577	  # This is similar to how AIX traditionally builds its shared libraries.
9578	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9579	fi
9580      fi
9581      ;;
9582
9583    amigaos*)
9584      case $host_cpu in
9585      powerpc)
9586            # see comment about AmigaOS4 .so support
9587            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9588            archive_expsym_cmds=''
9589        ;;
9590      m68k)
9591            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)'
9592            hardcode_libdir_flag_spec='-L$libdir'
9593            hardcode_minus_L=yes
9594        ;;
9595      esac
9596      ;;
9597
9598    bsdi[45]*)
9599      export_dynamic_flag_spec=-rdynamic
9600      ;;
9601
9602    cygwin* | mingw* | pw32* | cegcc*)
9603      # When not using gcc, we currently assume that we are using
9604      # Microsoft Visual C++.
9605      # hardcode_libdir_flag_spec is actually meaningless, as there is
9606      # no search path for DLLs.
9607      case $cc_basename in
9608      cl*)
9609	# Native MSVC
9610	hardcode_libdir_flag_spec=' '
9611	allow_undefined_flag=unsupported
9612	always_export_symbols=yes
9613	file_list_spec='@'
9614	# Tell ltmain to make .lib files, not .a files.
9615	libext=lib
9616	# Tell ltmain to make .dll files, not .so files.
9617	shrext_cmds=".dll"
9618	# FIXME: Setting linknames here is a bad hack.
9619	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9620	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9621	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9622	  else
9623	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9624	  fi~
9625	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9626	  linknames='
9627	# The linker will not automatically build a static lib if we build a DLL.
9628	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9629	enable_shared_with_static_runtimes=yes
9630	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9631	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9632	# Don't use ranlib
9633	old_postinstall_cmds='chmod 644 $oldlib'
9634	postlink_cmds='lt_outputfile="@OUTPUT@"~
9635	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9636	  case $lt_outputfile in
9637	    *.exe|*.EXE) ;;
9638	    *)
9639	      lt_outputfile="$lt_outputfile.exe"
9640	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9641	      ;;
9642	  esac~
9643	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9644	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9645	    $RM "$lt_outputfile.manifest";
9646	  fi'
9647	;;
9648      *)
9649	# Assume MSVC wrapper
9650	hardcode_libdir_flag_spec=' '
9651	allow_undefined_flag=unsupported
9652	# Tell ltmain to make .lib files, not .a files.
9653	libext=lib
9654	# Tell ltmain to make .dll files, not .so files.
9655	shrext_cmds=".dll"
9656	# FIXME: Setting linknames here is a bad hack.
9657	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9658	# The linker will automatically build a .lib file if we build a DLL.
9659	old_archive_from_new_cmds='true'
9660	# FIXME: Should let the user specify the lib program.
9661	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9662	enable_shared_with_static_runtimes=yes
9663	;;
9664      esac
9665      ;;
9666
9667    darwin* | rhapsody*)
9668
9669
9670  archive_cmds_need_lc=no
9671  hardcode_direct=no
9672  hardcode_automatic=yes
9673  hardcode_shlibpath_var=unsupported
9674  if test "$lt_cv_ld_force_load" = "yes"; then
9675    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\"`'
9676
9677  else
9678    whole_archive_flag_spec=''
9679  fi
9680  link_all_deplibs=yes
9681  allow_undefined_flag="$_lt_dar_allow_undefined"
9682  case $cc_basename in
9683     ifort*) _lt_dar_can_shared=yes ;;
9684     *) _lt_dar_can_shared=$GCC ;;
9685  esac
9686  if test "$_lt_dar_can_shared" = "yes"; then
9687    output_verbose_link_cmd=func_echo_all
9688    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9689    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9690    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}"
9691    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}"
9692
9693  else
9694  ld_shlibs=no
9695  fi
9696
9697      ;;
9698
9699    dgux*)
9700      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701      hardcode_libdir_flag_spec='-L$libdir'
9702      hardcode_shlibpath_var=no
9703      ;;
9704
9705    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9706    # support.  Future versions do this automatically, but an explicit c++rt0.o
9707    # does not break anything, and helps significantly (at the cost of a little
9708    # extra space).
9709    freebsd2.2*)
9710      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9711      hardcode_libdir_flag_spec='-R$libdir'
9712      hardcode_direct=yes
9713      hardcode_shlibpath_var=no
9714      ;;
9715
9716    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9717    freebsd2.*)
9718      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9719      hardcode_direct=yes
9720      hardcode_minus_L=yes
9721      hardcode_shlibpath_var=no
9722      ;;
9723
9724    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9725    freebsd* | dragonfly*)
9726      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9727      hardcode_libdir_flag_spec='-R$libdir'
9728      hardcode_direct=yes
9729      hardcode_shlibpath_var=no
9730      ;;
9731
9732    hpux9*)
9733      if test "$GCC" = yes; then
9734	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9735      else
9736	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9737      fi
9738      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9739      hardcode_libdir_separator=:
9740      hardcode_direct=yes
9741
9742      # hardcode_minus_L: Not really in the search PATH,
9743      # but as the default location of the library.
9744      hardcode_minus_L=yes
9745      export_dynamic_flag_spec='${wl}-E'
9746      ;;
9747
9748    hpux10*)
9749      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9750	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9751      else
9752	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9753      fi
9754      if test "$with_gnu_ld" = no; then
9755	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9756	hardcode_libdir_separator=:
9757	hardcode_direct=yes
9758	hardcode_direct_absolute=yes
9759	export_dynamic_flag_spec='${wl}-E'
9760	# hardcode_minus_L: Not really in the search PATH,
9761	# but as the default location of the library.
9762	hardcode_minus_L=yes
9763      fi
9764      ;;
9765
9766    hpux11*)
9767      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9768	case $host_cpu in
9769	hppa*64*)
9770	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9771	  ;;
9772	ia64*)
9773	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9774	  ;;
9775	*)
9776	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9777	  ;;
9778	esac
9779      else
9780	case $host_cpu in
9781	hppa*64*)
9782	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9783	  ;;
9784	ia64*)
9785	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9786	  ;;
9787	*)
9788
9789	  # Older versions of the 11.00 compiler do not understand -b yet
9790	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9791	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9792$as_echo_n "checking if $CC understands -b... " >&6; }
9793if ${lt_cv_prog_compiler__b+:} false; then :
9794  $as_echo_n "(cached) " >&6
9795else
9796  lt_cv_prog_compiler__b=no
9797   save_LDFLAGS="$LDFLAGS"
9798   LDFLAGS="$LDFLAGS -b"
9799   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9800   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9801     # The linker can only warn and ignore the option if not recognized
9802     # So say no if there are warnings
9803     if test -s conftest.err; then
9804       # Append any errors to the config.log.
9805       cat conftest.err 1>&5
9806       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9807       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9808       if diff conftest.exp conftest.er2 >/dev/null; then
9809         lt_cv_prog_compiler__b=yes
9810       fi
9811     else
9812       lt_cv_prog_compiler__b=yes
9813     fi
9814   fi
9815   $RM -r conftest*
9816   LDFLAGS="$save_LDFLAGS"
9817
9818fi
9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9820$as_echo "$lt_cv_prog_compiler__b" >&6; }
9821
9822if test x"$lt_cv_prog_compiler__b" = xyes; then
9823    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9824else
9825    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9826fi
9827
9828	  ;;
9829	esac
9830      fi
9831      if test "$with_gnu_ld" = no; then
9832	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9833	hardcode_libdir_separator=:
9834
9835	case $host_cpu in
9836	hppa*64*|ia64*)
9837	  hardcode_direct=no
9838	  hardcode_shlibpath_var=no
9839	  ;;
9840	*)
9841	  hardcode_direct=yes
9842	  hardcode_direct_absolute=yes
9843	  export_dynamic_flag_spec='${wl}-E'
9844
9845	  # hardcode_minus_L: Not really in the search PATH,
9846	  # but as the default location of the library.
9847	  hardcode_minus_L=yes
9848	  ;;
9849	esac
9850      fi
9851      ;;
9852
9853    irix5* | irix6* | nonstopux*)
9854      if test "$GCC" = yes; then
9855	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'
9856	# Try to use the -exported_symbol ld option, if it does not
9857	# work, assume that -exports_file does not work either and
9858	# implicitly export all symbols.
9859	# This should be the same for all languages, so no per-tag cache variable.
9860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9861$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9862if ${lt_cv_irix_exported_symbol+:} false; then :
9863  $as_echo_n "(cached) " >&6
9864else
9865  save_LDFLAGS="$LDFLAGS"
9866	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9867	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868/* end confdefs.h.  */
9869int foo (void) { return 0; }
9870_ACEOF
9871if ac_fn_c_try_link "$LINENO"; then :
9872  lt_cv_irix_exported_symbol=yes
9873else
9874  lt_cv_irix_exported_symbol=no
9875fi
9876rm -f core conftest.err conftest.$ac_objext \
9877    conftest$ac_exeext conftest.$ac_ext
9878           LDFLAGS="$save_LDFLAGS"
9879fi
9880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9881$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9882	if test "$lt_cv_irix_exported_symbol" = yes; then
9883          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'
9884	fi
9885      else
9886	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'
9887	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'
9888      fi
9889      archive_cmds_need_lc='no'
9890      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9891      hardcode_libdir_separator=:
9892      inherit_rpath=yes
9893      link_all_deplibs=yes
9894      ;;
9895
9896    netbsd* | netbsdelf*-gnu)
9897      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9898	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9899      else
9900	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9901      fi
9902      hardcode_libdir_flag_spec='-R$libdir'
9903      hardcode_direct=yes
9904      hardcode_shlibpath_var=no
9905      ;;
9906
9907    newsos6)
9908      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9909      hardcode_direct=yes
9910      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9911      hardcode_libdir_separator=:
9912      hardcode_shlibpath_var=no
9913      ;;
9914
9915    *nto* | *qnx*)
9916      ;;
9917
9918    openbsd*)
9919      if test -f /usr/libexec/ld.so; then
9920	hardcode_direct=yes
9921	hardcode_shlibpath_var=no
9922	hardcode_direct_absolute=yes
9923	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9924	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9925	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9926	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9927	  export_dynamic_flag_spec='${wl}-E'
9928	else
9929	  case $host_os in
9930	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9931	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9932	     hardcode_libdir_flag_spec='-R$libdir'
9933	     ;;
9934	   *)
9935	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9936	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9937	     ;;
9938	  esac
9939	fi
9940      else
9941	ld_shlibs=no
9942      fi
9943      ;;
9944
9945    os2*)
9946      hardcode_libdir_flag_spec='-L$libdir'
9947      hardcode_minus_L=yes
9948      allow_undefined_flag=unsupported
9949      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9950      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9951      ;;
9952
9953    osf3*)
9954      if test "$GCC" = yes; then
9955	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9956	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'
9957      else
9958	allow_undefined_flag=' -expect_unresolved \*'
9959	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'
9960      fi
9961      archive_cmds_need_lc='no'
9962      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9963      hardcode_libdir_separator=:
9964      ;;
9965
9966    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9967      if test "$GCC" = yes; then
9968	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9969	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'
9970	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9971      else
9972	allow_undefined_flag=' -expect_unresolved \*'
9973	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'
9974	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~
9975	$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'
9976
9977	# Both c and cxx compiler support -rpath directly
9978	hardcode_libdir_flag_spec='-rpath $libdir'
9979      fi
9980      archive_cmds_need_lc='no'
9981      hardcode_libdir_separator=:
9982      ;;
9983
9984    solaris*)
9985      no_undefined_flag=' -z defs'
9986      if test "$GCC" = yes; then
9987	wlarc='${wl}'
9988	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9989	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9990	  $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'
9991      else
9992	case `$CC -V 2>&1` in
9993	*"Compilers 5.0"*)
9994	  wlarc=''
9995	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9996	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9997	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9998	  ;;
9999	*)
10000	  wlarc='${wl}'
10001	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10002	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10003	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10004	  ;;
10005	esac
10006      fi
10007      hardcode_libdir_flag_spec='-R$libdir'
10008      hardcode_shlibpath_var=no
10009      case $host_os in
10010      solaris2.[0-5] | solaris2.[0-5].*) ;;
10011      *)
10012	# The compiler driver will combine and reorder linker options,
10013	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10014	# but is careful enough not to reorder.
10015	# Supported since Solaris 2.6 (maybe 2.5.1?)
10016	if test "$GCC" = yes; then
10017	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10018	else
10019	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10020	fi
10021	;;
10022      esac
10023      link_all_deplibs=yes
10024      ;;
10025
10026    sunos4*)
10027      if test "x$host_vendor" = xsequent; then
10028	# Use $CC to link under sequent, because it throws in some extra .o
10029	# files that make .init and .fini sections work.
10030	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10031      else
10032	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10033      fi
10034      hardcode_libdir_flag_spec='-L$libdir'
10035      hardcode_direct=yes
10036      hardcode_minus_L=yes
10037      hardcode_shlibpath_var=no
10038      ;;
10039
10040    sysv4)
10041      case $host_vendor in
10042	sni)
10043	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10044	  hardcode_direct=yes # is this really true???
10045	;;
10046	siemens)
10047	  ## LD is ld it makes a PLAMLIB
10048	  ## CC just makes a GrossModule.
10049	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10050	  reload_cmds='$CC -r -o $output$reload_objs'
10051	  hardcode_direct=no
10052        ;;
10053	motorola)
10054	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10056	;;
10057      esac
10058      runpath_var='LD_RUN_PATH'
10059      hardcode_shlibpath_var=no
10060      ;;
10061
10062    sysv4.3*)
10063      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064      hardcode_shlibpath_var=no
10065      export_dynamic_flag_spec='-Bexport'
10066      ;;
10067
10068    sysv4*MP*)
10069      if test -d /usr/nec; then
10070	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071	hardcode_shlibpath_var=no
10072	runpath_var=LD_RUN_PATH
10073	hardcode_runpath_var=yes
10074	ld_shlibs=yes
10075      fi
10076      ;;
10077
10078    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10079      no_undefined_flag='${wl}-z,text'
10080      archive_cmds_need_lc=no
10081      hardcode_shlibpath_var=no
10082      runpath_var='LD_RUN_PATH'
10083
10084      if test "$GCC" = yes; then
10085	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10086	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10087      else
10088	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090      fi
10091      ;;
10092
10093    sysv5* | sco3.2v5* | sco5v6*)
10094      # Note: We can NOT use -z defs as we might desire, because we do not
10095      # link with -lc, and that would cause any symbols used from libc to
10096      # always be unresolved, which means just about no library would
10097      # ever link correctly.  If we're not using GNU ld we use -z text
10098      # though, which does catch some bad symbols but isn't as heavy-handed
10099      # as -z defs.
10100      no_undefined_flag='${wl}-z,text'
10101      allow_undefined_flag='${wl}-z,nodefs'
10102      archive_cmds_need_lc=no
10103      hardcode_shlibpath_var=no
10104      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10105      hardcode_libdir_separator=':'
10106      link_all_deplibs=yes
10107      export_dynamic_flag_spec='${wl}-Bexport'
10108      runpath_var='LD_RUN_PATH'
10109
10110      if test "$GCC" = yes; then
10111	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10112	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113      else
10114	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116      fi
10117      ;;
10118
10119    uts4*)
10120      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121      hardcode_libdir_flag_spec='-L$libdir'
10122      hardcode_shlibpath_var=no
10123      ;;
10124
10125    *)
10126      ld_shlibs=no
10127      ;;
10128    esac
10129
10130    if test x$host_vendor = xsni; then
10131      case $host in
10132      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10133	export_dynamic_flag_spec='${wl}-Blargedynsym'
10134	;;
10135      esac
10136    fi
10137  fi
10138
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10140$as_echo "$ld_shlibs" >&6; }
10141test "$ld_shlibs" = no && can_build_shared=no
10142
10143with_gnu_ld=$with_gnu_ld
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159#
10160# Do we need to explicitly link libc?
10161#
10162case "x$archive_cmds_need_lc" in
10163x|xyes)
10164  # Assume -lc should be added
10165  archive_cmds_need_lc=yes
10166
10167  if test "$enable_shared" = yes && test "$GCC" = yes; then
10168    case $archive_cmds in
10169    *'~'*)
10170      # FIXME: we may have to deal with multi-command sequences.
10171      ;;
10172    '$CC '*)
10173      # Test whether the compiler implicitly links with -lc since on some
10174      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10175      # to ld, don't add -lc before -lgcc.
10176      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10177$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10178if ${lt_cv_archive_cmds_need_lc+:} false; then :
10179  $as_echo_n "(cached) " >&6
10180else
10181  $RM conftest*
10182	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10183
10184	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10185  (eval $ac_compile) 2>&5
10186  ac_status=$?
10187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10188  test $ac_status = 0; } 2>conftest.err; then
10189	  soname=conftest
10190	  lib=conftest
10191	  libobjs=conftest.$ac_objext
10192	  deplibs=
10193	  wl=$lt_prog_compiler_wl
10194	  pic_flag=$lt_prog_compiler_pic
10195	  compiler_flags=-v
10196	  linker_flags=-v
10197	  verstring=
10198	  output_objdir=.
10199	  libname=conftest
10200	  lt_save_allow_undefined_flag=$allow_undefined_flag
10201	  allow_undefined_flag=
10202	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10203  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10204  ac_status=$?
10205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10206  test $ac_status = 0; }
10207	  then
10208	    lt_cv_archive_cmds_need_lc=no
10209	  else
10210	    lt_cv_archive_cmds_need_lc=yes
10211	  fi
10212	  allow_undefined_flag=$lt_save_allow_undefined_flag
10213	else
10214	  cat conftest.err 1>&5
10215	fi
10216	$RM conftest*
10217
10218fi
10219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10220$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10221      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10222      ;;
10223    esac
10224  fi
10225  ;;
10226esac
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10380$as_echo_n "checking dynamic linker characteristics... " >&6; }
10381
10382if test "$GCC" = yes; then
10383  case $host_os in
10384    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10385    *) lt_awk_arg="/^libraries:/" ;;
10386  esac
10387  case $host_os in
10388    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10389    *) lt_sed_strip_eq="s,=/,/,g" ;;
10390  esac
10391  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10392  case $lt_search_path_spec in
10393  *\;*)
10394    # if the path contains ";" then we assume it to be the separator
10395    # otherwise default to the standard path separator (i.e. ":") - it is
10396    # assumed that no part of a normal pathname contains ";" but that should
10397    # okay in the real world where ";" in dirpaths is itself problematic.
10398    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10399    ;;
10400  *)
10401    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10402    ;;
10403  esac
10404  # Ok, now we have the path, separated by spaces, we can step through it
10405  # and add multilib dir if necessary.
10406  lt_tmp_lt_search_path_spec=
10407  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10408  for lt_sys_path in $lt_search_path_spec; do
10409    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10410      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10411    else
10412      test -d "$lt_sys_path" && \
10413	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10414    fi
10415  done
10416  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10417BEGIN {RS=" "; FS="/|\n";} {
10418  lt_foo="";
10419  lt_count=0;
10420  for (lt_i = NF; lt_i > 0; lt_i--) {
10421    if ($lt_i != "" && $lt_i != ".") {
10422      if ($lt_i == "..") {
10423        lt_count++;
10424      } else {
10425        if (lt_count == 0) {
10426          lt_foo="/" $lt_i lt_foo;
10427        } else {
10428          lt_count--;
10429        }
10430      }
10431    }
10432  }
10433  if (lt_foo != "") { lt_freq[lt_foo]++; }
10434  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10435}'`
10436  # AWK program above erroneously prepends '/' to C:/dos/paths
10437  # for these hosts.
10438  case $host_os in
10439    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10440      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10441  esac
10442  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10443else
10444  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10445fi
10446library_names_spec=
10447libname_spec='lib$name'
10448soname_spec=
10449shrext_cmds=".so"
10450postinstall_cmds=
10451postuninstall_cmds=
10452finish_cmds=
10453finish_eval=
10454shlibpath_var=
10455shlibpath_overrides_runpath=unknown
10456version_type=none
10457dynamic_linker="$host_os ld.so"
10458sys_lib_dlsearch_path_spec="/lib /usr/lib"
10459need_lib_prefix=unknown
10460hardcode_into_libs=no
10461
10462# when you set need_version to no, make sure it does not cause -set_version
10463# flags to be left without arguments
10464need_version=unknown
10465
10466case $host_os in
10467aix3*)
10468  version_type=linux # correct to gnu/linux during the next big refactor
10469  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10470  shlibpath_var=LIBPATH
10471
10472  # AIX 3 has no versioning support, so we append a major version to the name.
10473  soname_spec='${libname}${release}${shared_ext}$major'
10474  ;;
10475
10476aix[4-9]*)
10477  version_type=linux # correct to gnu/linux during the next big refactor
10478  need_lib_prefix=no
10479  need_version=no
10480  hardcode_into_libs=yes
10481  if test "$host_cpu" = ia64; then
10482    # AIX 5 supports IA64
10483    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10484    shlibpath_var=LD_LIBRARY_PATH
10485  else
10486    # With GCC up to 2.95.x, collect2 would create an import file
10487    # for dependence libraries.  The import file would start with
10488    # the line `#! .'.  This would cause the generated library to
10489    # depend on `.', always an invalid library.  This was fixed in
10490    # development snapshots of GCC prior to 3.0.
10491    case $host_os in
10492      aix4 | aix4.[01] | aix4.[01].*)
10493      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10494	   echo ' yes '
10495	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10496	:
10497      else
10498	can_build_shared=no
10499      fi
10500      ;;
10501    esac
10502    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10503    # soname into executable. Probably we can add versioning support to
10504    # collect2, so additional links can be useful in future.
10505    if test "$aix_use_runtimelinking" = yes; then
10506      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10507      # instead of lib<name>.a to let people know that these are not
10508      # typical AIX shared libraries.
10509      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510    else
10511      # We preserve .a as extension for shared libraries through AIX4.2
10512      # and later when we are not doing run time linking.
10513      library_names_spec='${libname}${release}.a $libname.a'
10514      soname_spec='${libname}${release}${shared_ext}$major'
10515    fi
10516    shlibpath_var=LIBPATH
10517  fi
10518  ;;
10519
10520amigaos*)
10521  case $host_cpu in
10522  powerpc)
10523    # Since July 2007 AmigaOS4 officially supports .so libraries.
10524    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10525    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526    ;;
10527  m68k)
10528    library_names_spec='$libname.ixlibrary $libname.a'
10529    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10530    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10531    ;;
10532  esac
10533  ;;
10534
10535beos*)
10536  library_names_spec='${libname}${shared_ext}'
10537  dynamic_linker="$host_os ld.so"
10538  shlibpath_var=LIBRARY_PATH
10539  ;;
10540
10541bsdi[45]*)
10542  version_type=linux # correct to gnu/linux during the next big refactor
10543  need_version=no
10544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545  soname_spec='${libname}${release}${shared_ext}$major'
10546  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10547  shlibpath_var=LD_LIBRARY_PATH
10548  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10549  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10550  # the default ld.so.conf also contains /usr/contrib/lib and
10551  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10552  # libtool to hard-code these into programs
10553  ;;
10554
10555cygwin* | mingw* | pw32* | cegcc*)
10556  version_type=windows
10557  shrext_cmds=".dll"
10558  need_version=no
10559  need_lib_prefix=no
10560
10561  case $GCC,$cc_basename in
10562  yes,*)
10563    # gcc
10564    library_names_spec='$libname.dll.a'
10565    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10566    postinstall_cmds='base_file=`basename \${file}`~
10567      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10568      dldir=$destdir/`dirname \$dlpath`~
10569      test -d \$dldir || mkdir -p \$dldir~
10570      $install_prog $dir/$dlname \$dldir/$dlname~
10571      chmod a+x \$dldir/$dlname~
10572      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10573        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10574      fi'
10575    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10576      dlpath=$dir/\$dldll~
10577       $RM \$dlpath'
10578    shlibpath_overrides_runpath=yes
10579
10580    case $host_os in
10581    cygwin*)
10582      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10583      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10584
10585      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10586      ;;
10587    mingw* | cegcc*)
10588      # MinGW DLLs use traditional 'lib' prefix
10589      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10590      ;;
10591    pw32*)
10592      # pw32 DLLs use 'pw' prefix rather than 'lib'
10593      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10594      ;;
10595    esac
10596    dynamic_linker='Win32 ld.exe'
10597    ;;
10598
10599  *,cl*)
10600    # Native MSVC
10601    libname_spec='$name'
10602    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10603    library_names_spec='${libname}.dll.lib'
10604
10605    case $build_os in
10606    mingw*)
10607      sys_lib_search_path_spec=
10608      lt_save_ifs=$IFS
10609      IFS=';'
10610      for lt_path in $LIB
10611      do
10612        IFS=$lt_save_ifs
10613        # Let DOS variable expansion print the short 8.3 style file name.
10614        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10615        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10616      done
10617      IFS=$lt_save_ifs
10618      # Convert to MSYS style.
10619      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10620      ;;
10621    cygwin*)
10622      # Convert to unix form, then to dos form, then back to unix form
10623      # but this time dos style (no spaces!) so that the unix form looks
10624      # like /cygdrive/c/PROGRA~1:/cygdr...
10625      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10626      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10627      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10628      ;;
10629    *)
10630      sys_lib_search_path_spec="$LIB"
10631      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10632        # It is most probably a Windows format PATH.
10633        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10634      else
10635        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10636      fi
10637      # FIXME: find the short name or the path components, as spaces are
10638      # common. (e.g. "Program Files" -> "PROGRA~1")
10639      ;;
10640    esac
10641
10642    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10643    postinstall_cmds='base_file=`basename \${file}`~
10644      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10645      dldir=$destdir/`dirname \$dlpath`~
10646      test -d \$dldir || mkdir -p \$dldir~
10647      $install_prog $dir/$dlname \$dldir/$dlname'
10648    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10649      dlpath=$dir/\$dldll~
10650       $RM \$dlpath'
10651    shlibpath_overrides_runpath=yes
10652    dynamic_linker='Win32 link.exe'
10653    ;;
10654
10655  *)
10656    # Assume MSVC wrapper
10657    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10658    dynamic_linker='Win32 ld.exe'
10659    ;;
10660  esac
10661  # FIXME: first we should search . and the directory the executable is in
10662  shlibpath_var=PATH
10663  ;;
10664
10665darwin* | rhapsody*)
10666  dynamic_linker="$host_os dyld"
10667  version_type=darwin
10668  need_lib_prefix=no
10669  need_version=no
10670  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10671  soname_spec='${libname}${release}${major}$shared_ext'
10672  shlibpath_overrides_runpath=yes
10673  shlibpath_var=DYLD_LIBRARY_PATH
10674  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10675
10676  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10677  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10678  ;;
10679
10680dgux*)
10681  version_type=linux # correct to gnu/linux during the next big refactor
10682  need_lib_prefix=no
10683  need_version=no
10684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10685  soname_spec='${libname}${release}${shared_ext}$major'
10686  shlibpath_var=LD_LIBRARY_PATH
10687  ;;
10688
10689freebsd* | dragonfly*)
10690  # DragonFly does not have aout.  When/if they implement a new
10691  # versioning mechanism, adjust this.
10692  if test -x /usr/bin/objformat; then
10693    objformat=`/usr/bin/objformat`
10694  else
10695    case $host_os in
10696    freebsd[23].*) objformat=aout ;;
10697    *) objformat=elf ;;
10698    esac
10699  fi
10700  version_type=freebsd-$objformat
10701  case $version_type in
10702    freebsd-elf*)
10703      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10704      need_version=no
10705      need_lib_prefix=no
10706      ;;
10707    freebsd-*)
10708      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10709      need_version=yes
10710      ;;
10711  esac
10712  shlibpath_var=LD_LIBRARY_PATH
10713  case $host_os in
10714  freebsd2.*)
10715    shlibpath_overrides_runpath=yes
10716    ;;
10717  freebsd3.[01]* | freebsdelf3.[01]*)
10718    shlibpath_overrides_runpath=yes
10719    hardcode_into_libs=yes
10720    ;;
10721  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10722  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10723    shlibpath_overrides_runpath=no
10724    hardcode_into_libs=yes
10725    ;;
10726  *) # from 4.6 on, and DragonFly
10727    shlibpath_overrides_runpath=yes
10728    hardcode_into_libs=yes
10729    ;;
10730  esac
10731  ;;
10732
10733haiku*)
10734  version_type=linux # correct to gnu/linux during the next big refactor
10735  need_lib_prefix=no
10736  need_version=no
10737  dynamic_linker="$host_os runtime_loader"
10738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10739  soname_spec='${libname}${release}${shared_ext}$major'
10740  shlibpath_var=LIBRARY_PATH
10741  shlibpath_overrides_runpath=yes
10742  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10743  hardcode_into_libs=yes
10744  ;;
10745
10746hpux9* | hpux10* | hpux11*)
10747  # Give a soname corresponding to the major version so that dld.sl refuses to
10748  # link against other versions.
10749  version_type=sunos
10750  need_lib_prefix=no
10751  need_version=no
10752  case $host_cpu in
10753  ia64*)
10754    shrext_cmds='.so'
10755    hardcode_into_libs=yes
10756    dynamic_linker="$host_os dld.so"
10757    shlibpath_var=LD_LIBRARY_PATH
10758    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10759    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760    soname_spec='${libname}${release}${shared_ext}$major'
10761    if test "X$HPUX_IA64_MODE" = X32; then
10762      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10763    else
10764      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10765    fi
10766    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10767    ;;
10768  hppa*64*)
10769    shrext_cmds='.sl'
10770    hardcode_into_libs=yes
10771    dynamic_linker="$host_os dld.sl"
10772    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10773    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10774    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775    soname_spec='${libname}${release}${shared_ext}$major'
10776    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10777    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10778    ;;
10779  *)
10780    shrext_cmds='.sl'
10781    dynamic_linker="$host_os dld.sl"
10782    shlibpath_var=SHLIB_PATH
10783    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10784    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785    soname_spec='${libname}${release}${shared_ext}$major'
10786    ;;
10787  esac
10788  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10789  postinstall_cmds='chmod 555 $lib'
10790  # or fails outright, so override atomically:
10791  install_override_mode=555
10792  ;;
10793
10794interix[3-9]*)
10795  version_type=linux # correct to gnu/linux during the next big refactor
10796  need_lib_prefix=no
10797  need_version=no
10798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10799  soname_spec='${libname}${release}${shared_ext}$major'
10800  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10801  shlibpath_var=LD_LIBRARY_PATH
10802  shlibpath_overrides_runpath=no
10803  hardcode_into_libs=yes
10804  ;;
10805
10806irix5* | irix6* | nonstopux*)
10807  case $host_os in
10808    nonstopux*) version_type=nonstopux ;;
10809    *)
10810	if test "$lt_cv_prog_gnu_ld" = yes; then
10811		version_type=linux # correct to gnu/linux during the next big refactor
10812	else
10813		version_type=irix
10814	fi ;;
10815  esac
10816  need_lib_prefix=no
10817  need_version=no
10818  soname_spec='${libname}${release}${shared_ext}$major'
10819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10820  case $host_os in
10821  irix5* | nonstopux*)
10822    libsuff= shlibsuff=
10823    ;;
10824  *)
10825    case $LD in # libtool.m4 will add one of these switches to LD
10826    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10827      libsuff= shlibsuff= libmagic=32-bit;;
10828    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10829      libsuff=32 shlibsuff=N32 libmagic=N32;;
10830    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10831      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10832    *) libsuff= shlibsuff= libmagic=never-match;;
10833    esac
10834    ;;
10835  esac
10836  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10837  shlibpath_overrides_runpath=no
10838  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10839  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10840  hardcode_into_libs=yes
10841  ;;
10842
10843# No shared lib support for Linux oldld, aout, or coff.
10844linux*oldld* | linux*aout* | linux*coff*)
10845  dynamic_linker=no
10846  ;;
10847
10848# This must be glibc/ELF.
10849linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10850  version_type=linux # correct to gnu/linux during the next big refactor
10851  need_lib_prefix=no
10852  need_version=no
10853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854  soname_spec='${libname}${release}${shared_ext}$major'
10855  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10856  shlibpath_var=LD_LIBRARY_PATH
10857  shlibpath_overrides_runpath=no
10858
10859  # Some binutils ld are patched to set DT_RUNPATH
10860  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10861  $as_echo_n "(cached) " >&6
10862else
10863  lt_cv_shlibpath_overrides_runpath=no
10864    save_LDFLAGS=$LDFLAGS
10865    save_libdir=$libdir
10866    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10867	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10868    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869/* end confdefs.h.  */
10870
10871int
10872main ()
10873{
10874
10875  ;
10876  return 0;
10877}
10878_ACEOF
10879if ac_fn_c_try_link "$LINENO"; then :
10880  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10881  lt_cv_shlibpath_overrides_runpath=yes
10882fi
10883fi
10884rm -f core conftest.err conftest.$ac_objext \
10885    conftest$ac_exeext conftest.$ac_ext
10886    LDFLAGS=$save_LDFLAGS
10887    libdir=$save_libdir
10888
10889fi
10890
10891  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10892
10893  # This implies no fast_install, which is unacceptable.
10894  # Some rework will be needed to allow for fast_install
10895  # before this can be enabled.
10896  hardcode_into_libs=yes
10897
10898  # Append ld.so.conf contents to the search path
10899  if test -f /etc/ld.so.conf; then
10900    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' ' '`
10901    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10902  fi
10903
10904  # We used to test for /lib/ld.so.1 and disable shared libraries on
10905  # powerpc, because MkLinux only supported shared libraries with the
10906  # GNU dynamic linker.  Since this was broken with cross compilers,
10907  # most powerpc-linux boxes support dynamic linking these days and
10908  # people can always --disable-shared, the test was removed, and we
10909  # assume the GNU/Linux dynamic linker is in use.
10910  dynamic_linker='GNU/Linux ld.so'
10911  ;;
10912
10913netbsdelf*-gnu)
10914  version_type=linux
10915  need_lib_prefix=no
10916  need_version=no
10917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10918  soname_spec='${libname}${release}${shared_ext}$major'
10919  shlibpath_var=LD_LIBRARY_PATH
10920  shlibpath_overrides_runpath=no
10921  hardcode_into_libs=yes
10922  dynamic_linker='NetBSD ld.elf_so'
10923  ;;
10924
10925netbsd*)
10926  version_type=sunos
10927  need_lib_prefix=no
10928  need_version=no
10929  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10930    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10931    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10932    dynamic_linker='NetBSD (a.out) ld.so'
10933  else
10934    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10935    soname_spec='${libname}${release}${shared_ext}$major'
10936    dynamic_linker='NetBSD ld.elf_so'
10937  fi
10938  shlibpath_var=LD_LIBRARY_PATH
10939  shlibpath_overrides_runpath=yes
10940  hardcode_into_libs=yes
10941  ;;
10942
10943newsos6)
10944  version_type=linux # correct to gnu/linux during the next big refactor
10945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946  shlibpath_var=LD_LIBRARY_PATH
10947  shlibpath_overrides_runpath=yes
10948  ;;
10949
10950*nto* | *qnx*)
10951  version_type=qnx
10952  need_lib_prefix=no
10953  need_version=no
10954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955  soname_spec='${libname}${release}${shared_ext}$major'
10956  shlibpath_var=LD_LIBRARY_PATH
10957  shlibpath_overrides_runpath=no
10958  hardcode_into_libs=yes
10959  dynamic_linker='ldqnx.so'
10960  ;;
10961
10962openbsd*)
10963  version_type=sunos
10964  sys_lib_dlsearch_path_spec="/usr/lib"
10965  need_lib_prefix=no
10966  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10967  case $host_os in
10968    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10969    *)				need_version=no  ;;
10970  esac
10971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10972  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10973  shlibpath_var=LD_LIBRARY_PATH
10974  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10975    case $host_os in
10976      openbsd2.[89] | openbsd2.[89].*)
10977	shlibpath_overrides_runpath=no
10978	;;
10979      *)
10980	shlibpath_overrides_runpath=yes
10981	;;
10982      esac
10983  else
10984    shlibpath_overrides_runpath=yes
10985  fi
10986  ;;
10987
10988os2*)
10989  libname_spec='$name'
10990  shrext_cmds=".dll"
10991  need_lib_prefix=no
10992  library_names_spec='$libname${shared_ext} $libname.a'
10993  dynamic_linker='OS/2 ld.exe'
10994  shlibpath_var=LIBPATH
10995  ;;
10996
10997osf3* | osf4* | osf5*)
10998  version_type=osf
10999  need_lib_prefix=no
11000  need_version=no
11001  soname_spec='${libname}${release}${shared_ext}$major'
11002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11003  shlibpath_var=LD_LIBRARY_PATH
11004  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11005  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11006  ;;
11007
11008rdos*)
11009  dynamic_linker=no
11010  ;;
11011
11012solaris*)
11013  version_type=linux # correct to gnu/linux during the next big refactor
11014  need_lib_prefix=no
11015  need_version=no
11016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017  soname_spec='${libname}${release}${shared_ext}$major'
11018  shlibpath_var=LD_LIBRARY_PATH
11019  shlibpath_overrides_runpath=yes
11020  hardcode_into_libs=yes
11021  # ldd complains unless libraries are executable
11022  postinstall_cmds='chmod +x $lib'
11023  ;;
11024
11025sunos4*)
11026  version_type=sunos
11027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11028  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11029  shlibpath_var=LD_LIBRARY_PATH
11030  shlibpath_overrides_runpath=yes
11031  if test "$with_gnu_ld" = yes; then
11032    need_lib_prefix=no
11033  fi
11034  need_version=yes
11035  ;;
11036
11037sysv4 | sysv4.3*)
11038  version_type=linux # correct to gnu/linux during the next big refactor
11039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040  soname_spec='${libname}${release}${shared_ext}$major'
11041  shlibpath_var=LD_LIBRARY_PATH
11042  case $host_vendor in
11043    sni)
11044      shlibpath_overrides_runpath=no
11045      need_lib_prefix=no
11046      runpath_var=LD_RUN_PATH
11047      ;;
11048    siemens)
11049      need_lib_prefix=no
11050      ;;
11051    motorola)
11052      need_lib_prefix=no
11053      need_version=no
11054      shlibpath_overrides_runpath=no
11055      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11056      ;;
11057  esac
11058  ;;
11059
11060sysv4*MP*)
11061  if test -d /usr/nec ;then
11062    version_type=linux # correct to gnu/linux during the next big refactor
11063    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11064    soname_spec='$libname${shared_ext}.$major'
11065    shlibpath_var=LD_LIBRARY_PATH
11066  fi
11067  ;;
11068
11069sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11070  version_type=freebsd-elf
11071  need_lib_prefix=no
11072  need_version=no
11073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11074  soname_spec='${libname}${release}${shared_ext}$major'
11075  shlibpath_var=LD_LIBRARY_PATH
11076  shlibpath_overrides_runpath=yes
11077  hardcode_into_libs=yes
11078  if test "$with_gnu_ld" = yes; then
11079    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11080  else
11081    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11082    case $host_os in
11083      sco3.2v5*)
11084        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11085	;;
11086    esac
11087  fi
11088  sys_lib_dlsearch_path_spec='/usr/lib'
11089  ;;
11090
11091tpf*)
11092  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11093  version_type=linux # correct to gnu/linux during the next big refactor
11094  need_lib_prefix=no
11095  need_version=no
11096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097  shlibpath_var=LD_LIBRARY_PATH
11098  shlibpath_overrides_runpath=no
11099  hardcode_into_libs=yes
11100  ;;
11101
11102uts4*)
11103  version_type=linux # correct to gnu/linux during the next big refactor
11104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105  soname_spec='${libname}${release}${shared_ext}$major'
11106  shlibpath_var=LD_LIBRARY_PATH
11107  ;;
11108
11109*)
11110  dynamic_linker=no
11111  ;;
11112esac
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11114$as_echo "$dynamic_linker" >&6; }
11115test "$dynamic_linker" = no && can_build_shared=no
11116
11117variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11118if test "$GCC" = yes; then
11119  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11120fi
11121
11122if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11123  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11124fi
11125if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11126  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11127fi
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11221$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11222hardcode_action=
11223if test -n "$hardcode_libdir_flag_spec" ||
11224   test -n "$runpath_var" ||
11225   test "X$hardcode_automatic" = "Xyes" ; then
11226
11227  # We can hardcode non-existent directories.
11228  if test "$hardcode_direct" != no &&
11229     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11230     # have to relink, otherwise we might link with an installed library
11231     # when we should be linking with a yet-to-be-installed one
11232     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11233     test "$hardcode_minus_L" != no; then
11234    # Linking always hardcodes the temporary library directory.
11235    hardcode_action=relink
11236  else
11237    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11238    hardcode_action=immediate
11239  fi
11240else
11241  # We cannot hardcode anything, or else we can only hardcode existing
11242  # directories.
11243  hardcode_action=unsupported
11244fi
11245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11246$as_echo "$hardcode_action" >&6; }
11247
11248if test "$hardcode_action" = relink ||
11249   test "$inherit_rpath" = yes; then
11250  # Fast installation is not supported
11251  enable_fast_install=no
11252elif test "$shlibpath_overrides_runpath" = yes ||
11253     test "$enable_shared" = no; then
11254  # Fast installation is not necessary
11255  enable_fast_install=needless
11256fi
11257
11258
11259
11260
11261
11262
11263  if test "x$enable_dlopen" != xyes; then
11264  enable_dlopen=unknown
11265  enable_dlopen_self=unknown
11266  enable_dlopen_self_static=unknown
11267else
11268  lt_cv_dlopen=no
11269  lt_cv_dlopen_libs=
11270
11271  case $host_os in
11272  beos*)
11273    lt_cv_dlopen="load_add_on"
11274    lt_cv_dlopen_libs=
11275    lt_cv_dlopen_self=yes
11276    ;;
11277
11278  mingw* | pw32* | cegcc*)
11279    lt_cv_dlopen="LoadLibrary"
11280    lt_cv_dlopen_libs=
11281    ;;
11282
11283  cygwin*)
11284    lt_cv_dlopen="dlopen"
11285    lt_cv_dlopen_libs=
11286    ;;
11287
11288  darwin*)
11289  # if libdl is installed we need to link against it
11290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11291$as_echo_n "checking for dlopen in -ldl... " >&6; }
11292if ${ac_cv_lib_dl_dlopen+:} false; then :
11293  $as_echo_n "(cached) " >&6
11294else
11295  ac_check_lib_save_LIBS=$LIBS
11296LIBS="-ldl  $LIBS"
11297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298/* end confdefs.h.  */
11299
11300/* Override any GCC internal prototype to avoid an error.
11301   Use char because int might match the return type of a GCC
11302   builtin and then its argument prototype would still apply.  */
11303#ifdef __cplusplus
11304extern "C"
11305#endif
11306char dlopen ();
11307int
11308main ()
11309{
11310return dlopen ();
11311  ;
11312  return 0;
11313}
11314_ACEOF
11315if ac_fn_c_try_link "$LINENO"; then :
11316  ac_cv_lib_dl_dlopen=yes
11317else
11318  ac_cv_lib_dl_dlopen=no
11319fi
11320rm -f core conftest.err conftest.$ac_objext \
11321    conftest$ac_exeext conftest.$ac_ext
11322LIBS=$ac_check_lib_save_LIBS
11323fi
11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11325$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11326if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11327  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11328else
11329
11330    lt_cv_dlopen="dyld"
11331    lt_cv_dlopen_libs=
11332    lt_cv_dlopen_self=yes
11333
11334fi
11335
11336    ;;
11337
11338  *)
11339    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11340if test "x$ac_cv_func_shl_load" = xyes; then :
11341  lt_cv_dlopen="shl_load"
11342else
11343  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11344$as_echo_n "checking for shl_load in -ldld... " >&6; }
11345if ${ac_cv_lib_dld_shl_load+:} false; then :
11346  $as_echo_n "(cached) " >&6
11347else
11348  ac_check_lib_save_LIBS=$LIBS
11349LIBS="-ldld  $LIBS"
11350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351/* end confdefs.h.  */
11352
11353/* Override any GCC internal prototype to avoid an error.
11354   Use char because int might match the return type of a GCC
11355   builtin and then its argument prototype would still apply.  */
11356#ifdef __cplusplus
11357extern "C"
11358#endif
11359char shl_load ();
11360int
11361main ()
11362{
11363return shl_load ();
11364  ;
11365  return 0;
11366}
11367_ACEOF
11368if ac_fn_c_try_link "$LINENO"; then :
11369  ac_cv_lib_dld_shl_load=yes
11370else
11371  ac_cv_lib_dld_shl_load=no
11372fi
11373rm -f core conftest.err conftest.$ac_objext \
11374    conftest$ac_exeext conftest.$ac_ext
11375LIBS=$ac_check_lib_save_LIBS
11376fi
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11378$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11379if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11380  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11381else
11382  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11383if test "x$ac_cv_func_dlopen" = xyes; then :
11384  lt_cv_dlopen="dlopen"
11385else
11386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11387$as_echo_n "checking for dlopen in -ldl... " >&6; }
11388if ${ac_cv_lib_dl_dlopen+:} false; then :
11389  $as_echo_n "(cached) " >&6
11390else
11391  ac_check_lib_save_LIBS=$LIBS
11392LIBS="-ldl  $LIBS"
11393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394/* end confdefs.h.  */
11395
11396/* Override any GCC internal prototype to avoid an error.
11397   Use char because int might match the return type of a GCC
11398   builtin and then its argument prototype would still apply.  */
11399#ifdef __cplusplus
11400extern "C"
11401#endif
11402char dlopen ();
11403int
11404main ()
11405{
11406return dlopen ();
11407  ;
11408  return 0;
11409}
11410_ACEOF
11411if ac_fn_c_try_link "$LINENO"; then :
11412  ac_cv_lib_dl_dlopen=yes
11413else
11414  ac_cv_lib_dl_dlopen=no
11415fi
11416rm -f core conftest.err conftest.$ac_objext \
11417    conftest$ac_exeext conftest.$ac_ext
11418LIBS=$ac_check_lib_save_LIBS
11419fi
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11421$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11422if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11423  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11424else
11425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11426$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11427if ${ac_cv_lib_svld_dlopen+:} false; then :
11428  $as_echo_n "(cached) " >&6
11429else
11430  ac_check_lib_save_LIBS=$LIBS
11431LIBS="-lsvld  $LIBS"
11432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433/* end confdefs.h.  */
11434
11435/* Override any GCC internal prototype to avoid an error.
11436   Use char because int might match the return type of a GCC
11437   builtin and then its argument prototype would still apply.  */
11438#ifdef __cplusplus
11439extern "C"
11440#endif
11441char dlopen ();
11442int
11443main ()
11444{
11445return dlopen ();
11446  ;
11447  return 0;
11448}
11449_ACEOF
11450if ac_fn_c_try_link "$LINENO"; then :
11451  ac_cv_lib_svld_dlopen=yes
11452else
11453  ac_cv_lib_svld_dlopen=no
11454fi
11455rm -f core conftest.err conftest.$ac_objext \
11456    conftest$ac_exeext conftest.$ac_ext
11457LIBS=$ac_check_lib_save_LIBS
11458fi
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11460$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11461if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11462  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11463else
11464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11465$as_echo_n "checking for dld_link in -ldld... " >&6; }
11466if ${ac_cv_lib_dld_dld_link+:} false; then :
11467  $as_echo_n "(cached) " >&6
11468else
11469  ac_check_lib_save_LIBS=$LIBS
11470LIBS="-ldld  $LIBS"
11471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472/* end confdefs.h.  */
11473
11474/* Override any GCC internal prototype to avoid an error.
11475   Use char because int might match the return type of a GCC
11476   builtin and then its argument prototype would still apply.  */
11477#ifdef __cplusplus
11478extern "C"
11479#endif
11480char dld_link ();
11481int
11482main ()
11483{
11484return dld_link ();
11485  ;
11486  return 0;
11487}
11488_ACEOF
11489if ac_fn_c_try_link "$LINENO"; then :
11490  ac_cv_lib_dld_dld_link=yes
11491else
11492  ac_cv_lib_dld_dld_link=no
11493fi
11494rm -f core conftest.err conftest.$ac_objext \
11495    conftest$ac_exeext conftest.$ac_ext
11496LIBS=$ac_check_lib_save_LIBS
11497fi
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11499$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11500if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11501  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11502fi
11503
11504
11505fi
11506
11507
11508fi
11509
11510
11511fi
11512
11513
11514fi
11515
11516
11517fi
11518
11519    ;;
11520  esac
11521
11522  if test "x$lt_cv_dlopen" != xno; then
11523    enable_dlopen=yes
11524  else
11525    enable_dlopen=no
11526  fi
11527
11528  case $lt_cv_dlopen in
11529  dlopen)
11530    save_CPPFLAGS="$CPPFLAGS"
11531    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11532
11533    save_LDFLAGS="$LDFLAGS"
11534    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11535
11536    save_LIBS="$LIBS"
11537    LIBS="$lt_cv_dlopen_libs $LIBS"
11538
11539    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11540$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11541if ${lt_cv_dlopen_self+:} false; then :
11542  $as_echo_n "(cached) " >&6
11543else
11544  	  if test "$cross_compiling" = yes; then :
11545  lt_cv_dlopen_self=cross
11546else
11547  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11548  lt_status=$lt_dlunknown
11549  cat > conftest.$ac_ext <<_LT_EOF
11550#line $LINENO "configure"
11551#include "confdefs.h"
11552
11553#if HAVE_DLFCN_H
11554#include <dlfcn.h>
11555#endif
11556
11557#include <stdio.h>
11558
11559#ifdef RTLD_GLOBAL
11560#  define LT_DLGLOBAL		RTLD_GLOBAL
11561#else
11562#  ifdef DL_GLOBAL
11563#    define LT_DLGLOBAL		DL_GLOBAL
11564#  else
11565#    define LT_DLGLOBAL		0
11566#  endif
11567#endif
11568
11569/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11570   find out it does not work in some platform. */
11571#ifndef LT_DLLAZY_OR_NOW
11572#  ifdef RTLD_LAZY
11573#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11574#  else
11575#    ifdef DL_LAZY
11576#      define LT_DLLAZY_OR_NOW		DL_LAZY
11577#    else
11578#      ifdef RTLD_NOW
11579#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11580#      else
11581#        ifdef DL_NOW
11582#          define LT_DLLAZY_OR_NOW	DL_NOW
11583#        else
11584#          define LT_DLLAZY_OR_NOW	0
11585#        endif
11586#      endif
11587#    endif
11588#  endif
11589#endif
11590
11591/* When -fvisbility=hidden is used, assume the code has been annotated
11592   correspondingly for the symbols needed.  */
11593#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11594int fnord () __attribute__((visibility("default")));
11595#endif
11596
11597int fnord () { return 42; }
11598int main ()
11599{
11600  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11601  int status = $lt_dlunknown;
11602
11603  if (self)
11604    {
11605      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11606      else
11607        {
11608	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11609          else puts (dlerror ());
11610	}
11611      /* dlclose (self); */
11612    }
11613  else
11614    puts (dlerror ());
11615
11616  return status;
11617}
11618_LT_EOF
11619  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11620  (eval $ac_link) 2>&5
11621  ac_status=$?
11622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11623  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11624    (./conftest; exit; ) >&5 2>/dev/null
11625    lt_status=$?
11626    case x$lt_status in
11627      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11628      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11629      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11630    esac
11631  else :
11632    # compilation failed
11633    lt_cv_dlopen_self=no
11634  fi
11635fi
11636rm -fr conftest*
11637
11638
11639fi
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11641$as_echo "$lt_cv_dlopen_self" >&6; }
11642
11643    if test "x$lt_cv_dlopen_self" = xyes; then
11644      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11645      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11646$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11647if ${lt_cv_dlopen_self_static+:} false; then :
11648  $as_echo_n "(cached) " >&6
11649else
11650  	  if test "$cross_compiling" = yes; then :
11651  lt_cv_dlopen_self_static=cross
11652else
11653  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11654  lt_status=$lt_dlunknown
11655  cat > conftest.$ac_ext <<_LT_EOF
11656#line $LINENO "configure"
11657#include "confdefs.h"
11658
11659#if HAVE_DLFCN_H
11660#include <dlfcn.h>
11661#endif
11662
11663#include <stdio.h>
11664
11665#ifdef RTLD_GLOBAL
11666#  define LT_DLGLOBAL		RTLD_GLOBAL
11667#else
11668#  ifdef DL_GLOBAL
11669#    define LT_DLGLOBAL		DL_GLOBAL
11670#  else
11671#    define LT_DLGLOBAL		0
11672#  endif
11673#endif
11674
11675/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11676   find out it does not work in some platform. */
11677#ifndef LT_DLLAZY_OR_NOW
11678#  ifdef RTLD_LAZY
11679#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11680#  else
11681#    ifdef DL_LAZY
11682#      define LT_DLLAZY_OR_NOW		DL_LAZY
11683#    else
11684#      ifdef RTLD_NOW
11685#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11686#      else
11687#        ifdef DL_NOW
11688#          define LT_DLLAZY_OR_NOW	DL_NOW
11689#        else
11690#          define LT_DLLAZY_OR_NOW	0
11691#        endif
11692#      endif
11693#    endif
11694#  endif
11695#endif
11696
11697/* When -fvisbility=hidden is used, assume the code has been annotated
11698   correspondingly for the symbols needed.  */
11699#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11700int fnord () __attribute__((visibility("default")));
11701#endif
11702
11703int fnord () { return 42; }
11704int main ()
11705{
11706  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11707  int status = $lt_dlunknown;
11708
11709  if (self)
11710    {
11711      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11712      else
11713        {
11714	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11715          else puts (dlerror ());
11716	}
11717      /* dlclose (self); */
11718    }
11719  else
11720    puts (dlerror ());
11721
11722  return status;
11723}
11724_LT_EOF
11725  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11726  (eval $ac_link) 2>&5
11727  ac_status=$?
11728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11729  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11730    (./conftest; exit; ) >&5 2>/dev/null
11731    lt_status=$?
11732    case x$lt_status in
11733      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11734      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11735      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11736    esac
11737  else :
11738    # compilation failed
11739    lt_cv_dlopen_self_static=no
11740  fi
11741fi
11742rm -fr conftest*
11743
11744
11745fi
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11747$as_echo "$lt_cv_dlopen_self_static" >&6; }
11748    fi
11749
11750    CPPFLAGS="$save_CPPFLAGS"
11751    LDFLAGS="$save_LDFLAGS"
11752    LIBS="$save_LIBS"
11753    ;;
11754  esac
11755
11756  case $lt_cv_dlopen_self in
11757  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11758  *) enable_dlopen_self=unknown ;;
11759  esac
11760
11761  case $lt_cv_dlopen_self_static in
11762  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11763  *) enable_dlopen_self_static=unknown ;;
11764  esac
11765fi
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783striplib=
11784old_striplib=
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11786$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11787if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11788  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11789  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11791$as_echo "yes" >&6; }
11792else
11793# FIXME - insert some real tests, host_os isn't really good enough
11794  case $host_os in
11795  darwin*)
11796    if test -n "$STRIP" ; then
11797      striplib="$STRIP -x"
11798      old_striplib="$STRIP -S"
11799      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11800$as_echo "yes" >&6; }
11801    else
11802      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803$as_echo "no" >&6; }
11804    fi
11805    ;;
11806  *)
11807    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808$as_echo "no" >&6; }
11809    ;;
11810  esac
11811fi
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824  # Report which library types will actually be built
11825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11826$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11828$as_echo "$can_build_shared" >&6; }
11829
11830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11831$as_echo_n "checking whether to build shared libraries... " >&6; }
11832  test "$can_build_shared" = "no" && enable_shared=no
11833
11834  # On AIX, shared libraries and static libraries use the same namespace, and
11835  # are all built from PIC.
11836  case $host_os in
11837  aix3*)
11838    test "$enable_shared" = yes && enable_static=no
11839    if test -n "$RANLIB"; then
11840      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11841      postinstall_cmds='$RANLIB $lib'
11842    fi
11843    ;;
11844
11845  aix[4-9]*)
11846    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11847      test "$enable_shared" = yes && enable_static=no
11848    fi
11849    ;;
11850  esac
11851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11852$as_echo "$enable_shared" >&6; }
11853
11854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11855$as_echo_n "checking whether to build static libraries... " >&6; }
11856  # Make sure either enable_shared or enable_static is yes.
11857  test "$enable_shared" = yes || enable_static=yes
11858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11859$as_echo "$enable_static" >&6; }
11860
11861
11862
11863
11864fi
11865ac_ext=c
11866ac_cpp='$CPP $CPPFLAGS'
11867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11869ac_compiler_gnu=$ac_cv_c_compiler_gnu
11870
11871CC="$lt_save_CC"
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887        ac_config_commands="$ac_config_commands libtool"
11888
11889
11890
11891
11892# Only expand once:
11893
11894
11895
11896A2X=${A2X-"${am_missing_run}a2x"}
11897
11898
11899
11900  # Check whether --enable-ld-version-script was given.
11901if test "${enable_ld_version_script+set}" = set; then :
11902  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
11903fi
11904
11905  if test -z "$have_ld_version_script"; then
11906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
11907$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
11908    save_LDFLAGS="$LDFLAGS"
11909    LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
11910    cat > conftest.map <<EOF
11911foo
11912EOF
11913    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914/* end confdefs.h.  */
11915
11916int
11917main ()
11918{
11919
11920  ;
11921  return 0;
11922}
11923_ACEOF
11924if ac_fn_c_try_link "$LINENO"; then :
11925  accepts_syntax_errors=yes
11926else
11927  accepts_syntax_errors=no
11928fi
11929rm -f core conftest.err conftest.$ac_objext \
11930    conftest$ac_exeext conftest.$ac_ext
11931    if test "$accepts_syntax_errors" = no; then
11932      cat > conftest.map <<EOF
11933VERS_1 {
11934        global: sym;
11935};
11936
11937VERS_2 {
11938        global: sym;
11939} VERS_1;
11940EOF
11941      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942/* end confdefs.h.  */
11943
11944int
11945main ()
11946{
11947
11948  ;
11949  return 0;
11950}
11951_ACEOF
11952if ac_fn_c_try_link "$LINENO"; then :
11953  have_ld_version_script=yes
11954else
11955  have_ld_version_script=no
11956fi
11957rm -f core conftest.err conftest.$ac_objext \
11958    conftest$ac_exeext conftest.$ac_ext
11959    else
11960      have_ld_version_script=no
11961    fi
11962    rm -f conftest.map
11963    LDFLAGS="$save_LDFLAGS"
11964    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
11965$as_echo "$have_ld_version_script" >&6; }
11966  fi
11967   if test "$have_ld_version_script" = "yes"; then
11968  HAVE_LD_VERSION_SCRIPT_TRUE=
11969  HAVE_LD_VERSION_SCRIPT_FALSE='#'
11970else
11971  HAVE_LD_VERSION_SCRIPT_TRUE='#'
11972  HAVE_LD_VERSION_SCRIPT_FALSE=
11973fi
11974
11975
11976
11977  # Check whether --enable-valgrind-tests was given.
11978if test "${enable_valgrind_tests+set}" = set; then :
11979  enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
11980else
11981  opt_valgrind_tests=yes
11982fi
11983
11984
11985  # Run self-tests under valgrind?
11986  if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
11987    for ac_prog in valgrind
11988do
11989  # Extract the first word of "$ac_prog", so it can be a program name with args.
11990set dummy $ac_prog; ac_word=$2
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992$as_echo_n "checking for $ac_word... " >&6; }
11993if ${ac_cv_prog_VALGRIND+:} false; then :
11994  $as_echo_n "(cached) " >&6
11995else
11996  if test -n "$VALGRIND"; then
11997  ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
11998else
11999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000for as_dir in $PATH
12001do
12002  IFS=$as_save_IFS
12003  test -z "$as_dir" && as_dir=.
12004    for ac_exec_ext in '' $ac_executable_extensions; do
12005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006    ac_cv_prog_VALGRIND="$ac_prog"
12007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12008    break 2
12009  fi
12010done
12011  done
12012IFS=$as_save_IFS
12013
12014fi
12015fi
12016VALGRIND=$ac_cv_prog_VALGRIND
12017if test -n "$VALGRIND"; then
12018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
12019$as_echo "$VALGRIND" >&6; }
12020else
12021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022$as_echo "no" >&6; }
12023fi
12024
12025
12026  test -n "$VALGRIND" && break
12027done
12028
12029  fi
12030
12031  OPTS="-q --error-exitcode=1 --leak-check=full"
12032
12033  if test -n "$VALGRIND" \
12034     && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
12035    opt_valgrind_tests=yes
12036    VALGRIND="$VALGRIND $OPTS"
12037  else
12038    opt_valgrind_tests=no
12039    VALGRIND=
12040  fi
12041
12042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
12043$as_echo_n "checking whether self tests are run under valgrind... " >&6; }
12044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
12045$as_echo "$opt_valgrind_tests" >&6; }
12046
12047
12048# Check whether --enable-gcc-warnings was given.
12049if test "${enable_gcc_warnings+set}" = set; then :
12050  enableval=$enable_gcc_warnings; case $enableval in
12051     yes|no) ;;
12052     *)      as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
12053   esac
12054   gl_gcc_warnings=$enableval
12055else
12056  gl_gcc_warnings=no
12057
12058fi
12059
12060
12061if test "$gl_gcc_warnings" = yes; then
12062  nw="$nw -Wsystem-headers"         # Don't let system headers trigger warnings
12063  nw="$nw -Wpadded"                 # Struct's arenot padded
12064  nw="$nw -Wc++-compat"             # We don't care strongly about C++ compilers
12065  nw="$nw -Wtraditional"            # Warns on #elif which we use often
12066  nw="$nw -Wtraditional-conversion" # Too many warnings for now
12067  nw="$nw -Wconversion"             # Too many warnings for now
12068  nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes?
12069
12070
12071
12072  if test -n "$GCC"; then
12073
12074            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
12075$as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
12076    if ${gl_cv_cc_nomfi_supported+:} false; then :
12077  $as_echo_n "(cached) " >&6
12078else
12079
12080      gl_save_CFLAGS="$CFLAGS"
12081      CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
12082      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083/* end confdefs.h.  */
12084
12085int
12086main ()
12087{
12088
12089  ;
12090  return 0;
12091}
12092_ACEOF
12093if ac_fn_c_try_compile "$LINENO"; then :
12094  gl_cv_cc_nomfi_supported=yes
12095else
12096  gl_cv_cc_nomfi_supported=no
12097fi
12098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099      CFLAGS="$gl_save_CFLAGS"
12100fi
12101
12102    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
12103$as_echo "$gl_cv_cc_nomfi_supported" >&6; }
12104
12105    if test "$gl_cv_cc_nomfi_supported" = yes; then
12106                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
12107$as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
12108      if ${gl_cv_cc_nomfi_needed+:} false; then :
12109  $as_echo_n "(cached) " >&6
12110else
12111
12112        gl_save_CFLAGS="$CFLAGS"
12113        CFLAGS="$CFLAGS -W -Werror"
12114        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115/* end confdefs.h.  */
12116void f (void)
12117               {
12118                 typedef struct { int a; int b; } s_t;
12119                 s_t s1 = { 0, };
12120               }
12121
12122int
12123main ()
12124{
12125
12126  ;
12127  return 0;
12128}
12129_ACEOF
12130if ac_fn_c_try_compile "$LINENO"; then :
12131  gl_cv_cc_nomfi_needed=no
12132else
12133  gl_cv_cc_nomfi_needed=yes
12134fi
12135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136        CFLAGS="$gl_save_CFLAGS"
12137
12138fi
12139
12140      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
12141$as_echo "$gl_cv_cc_nomfi_needed" >&6; }
12142    fi
12143  fi
12144
12145  gl_manywarn_set=
12146  for gl_manywarn_item in \
12147    -Wall \
12148    -W \
12149    -Wformat-y2k \
12150    -Wformat-nonliteral \
12151    -Wformat-security \
12152    -Winit-self \
12153    -Wmissing-include-dirs \
12154    -Wswitch-default \
12155    -Wswitch-enum \
12156    -Wunused \
12157    -Wunknown-pragmas \
12158    -Wstrict-aliasing \
12159    -Wstrict-overflow \
12160    -Wsystem-headers \
12161    -Wfloat-equal \
12162    -Wtraditional \
12163    -Wtraditional-conversion \
12164    -Wdeclaration-after-statement \
12165    -Wundef \
12166    -Wshadow \
12167    -Wunsafe-loop-optimizations \
12168    -Wpointer-arith \
12169    -Wbad-function-cast \
12170    -Wc++-compat \
12171    -Wcast-qual \
12172    -Wcast-align \
12173    -Wwrite-strings \
12174    -Wconversion \
12175    -Wsign-conversion \
12176    -Wlogical-op \
12177    -Waggregate-return \
12178    -Wstrict-prototypes \
12179    -Wold-style-definition \
12180    -Wmissing-prototypes \
12181    -Wmissing-declarations \
12182    -Wmissing-noreturn \
12183    -Wmissing-format-attribute \
12184    -Wpacked \
12185    -Wpadded \
12186    -Wredundant-decls \
12187    -Wnested-externs \
12188    -Wunreachable-code \
12189    -Winline \
12190    -Winvalid-pch \
12191    -Wlong-long \
12192    -Wvla \
12193    -Wvolatile-register-var \
12194    -Wdisabled-optimization \
12195    -Wstack-protector \
12196    -Woverlength-strings \
12197    -Wbuiltin-macro-redefined \
12198    -Wmudflap \
12199    -Wpacked-bitfield-compat \
12200    -Wsync-nand \
12201    ; do
12202    gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
12203  done
12204  # The following are not documented in the manual but are included in
12205  # output from gcc --help=warnings.
12206  for gl_manywarn_item in \
12207    -Wattributes \
12208    -Wcoverage-mismatch \
12209    -Wunused-macros \
12210    ; do
12211    gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
12212  done
12213  # More warnings from gcc 4.6.2 --help=warnings.
12214  for gl_manywarn_item in \
12215    -Wabi \
12216    -Wcpp \
12217    -Wdeprecated \
12218    -Wdeprecated-declarations \
12219    -Wdiv-by-zero \
12220    -Wdouble-promotion \
12221    -Wendif-labels \
12222    -Wextra \
12223    -Wformat-contains-nul \
12224    -Wformat-extra-args \
12225    -Wformat-zero-length \
12226    -Wformat=2 \
12227    -Wmultichar \
12228    -Wnormalized=nfc \
12229    -Woverflow \
12230    -Wpointer-to-int-cast \
12231    -Wpragmas \
12232    -Wsuggest-attribute=const \
12233    -Wsuggest-attribute=noreturn \
12234    -Wsuggest-attribute=pure \
12235    -Wtrampolines \
12236    ; do
12237    gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
12238  done
12239
12240  # Disable the missing-field-initializers warning if needed
12241  if test "$gl_cv_cc_nomfi_needed" = yes; then
12242    gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
12243  fi
12244
12245  ws=$gl_manywarn_set
12246
12247
12248  gl_warn_set=
12249  set x $ws; shift
12250  for gl_warn_item
12251  do
12252    case " $nw " in
12253      *" $gl_warn_item "*)
12254        ;;
12255      *)
12256        gl_warn_set="$gl_warn_set $gl_warn_item"
12257        ;;
12258    esac
12259  done
12260  ws=$gl_warn_set
12261
12262  for w in $ws; do
12263    as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
12265$as_echo_n "checking whether C compiler handles $w... " >&6; }
12266if eval \${$as_gl_Warn+:} false; then :
12267  $as_echo_n "(cached) " >&6
12268else
12269
12270  gl_save_compiler_FLAGS="$CFLAGS"
12271  as_fn_append CFLAGS " $w"
12272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273/* end confdefs.h.  */
12274
12275int
12276main ()
12277{
12278
12279  ;
12280  return 0;
12281}
12282_ACEOF
12283if ac_fn_c_try_compile "$LINENO"; then :
12284  eval "$as_gl_Warn=yes"
12285else
12286  eval "$as_gl_Warn=no"
12287fi
12288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289  CFLAGS="$gl_save_compiler_FLAGS"
12290
12291fi
12292eval ac_res=\$$as_gl_Warn
12293	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12294$as_echo "$ac_res" >&6; }
12295if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
12296  as_fn_append WARN_CFLAGS " $w"
12297fi
12298
12299
12300  done
12301
12302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
12303$as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
12304if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then :
12305  $as_echo_n "(cached) " >&6
12306else
12307
12308  gl_save_compiler_FLAGS="$CFLAGS"
12309  as_fn_append CFLAGS " -fdiagnostics-show-option"
12310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311/* end confdefs.h.  */
12312
12313int
12314main ()
12315{
12316
12317  ;
12318  return 0;
12319}
12320_ACEOF
12321if ac_fn_c_try_compile "$LINENO"; then :
12322  gl_cv_warn_c__fdiagnostics_show_option=yes
12323else
12324  gl_cv_warn_c__fdiagnostics_show_option=no
12325fi
12326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12327  CFLAGS="$gl_save_compiler_FLAGS"
12328
12329fi
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
12331$as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
12332if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then :
12333  as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
12334fi
12335
12336
12337fi
12338
12339ac_config_files="$ac_config_files Makefile tests/Makefile"
12340
12341cat >confcache <<\_ACEOF
12342# This file is a shell script that caches the results of configure
12343# tests run on this system so they can be shared between configure
12344# scripts and configure runs, see configure's option --config-cache.
12345# It is not useful on other systems.  If it contains results you don't
12346# want to keep, you may remove or edit it.
12347#
12348# config.status only pays attention to the cache file if you give it
12349# the --recheck option to rerun configure.
12350#
12351# `ac_cv_env_foo' variables (set or unset) will be overridden when
12352# loading this file, other *unset* `ac_cv_foo' will be assigned the
12353# following values.
12354
12355_ACEOF
12356
12357# The following way of writing the cache mishandles newlines in values,
12358# but we know of no workaround that is simple, portable, and efficient.
12359# So, we kill variables containing newlines.
12360# Ultrix sh set writes to stderr and can't be redirected directly,
12361# and sets the high bit in the cache file unless we assign to the vars.
12362(
12363  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12364    eval ac_val=\$$ac_var
12365    case $ac_val in #(
12366    *${as_nl}*)
12367      case $ac_var in #(
12368      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12369$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12370      esac
12371      case $ac_var in #(
12372      _ | IFS | as_nl) ;; #(
12373      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12374      *) { eval $ac_var=; unset $ac_var;} ;;
12375      esac ;;
12376    esac
12377  done
12378
12379  (set) 2>&1 |
12380    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12381    *${as_nl}ac_space=\ *)
12382      # `set' does not quote correctly, so add quotes: double-quote
12383      # substitution turns \\\\ into \\, and sed turns \\ into \.
12384      sed -n \
12385	"s/'/'\\\\''/g;
12386	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12387      ;; #(
12388    *)
12389      # `set' quotes correctly as required by POSIX, so do not add quotes.
12390      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12391      ;;
12392    esac |
12393    sort
12394) |
12395  sed '
12396     /^ac_cv_env_/b end
12397     t clear
12398     :clear
12399     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12400     t end
12401     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12402     :end' >>confcache
12403if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12404  if test -w "$cache_file"; then
12405    if test "x$cache_file" != "x/dev/null"; then
12406      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12407$as_echo "$as_me: updating cache $cache_file" >&6;}
12408      if test ! -f "$cache_file" || test -h "$cache_file"; then
12409	cat confcache >"$cache_file"
12410      else
12411        case $cache_file in #(
12412        */* | ?:*)
12413	  mv -f confcache "$cache_file"$$ &&
12414	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12415        *)
12416	  mv -f confcache "$cache_file" ;;
12417	esac
12418      fi
12419    fi
12420  else
12421    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12422$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12423  fi
12424fi
12425rm -f confcache
12426
12427test "x$prefix" = xNONE && prefix=$ac_default_prefix
12428# Let make expand exec_prefix.
12429test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12430
12431# Transform confdefs.h into DEFS.
12432# Protect against shell expansion while executing Makefile rules.
12433# Protect against Makefile macro expansion.
12434#
12435# If the first sed substitution is executed (which looks for macros that
12436# take arguments), then branch to the quote section.  Otherwise,
12437# look for a macro that doesn't take arguments.
12438ac_script='
12439:mline
12440/\\$/{
12441 N
12442 s,\\\n,,
12443 b mline
12444}
12445t clear
12446:clear
12447s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
12448t quote
12449s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
12450t quote
12451b any
12452:quote
12453s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12454s/\[/\\&/g
12455s/\]/\\&/g
12456s/\$/$$/g
12457H
12458:any
12459${
12460	g
12461	s/^\n//
12462	s/\n/ /g
12463	p
12464}
12465'
12466DEFS=`sed -n "$ac_script" confdefs.h`
12467
12468
12469ac_libobjs=
12470ac_ltlibobjs=
12471U=
12472for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12473  # 1. Remove the extension, and $U if already installed.
12474  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12475  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12476  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12477  #    will be set to the directory where LIBOBJS objects are built.
12478  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12479  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12480done
12481LIBOBJS=$ac_libobjs
12482
12483LTLIBOBJS=$ac_ltlibobjs
12484
12485
12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12487$as_echo_n "checking that generated files are newer than configure... " >&6; }
12488   if test -n "$am_sleep_pid"; then
12489     # Hide warnings about reused PIDs.
12490     wait $am_sleep_pid 2>/dev/null
12491   fi
12492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12493$as_echo "done" >&6; }
12494 if test -n "$EXEEXT"; then
12495  am__EXEEXT_TRUE=
12496  am__EXEEXT_FALSE='#'
12497else
12498  am__EXEEXT_TRUE='#'
12499  am__EXEEXT_FALSE=
12500fi
12501
12502if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12503  as_fn_error $? "conditional \"AMDEP\" was never defined.
12504Usually this means the macro was only invoked conditionally." "$LINENO" 5
12505fi
12506if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12507  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12508Usually this means the macro was only invoked conditionally." "$LINENO" 5
12509fi
12510if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
12511  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
12512Usually this means the macro was only invoked conditionally." "$LINENO" 5
12513fi
12514
12515: "${CONFIG_STATUS=./config.status}"
12516ac_write_fail=0
12517ac_clean_files_save=$ac_clean_files
12518ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12520$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12521as_write_fail=0
12522cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12523#! $SHELL
12524# Generated by $as_me.
12525# Run this file to recreate the current configuration.
12526# Compiler output produced by configure, useful for debugging
12527# configure, is in config.log if it exists.
12528
12529debug=false
12530ac_cs_recheck=false
12531ac_cs_silent=false
12532
12533SHELL=\${CONFIG_SHELL-$SHELL}
12534export SHELL
12535_ASEOF
12536cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12537## -------------------- ##
12538## M4sh Initialization. ##
12539## -------------------- ##
12540
12541# Be more Bourne compatible
12542DUALCASE=1; export DUALCASE # for MKS sh
12543if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12544  emulate sh
12545  NULLCMD=:
12546  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12547  # is contrary to our usage.  Disable this feature.
12548  alias -g '${1+"$@"}'='"$@"'
12549  setopt NO_GLOB_SUBST
12550else
12551  case `(set -o) 2>/dev/null` in #(
12552  *posix*) :
12553    set -o posix ;; #(
12554  *) :
12555     ;;
12556esac
12557fi
12558
12559
12560as_nl='
12561'
12562export as_nl
12563# Printing a long string crashes Solaris 7 /usr/bin/printf.
12564as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12565as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12566as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12567# Prefer a ksh shell builtin over an external printf program on Solaris,
12568# but without wasting forks for bash or zsh.
12569if test -z "$BASH_VERSION$ZSH_VERSION" \
12570    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12571  as_echo='print -r --'
12572  as_echo_n='print -rn --'
12573elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12574  as_echo='printf %s\n'
12575  as_echo_n='printf %s'
12576else
12577  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12578    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12579    as_echo_n='/usr/ucb/echo -n'
12580  else
12581    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12582    as_echo_n_body='eval
12583      arg=$1;
12584      case $arg in #(
12585      *"$as_nl"*)
12586	expr "X$arg" : "X\\(.*\\)$as_nl";
12587	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12588      esac;
12589      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12590    '
12591    export as_echo_n_body
12592    as_echo_n='sh -c $as_echo_n_body as_echo'
12593  fi
12594  export as_echo_body
12595  as_echo='sh -c $as_echo_body as_echo'
12596fi
12597
12598# The user is always right.
12599if test "${PATH_SEPARATOR+set}" != set; then
12600  PATH_SEPARATOR=:
12601  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12602    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12603      PATH_SEPARATOR=';'
12604  }
12605fi
12606
12607
12608# IFS
12609# We need space, tab and new line, in precisely that order.  Quoting is
12610# there to prevent editors from complaining about space-tab.
12611# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12612# splitting by setting IFS to empty value.)
12613IFS=" ""	$as_nl"
12614
12615# Find who we are.  Look in the path if we contain no directory separator.
12616as_myself=
12617case $0 in #((
12618  *[\\/]* ) as_myself=$0 ;;
12619  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12620for as_dir in $PATH
12621do
12622  IFS=$as_save_IFS
12623  test -z "$as_dir" && as_dir=.
12624    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12625  done
12626IFS=$as_save_IFS
12627
12628     ;;
12629esac
12630# We did not find ourselves, most probably we were run as `sh COMMAND'
12631# in which case we are not to be found in the path.
12632if test "x$as_myself" = x; then
12633  as_myself=$0
12634fi
12635if test ! -f "$as_myself"; then
12636  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12637  exit 1
12638fi
12639
12640# Unset variables that we do not need and which cause bugs (e.g. in
12641# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12642# suppresses any "Segmentation fault" message there.  '((' could
12643# trigger a bug in pdksh 5.2.14.
12644for as_var in BASH_ENV ENV MAIL MAILPATH
12645do eval test x\${$as_var+set} = xset \
12646  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12647done
12648PS1='$ '
12649PS2='> '
12650PS4='+ '
12651
12652# NLS nuisances.
12653LC_ALL=C
12654export LC_ALL
12655LANGUAGE=C
12656export LANGUAGE
12657
12658# CDPATH.
12659(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12660
12661
12662# as_fn_error STATUS ERROR [LINENO LOG_FD]
12663# ----------------------------------------
12664# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12665# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12666# script with STATUS, using 1 if that was 0.
12667as_fn_error ()
12668{
12669  as_status=$1; test $as_status -eq 0 && as_status=1
12670  if test "$4"; then
12671    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12672    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12673  fi
12674  $as_echo "$as_me: error: $2" >&2
12675  as_fn_exit $as_status
12676} # as_fn_error
12677
12678
12679# as_fn_set_status STATUS
12680# -----------------------
12681# Set $? to STATUS, without forking.
12682as_fn_set_status ()
12683{
12684  return $1
12685} # as_fn_set_status
12686
12687# as_fn_exit STATUS
12688# -----------------
12689# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12690as_fn_exit ()
12691{
12692  set +e
12693  as_fn_set_status $1
12694  exit $1
12695} # as_fn_exit
12696
12697# as_fn_unset VAR
12698# ---------------
12699# Portably unset VAR.
12700as_fn_unset ()
12701{
12702  { eval $1=; unset $1;}
12703}
12704as_unset=as_fn_unset
12705# as_fn_append VAR VALUE
12706# ----------------------
12707# Append the text in VALUE to the end of the definition contained in VAR. Take
12708# advantage of any shell optimizations that allow amortized linear growth over
12709# repeated appends, instead of the typical quadratic growth present in naive
12710# implementations.
12711if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12712  eval 'as_fn_append ()
12713  {
12714    eval $1+=\$2
12715  }'
12716else
12717  as_fn_append ()
12718  {
12719    eval $1=\$$1\$2
12720  }
12721fi # as_fn_append
12722
12723# as_fn_arith ARG...
12724# ------------------
12725# Perform arithmetic evaluation on the ARGs, and store the result in the
12726# global $as_val. Take advantage of shells that can avoid forks. The arguments
12727# must be portable across $(()) and expr.
12728if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12729  eval 'as_fn_arith ()
12730  {
12731    as_val=$(( $* ))
12732  }'
12733else
12734  as_fn_arith ()
12735  {
12736    as_val=`expr "$@" || test $? -eq 1`
12737  }
12738fi # as_fn_arith
12739
12740
12741if expr a : '\(a\)' >/dev/null 2>&1 &&
12742   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12743  as_expr=expr
12744else
12745  as_expr=false
12746fi
12747
12748if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12749  as_basename=basename
12750else
12751  as_basename=false
12752fi
12753
12754if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12755  as_dirname=dirname
12756else
12757  as_dirname=false
12758fi
12759
12760as_me=`$as_basename -- "$0" ||
12761$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12762	 X"$0" : 'X\(//\)$' \| \
12763	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12764$as_echo X/"$0" |
12765    sed '/^.*\/\([^/][^/]*\)\/*$/{
12766	    s//\1/
12767	    q
12768	  }
12769	  /^X\/\(\/\/\)$/{
12770	    s//\1/
12771	    q
12772	  }
12773	  /^X\/\(\/\).*/{
12774	    s//\1/
12775	    q
12776	  }
12777	  s/.*/./; q'`
12778
12779# Avoid depending upon Character Ranges.
12780as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12781as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12782as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12783as_cr_digits='0123456789'
12784as_cr_alnum=$as_cr_Letters$as_cr_digits
12785
12786ECHO_C= ECHO_N= ECHO_T=
12787case `echo -n x` in #(((((
12788-n*)
12789  case `echo 'xy\c'` in
12790  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12791  xy)  ECHO_C='\c';;
12792  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12793       ECHO_T='	';;
12794  esac;;
12795*)
12796  ECHO_N='-n';;
12797esac
12798
12799rm -f conf$$ conf$$.exe conf$$.file
12800if test -d conf$$.dir; then
12801  rm -f conf$$.dir/conf$$.file
12802else
12803  rm -f conf$$.dir
12804  mkdir conf$$.dir 2>/dev/null
12805fi
12806if (echo >conf$$.file) 2>/dev/null; then
12807  if ln -s conf$$.file conf$$ 2>/dev/null; then
12808    as_ln_s='ln -s'
12809    # ... but there are two gotchas:
12810    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12811    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12812    # In both cases, we have to default to `cp -pR'.
12813    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12814      as_ln_s='cp -pR'
12815  elif ln conf$$.file conf$$ 2>/dev/null; then
12816    as_ln_s=ln
12817  else
12818    as_ln_s='cp -pR'
12819  fi
12820else
12821  as_ln_s='cp -pR'
12822fi
12823rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12824rmdir conf$$.dir 2>/dev/null
12825
12826
12827# as_fn_mkdir_p
12828# -------------
12829# Create "$as_dir" as a directory, including parents if necessary.
12830as_fn_mkdir_p ()
12831{
12832
12833  case $as_dir in #(
12834  -*) as_dir=./$as_dir;;
12835  esac
12836  test -d "$as_dir" || eval $as_mkdir_p || {
12837    as_dirs=
12838    while :; do
12839      case $as_dir in #(
12840      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12841      *) as_qdir=$as_dir;;
12842      esac
12843      as_dirs="'$as_qdir' $as_dirs"
12844      as_dir=`$as_dirname -- "$as_dir" ||
12845$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12846	 X"$as_dir" : 'X\(//\)[^/]' \| \
12847	 X"$as_dir" : 'X\(//\)$' \| \
12848	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12849$as_echo X"$as_dir" |
12850    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12851	    s//\1/
12852	    q
12853	  }
12854	  /^X\(\/\/\)[^/].*/{
12855	    s//\1/
12856	    q
12857	  }
12858	  /^X\(\/\/\)$/{
12859	    s//\1/
12860	    q
12861	  }
12862	  /^X\(\/\).*/{
12863	    s//\1/
12864	    q
12865	  }
12866	  s/.*/./; q'`
12867      test -d "$as_dir" && break
12868    done
12869    test -z "$as_dirs" || eval "mkdir $as_dirs"
12870  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12871
12872
12873} # as_fn_mkdir_p
12874if mkdir -p . 2>/dev/null; then
12875  as_mkdir_p='mkdir -p "$as_dir"'
12876else
12877  test -d ./-p && rmdir ./-p
12878  as_mkdir_p=false
12879fi
12880
12881
12882# as_fn_executable_p FILE
12883# -----------------------
12884# Test if FILE is an executable regular file.
12885as_fn_executable_p ()
12886{
12887  test -f "$1" && test -x "$1"
12888} # as_fn_executable_p
12889as_test_x='test -x'
12890as_executable_p=as_fn_executable_p
12891
12892# Sed expression to map a string onto a valid CPP name.
12893as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12894
12895# Sed expression to map a string onto a valid variable name.
12896as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12897
12898
12899exec 6>&1
12900## ----------------------------------- ##
12901## Main body of $CONFIG_STATUS script. ##
12902## ----------------------------------- ##
12903_ASEOF
12904test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12905
12906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12907# Save the log message, to keep $0 and so on meaningful, and to
12908# report actual input values of CONFIG_FILES etc. instead of their
12909# values after options handling.
12910ac_log="
12911This file was extended by libyubikey $as_me 1.13, which was
12912generated by GNU Autoconf 2.69.  Invocation command line was
12913
12914  CONFIG_FILES    = $CONFIG_FILES
12915  CONFIG_HEADERS  = $CONFIG_HEADERS
12916  CONFIG_LINKS    = $CONFIG_LINKS
12917  CONFIG_COMMANDS = $CONFIG_COMMANDS
12918  $ $0 $@
12919
12920on `(hostname || uname -n) 2>/dev/null | sed 1q`
12921"
12922
12923_ACEOF
12924
12925case $ac_config_files in *"
12926"*) set x $ac_config_files; shift; ac_config_files=$*;;
12927esac
12928
12929
12930
12931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12932# Files that config.status was made for.
12933config_files="$ac_config_files"
12934config_commands="$ac_config_commands"
12935
12936_ACEOF
12937
12938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12939ac_cs_usage="\
12940\`$as_me' instantiates files and other configuration actions
12941from templates according to the current configuration.  Unless the files
12942and actions are specified as TAGs, all are instantiated by default.
12943
12944Usage: $0 [OPTION]... [TAG]...
12945
12946  -h, --help       print this help, then exit
12947  -V, --version    print version number and configuration settings, then exit
12948      --config     print configuration, then exit
12949  -q, --quiet, --silent
12950                   do not print progress messages
12951  -d, --debug      don't remove temporary files
12952      --recheck    update $as_me by reconfiguring in the same conditions
12953      --file=FILE[:TEMPLATE]
12954                   instantiate the configuration file FILE
12955
12956Configuration files:
12957$config_files
12958
12959Configuration commands:
12960$config_commands
12961
12962Report bugs to <yubico-devel@googlegroups.com>."
12963
12964_ACEOF
12965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12966ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12967ac_cs_version="\\
12968libyubikey config.status 1.13
12969configured by $0, generated by GNU Autoconf 2.69,
12970  with options \\"\$ac_cs_config\\"
12971
12972Copyright (C) 2012 Free Software Foundation, Inc.
12973This config.status script is free software; the Free Software Foundation
12974gives unlimited permission to copy, distribute and modify it."
12975
12976ac_pwd='$ac_pwd'
12977srcdir='$srcdir'
12978INSTALL='$INSTALL'
12979MKDIR_P='$MKDIR_P'
12980AWK='$AWK'
12981test -n "\$AWK" || AWK=awk
12982_ACEOF
12983
12984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12985# The default lists apply if the user does not specify any file.
12986ac_need_defaults=:
12987while test $# != 0
12988do
12989  case $1 in
12990  --*=?*)
12991    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12992    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12993    ac_shift=:
12994    ;;
12995  --*=)
12996    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12997    ac_optarg=
12998    ac_shift=:
12999    ;;
13000  *)
13001    ac_option=$1
13002    ac_optarg=$2
13003    ac_shift=shift
13004    ;;
13005  esac
13006
13007  case $ac_option in
13008  # Handling of the options.
13009  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13010    ac_cs_recheck=: ;;
13011  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13012    $as_echo "$ac_cs_version"; exit ;;
13013  --config | --confi | --conf | --con | --co | --c )
13014    $as_echo "$ac_cs_config"; exit ;;
13015  --debug | --debu | --deb | --de | --d | -d )
13016    debug=: ;;
13017  --file | --fil | --fi | --f )
13018    $ac_shift
13019    case $ac_optarg in
13020    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13021    '') as_fn_error $? "missing file argument" ;;
13022    esac
13023    as_fn_append CONFIG_FILES " '$ac_optarg'"
13024    ac_need_defaults=false;;
13025  --he | --h |  --help | --hel | -h )
13026    $as_echo "$ac_cs_usage"; exit ;;
13027  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13028  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13029    ac_cs_silent=: ;;
13030
13031  # This is an error.
13032  -*) as_fn_error $? "unrecognized option: \`$1'
13033Try \`$0 --help' for more information." ;;
13034
13035  *) as_fn_append ac_config_targets " $1"
13036     ac_need_defaults=false ;;
13037
13038  esac
13039  shift
13040done
13041
13042ac_configure_extra_args=
13043
13044if $ac_cs_silent; then
13045  exec 6>/dev/null
13046  ac_configure_extra_args="$ac_configure_extra_args --silent"
13047fi
13048
13049_ACEOF
13050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13051if \$ac_cs_recheck; then
13052  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13053  shift
13054  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13055  CONFIG_SHELL='$SHELL'
13056  export CONFIG_SHELL
13057  exec "\$@"
13058fi
13059
13060_ACEOF
13061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13062exec 5>>config.log
13063{
13064  echo
13065  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13066## Running $as_me. ##
13067_ASBOX
13068  $as_echo "$ac_log"
13069} >&5
13070
13071_ACEOF
13072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13073#
13074# INIT-COMMANDS
13075#
13076AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13077
13078
13079# The HP-UX ksh and POSIX shell print the target directory to stdout
13080# if CDPATH is set.
13081(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13082
13083sed_quote_subst='$sed_quote_subst'
13084double_quote_subst='$double_quote_subst'
13085delay_variable_subst='$delay_variable_subst'
13086AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13087DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13088OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13089macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13090macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13091enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13092enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13093pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13094enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13095SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13096ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13097PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13098host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13099host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13100host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13101build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13102build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13103build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13104SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13105Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13106GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13107EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13108FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13109LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13110NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13111LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13112max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13113ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13114exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13115lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13116lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13117lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13118lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13119lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13120reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13121reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13122deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13123file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13124file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13125want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13126sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13127AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13128AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13129archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13130STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13131RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13132old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13133old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13134old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13135lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13136CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13137CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13138compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13139GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13140lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13141lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13142lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13143lt_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"`'
13144nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13145lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13146objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13147MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13148lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13149lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13150lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13151lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13152lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13153need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13154MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13155DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13156NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13157LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13158OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13159OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13160libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13161shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13162extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13163archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13164enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13165export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13166whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13167compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13168old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13169old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13170archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13171archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13172module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13173module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13174with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13175allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13176no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13177hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13178hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13179hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13180hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13181hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13182hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13183hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13184inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13185link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13186always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13187export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13188exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13189include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13190prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13191postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13192file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13193variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13194need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13195need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13196version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13197runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13198shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13199shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13200libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13201library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13202soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13203install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13204postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13205postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13206finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13207finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13208hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13209sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13210sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13211hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13212enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13213enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13214enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13215old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13216striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13217
13218LTCC='$LTCC'
13219LTCFLAGS='$LTCFLAGS'
13220compiler='$compiler_DEFAULT'
13221
13222# A function that is used when there is no print builtin or printf.
13223func_fallback_echo ()
13224{
13225  eval 'cat <<_LTECHO_EOF
13226\$1
13227_LTECHO_EOF'
13228}
13229
13230# Quote evaled strings.
13231for var in AS \
13232DLLTOOL \
13233OBJDUMP \
13234SHELL \
13235ECHO \
13236PATH_SEPARATOR \
13237SED \
13238GREP \
13239EGREP \
13240FGREP \
13241LD \
13242NM \
13243LN_S \
13244lt_SP2NL \
13245lt_NL2SP \
13246reload_flag \
13247deplibs_check_method \
13248file_magic_cmd \
13249file_magic_glob \
13250want_nocaseglob \
13251sharedlib_from_linklib_cmd \
13252AR \
13253AR_FLAGS \
13254archiver_list_spec \
13255STRIP \
13256RANLIB \
13257CC \
13258CFLAGS \
13259compiler \
13260lt_cv_sys_global_symbol_pipe \
13261lt_cv_sys_global_symbol_to_cdecl \
13262lt_cv_sys_global_symbol_to_c_name_address \
13263lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13264nm_file_list_spec \
13265lt_prog_compiler_no_builtin_flag \
13266lt_prog_compiler_pic \
13267lt_prog_compiler_wl \
13268lt_prog_compiler_static \
13269lt_cv_prog_compiler_c_o \
13270need_locks \
13271MANIFEST_TOOL \
13272DSYMUTIL \
13273NMEDIT \
13274LIPO \
13275OTOOL \
13276OTOOL64 \
13277shrext_cmds \
13278export_dynamic_flag_spec \
13279whole_archive_flag_spec \
13280compiler_needs_object \
13281with_gnu_ld \
13282allow_undefined_flag \
13283no_undefined_flag \
13284hardcode_libdir_flag_spec \
13285hardcode_libdir_separator \
13286exclude_expsyms \
13287include_expsyms \
13288file_list_spec \
13289variables_saved_for_relink \
13290libname_spec \
13291library_names_spec \
13292soname_spec \
13293install_override_mode \
13294finish_eval \
13295old_striplib \
13296striplib; do
13297    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13298    *[\\\\\\\`\\"\\\$]*)
13299      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13300      ;;
13301    *)
13302      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13303      ;;
13304    esac
13305done
13306
13307# Double-quote double-evaled strings.
13308for var in reload_cmds \
13309old_postinstall_cmds \
13310old_postuninstall_cmds \
13311old_archive_cmds \
13312extract_expsyms_cmds \
13313old_archive_from_new_cmds \
13314old_archive_from_expsyms_cmds \
13315archive_cmds \
13316archive_expsym_cmds \
13317module_cmds \
13318module_expsym_cmds \
13319export_symbols_cmds \
13320prelink_cmds \
13321postlink_cmds \
13322postinstall_cmds \
13323postuninstall_cmds \
13324finish_cmds \
13325sys_lib_search_path_spec \
13326sys_lib_dlsearch_path_spec; do
13327    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13328    *[\\\\\\\`\\"\\\$]*)
13329      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13330      ;;
13331    *)
13332      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13333      ;;
13334    esac
13335done
13336
13337ac_aux_dir='$ac_aux_dir'
13338xsi_shell='$xsi_shell'
13339lt_shell_append='$lt_shell_append'
13340
13341# See if we are running on zsh, and set the options which allow our
13342# commands through without removal of \ escapes INIT.
13343if test -n "\${ZSH_VERSION+set}" ; then
13344   setopt NO_GLOB_SUBST
13345fi
13346
13347
13348    PACKAGE='$PACKAGE'
13349    VERSION='$VERSION'
13350    TIMESTAMP='$TIMESTAMP'
13351    RM='$RM'
13352    ofile='$ofile'
13353
13354
13355
13356
13357_ACEOF
13358
13359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13360
13361# Handling of arguments.
13362for ac_config_target in $ac_config_targets
13363do
13364  case $ac_config_target in
13365    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13366    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13367    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13368    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13369
13370  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13371  esac
13372done
13373
13374
13375# If the user did not use the arguments to specify the items to instantiate,
13376# then the envvar interface is used.  Set only those that are not.
13377# We use the long form for the default assignment because of an extremely
13378# bizarre bug on SunOS 4.1.3.
13379if $ac_need_defaults; then
13380  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13381  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13382fi
13383
13384# Have a temporary directory for convenience.  Make it in the build tree
13385# simply because there is no reason against having it here, and in addition,
13386# creating and moving files from /tmp can sometimes cause problems.
13387# Hook for its removal unless debugging.
13388# Note that there is a small window in which the directory will not be cleaned:
13389# after its creation but before its name has been assigned to `$tmp'.
13390$debug ||
13391{
13392  tmp= ac_tmp=
13393  trap 'exit_status=$?
13394  : "${ac_tmp:=$tmp}"
13395  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13396' 0
13397  trap 'as_fn_exit 1' 1 2 13 15
13398}
13399# Create a (secure) tmp directory for tmp files.
13400
13401{
13402  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13403  test -d "$tmp"
13404}  ||
13405{
13406  tmp=./conf$$-$RANDOM
13407  (umask 077 && mkdir "$tmp")
13408} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13409ac_tmp=$tmp
13410
13411# Set up the scripts for CONFIG_FILES section.
13412# No need to generate them if there are no CONFIG_FILES.
13413# This happens for instance with `./config.status config.h'.
13414if test -n "$CONFIG_FILES"; then
13415
13416
13417ac_cr=`echo X | tr X '\015'`
13418# On cygwin, bash can eat \r inside `` if the user requested igncr.
13419# But we know of no other shell where ac_cr would be empty at this
13420# point, so we can use a bashism as a fallback.
13421if test "x$ac_cr" = x; then
13422  eval ac_cr=\$\'\\r\'
13423fi
13424ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13425if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13426  ac_cs_awk_cr='\\r'
13427else
13428  ac_cs_awk_cr=$ac_cr
13429fi
13430
13431echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13432_ACEOF
13433
13434
13435{
13436  echo "cat >conf$$subs.awk <<_ACEOF" &&
13437  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13438  echo "_ACEOF"
13439} >conf$$subs.sh ||
13440  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13441ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13442ac_delim='%!_!# '
13443for ac_last_try in false false false false false :; do
13444  . ./conf$$subs.sh ||
13445    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13446
13447  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13448  if test $ac_delim_n = $ac_delim_num; then
13449    break
13450  elif $ac_last_try; then
13451    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13452  else
13453    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13454  fi
13455done
13456rm -f conf$$subs.sh
13457
13458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13459cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13460_ACEOF
13461sed -n '
13462h
13463s/^/S["/; s/!.*/"]=/
13464p
13465g
13466s/^[^!]*!//
13467:repl
13468t repl
13469s/'"$ac_delim"'$//
13470t delim
13471:nl
13472h
13473s/\(.\{148\}\)..*/\1/
13474t more1
13475s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13476p
13477n
13478b repl
13479:more1
13480s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13481p
13482g
13483s/.\{148\}//
13484t nl
13485:delim
13486h
13487s/\(.\{148\}\)..*/\1/
13488t more2
13489s/["\\]/\\&/g; s/^/"/; s/$/"/
13490p
13491b
13492:more2
13493s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13494p
13495g
13496s/.\{148\}//
13497t delim
13498' <conf$$subs.awk | sed '
13499/^[^""]/{
13500  N
13501  s/\n//
13502}
13503' >>$CONFIG_STATUS || ac_write_fail=1
13504rm -f conf$$subs.awk
13505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13506_ACAWK
13507cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13508  for (key in S) S_is_set[key] = 1
13509  FS = ""
13510
13511}
13512{
13513  line = $ 0
13514  nfields = split(line, field, "@")
13515  substed = 0
13516  len = length(field[1])
13517  for (i = 2; i < nfields; i++) {
13518    key = field[i]
13519    keylen = length(key)
13520    if (S_is_set[key]) {
13521      value = S[key]
13522      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13523      len += length(value) + length(field[++i])
13524      substed = 1
13525    } else
13526      len += 1 + keylen
13527  }
13528
13529  print line
13530}
13531
13532_ACAWK
13533_ACEOF
13534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13535if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13536  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13537else
13538  cat
13539fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13540  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13541_ACEOF
13542
13543# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13544# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13545# trailing colons and then remove the whole line if VPATH becomes empty
13546# (actually we leave an empty line to preserve line numbers).
13547if test "x$srcdir" = x.; then
13548  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13549h
13550s///
13551s/^/:/
13552s/[	 ]*$/:/
13553s/:\$(srcdir):/:/g
13554s/:\${srcdir}:/:/g
13555s/:@srcdir@:/:/g
13556s/^:*//
13557s/:*$//
13558x
13559s/\(=[	 ]*\).*/\1/
13560G
13561s/\n//
13562s/^[^=]*=[	 ]*$//
13563}'
13564fi
13565
13566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13567fi # test -n "$CONFIG_FILES"
13568
13569
13570eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
13571shift
13572for ac_tag
13573do
13574  case $ac_tag in
13575  :[FHLC]) ac_mode=$ac_tag; continue;;
13576  esac
13577  case $ac_mode$ac_tag in
13578  :[FHL]*:*);;
13579  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13580  :[FH]-) ac_tag=-:-;;
13581  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13582  esac
13583  ac_save_IFS=$IFS
13584  IFS=:
13585  set x $ac_tag
13586  IFS=$ac_save_IFS
13587  shift
13588  ac_file=$1
13589  shift
13590
13591  case $ac_mode in
13592  :L) ac_source=$1;;
13593  :[FH])
13594    ac_file_inputs=
13595    for ac_f
13596    do
13597      case $ac_f in
13598      -) ac_f="$ac_tmp/stdin";;
13599      *) # Look for the file first in the build tree, then in the source tree
13600	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13601	 # because $ac_f cannot contain `:'.
13602	 test -f "$ac_f" ||
13603	   case $ac_f in
13604	   [\\/$]*) false;;
13605	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13606	   esac ||
13607	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13608      esac
13609      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13610      as_fn_append ac_file_inputs " '$ac_f'"
13611    done
13612
13613    # Let's still pretend it is `configure' which instantiates (i.e., don't
13614    # use $as_me), people would be surprised to read:
13615    #    /* config.h.  Generated by config.status.  */
13616    configure_input='Generated from '`
13617	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13618	`' by configure.'
13619    if test x"$ac_file" != x-; then
13620      configure_input="$ac_file.  $configure_input"
13621      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13622$as_echo "$as_me: creating $ac_file" >&6;}
13623    fi
13624    # Neutralize special characters interpreted by sed in replacement strings.
13625    case $configure_input in #(
13626    *\&* | *\|* | *\\* )
13627       ac_sed_conf_input=`$as_echo "$configure_input" |
13628       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13629    *) ac_sed_conf_input=$configure_input;;
13630    esac
13631
13632    case $ac_tag in
13633    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13634      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13635    esac
13636    ;;
13637  esac
13638
13639  ac_dir=`$as_dirname -- "$ac_file" ||
13640$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13641	 X"$ac_file" : 'X\(//\)[^/]' \| \
13642	 X"$ac_file" : 'X\(//\)$' \| \
13643	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13644$as_echo X"$ac_file" |
13645    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13646	    s//\1/
13647	    q
13648	  }
13649	  /^X\(\/\/\)[^/].*/{
13650	    s//\1/
13651	    q
13652	  }
13653	  /^X\(\/\/\)$/{
13654	    s//\1/
13655	    q
13656	  }
13657	  /^X\(\/\).*/{
13658	    s//\1/
13659	    q
13660	  }
13661	  s/.*/./; q'`
13662  as_dir="$ac_dir"; as_fn_mkdir_p
13663  ac_builddir=.
13664
13665case "$ac_dir" in
13666.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13667*)
13668  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13669  # A ".." for each directory in $ac_dir_suffix.
13670  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13671  case $ac_top_builddir_sub in
13672  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13673  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13674  esac ;;
13675esac
13676ac_abs_top_builddir=$ac_pwd
13677ac_abs_builddir=$ac_pwd$ac_dir_suffix
13678# for backward compatibility:
13679ac_top_builddir=$ac_top_build_prefix
13680
13681case $srcdir in
13682  .)  # We are building in place.
13683    ac_srcdir=.
13684    ac_top_srcdir=$ac_top_builddir_sub
13685    ac_abs_top_srcdir=$ac_pwd ;;
13686  [\\/]* | ?:[\\/]* )  # Absolute name.
13687    ac_srcdir=$srcdir$ac_dir_suffix;
13688    ac_top_srcdir=$srcdir
13689    ac_abs_top_srcdir=$srcdir ;;
13690  *) # Relative name.
13691    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13692    ac_top_srcdir=$ac_top_build_prefix$srcdir
13693    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13694esac
13695ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13696
13697
13698  case $ac_mode in
13699  :F)
13700  #
13701  # CONFIG_FILE
13702  #
13703
13704  case $INSTALL in
13705  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13706  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13707  esac
13708  ac_MKDIR_P=$MKDIR_P
13709  case $MKDIR_P in
13710  [\\/$]* | ?:[\\/]* ) ;;
13711  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13712  esac
13713_ACEOF
13714
13715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13716# If the template does not know about datarootdir, expand it.
13717# FIXME: This hack should be removed a few years after 2.60.
13718ac_datarootdir_hack=; ac_datarootdir_seen=
13719ac_sed_dataroot='
13720/datarootdir/ {
13721  p
13722  q
13723}
13724/@datadir@/p
13725/@docdir@/p
13726/@infodir@/p
13727/@localedir@/p
13728/@mandir@/p'
13729case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13730*datarootdir*) ac_datarootdir_seen=yes;;
13731*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13732  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13733$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13734_ACEOF
13735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13736  ac_datarootdir_hack='
13737  s&@datadir@&$datadir&g
13738  s&@docdir@&$docdir&g
13739  s&@infodir@&$infodir&g
13740  s&@localedir@&$localedir&g
13741  s&@mandir@&$mandir&g
13742  s&\\\${datarootdir}&$datarootdir&g' ;;
13743esac
13744_ACEOF
13745
13746# Neutralize VPATH when `$srcdir' = `.'.
13747# Shell code in configure.ac might set extrasub.
13748# FIXME: do we really want to maintain this feature?
13749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13750ac_sed_extra="$ac_vpsub
13751$extrasub
13752_ACEOF
13753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13754:t
13755/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13756s|@configure_input@|$ac_sed_conf_input|;t t
13757s&@top_builddir@&$ac_top_builddir_sub&;t t
13758s&@top_build_prefix@&$ac_top_build_prefix&;t t
13759s&@srcdir@&$ac_srcdir&;t t
13760s&@abs_srcdir@&$ac_abs_srcdir&;t t
13761s&@top_srcdir@&$ac_top_srcdir&;t t
13762s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13763s&@builddir@&$ac_builddir&;t t
13764s&@abs_builddir@&$ac_abs_builddir&;t t
13765s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13766s&@INSTALL@&$ac_INSTALL&;t t
13767s&@MKDIR_P@&$ac_MKDIR_P&;t t
13768$ac_datarootdir_hack
13769"
13770eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13771  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13772
13773test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13774  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13775  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13776      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13777  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13778which seems to be undefined.  Please make sure it is defined" >&5
13779$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13780which seems to be undefined.  Please make sure it is defined" >&2;}
13781
13782  rm -f "$ac_tmp/stdin"
13783  case $ac_file in
13784  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13785  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13786  esac \
13787  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13788 ;;
13789
13790
13791  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13792$as_echo "$as_me: executing $ac_file commands" >&6;}
13793 ;;
13794  esac
13795
13796
13797  case $ac_file$ac_mode in
13798    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13799  # Older Autoconf quotes --file arguments for eval, but not when files
13800  # are listed without --file.  Let's play safe and only enable the eval
13801  # if we detect the quoting.
13802  case $CONFIG_FILES in
13803  *\'*) eval set x "$CONFIG_FILES" ;;
13804  *)   set x $CONFIG_FILES ;;
13805  esac
13806  shift
13807  for mf
13808  do
13809    # Strip MF so we end up with the name of the file.
13810    mf=`echo "$mf" | sed -e 's/:.*$//'`
13811    # Check whether this is an Automake generated Makefile or not.
13812    # We used to match only the files named 'Makefile.in', but
13813    # some people rename them; so instead we look at the file content.
13814    # Grep'ing the first line is not enough: some people post-process
13815    # each Makefile.in and add a new line on top of each file to say so.
13816    # Grep'ing the whole file is not good either: AIX grep has a line
13817    # limit of 2048, but all sed's we know have understand at least 4000.
13818    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13819      dirpart=`$as_dirname -- "$mf" ||
13820$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13821	 X"$mf" : 'X\(//\)[^/]' \| \
13822	 X"$mf" : 'X\(//\)$' \| \
13823	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13824$as_echo X"$mf" |
13825    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13826	    s//\1/
13827	    q
13828	  }
13829	  /^X\(\/\/\)[^/].*/{
13830	    s//\1/
13831	    q
13832	  }
13833	  /^X\(\/\/\)$/{
13834	    s//\1/
13835	    q
13836	  }
13837	  /^X\(\/\).*/{
13838	    s//\1/
13839	    q
13840	  }
13841	  s/.*/./; q'`
13842    else
13843      continue
13844    fi
13845    # Extract the definition of DEPDIR, am__include, and am__quote
13846    # from the Makefile without running 'make'.
13847    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13848    test -z "$DEPDIR" && continue
13849    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13850    test -z "$am__include" && continue
13851    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13852    # Find all dependency output files, they are included files with
13853    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13854    # simplest approach to changing $(DEPDIR) to its actual value in the
13855    # expansion.
13856    for file in `sed -n "
13857      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13858	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13859      # Make sure the directory exists.
13860      test -f "$dirpart/$file" && continue
13861      fdir=`$as_dirname -- "$file" ||
13862$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13863	 X"$file" : 'X\(//\)[^/]' \| \
13864	 X"$file" : 'X\(//\)$' \| \
13865	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13866$as_echo X"$file" |
13867    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13868	    s//\1/
13869	    q
13870	  }
13871	  /^X\(\/\/\)[^/].*/{
13872	    s//\1/
13873	    q
13874	  }
13875	  /^X\(\/\/\)$/{
13876	    s//\1/
13877	    q
13878	  }
13879	  /^X\(\/\).*/{
13880	    s//\1/
13881	    q
13882	  }
13883	  s/.*/./; q'`
13884      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13885      # echo "creating $dirpart/$file"
13886      echo '# dummy' > "$dirpart/$file"
13887    done
13888  done
13889}
13890 ;;
13891    "libtool":C)
13892
13893    # See if we are running on zsh, and set the options which allow our
13894    # commands through without removal of \ escapes.
13895    if test -n "${ZSH_VERSION+set}" ; then
13896      setopt NO_GLOB_SUBST
13897    fi
13898
13899    cfgfile="${ofile}T"
13900    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13901    $RM "$cfgfile"
13902
13903    cat <<_LT_EOF >> "$cfgfile"
13904#! $SHELL
13905
13906# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13907# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13908# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13909# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13910#
13911#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13912#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13913#                 Foundation, Inc.
13914#   Written by Gordon Matzigkeit, 1996
13915#
13916#   This file is part of GNU Libtool.
13917#
13918# GNU Libtool is free software; you can redistribute it and/or
13919# modify it under the terms of the GNU General Public License as
13920# published by the Free Software Foundation; either version 2 of
13921# the License, or (at your option) any later version.
13922#
13923# As a special exception to the GNU General Public License,
13924# if you distribute this file as part of a program or library that
13925# is built using GNU Libtool, you may include this file under the
13926# same distribution terms that you use for the rest of that program.
13927#
13928# GNU Libtool is distributed in the hope that it will be useful,
13929# but WITHOUT ANY WARRANTY; without even the implied warranty of
13930# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13931# GNU General Public License for more details.
13932#
13933# You should have received a copy of the GNU General Public License
13934# along with GNU Libtool; see the file COPYING.  If not, a copy
13935# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13936# obtained by writing to the Free Software Foundation, Inc.,
13937# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13938
13939
13940# The names of the tagged configurations supported by this script.
13941available_tags=""
13942
13943# ### BEGIN LIBTOOL CONFIG
13944
13945# Assembler program.
13946AS=$lt_AS
13947
13948# DLL creation program.
13949DLLTOOL=$lt_DLLTOOL
13950
13951# Object dumper program.
13952OBJDUMP=$lt_OBJDUMP
13953
13954# Which release of libtool.m4 was used?
13955macro_version=$macro_version
13956macro_revision=$macro_revision
13957
13958# Whether or not to build shared libraries.
13959build_libtool_libs=$enable_shared
13960
13961# Whether or not to build static libraries.
13962build_old_libs=$enable_static
13963
13964# What type of objects to build.
13965pic_mode=$pic_mode
13966
13967# Whether or not to optimize for fast installation.
13968fast_install=$enable_fast_install
13969
13970# Shell to use when invoking shell scripts.
13971SHELL=$lt_SHELL
13972
13973# An echo program that protects backslashes.
13974ECHO=$lt_ECHO
13975
13976# The PATH separator for the build system.
13977PATH_SEPARATOR=$lt_PATH_SEPARATOR
13978
13979# The host system.
13980host_alias=$host_alias
13981host=$host
13982host_os=$host_os
13983
13984# The build system.
13985build_alias=$build_alias
13986build=$build
13987build_os=$build_os
13988
13989# A sed program that does not truncate output.
13990SED=$lt_SED
13991
13992# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13993Xsed="\$SED -e 1s/^X//"
13994
13995# A grep program that handles long lines.
13996GREP=$lt_GREP
13997
13998# An ERE matcher.
13999EGREP=$lt_EGREP
14000
14001# A literal string matcher.
14002FGREP=$lt_FGREP
14003
14004# A BSD- or MS-compatible name lister.
14005NM=$lt_NM
14006
14007# Whether we need soft or hard links.
14008LN_S=$lt_LN_S
14009
14010# What is the maximum length of a command?
14011max_cmd_len=$max_cmd_len
14012
14013# Object file suffix (normally "o").
14014objext=$ac_objext
14015
14016# Executable file suffix (normally "").
14017exeext=$exeext
14018
14019# whether the shell understands "unset".
14020lt_unset=$lt_unset
14021
14022# turn spaces into newlines.
14023SP2NL=$lt_lt_SP2NL
14024
14025# turn newlines into spaces.
14026NL2SP=$lt_lt_NL2SP
14027
14028# convert \$build file names to \$host format.
14029to_host_file_cmd=$lt_cv_to_host_file_cmd
14030
14031# convert \$build files to toolchain format.
14032to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14033
14034# Method to check whether dependent libraries are shared objects.
14035deplibs_check_method=$lt_deplibs_check_method
14036
14037# Command to use when deplibs_check_method = "file_magic".
14038file_magic_cmd=$lt_file_magic_cmd
14039
14040# How to find potential files when deplibs_check_method = "file_magic".
14041file_magic_glob=$lt_file_magic_glob
14042
14043# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14044want_nocaseglob=$lt_want_nocaseglob
14045
14046# Command to associate shared and link libraries.
14047sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14048
14049# The archiver.
14050AR=$lt_AR
14051
14052# Flags to create an archive.
14053AR_FLAGS=$lt_AR_FLAGS
14054
14055# How to feed a file listing to the archiver.
14056archiver_list_spec=$lt_archiver_list_spec
14057
14058# A symbol stripping program.
14059STRIP=$lt_STRIP
14060
14061# Commands used to install an old-style archive.
14062RANLIB=$lt_RANLIB
14063old_postinstall_cmds=$lt_old_postinstall_cmds
14064old_postuninstall_cmds=$lt_old_postuninstall_cmds
14065
14066# Whether to use a lock for old archive extraction.
14067lock_old_archive_extraction=$lock_old_archive_extraction
14068
14069# A C compiler.
14070LTCC=$lt_CC
14071
14072# LTCC compiler flags.
14073LTCFLAGS=$lt_CFLAGS
14074
14075# Take the output of nm and produce a listing of raw symbols and C names.
14076global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14077
14078# Transform the output of nm in a proper C declaration.
14079global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14080
14081# Transform the output of nm in a C name address pair.
14082global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14083
14084# Transform the output of nm in a C name address pair when lib prefix is needed.
14085global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14086
14087# Specify filename containing input files for \$NM.
14088nm_file_list_spec=$lt_nm_file_list_spec
14089
14090# The root where to search for dependent libraries,and in which our libraries should be installed.
14091lt_sysroot=$lt_sysroot
14092
14093# The name of the directory that contains temporary libtool files.
14094objdir=$objdir
14095
14096# Used to examine libraries when file_magic_cmd begins with "file".
14097MAGIC_CMD=$MAGIC_CMD
14098
14099# Must we lock files when doing compilation?
14100need_locks=$lt_need_locks
14101
14102# Manifest tool.
14103MANIFEST_TOOL=$lt_MANIFEST_TOOL
14104
14105# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14106DSYMUTIL=$lt_DSYMUTIL
14107
14108# Tool to change global to local symbols on Mac OS X.
14109NMEDIT=$lt_NMEDIT
14110
14111# Tool to manipulate fat objects and archives on Mac OS X.
14112LIPO=$lt_LIPO
14113
14114# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14115OTOOL=$lt_OTOOL
14116
14117# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14118OTOOL64=$lt_OTOOL64
14119
14120# Old archive suffix (normally "a").
14121libext=$libext
14122
14123# Shared library suffix (normally ".so").
14124shrext_cmds=$lt_shrext_cmds
14125
14126# The commands to extract the exported symbol list from a shared archive.
14127extract_expsyms_cmds=$lt_extract_expsyms_cmds
14128
14129# Variables whose values should be saved in libtool wrapper scripts and
14130# restored at link time.
14131variables_saved_for_relink=$lt_variables_saved_for_relink
14132
14133# Do we need the "lib" prefix for modules?
14134need_lib_prefix=$need_lib_prefix
14135
14136# Do we need a version for libraries?
14137need_version=$need_version
14138
14139# Library versioning type.
14140version_type=$version_type
14141
14142# Shared library runtime path variable.
14143runpath_var=$runpath_var
14144
14145# Shared library path variable.
14146shlibpath_var=$shlibpath_var
14147
14148# Is shlibpath searched before the hard-coded library search path?
14149shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14150
14151# Format of library name prefix.
14152libname_spec=$lt_libname_spec
14153
14154# List of archive names.  First name is the real one, the rest are links.
14155# The last name is the one that the linker finds with -lNAME
14156library_names_spec=$lt_library_names_spec
14157
14158# The coded name of the library, if different from the real name.
14159soname_spec=$lt_soname_spec
14160
14161# Permission mode override for installation of shared libraries.
14162install_override_mode=$lt_install_override_mode
14163
14164# Command to use after installation of a shared archive.
14165postinstall_cmds=$lt_postinstall_cmds
14166
14167# Command to use after uninstallation of a shared archive.
14168postuninstall_cmds=$lt_postuninstall_cmds
14169
14170# Commands used to finish a libtool library installation in a directory.
14171finish_cmds=$lt_finish_cmds
14172
14173# As "finish_cmds", except a single script fragment to be evaled but
14174# not shown.
14175finish_eval=$lt_finish_eval
14176
14177# Whether we should hardcode library paths into libraries.
14178hardcode_into_libs=$hardcode_into_libs
14179
14180# Compile-time system search path for libraries.
14181sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14182
14183# Run-time system search path for libraries.
14184sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14185
14186# Whether dlopen is supported.
14187dlopen_support=$enable_dlopen
14188
14189# Whether dlopen of programs is supported.
14190dlopen_self=$enable_dlopen_self
14191
14192# Whether dlopen of statically linked programs is supported.
14193dlopen_self_static=$enable_dlopen_self_static
14194
14195# Commands to strip libraries.
14196old_striplib=$lt_old_striplib
14197striplib=$lt_striplib
14198
14199
14200# The linker used to build libraries.
14201LD=$lt_LD
14202
14203# How to create reloadable object files.
14204reload_flag=$lt_reload_flag
14205reload_cmds=$lt_reload_cmds
14206
14207# Commands used to build an old-style archive.
14208old_archive_cmds=$lt_old_archive_cmds
14209
14210# A language specific compiler.
14211CC=$lt_compiler
14212
14213# Is the compiler the GNU compiler?
14214with_gcc=$GCC
14215
14216# Compiler flag to turn off builtin functions.
14217no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14218
14219# Additional compiler flags for building library objects.
14220pic_flag=$lt_lt_prog_compiler_pic
14221
14222# How to pass a linker flag through the compiler.
14223wl=$lt_lt_prog_compiler_wl
14224
14225# Compiler flag to prevent dynamic linking.
14226link_static_flag=$lt_lt_prog_compiler_static
14227
14228# Does compiler simultaneously support -c and -o options?
14229compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14230
14231# Whether or not to add -lc for building shared libraries.
14232build_libtool_need_lc=$archive_cmds_need_lc
14233
14234# Whether or not to disallow shared libs when runtime libs are static.
14235allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14236
14237# Compiler flag to allow reflexive dlopens.
14238export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14239
14240# Compiler flag to generate shared objects directly from archives.
14241whole_archive_flag_spec=$lt_whole_archive_flag_spec
14242
14243# Whether the compiler copes with passing no objects directly.
14244compiler_needs_object=$lt_compiler_needs_object
14245
14246# Create an old-style archive from a shared archive.
14247old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14248
14249# Create a temporary old-style archive to link instead of a shared archive.
14250old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14251
14252# Commands used to build a shared archive.
14253archive_cmds=$lt_archive_cmds
14254archive_expsym_cmds=$lt_archive_expsym_cmds
14255
14256# Commands used to build a loadable module if different from building
14257# a shared archive.
14258module_cmds=$lt_module_cmds
14259module_expsym_cmds=$lt_module_expsym_cmds
14260
14261# Whether we are building with GNU ld or not.
14262with_gnu_ld=$lt_with_gnu_ld
14263
14264# Flag that allows shared libraries with undefined symbols to be built.
14265allow_undefined_flag=$lt_allow_undefined_flag
14266
14267# Flag that enforces no undefined symbols.
14268no_undefined_flag=$lt_no_undefined_flag
14269
14270# Flag to hardcode \$libdir into a binary during linking.
14271# This must work even if \$libdir does not exist
14272hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14273
14274# Whether we need a single "-rpath" flag with a separated argument.
14275hardcode_libdir_separator=$lt_hardcode_libdir_separator
14276
14277# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14278# DIR into the resulting binary.
14279hardcode_direct=$hardcode_direct
14280
14281# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14282# DIR into the resulting binary and the resulting library dependency is
14283# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14284# library is relocated.
14285hardcode_direct_absolute=$hardcode_direct_absolute
14286
14287# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14288# into the resulting binary.
14289hardcode_minus_L=$hardcode_minus_L
14290
14291# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14292# into the resulting binary.
14293hardcode_shlibpath_var=$hardcode_shlibpath_var
14294
14295# Set to "yes" if building a shared library automatically hardcodes DIR
14296# into the library and all subsequent libraries and executables linked
14297# against it.
14298hardcode_automatic=$hardcode_automatic
14299
14300# Set to yes if linker adds runtime paths of dependent libraries
14301# to runtime path list.
14302inherit_rpath=$inherit_rpath
14303
14304# Whether libtool must link a program against all its dependency libraries.
14305link_all_deplibs=$link_all_deplibs
14306
14307# Set to "yes" if exported symbols are required.
14308always_export_symbols=$always_export_symbols
14309
14310# The commands to list exported symbols.
14311export_symbols_cmds=$lt_export_symbols_cmds
14312
14313# Symbols that should not be listed in the preloaded symbols.
14314exclude_expsyms=$lt_exclude_expsyms
14315
14316# Symbols that must always be exported.
14317include_expsyms=$lt_include_expsyms
14318
14319# Commands necessary for linking programs (against libraries) with templates.
14320prelink_cmds=$lt_prelink_cmds
14321
14322# Commands necessary for finishing linking programs.
14323postlink_cmds=$lt_postlink_cmds
14324
14325# Specify filename containing input files.
14326file_list_spec=$lt_file_list_spec
14327
14328# How to hardcode a shared library path into an executable.
14329hardcode_action=$hardcode_action
14330
14331# ### END LIBTOOL CONFIG
14332
14333_LT_EOF
14334
14335  case $host_os in
14336  aix3*)
14337    cat <<\_LT_EOF >> "$cfgfile"
14338# AIX sometimes has problems with the GCC collect2 program.  For some
14339# reason, if we set the COLLECT_NAMES environment variable, the problems
14340# vanish in a puff of smoke.
14341if test "X${COLLECT_NAMES+set}" != Xset; then
14342  COLLECT_NAMES=
14343  export COLLECT_NAMES
14344fi
14345_LT_EOF
14346    ;;
14347  esac
14348
14349
14350ltmain="$ac_aux_dir/ltmain.sh"
14351
14352
14353  # We use sed instead of cat because bash on DJGPP gets confused if
14354  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14355  # text mode, it properly converts lines to CR/LF.  This bash problem
14356  # is reportedly fixed, but why not run on old versions too?
14357  sed '$q' "$ltmain" >> "$cfgfile" \
14358     || (rm -f "$cfgfile"; exit 1)
14359
14360  if test x"$xsi_shell" = xyes; then
14361  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14362func_dirname ()\
14363{\
14364\    case ${1} in\
14365\      */*) func_dirname_result="${1%/*}${2}" ;;\
14366\      *  ) func_dirname_result="${3}" ;;\
14367\    esac\
14368} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14369  && mv -f "$cfgfile.tmp" "$cfgfile" \
14370    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14371test 0 -eq $? || _lt_function_replace_fail=:
14372
14373
14374  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14375func_basename ()\
14376{\
14377\    func_basename_result="${1##*/}"\
14378} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14379  && mv -f "$cfgfile.tmp" "$cfgfile" \
14380    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14381test 0 -eq $? || _lt_function_replace_fail=:
14382
14383
14384  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14385func_dirname_and_basename ()\
14386{\
14387\    case ${1} in\
14388\      */*) func_dirname_result="${1%/*}${2}" ;;\
14389\      *  ) func_dirname_result="${3}" ;;\
14390\    esac\
14391\    func_basename_result="${1##*/}"\
14392} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14393  && mv -f "$cfgfile.tmp" "$cfgfile" \
14394    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14395test 0 -eq $? || _lt_function_replace_fail=:
14396
14397
14398  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14399func_stripname ()\
14400{\
14401\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14402\    # positional parameters, so assign one to ordinary parameter first.\
14403\    func_stripname_result=${3}\
14404\    func_stripname_result=${func_stripname_result#"${1}"}\
14405\    func_stripname_result=${func_stripname_result%"${2}"}\
14406} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14407  && mv -f "$cfgfile.tmp" "$cfgfile" \
14408    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14409test 0 -eq $? || _lt_function_replace_fail=:
14410
14411
14412  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14413func_split_long_opt ()\
14414{\
14415\    func_split_long_opt_name=${1%%=*}\
14416\    func_split_long_opt_arg=${1#*=}\
14417} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14418  && mv -f "$cfgfile.tmp" "$cfgfile" \
14419    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14420test 0 -eq $? || _lt_function_replace_fail=:
14421
14422
14423  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14424func_split_short_opt ()\
14425{\
14426\    func_split_short_opt_arg=${1#??}\
14427\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14428} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14429  && mv -f "$cfgfile.tmp" "$cfgfile" \
14430    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14431test 0 -eq $? || _lt_function_replace_fail=:
14432
14433
14434  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14435func_lo2o ()\
14436{\
14437\    case ${1} in\
14438\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14439\      *)    func_lo2o_result=${1} ;;\
14440\    esac\
14441} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14442  && mv -f "$cfgfile.tmp" "$cfgfile" \
14443    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14444test 0 -eq $? || _lt_function_replace_fail=:
14445
14446
14447  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14448func_xform ()\
14449{\
14450    func_xform_result=${1%.*}.lo\
14451} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14452  && mv -f "$cfgfile.tmp" "$cfgfile" \
14453    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14454test 0 -eq $? || _lt_function_replace_fail=:
14455
14456
14457  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14458func_arith ()\
14459{\
14460    func_arith_result=$(( $* ))\
14461} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14462  && mv -f "$cfgfile.tmp" "$cfgfile" \
14463    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14464test 0 -eq $? || _lt_function_replace_fail=:
14465
14466
14467  sed -e '/^func_len ()$/,/^} # func_len /c\
14468func_len ()\
14469{\
14470    func_len_result=${#1}\
14471} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14472  && mv -f "$cfgfile.tmp" "$cfgfile" \
14473    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14474test 0 -eq $? || _lt_function_replace_fail=:
14475
14476fi
14477
14478if test x"$lt_shell_append" = xyes; then
14479  sed -e '/^func_append ()$/,/^} # func_append /c\
14480func_append ()\
14481{\
14482    eval "${1}+=\\${2}"\
14483} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14484  && mv -f "$cfgfile.tmp" "$cfgfile" \
14485    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14486test 0 -eq $? || _lt_function_replace_fail=:
14487
14488
14489  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14490func_append_quoted ()\
14491{\
14492\    func_quote_for_eval "${2}"\
14493\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14494} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14495  && mv -f "$cfgfile.tmp" "$cfgfile" \
14496    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14497test 0 -eq $? || _lt_function_replace_fail=:
14498
14499
14500  # Save a `func_append' function call where possible by direct use of '+='
14501  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14502    && mv -f "$cfgfile.tmp" "$cfgfile" \
14503      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14504  test 0 -eq $? || _lt_function_replace_fail=:
14505else
14506  # Save a `func_append' function call even when '+=' is not available
14507  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14508    && mv -f "$cfgfile.tmp" "$cfgfile" \
14509      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14510  test 0 -eq $? || _lt_function_replace_fail=:
14511fi
14512
14513if test x"$_lt_function_replace_fail" = x":"; then
14514  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14515$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14516fi
14517
14518
14519   mv -f "$cfgfile" "$ofile" ||
14520    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14521  chmod +x "$ofile"
14522
14523 ;;
14524
14525  esac
14526done # for ac_tag
14527
14528
14529as_fn_exit 0
14530_ACEOF
14531ac_clean_files=$ac_clean_files_save
14532
14533test $ac_write_fail = 0 ||
14534  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14535
14536
14537# configure is writing to config.log, and then calls config.status.
14538# config.status does its own redirection, appending to config.log.
14539# Unfortunately, on DOS this fails, as config.log is still kept open
14540# by configure, so config.status won't be able to write to it; its
14541# output is simply discarded.  So we exec the FD to /dev/null,
14542# effectively closing config.log, so it can be properly (re)opened and
14543# appended to by config.status.  When coming back to configure, we
14544# need to make the FD available again.
14545if test "$no_create" != yes; then
14546  ac_cs_success=:
14547  ac_config_status_args=
14548  test "$silent" = yes &&
14549    ac_config_status_args="$ac_config_status_args --quiet"
14550  exec 5>/dev/null
14551  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14552  exec 5>>config.log
14553  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14554  # would make configure fail if this is the last instruction.
14555  $ac_cs_success || as_fn_exit 1
14556fi
14557if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14558  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14559$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14560fi
14561
14562
14563{ $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
14564
14565  version:          ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE major $YKPERS_VERSION_MAJOR minor $YKPERS_VERSION_MINOR patch $YKPERS_VERSION_PATCH number $YKPERS_VERSION_NUMBER
14566  Host type:        ${host}
14567  Install prefix:   ${prefix}
14568  Compiler:         ${CC}
14569  Compiler CFLAGS:  ${CFLAGS}
14570  Warning flags:    ${WARN_CFLAGS}
14571  Library types:    Shared=${enable_shared}, Static=${enable_static}
14572  Valgrind:         ${VALGRIND}
14573  Version script:   $have_ld_version_script
14574" >&5
14575$as_echo "$as_me: summary of build options:
14576
14577  version:          ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE major $YKPERS_VERSION_MAJOR minor $YKPERS_VERSION_MINOR patch $YKPERS_VERSION_PATCH number $YKPERS_VERSION_NUMBER
14578  Host type:        ${host}
14579  Install prefix:   ${prefix}
14580  Compiler:         ${CC}
14581  Compiler CFLAGS:  ${CFLAGS}
14582  Warning flags:    ${WARN_CFLAGS}
14583  Library types:    Shared=${enable_shared}, Static=${enable_static}
14584  Valgrind:         ${VALGRIND}
14585  Version script:   $have_ld_version_script
14586" >&6;}
14587