1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libmetalink 0.1.3.
4#
5# Report bugs to <t-tujikawa@users.sourceforge.net>.
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: t-tujikawa@users.sourceforge.net 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='libmetalink'
592PACKAGE_TARNAME='libmetalink'
593PACKAGE_VERSION='0.1.3'
594PACKAGE_STRING='libmetalink 0.1.3'
595PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
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
637HAVE_STRPTIME_FALSE
638HAVE_STRPTIME_TRUE
639HAVE_TIMEGM_FALSE
640HAVE_TIMEGM_TRUE
641LIBOBJS
642HAVE_CUNIT_FALSE
643HAVE_CUNIT_TRUE
644ENABLE_LIBXML2_FALSE
645ENABLE_LIBXML2_TRUE
646ENABLE_LIBEXPAT_FALSE
647ENABLE_LIBEXPAT_TRUE
648CUNIT_LIBS
649CUNIT_CFLAGS
650XML_LIBS
651XML_CPPFLAGS
652XML2_CONFIG
653EXPAT_LIBS
654EXPAT_CFLAGS
655PKG_CONFIG_LIBDIR
656PKG_CONFIG_PATH
657PKG_CONFIG
658NUMBER_VERSION
659PATCH_VERSION
660MINOR_VERSION
661MAJOR_VERSION
662AM_BACKSLASH
663AM_DEFAULT_VERBOSITY
664AM_DEFAULT_V
665AM_V
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669am__nodep
670AMDEPBACKSLASH
671AMDEP_FALSE
672AMDEP_TRUE
673am__quote
674am__include
675DEPDIR
676am__untar
677am__tar
678AMTAR
679am__leading_dot
680SET_MAKE
681mkdir_p
682MKDIR_P
683INSTALL_STRIP_PROGRAM
684install_sh
685MAKEINFO
686AUTOHEADER
687AUTOMAKE
688AUTOCONF
689ACLOCAL
690VERSION
691PACKAGE
692CYGPATH_W
693am__isrc
694INSTALL_DATA
695INSTALL_SCRIPT
696INSTALL_PROGRAM
697target_os
698target_vendor
699target_cpu
700target
701LT_AGE
702LT_REVISION
703LT_CURRENT
704CPP
705OTOOL64
706OTOOL
707LIPO
708NMEDIT
709DSYMUTIL
710MANIFEST_TOOL
711AWK
712RANLIB
713STRIP
714ac_ct_AR
715AR
716DLLTOOL
717OBJDUMP
718LN_S
719NM
720ac_ct_DUMPBIN
721DUMPBIN
722LD
723FGREP
724EGREP
725GREP
726SED
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734host_os
735host_vendor
736host_cpu
737host
738build_os
739build_vendor
740build_cpu
741build
742LIBTOOL
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762localstatedir
763sharedstatedir
764sysconfdir
765datadir
766datarootdir
767libexecdir
768sbindir
769bindir
770program_transform_name
771prefix
772exec_prefix
773PACKAGE_URL
774PACKAGE_BUGREPORT
775PACKAGE_STRING
776PACKAGE_VERSION
777PACKAGE_TARNAME
778PACKAGE_NAME
779PATH_SEPARATOR
780SHELL'
781ac_subst_files=''
782ac_user_opts='
783enable_option_checking
784enable_shared
785enable_static
786with_pic
787enable_fast_install
788with_gnu_ld
789with_sysroot
790enable_libtool_lock
791enable_dependency_tracking
792enable_silent_rules
793with_libexpat
794with_libxml2
795enable_maintainer_mode
796enable_gcc_visibility
797with_xml_prefix
798with_xml_exec_prefix
799enable_xmltest
800'
801      ac_precious_vars='build_alias
802host_alias
803target_alias
804CC
805CFLAGS
806LDFLAGS
807LIBS
808CPPFLAGS
809CPP
810PKG_CONFIG
811PKG_CONFIG_PATH
812PKG_CONFIG_LIBDIR
813EXPAT_CFLAGS
814EXPAT_LIBS
815CUNIT_CFLAGS
816CUNIT_LIBS'
817
818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822ac_unrecognized_opts=
823ac_unrecognized_sep=
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
846# (The list follows the same order as the GNU Coding Standards.)
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
855includedir='${prefix}/include'
856oldincludedir='/usr/include'
857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
866
867ac_prev=
868ac_dashdash=
869for ac_option
870do
871  # If the previous option needs an argument, assign it.
872  if test -n "$ac_prev"; then
873    eval $ac_prev=\$ac_option
874    ac_prev=
875    continue
876  fi
877
878  case $ac_option in
879  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880  *=)   ac_optarg= ;;
881  *)    ac_optarg=yes ;;
882  esac
883
884  # Accept the important Cygnus configure options, so we can diagnose typos.
885
886  case $ac_dashdash$ac_option in
887  --)
888    ac_dashdash=yes ;;
889
890  -bindir | --bindir | --bindi | --bind | --bin | --bi)
891    ac_prev=bindir ;;
892  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893    bindir=$ac_optarg ;;
894
895  -build | --build | --buil | --bui | --bu)
896    ac_prev=build_alias ;;
897  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898    build_alias=$ac_optarg ;;
899
900  -cache-file | --cache-file | --cache-fil | --cache-fi \
901  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902    ac_prev=cache_file ;;
903  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905    cache_file=$ac_optarg ;;
906
907  --config-cache | -C)
908    cache_file=config.cache ;;
909
910  -datadir | --datadir | --datadi | --datad)
911    ac_prev=datadir ;;
912  -datadir=* | --datadir=* | --datadi=* | --datad=*)
913    datadir=$ac_optarg ;;
914
915  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916  | --dataroo | --dataro | --datar)
917    ac_prev=datarootdir ;;
918  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920    datarootdir=$ac_optarg ;;
921
922  -disable-* | --disable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: $ac_useropt"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=no ;;
937
938  -docdir | --docdir | --docdi | --doc | --do)
939    ac_prev=docdir ;;
940  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941    docdir=$ac_optarg ;;
942
943  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944    ac_prev=dvidir ;;
945  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946    dvidir=$ac_optarg ;;
947
948  -enable-* | --enable-*)
949    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950    # Reject names that are not valid shell variable names.
951    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952      as_fn_error $? "invalid feature name: $ac_useropt"
953    ac_useropt_orig=$ac_useropt
954    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955    case $ac_user_opts in
956      *"
957"enable_$ac_useropt"
958"*) ;;
959      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960	 ac_unrecognized_sep=', ';;
961    esac
962    eval enable_$ac_useropt=\$ac_optarg ;;
963
964  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966  | --exec | --exe | --ex)
967    ac_prev=exec_prefix ;;
968  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970  | --exec=* | --exe=* | --ex=*)
971    exec_prefix=$ac_optarg ;;
972
973  -gas | --gas | --ga | --g)
974    # Obsolete; use --with-gas.
975    with_gas=yes ;;
976
977  -help | --help | --hel | --he | -h)
978    ac_init_help=long ;;
979  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980    ac_init_help=recursive ;;
981  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982    ac_init_help=short ;;
983
984  -host | --host | --hos | --ho)
985    ac_prev=host_alias ;;
986  -host=* | --host=* | --hos=* | --ho=*)
987    host_alias=$ac_optarg ;;
988
989  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990    ac_prev=htmldir ;;
991  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992  | --ht=*)
993    htmldir=$ac_optarg ;;
994
995  -includedir | --includedir | --includedi | --included | --include \
996  | --includ | --inclu | --incl | --inc)
997    ac_prev=includedir ;;
998  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999  | --includ=* | --inclu=* | --incl=* | --inc=*)
1000    includedir=$ac_optarg ;;
1001
1002  -infodir | --infodir | --infodi | --infod | --info | --inf)
1003    ac_prev=infodir ;;
1004  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005    infodir=$ac_optarg ;;
1006
1007  -libdir | --libdir | --libdi | --libd)
1008    ac_prev=libdir ;;
1009  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010    libdir=$ac_optarg ;;
1011
1012  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013  | --libexe | --libex | --libe)
1014    ac_prev=libexecdir ;;
1015  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016  | --libexe=* | --libex=* | --libe=*)
1017    libexecdir=$ac_optarg ;;
1018
1019  -localedir | --localedir | --localedi | --localed | --locale)
1020    ac_prev=localedir ;;
1021  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022    localedir=$ac_optarg ;;
1023
1024  -localstatedir | --localstatedir | --localstatedi | --localstated \
1025  | --localstate | --localstat | --localsta | --localst | --locals)
1026    ac_prev=localstatedir ;;
1027  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029    localstatedir=$ac_optarg ;;
1030
1031  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032    ac_prev=mandir ;;
1033  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034    mandir=$ac_optarg ;;
1035
1036  -nfp | --nfp | --nf)
1037    # Obsolete; use --without-fp.
1038    with_fp=no ;;
1039
1040  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041  | --no-cr | --no-c | -n)
1042    no_create=yes ;;
1043
1044  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046    no_recursion=yes ;;
1047
1048  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050  | --oldin | --oldi | --old | --ol | --o)
1051    ac_prev=oldincludedir ;;
1052  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055    oldincludedir=$ac_optarg ;;
1056
1057  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058    ac_prev=prefix ;;
1059  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060    prefix=$ac_optarg ;;
1061
1062  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063  | --program-pre | --program-pr | --program-p)
1064    ac_prev=program_prefix ;;
1065  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067    program_prefix=$ac_optarg ;;
1068
1069  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070  | --program-suf | --program-su | --program-s)
1071    ac_prev=program_suffix ;;
1072  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074    program_suffix=$ac_optarg ;;
1075
1076  -program-transform-name | --program-transform-name \
1077  | --program-transform-nam | --program-transform-na \
1078  | --program-transform-n | --program-transform- \
1079  | --program-transform | --program-transfor \
1080  | --program-transfo | --program-transf \
1081  | --program-trans | --program-tran \
1082  | --progr-tra | --program-tr | --program-t)
1083    ac_prev=program_transform_name ;;
1084  -program-transform-name=* | --program-transform-name=* \
1085  | --program-transform-nam=* | --program-transform-na=* \
1086  | --program-transform-n=* | --program-transform-=* \
1087  | --program-transform=* | --program-transfor=* \
1088  | --program-transfo=* | --program-transf=* \
1089  | --program-trans=* | --program-tran=* \
1090  | --progr-tra=* | --program-tr=* | --program-t=*)
1091    program_transform_name=$ac_optarg ;;
1092
1093  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094    ac_prev=pdfdir ;;
1095  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096    pdfdir=$ac_optarg ;;
1097
1098  -psdir | --psdir | --psdi | --psd | --ps)
1099    ac_prev=psdir ;;
1100  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101    psdir=$ac_optarg ;;
1102
1103  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104  | -silent | --silent | --silen | --sile | --sil)
1105    silent=yes ;;
1106
1107  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108    ac_prev=sbindir ;;
1109  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110  | --sbi=* | --sb=*)
1111    sbindir=$ac_optarg ;;
1112
1113  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115  | --sharedst | --shareds | --shared | --share | --shar \
1116  | --sha | --sh)
1117    ac_prev=sharedstatedir ;;
1118  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121  | --sha=* | --sh=*)
1122    sharedstatedir=$ac_optarg ;;
1123
1124  -site | --site | --sit)
1125    ac_prev=site ;;
1126  -site=* | --site=* | --sit=*)
1127    site=$ac_optarg ;;
1128
1129  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130    ac_prev=srcdir ;;
1131  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132    srcdir=$ac_optarg ;;
1133
1134  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135  | --syscon | --sysco | --sysc | --sys | --sy)
1136    ac_prev=sysconfdir ;;
1137  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139    sysconfdir=$ac_optarg ;;
1140
1141  -target | --target | --targe | --targ | --tar | --ta | --t)
1142    ac_prev=target_alias ;;
1143  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144    target_alias=$ac_optarg ;;
1145
1146  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147    verbose=yes ;;
1148
1149  -version | --version | --versio | --versi | --vers | -V)
1150    ac_init_version=: ;;
1151
1152  -with-* | --with-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: $ac_useropt"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=\$ac_optarg ;;
1167
1168  -without-* | --without-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: $ac_useropt"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=no ;;
1183
1184  --x)
1185    # Obsolete; use --with-x.
1186    with_x=yes ;;
1187
1188  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189  | --x-incl | --x-inc | --x-in | --x-i)
1190    ac_prev=x_includes ;;
1191  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193    x_includes=$ac_optarg ;;
1194
1195  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197    ac_prev=x_libraries ;;
1198  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200    x_libraries=$ac_optarg ;;
1201
1202  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203Try \`$0 --help' for more information"
1204    ;;
1205
1206  *=*)
1207    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208    # Reject names that are not valid shell variable names.
1209    case $ac_envvar in #(
1210      '' | [0-9]* | *[!_$as_cr_alnum]* )
1211      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212    esac
1213    eval $ac_envvar=\$ac_optarg
1214    export $ac_envvar ;;
1215
1216  *)
1217    # FIXME: should be removed in autoconf 3.0.
1218    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222    ;;
1223
1224  esac
1225done
1226
1227if test -n "$ac_prev"; then
1228  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229  as_fn_error $? "missing argument to $ac_option"
1230fi
1231
1232if test -n "$ac_unrecognized_opts"; then
1233  case $enable_option_checking in
1234    no) ;;
1235    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237  esac
1238fi
1239
1240# Check all directory arguments for consistency.
1241for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242		datadir sysconfdir sharedstatedir localstatedir includedir \
1243		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244		libdir localedir mandir
1245do
1246  eval ac_val=\$$ac_var
1247  # Remove trailing slashes.
1248  case $ac_val in
1249    */ )
1250      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251      eval $ac_var=\$ac_val;;
1252  esac
1253  # Be sure to have absolute directory names.
1254  case $ac_val in
1255    [\\/$]* | ?:[\\/]* )  continue;;
1256    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257  esac
1258  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259done
1260
1261# There might be people who depend on the old broken behavior: `$host'
1262# used to hold the argument of --host etc.
1263# FIXME: To remove some day.
1264build=$build_alias
1265host=$host_alias
1266target=$target_alias
1267
1268# FIXME: To remove some day.
1269if test "x$host_alias" != x; then
1270  if test "x$build_alias" = x; then
1271    cross_compiling=maybe
1272  elif test "x$build_alias" != "x$host_alias"; then
1273    cross_compiling=yes
1274  fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
1281
1282
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286  as_fn_error $? "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288  as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293  ac_srcdir_defaulted=yes
1294  # Try the directory containing this script, then the parent directory.
1295  ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297	 X"$as_myself" : 'X\(//\)[^/]' \| \
1298	 X"$as_myself" : 'X\(//\)$' \| \
1299	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300$as_echo X"$as_myself" |
1301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)[^/].*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\).*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  s/.*/./; q'`
1318  srcdir=$ac_confdir
1319  if test ! -r "$srcdir/$ac_unique_file"; then
1320    srcdir=..
1321  fi
1322else
1323  ac_srcdir_defaulted=no
1324fi
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332	pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335  srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343for ac_var in $ac_precious_vars; do
1344  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_env_${ac_var}_value=\$${ac_var}
1346  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348done
1349
1350#
1351# Report the --help message.
1352#
1353if test "$ac_init_help" = "long"; then
1354  # Omit some internal or obsolete options to make the list less imposing.
1355  # This message is too long to be a string in the A/UX 3.1 sh.
1356  cat <<_ACEOF
1357\`configure' configures libmetalink 0.1.3 to adapt to many kinds of systems.
1358
1359Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364Defaults for the options are specified in brackets.
1365
1366Configuration:
1367  -h, --help              display this help and exit
1368      --help=short        display options specific to this package
1369      --help=recursive    display the short help of all the included packages
1370  -V, --version           display version information and exit
1371  -q, --quiet, --silent   do not print \`checking ...' messages
1372      --cache-file=FILE   cache test results in FILE [disabled]
1373  -C, --config-cache      alias for \`--cache-file=config.cache'
1374  -n, --no-create         do not create output files
1375      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
1377Installation directories:
1378  --prefix=PREFIX         install architecture-independent files in PREFIX
1379                          [$ac_default_prefix]
1380  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                          [PREFIX]
1382
1383By default, \`make install' will install all the files in
1384\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386for instance \`--prefix=\$HOME'.
1387
1388For better control, use the options below.
1389
1390Fine tuning of the installation directories:
1391  --bindir=DIR            user executables [EPREFIX/bin]
1392  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1393  --libexecdir=DIR        program executables [EPREFIX/libexec]
1394  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1395  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1396  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1397  --libdir=DIR            object code libraries [EPREFIX/lib]
1398  --includedir=DIR        C header files [PREFIX/include]
1399  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1400  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1401  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1402  --infodir=DIR           info documentation [DATAROOTDIR/info]
1403  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1404  --mandir=DIR            man documentation [DATAROOTDIR/man]
1405  --docdir=DIR            documentation root [DATAROOTDIR/doc/libmetalink]
1406  --htmldir=DIR           html documentation [DOCDIR]
1407  --dvidir=DIR            dvi documentation [DOCDIR]
1408  --pdfdir=DIR            pdf documentation [DOCDIR]
1409  --psdir=DIR             ps documentation [DOCDIR]
1410_ACEOF
1411
1412  cat <<\_ACEOF
1413
1414Program names:
1415  --program-prefix=PREFIX            prepend PREFIX to installed program names
1416  --program-suffix=SUFFIX            append SUFFIX to installed program names
1417  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1418
1419System types:
1420  --build=BUILD     configure for building on BUILD [guessed]
1421  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1422  --target=TARGET   configure for building compilers for TARGET [HOST]
1423_ACEOF
1424fi
1425
1426if test -n "$ac_init_help"; then
1427  case $ac_init_help in
1428     short | recursive ) echo "Configuration of libmetalink 0.1.3:";;
1429   esac
1430  cat <<\_ACEOF
1431
1432Optional Features:
1433  --disable-option-checking  ignore unrecognized --enable/--with options
1434  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436  --enable-shared[=PKGS]  build shared libraries [default=yes]
1437  --enable-static[=PKGS]  build static libraries [default=yes]
1438  --enable-fast-install[=PKGS]
1439                          optimize for fast installation [default=yes]
1440  --disable-libtool-lock  avoid locking (might break parallel builds)
1441  --enable-dependency-tracking
1442                          do not reject slow dependency extractors
1443  --disable-dependency-tracking
1444                          speeds up one-time build
1445  --enable-silent-rules   less verbose build output (undo: "make V=1")
1446  --disable-silent-rules  verbose build output (undo: "make V=0")
1447  --enable-maintainer-mode
1448                          Turn on compile time warnings
1449  --enable-gcc-visibility Use gcc visibility attribute. This option may be
1450                          removed in the future release.
1451  --disable-xmltest       Do not try to compile and run a test LIBXML program
1452
1453Optional Packages:
1454  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1455  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1456  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1457                          both]
1458  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1459  --with-sysroot=DIR Search for dependent libraries within DIR
1460                        (or the compiler's sysroot if not specified).
1461  --with-libexpat            use libexpat library if installed. Default: yes
1462  --with-libxml2             use libxml2 library if installed. Default: yes
1463  --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
1464  --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
1465
1466Some influential environment variables:
1467  CC          C compiler command
1468  CFLAGS      C compiler flags
1469  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1470              nonstandard directory <lib dir>
1471  LIBS        libraries to pass to the linker, e.g. -l<library>
1472  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473              you have headers in a nonstandard directory <include dir>
1474  CPP         C preprocessor
1475  PKG_CONFIG  path to pkg-config utility
1476  PKG_CONFIG_PATH
1477              directories to add to pkg-config's search path
1478  PKG_CONFIG_LIBDIR
1479              path overriding pkg-config's built-in search path
1480  EXPAT_CFLAGS
1481              C compiler flags for EXPAT, overriding pkg-config
1482  EXPAT_LIBS  linker flags for EXPAT, overriding pkg-config
1483  CUNIT_CFLAGS
1484              C compiler flags for CUNIT, overriding pkg-config
1485  CUNIT_LIBS  linker flags for CUNIT, overriding pkg-config
1486
1487Use these variables to override the choices made by `configure' or to help
1488it to find libraries and programs with nonstandard names/locations.
1489
1490Report bugs to <t-tujikawa@users.sourceforge.net>.
1491_ACEOF
1492ac_status=$?
1493fi
1494
1495if test "$ac_init_help" = "recursive"; then
1496  # If there are subdirs, report their specific --help.
1497  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498    test -d "$ac_dir" ||
1499      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500      continue
1501    ac_builddir=.
1502
1503case "$ac_dir" in
1504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505*)
1506  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507  # A ".." for each directory in $ac_dir_suffix.
1508  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509  case $ac_top_builddir_sub in
1510  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512  esac ;;
1513esac
1514ac_abs_top_builddir=$ac_pwd
1515ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516# for backward compatibility:
1517ac_top_builddir=$ac_top_build_prefix
1518
1519case $srcdir in
1520  .)  # We are building in place.
1521    ac_srcdir=.
1522    ac_top_srcdir=$ac_top_builddir_sub
1523    ac_abs_top_srcdir=$ac_pwd ;;
1524  [\\/]* | ?:[\\/]* )  # Absolute name.
1525    ac_srcdir=$srcdir$ac_dir_suffix;
1526    ac_top_srcdir=$srcdir
1527    ac_abs_top_srcdir=$srcdir ;;
1528  *) # Relative name.
1529    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530    ac_top_srcdir=$ac_top_build_prefix$srcdir
1531    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532esac
1533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535    cd "$ac_dir" || { ac_status=$?; continue; }
1536    # Check for guested configure.
1537    if test -f "$ac_srcdir/configure.gnu"; then
1538      echo &&
1539      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540    elif test -f "$ac_srcdir/configure"; then
1541      echo &&
1542      $SHELL "$ac_srcdir/configure" --help=recursive
1543    else
1544      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545    fi || ac_status=$?
1546    cd "$ac_pwd" || { ac_status=$?; break; }
1547  done
1548fi
1549
1550test -n "$ac_init_help" && exit $ac_status
1551if $ac_init_version; then
1552  cat <<\_ACEOF
1553libmetalink configure 0.1.3
1554generated by GNU Autoconf 2.69
1555
1556Copyright (C) 2012 Free Software Foundation, Inc.
1557This configure script is free software; the Free Software Foundation
1558gives unlimited permission to copy, distribute and modify it.
1559_ACEOF
1560  exit
1561fi
1562
1563## ------------------------ ##
1564## Autoconf initialization. ##
1565## ------------------------ ##
1566
1567# ac_fn_c_try_compile LINENO
1568# --------------------------
1569# Try to compile conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_compile ()
1571{
1572  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573  rm -f conftest.$ac_objext
1574  if { { ac_try="$ac_compile"
1575case "(($ac_try" in
1576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577  *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581  (eval "$ac_compile") 2>conftest.err
1582  ac_status=$?
1583  if test -s conftest.err; then
1584    grep -v '^ *+' conftest.err >conftest.er1
1585    cat conftest.er1 >&5
1586    mv -f conftest.er1 conftest.err
1587  fi
1588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589  test $ac_status = 0; } && {
1590	 test -z "$ac_c_werror_flag" ||
1591	 test ! -s conftest.err
1592       } && test -s conftest.$ac_objext; then :
1593  ac_retval=0
1594else
1595  $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598	ac_retval=1
1599fi
1600  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601  as_fn_set_status $ac_retval
1602
1603} # ac_fn_c_try_compile
1604
1605# ac_fn_c_try_link LINENO
1606# -----------------------
1607# Try to link conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_link ()
1609{
1610  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611  rm -f conftest.$ac_objext conftest$ac_exeext
1612  if { { ac_try="$ac_link"
1613case "(($ac_try" in
1614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615  *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619  (eval "$ac_link") 2>conftest.err
1620  ac_status=$?
1621  if test -s conftest.err; then
1622    grep -v '^ *+' conftest.err >conftest.er1
1623    cat conftest.er1 >&5
1624    mv -f conftest.er1 conftest.err
1625  fi
1626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627  test $ac_status = 0; } && {
1628	 test -z "$ac_c_werror_flag" ||
1629	 test ! -s conftest.err
1630       } && test -s conftest$ac_exeext && {
1631	 test "$cross_compiling" = yes ||
1632	 test -x conftest$ac_exeext
1633       }; then :
1634  ac_retval=0
1635else
1636  $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
1638
1639	ac_retval=1
1640fi
1641  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1642  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1643  # interfere with the next link command; also delete a directory that is
1644  # left behind by Apple's compiler.  We do this before executing the actions.
1645  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647  as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_link
1650
1651# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1652# -------------------------------------------------------
1653# Tests whether HEADER exists and can be compiled using the include files in
1654# INCLUDES, setting the cache variable VAR accordingly.
1655ac_fn_c_check_header_compile ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659$as_echo_n "checking for $2... " >&6; }
1660if eval \${$3+:} false; then :
1661  $as_echo_n "(cached) " >&6
1662else
1663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664/* end confdefs.h.  */
1665$4
1666#include <$2>
1667_ACEOF
1668if ac_fn_c_try_compile "$LINENO"; then :
1669  eval "$3=yes"
1670else
1671  eval "$3=no"
1672fi
1673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674fi
1675eval ac_res=\$$3
1676	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677$as_echo "$ac_res" >&6; }
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680} # ac_fn_c_check_header_compile
1681
1682# ac_fn_c_try_cpp LINENO
1683# ----------------------
1684# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_cpp ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  if { { ac_try="$ac_cpp conftest.$ac_ext"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696  ac_status=$?
1697  if test -s conftest.err; then
1698    grep -v '^ *+' conftest.err >conftest.er1
1699    cat conftest.er1 >&5
1700    mv -f conftest.er1 conftest.err
1701  fi
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } > conftest.i && {
1704	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705	 test ! -s conftest.err
1706       }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712    ac_retval=1
1713fi
1714  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715  as_fn_set_status $ac_retval
1716
1717} # ac_fn_c_try_cpp
1718
1719# ac_fn_c_try_run LINENO
1720# ----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722# that executables *can* be run.
1723ac_fn_c_try_run ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729  *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733  (eval "$ac_link") 2>&5
1734  ac_status=$?
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737  { { case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_try") 2>&5
1744  ac_status=$?
1745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746  test $ac_status = 0; }; }; then :
1747  ac_retval=0
1748else
1749  $as_echo "$as_me: program exited with status $ac_status" >&5
1750       $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753       ac_retval=$ac_status
1754fi
1755  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757  as_fn_set_status $ac_retval
1758
1759} # ac_fn_c_try_run
1760
1761# ac_fn_c_check_func LINENO FUNC VAR
1762# ----------------------------------
1763# Tests whether FUNC exists, setting the cache variable VAR accordingly
1764ac_fn_c_check_func ()
1765{
1766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
1769if eval \${$3+:} false; then :
1770  $as_echo_n "(cached) " >&6
1771else
1772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h.  */
1774/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1775   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1776#define $2 innocuous_$2
1777
1778/* System header to define __stub macros and hopefully few prototypes,
1779    which can conflict with char $2 (); below.
1780    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1781    <limits.h> exists even on freestanding compilers.  */
1782
1783#ifdef __STDC__
1784# include <limits.h>
1785#else
1786# include <assert.h>
1787#endif
1788
1789#undef $2
1790
1791/* Override any GCC internal prototype to avoid an error.
1792   Use char because int might match the return type of a GCC
1793   builtin and then its argument prototype would still apply.  */
1794#ifdef __cplusplus
1795extern "C"
1796#endif
1797char $2 ();
1798/* The GNU C library defines this for functions which it implements
1799    to always fail with ENOSYS.  Some functions are actually named
1800    something starting with __ and the normal name is an alias.  */
1801#if defined __stub_$2 || defined __stub___$2
1802choke me
1803#endif
1804
1805int
1806main ()
1807{
1808return $2 ();
1809  ;
1810  return 0;
1811}
1812_ACEOF
1813if ac_fn_c_try_link "$LINENO"; then :
1814  eval "$3=yes"
1815else
1816  eval "$3=no"
1817fi
1818rm -f core conftest.err conftest.$ac_objext \
1819    conftest$ac_exeext conftest.$ac_ext
1820fi
1821eval ac_res=\$$3
1822	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823$as_echo "$ac_res" >&6; }
1824  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826} # ac_fn_c_check_func
1827
1828# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1829# -------------------------------------------------------
1830# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1831# the include files in INCLUDES and setting the cache variable VAR
1832# accordingly.
1833ac_fn_c_check_header_mongrel ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  if eval \${$3+:} false; then :
1837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838$as_echo_n "checking for $2... " >&6; }
1839if eval \${$3+:} false; then :
1840  $as_echo_n "(cached) " >&6
1841fi
1842eval ac_res=\$$3
1843	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844$as_echo "$ac_res" >&6; }
1845else
1846  # Is the header compilable?
1847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1848$as_echo_n "checking $2 usability... " >&6; }
1849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851$4
1852#include <$2>
1853_ACEOF
1854if ac_fn_c_try_compile "$LINENO"; then :
1855  ac_header_compiler=yes
1856else
1857  ac_header_compiler=no
1858fi
1859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1861$as_echo "$ac_header_compiler" >&6; }
1862
1863# Is the header present?
1864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1865$as_echo_n "checking $2 presence... " >&6; }
1866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h.  */
1868#include <$2>
1869_ACEOF
1870if ac_fn_c_try_cpp "$LINENO"; then :
1871  ac_header_preproc=yes
1872else
1873  ac_header_preproc=no
1874fi
1875rm -f conftest.err conftest.i conftest.$ac_ext
1876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1877$as_echo "$ac_header_preproc" >&6; }
1878
1879# So?  What about this header?
1880case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1881  yes:no: )
1882    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1883$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1884    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886    ;;
1887  no:yes:* )
1888    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1889$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1890    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1891$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1892    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1893$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1894    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1895$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1896    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898( $as_echo "## ----------------------------------------------- ##
1899## Report this to t-tujikawa@users.sourceforge.net ##
1900## ----------------------------------------------- ##"
1901     ) | sed "s/^/$as_me: WARNING:     /" >&2
1902    ;;
1903esac
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if eval \${$3+:} false; then :
1907  $as_echo_n "(cached) " >&6
1908else
1909  eval "$3=\$ac_header_compiler"
1910fi
1911eval ac_res=\$$3
1912	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913$as_echo "$ac_res" >&6; }
1914fi
1915  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917} # ac_fn_c_check_header_mongrel
1918
1919# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1920# -------------------------------------------
1921# Tests whether TYPE exists after having included INCLUDES, setting cache
1922# variable VAR accordingly.
1923ac_fn_c_check_type ()
1924{
1925  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; }
1928if eval \${$3+:} false; then :
1929  $as_echo_n "(cached) " >&6
1930else
1931  eval "$3=no"
1932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h.  */
1934$4
1935int
1936main ()
1937{
1938if (sizeof ($2))
1939	 return 0;
1940  ;
1941  return 0;
1942}
1943_ACEOF
1944if ac_fn_c_try_compile "$LINENO"; then :
1945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h.  */
1947$4
1948int
1949main ()
1950{
1951if (sizeof (($2)))
1952	    return 0;
1953  ;
1954  return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958
1959else
1960  eval "$3=yes"
1961fi
1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965fi
1966eval ac_res=\$$3
1967	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968$as_echo "$ac_res" >&6; }
1969  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971} # ac_fn_c_check_type
1972cat >config.log <<_ACEOF
1973This file contains any messages produced by compilers while
1974running configure, to aid debugging if configure makes a mistake.
1975
1976It was created by libmetalink $as_me 0.1.3, which was
1977generated by GNU Autoconf 2.69.  Invocation command line was
1978
1979  $ $0 $@
1980
1981_ACEOF
1982exec 5>>config.log
1983{
1984cat <<_ASUNAME
1985## --------- ##
1986## Platform. ##
1987## --------- ##
1988
1989hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994
1995/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1997
1998/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1999/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2000/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2002/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2003/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2004/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2005
2006_ASUNAME
2007
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011  IFS=$as_save_IFS
2012  test -z "$as_dir" && as_dir=.
2013    $as_echo "PATH: $as_dir"
2014  done
2015IFS=$as_save_IFS
2016
2017} >&5
2018
2019cat >&5 <<_ACEOF
2020
2021
2022## ----------- ##
2023## Core tests. ##
2024## ----------- ##
2025
2026_ACEOF
2027
2028
2029# Keep a trace of the command line.
2030# Strip out --no-create and --no-recursion so they do not pile up.
2031# Strip out --silent because we don't want to record it for future runs.
2032# Also quote any args containing shell meta-characters.
2033# Make two passes to allow for proper duplicate-argument suppression.
2034ac_configure_args=
2035ac_configure_args0=
2036ac_configure_args1=
2037ac_must_keep_next=false
2038for ac_pass in 1 2
2039do
2040  for ac_arg
2041  do
2042    case $ac_arg in
2043    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045    | -silent | --silent | --silen | --sile | --sil)
2046      continue ;;
2047    *\'*)
2048      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049    esac
2050    case $ac_pass in
2051    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2052    2)
2053      as_fn_append ac_configure_args1 " '$ac_arg'"
2054      if test $ac_must_keep_next = true; then
2055	ac_must_keep_next=false # Got value, back to normal.
2056      else
2057	case $ac_arg in
2058	  *=* | --config-cache | -C | -disable-* | --disable-* \
2059	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061	  | -with-* | --with-* | -without-* | --without-* | --x)
2062	    case "$ac_configure_args0 " in
2063	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064	    esac
2065	    ;;
2066	  -* ) ac_must_keep_next=true ;;
2067	esac
2068      fi
2069      as_fn_append ac_configure_args " '$ac_arg'"
2070      ;;
2071    esac
2072  done
2073done
2074{ ac_configure_args0=; unset ac_configure_args0;}
2075{ ac_configure_args1=; unset ac_configure_args1;}
2076
2077# When interrupted or exit'd, cleanup temporary files, and complete
2078# config.log.  We remove comments because anyway the quotes in there
2079# would cause problems or look ugly.
2080# WARNING: Use '\'' to represent an apostrophe within the trap.
2081# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082trap 'exit_status=$?
2083  # Save into config.log some information that might help in debugging.
2084  {
2085    echo
2086
2087    $as_echo "## ---------------- ##
2088## Cache variables. ##
2089## ---------------- ##"
2090    echo
2091    # The following way of writing the cache mishandles newlines in values,
2092(
2093  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094    eval ac_val=\$$ac_var
2095    case $ac_val in #(
2096    *${as_nl}*)
2097      case $ac_var in #(
2098      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100      esac
2101      case $ac_var in #(
2102      _ | IFS | as_nl) ;; #(
2103      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104      *) { eval $ac_var=; unset $ac_var;} ;;
2105      esac ;;
2106    esac
2107  done
2108  (set) 2>&1 |
2109    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110    *${as_nl}ac_space=\ *)
2111      sed -n \
2112	"s/'\''/'\''\\\\'\'''\''/g;
2113	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114      ;; #(
2115    *)
2116      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117      ;;
2118    esac |
2119    sort
2120)
2121    echo
2122
2123    $as_echo "## ----------------- ##
2124## Output variables. ##
2125## ----------------- ##"
2126    echo
2127    for ac_var in $ac_subst_vars
2128    do
2129      eval ac_val=\$$ac_var
2130      case $ac_val in
2131      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132      esac
2133      $as_echo "$ac_var='\''$ac_val'\''"
2134    done | sort
2135    echo
2136
2137    if test -n "$ac_subst_files"; then
2138      $as_echo "## ------------------- ##
2139## File substitutions. ##
2140## ------------------- ##"
2141      echo
2142      for ac_var in $ac_subst_files
2143      do
2144	eval ac_val=\$$ac_var
2145	case $ac_val in
2146	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147	esac
2148	$as_echo "$ac_var='\''$ac_val'\''"
2149      done | sort
2150      echo
2151    fi
2152
2153    if test -s confdefs.h; then
2154      $as_echo "## ----------- ##
2155## confdefs.h. ##
2156## ----------- ##"
2157      echo
2158      cat confdefs.h
2159      echo
2160    fi
2161    test "$ac_signal" != 0 &&
2162      $as_echo "$as_me: caught signal $ac_signal"
2163    $as_echo "$as_me: exit $exit_status"
2164  } >&5
2165  rm -f core *.core core.conftest.* &&
2166    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2167    exit $exit_status
2168' 0
2169for ac_signal in 1 2 13 15; do
2170  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2171done
2172ac_signal=0
2173
2174# confdefs.h avoids OS command line length limits that DEFS can exceed.
2175rm -f -r conftest* confdefs.h
2176
2177$as_echo "/* confdefs.h */" > confdefs.h
2178
2179# Predefined preprocessor variables.
2180
2181cat >>confdefs.h <<_ACEOF
2182#define PACKAGE_NAME "$PACKAGE_NAME"
2183_ACEOF
2184
2185cat >>confdefs.h <<_ACEOF
2186#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2187_ACEOF
2188
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_VERSION "$PACKAGE_VERSION"
2191_ACEOF
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_STRING "$PACKAGE_STRING"
2195_ACEOF
2196
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2199_ACEOF
2200
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_URL "$PACKAGE_URL"
2203_ACEOF
2204
2205
2206# Let the site file select an alternate cache file if it wants to.
2207# Prefer an explicitly selected file to automatically selected ones.
2208ac_site_file1=NONE
2209ac_site_file2=NONE
2210if test -n "$CONFIG_SITE"; then
2211  # We do not want a PATH search for config.site.
2212  case $CONFIG_SITE in #((
2213    -*)  ac_site_file1=./$CONFIG_SITE;;
2214    */*) ac_site_file1=$CONFIG_SITE;;
2215    *)   ac_site_file1=./$CONFIG_SITE;;
2216  esac
2217elif test "x$prefix" != xNONE; then
2218  ac_site_file1=$prefix/share/config.site
2219  ac_site_file2=$prefix/etc/config.site
2220else
2221  ac_site_file1=$ac_default_prefix/share/config.site
2222  ac_site_file2=$ac_default_prefix/etc/config.site
2223fi
2224for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2225do
2226  test "x$ac_site_file" = xNONE && continue
2227  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2228    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2230    sed 's/^/| /' "$ac_site_file" >&5
2231    . "$ac_site_file" \
2232      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234as_fn_error $? "failed to load site script $ac_site_file
2235See \`config.log' for more details" "$LINENO" 5; }
2236  fi
2237done
2238
2239if test -r "$cache_file"; then
2240  # Some versions of bash will fail to source /dev/null (special files
2241  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2242  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2243    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244$as_echo "$as_me: loading cache $cache_file" >&6;}
2245    case $cache_file in
2246      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2247      *)                      . "./$cache_file";;
2248    esac
2249  fi
2250else
2251  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252$as_echo "$as_me: creating cache $cache_file" >&6;}
2253  >$cache_file
2254fi
2255
2256# Check that the precious variables saved in the cache have kept the same
2257# value.
2258ac_cache_corrupted=false
2259for ac_var in $ac_precious_vars; do
2260  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2261  eval ac_new_set=\$ac_env_${ac_var}_set
2262  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2263  eval ac_new_val=\$ac_env_${ac_var}_value
2264  case $ac_old_set,$ac_new_set in
2265    set,)
2266      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2267$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2268      ac_cache_corrupted=: ;;
2269    ,set)
2270      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2271$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2272      ac_cache_corrupted=: ;;
2273    ,);;
2274    *)
2275      if test "x$ac_old_val" != "x$ac_new_val"; then
2276	# differences in whitespace do not lead to failure.
2277	ac_old_val_w=`echo x $ac_old_val`
2278	ac_new_val_w=`echo x $ac_new_val`
2279	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2280	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2281$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2282	  ac_cache_corrupted=:
2283	else
2284	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2285$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2286	  eval $ac_var=\$ac_old_val
2287	fi
2288	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2289$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2290	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2291$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2292      fi;;
2293  esac
2294  # Pass precious variables to config.status.
2295  if test "$ac_new_set" = set; then
2296    case $ac_new_val in
2297    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2298    *) ac_arg=$ac_var=$ac_new_val ;;
2299    esac
2300    case " $ac_configure_args " in
2301      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2302      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2303    esac
2304  fi
2305done
2306if $ac_cache_corrupted; then
2307  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2310$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2311  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312fi
2313## -------------------- ##
2314## Main body of script. ##
2315## -------------------- ##
2316
2317ac_ext=c
2318ac_cpp='$CPP $CPPFLAGS'
2319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2323
2324
2325
2326ac_aux_dir=
2327for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2328  if test -f "$ac_dir/install-sh"; then
2329    ac_aux_dir=$ac_dir
2330    ac_install_sh="$ac_aux_dir/install-sh -c"
2331    break
2332  elif test -f "$ac_dir/install.sh"; then
2333    ac_aux_dir=$ac_dir
2334    ac_install_sh="$ac_aux_dir/install.sh -c"
2335    break
2336  elif test -f "$ac_dir/shtool"; then
2337    ac_aux_dir=$ac_dir
2338    ac_install_sh="$ac_aux_dir/shtool install -c"
2339    break
2340  fi
2341done
2342if test -z "$ac_aux_dir"; then
2343  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2344fi
2345
2346# These three variables are undocumented and unsupported,
2347# and are intended to be withdrawn in a future Autoconf release.
2348# They can cause serious problems if a builder's source tree is in a directory
2349# whose full name contains unusual characters.
2350ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2351ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2352ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2353
2354
2355case `pwd` in
2356  *\ * | *\	*)
2357    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2358$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2359esac
2360
2361
2362
2363macro_version='2.4.2'
2364macro_revision='1.3337'
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378ltmain="$ac_aux_dir/ltmain.sh"
2379
2380# Make sure we can run config.sub.
2381$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2382  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2383
2384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2385$as_echo_n "checking build system type... " >&6; }
2386if ${ac_cv_build+:} false; then :
2387  $as_echo_n "(cached) " >&6
2388else
2389  ac_build_alias=$build_alias
2390test "x$ac_build_alias" = x &&
2391  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2392test "x$ac_build_alias" = x &&
2393  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2394ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2395  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2396
2397fi
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2399$as_echo "$ac_cv_build" >&6; }
2400case $ac_cv_build in
2401*-*-*) ;;
2402*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2403esac
2404build=$ac_cv_build
2405ac_save_IFS=$IFS; IFS='-'
2406set x $ac_cv_build
2407shift
2408build_cpu=$1
2409build_vendor=$2
2410shift; shift
2411# Remember, the first character of IFS is used to create $*,
2412# except with old shells:
2413build_os=$*
2414IFS=$ac_save_IFS
2415case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2416
2417
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2419$as_echo_n "checking host system type... " >&6; }
2420if ${ac_cv_host+:} false; then :
2421  $as_echo_n "(cached) " >&6
2422else
2423  if test "x$host_alias" = x; then
2424  ac_cv_host=$ac_cv_build
2425else
2426  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2427    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2428fi
2429
2430fi
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2432$as_echo "$ac_cv_host" >&6; }
2433case $ac_cv_host in
2434*-*-*) ;;
2435*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2436esac
2437host=$ac_cv_host
2438ac_save_IFS=$IFS; IFS='-'
2439set x $ac_cv_host
2440shift
2441host_cpu=$1
2442host_vendor=$2
2443shift; shift
2444# Remember, the first character of IFS is used to create $*,
2445# except with old shells:
2446host_os=$*
2447IFS=$ac_save_IFS
2448case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2449
2450
2451# Backslashify metacharacters that are still active within
2452# double-quoted strings.
2453sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2454
2455# Same as above, but do not quote variable references.
2456double_quote_subst='s/\(["`\\]\)/\\\1/g'
2457
2458# Sed substitution to delay expansion of an escaped shell variable in a
2459# double_quote_subst'ed string.
2460delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2461
2462# Sed substitution to delay expansion of an escaped single quote.
2463delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2464
2465# Sed substitution to avoid accidental globbing in evaled expressions
2466no_glob_subst='s/\*/\\\*/g'
2467
2468ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2469ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2470ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2471
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2473$as_echo_n "checking how to print strings... " >&6; }
2474# Test print first, because it will be a builtin if present.
2475if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2476   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2477  ECHO='print -r --'
2478elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2479  ECHO='printf %s\n'
2480else
2481  # Use this function as a fallback that always works.
2482  func_fallback_echo ()
2483  {
2484    eval 'cat <<_LTECHO_EOF
2485$1
2486_LTECHO_EOF'
2487  }
2488  ECHO='func_fallback_echo'
2489fi
2490
2491# func_echo_all arg...
2492# Invoke $ECHO with all args, space-separated.
2493func_echo_all ()
2494{
2495    $ECHO ""
2496}
2497
2498case "$ECHO" in
2499  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2500$as_echo "printf" >&6; } ;;
2501  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2502$as_echo "print -r" >&6; } ;;
2503  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2504$as_echo "cat" >&6; } ;;
2505esac
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520# Expand $ac_aux_dir to an absolute path.
2521am_aux_dir=`cd "$ac_aux_dir" && pwd`
2522
2523ac_ext=c
2524ac_cpp='$CPP $CPPFLAGS'
2525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528if test -n "$ac_tool_prefix"; then
2529  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2530set dummy ${ac_tool_prefix}gcc; ac_word=$2
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532$as_echo_n "checking for $ac_word... " >&6; }
2533if ${ac_cv_prog_CC+:} false; then :
2534  $as_echo_n "(cached) " >&6
2535else
2536  if test -n "$CC"; then
2537  ac_cv_prog_CC="$CC" # Let the user override the test.
2538else
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542  IFS=$as_save_IFS
2543  test -z "$as_dir" && as_dir=.
2544    for ac_exec_ext in '' $ac_executable_extensions; do
2545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548    break 2
2549  fi
2550done
2551  done
2552IFS=$as_save_IFS
2553
2554fi
2555fi
2556CC=$ac_cv_prog_CC
2557if test -n "$CC"; then
2558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2559$as_echo "$CC" >&6; }
2560else
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562$as_echo "no" >&6; }
2563fi
2564
2565
2566fi
2567if test -z "$ac_cv_prog_CC"; then
2568  ac_ct_CC=$CC
2569  # Extract the first word of "gcc", so it can be a program name with args.
2570set dummy gcc; ac_word=$2
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572$as_echo_n "checking for $ac_word... " >&6; }
2573if ${ac_cv_prog_ac_ct_CC+:} false; then :
2574  $as_echo_n "(cached) " >&6
2575else
2576  if test -n "$ac_ct_CC"; then
2577  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582  IFS=$as_save_IFS
2583  test -z "$as_dir" && as_dir=.
2584    for ac_exec_ext in '' $ac_executable_extensions; do
2585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586    ac_cv_prog_ac_ct_CC="gcc"
2587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588    break 2
2589  fi
2590done
2591  done
2592IFS=$as_save_IFS
2593
2594fi
2595fi
2596ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597if test -n "$ac_ct_CC"; then
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2599$as_echo "$ac_ct_CC" >&6; }
2600else
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
2603fi
2604
2605  if test "x$ac_ct_CC" = x; then
2606    CC=""
2607  else
2608    case $cross_compiling:$ac_tool_warned in
2609yes:)
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2612ac_tool_warned=yes ;;
2613esac
2614    CC=$ac_ct_CC
2615  fi
2616else
2617  CC="$ac_cv_prog_CC"
2618fi
2619
2620if test -z "$CC"; then
2621          if test -n "$ac_tool_prefix"; then
2622    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2623set dummy ${ac_tool_prefix}cc; ac_word=$2
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625$as_echo_n "checking for $ac_word... " >&6; }
2626if ${ac_cv_prog_CC+:} false; then :
2627  $as_echo_n "(cached) " >&6
2628else
2629  if test -n "$CC"; then
2630  ac_cv_prog_CC="$CC" # Let the user override the test.
2631else
2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635  IFS=$as_save_IFS
2636  test -z "$as_dir" && as_dir=.
2637    for ac_exec_ext in '' $ac_executable_extensions; do
2638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639    ac_cv_prog_CC="${ac_tool_prefix}cc"
2640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641    break 2
2642  fi
2643done
2644  done
2645IFS=$as_save_IFS
2646
2647fi
2648fi
2649CC=$ac_cv_prog_CC
2650if test -n "$CC"; then
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2652$as_echo "$CC" >&6; }
2653else
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
2656fi
2657
2658
2659  fi
2660fi
2661if test -z "$CC"; then
2662  # Extract the first word of "cc", so it can be a program name with args.
2663set dummy cc; ac_word=$2
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665$as_echo_n "checking for $ac_word... " >&6; }
2666if ${ac_cv_prog_CC+:} false; then :
2667  $as_echo_n "(cached) " >&6
2668else
2669  if test -n "$CC"; then
2670  ac_cv_prog_CC="$CC" # Let the user override the test.
2671else
2672  ac_prog_rejected=no
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676  IFS=$as_save_IFS
2677  test -z "$as_dir" && as_dir=.
2678    for ac_exec_ext in '' $ac_executable_extensions; do
2679  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2681       ac_prog_rejected=yes
2682       continue
2683     fi
2684    ac_cv_prog_CC="cc"
2685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686    break 2
2687  fi
2688done
2689  done
2690IFS=$as_save_IFS
2691
2692if test $ac_prog_rejected = yes; then
2693  # We found a bogon in the path, so make sure we never use it.
2694  set dummy $ac_cv_prog_CC
2695  shift
2696  if test $# != 0; then
2697    # We chose a different compiler from the bogus one.
2698    # However, it has the same basename, so the bogon will be chosen
2699    # first if we set CC to just the basename; use the full file name.
2700    shift
2701    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2702  fi
2703fi
2704fi
2705fi
2706CC=$ac_cv_prog_CC
2707if test -n "$CC"; then
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2709$as_echo "$CC" >&6; }
2710else
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712$as_echo "no" >&6; }
2713fi
2714
2715
2716fi
2717if test -z "$CC"; then
2718  if test -n "$ac_tool_prefix"; then
2719  for ac_prog in cl.exe
2720  do
2721    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2722set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724$as_echo_n "checking for $ac_word... " >&6; }
2725if ${ac_cv_prog_CC+:} false; then :
2726  $as_echo_n "(cached) " >&6
2727else
2728  if test -n "$CC"; then
2729  ac_cv_prog_CC="$CC" # Let the user override the test.
2730else
2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732for as_dir in $PATH
2733do
2734  IFS=$as_save_IFS
2735  test -z "$as_dir" && as_dir=.
2736    for ac_exec_ext in '' $ac_executable_extensions; do
2737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740    break 2
2741  fi
2742done
2743  done
2744IFS=$as_save_IFS
2745
2746fi
2747fi
2748CC=$ac_cv_prog_CC
2749if test -n "$CC"; then
2750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2751$as_echo "$CC" >&6; }
2752else
2753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754$as_echo "no" >&6; }
2755fi
2756
2757
2758    test -n "$CC" && break
2759  done
2760fi
2761if test -z "$CC"; then
2762  ac_ct_CC=$CC
2763  for ac_prog in cl.exe
2764do
2765  # Extract the first word of "$ac_prog", so it can be a program name with args.
2766set dummy $ac_prog; ac_word=$2
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768$as_echo_n "checking for $ac_word... " >&6; }
2769if ${ac_cv_prog_ac_ct_CC+:} false; then :
2770  $as_echo_n "(cached) " >&6
2771else
2772  if test -n "$ac_ct_CC"; then
2773  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2774else
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778  IFS=$as_save_IFS
2779  test -z "$as_dir" && as_dir=.
2780    for ac_exec_ext in '' $ac_executable_extensions; do
2781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782    ac_cv_prog_ac_ct_CC="$ac_prog"
2783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784    break 2
2785  fi
2786done
2787  done
2788IFS=$as_save_IFS
2789
2790fi
2791fi
2792ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793if test -n "$ac_ct_CC"; then
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2795$as_echo "$ac_ct_CC" >&6; }
2796else
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798$as_echo "no" >&6; }
2799fi
2800
2801
2802  test -n "$ac_ct_CC" && break
2803done
2804
2805  if test "x$ac_ct_CC" = x; then
2806    CC=""
2807  else
2808    case $cross_compiling:$ac_tool_warned in
2809yes:)
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2812ac_tool_warned=yes ;;
2813esac
2814    CC=$ac_ct_CC
2815  fi
2816fi
2817
2818fi
2819
2820
2821test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823as_fn_error $? "no acceptable C compiler found in \$PATH
2824See \`config.log' for more details" "$LINENO" 5; }
2825
2826# Provide some information about the compiler.
2827$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2828set X $ac_compile
2829ac_compiler=$2
2830for ac_option in --version -v -V -qversion; do
2831  { { ac_try="$ac_compiler $ac_option >&5"
2832case "(($ac_try" in
2833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834  *) ac_try_echo=$ac_try;;
2835esac
2836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2837$as_echo "$ac_try_echo"; } >&5
2838  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2839  ac_status=$?
2840  if test -s conftest.err; then
2841    sed '10a\
2842... rest of stderr output deleted ...
2843         10q' conftest.err >conftest.er1
2844    cat conftest.er1 >&5
2845  fi
2846  rm -f conftest.er1 conftest.err
2847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2848  test $ac_status = 0; }
2849done
2850
2851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852/* end confdefs.h.  */
2853
2854int
2855main ()
2856{
2857
2858  ;
2859  return 0;
2860}
2861_ACEOF
2862ac_clean_files_save=$ac_clean_files
2863ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2864# Try to create an executable without -o first, disregard a.out.
2865# It will help us diagnose broken compilers, and finding out an intuition
2866# of exeext.
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2868$as_echo_n "checking whether the C compiler works... " >&6; }
2869ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2870
2871# The possible output files:
2872ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2873
2874ac_rmfiles=
2875for ac_file in $ac_files
2876do
2877  case $ac_file in
2878    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2879    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2880  esac
2881done
2882rm -f $ac_rmfiles
2883
2884if { { ac_try="$ac_link_default"
2885case "(($ac_try" in
2886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887  *) ac_try_echo=$ac_try;;
2888esac
2889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2890$as_echo "$ac_try_echo"; } >&5
2891  (eval "$ac_link_default") 2>&5
2892  ac_status=$?
2893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894  test $ac_status = 0; }; then :
2895  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2896# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2897# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2898# so that the user can short-circuit this test for compilers unknown to
2899# Autoconf.
2900for ac_file in $ac_files ''
2901do
2902  test -f "$ac_file" || continue
2903  case $ac_file in
2904    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2905	;;
2906    [ab].out )
2907	# We found the default executable, but exeext='' is most
2908	# certainly right.
2909	break;;
2910    *.* )
2911	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2912	then :; else
2913	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2914	fi
2915	# We set ac_cv_exeext here because the later test for it is not
2916	# safe: cross compilers may not add the suffix if given an `-o'
2917	# argument, so we may need to know it at that point already.
2918	# Even if this section looks crufty: it has the advantage of
2919	# actually working.
2920	break;;
2921    * )
2922	break;;
2923  esac
2924done
2925test "$ac_cv_exeext" = no && ac_cv_exeext=
2926
2927else
2928  ac_file=''
2929fi
2930if test -z "$ac_file"; then :
2931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932$as_echo "no" >&6; }
2933$as_echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2938as_fn_error 77 "C compiler cannot create executables
2939See \`config.log' for more details" "$LINENO" 5; }
2940else
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2942$as_echo "yes" >&6; }
2943fi
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2945$as_echo_n "checking for C compiler default output file name... " >&6; }
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2947$as_echo "$ac_file" >&6; }
2948ac_exeext=$ac_cv_exeext
2949
2950rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2951ac_clean_files=$ac_clean_files_save
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2953$as_echo_n "checking for suffix of executables... " >&6; }
2954if { { ac_try="$ac_link"
2955case "(($ac_try" in
2956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957  *) ac_try_echo=$ac_try;;
2958esac
2959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2960$as_echo "$ac_try_echo"; } >&5
2961  (eval "$ac_link") 2>&5
2962  ac_status=$?
2963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964  test $ac_status = 0; }; then :
2965  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2966# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2967# work properly (i.e., refer to `conftest.exe'), while it won't with
2968# `rm'.
2969for ac_file in conftest.exe conftest conftest.*; do
2970  test -f "$ac_file" || continue
2971  case $ac_file in
2972    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2973    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2974	  break;;
2975    * ) break;;
2976  esac
2977done
2978else
2979  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2982See \`config.log' for more details" "$LINENO" 5; }
2983fi
2984rm -f conftest conftest$ac_cv_exeext
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2986$as_echo "$ac_cv_exeext" >&6; }
2987
2988rm -f conftest.$ac_ext
2989EXEEXT=$ac_cv_exeext
2990ac_exeext=$EXEEXT
2991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992/* end confdefs.h.  */
2993#include <stdio.h>
2994int
2995main ()
2996{
2997FILE *f = fopen ("conftest.out", "w");
2998 return ferror (f) || fclose (f) != 0;
2999
3000  ;
3001  return 0;
3002}
3003_ACEOF
3004ac_clean_files="$ac_clean_files conftest.out"
3005# Check that the compiler produces executables we can run.  If not, either
3006# the compiler is broken, or we cross compile.
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3008$as_echo_n "checking whether we are cross compiling... " >&6; }
3009if test "$cross_compiling" != yes; then
3010  { { ac_try="$ac_link"
3011case "(($ac_try" in
3012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013  *) ac_try_echo=$ac_try;;
3014esac
3015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016$as_echo "$ac_try_echo"; } >&5
3017  (eval "$ac_link") 2>&5
3018  ac_status=$?
3019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020  test $ac_status = 0; }
3021  if { ac_try='./conftest$ac_cv_exeext'
3022  { { case "(($ac_try" in
3023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024  *) ac_try_echo=$ac_try;;
3025esac
3026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027$as_echo "$ac_try_echo"; } >&5
3028  (eval "$ac_try") 2>&5
3029  ac_status=$?
3030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3031  test $ac_status = 0; }; }; then
3032    cross_compiling=no
3033  else
3034    if test "$cross_compiling" = maybe; then
3035	cross_compiling=yes
3036    else
3037	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3039as_fn_error $? "cannot run C compiled programs.
3040If you meant to cross compile, use \`--host'.
3041See \`config.log' for more details" "$LINENO" 5; }
3042    fi
3043  fi
3044fi
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3046$as_echo "$cross_compiling" >&6; }
3047
3048rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3049ac_clean_files=$ac_clean_files_save
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3051$as_echo_n "checking for suffix of object files... " >&6; }
3052if ${ac_cv_objext+:} false; then :
3053  $as_echo_n "(cached) " >&6
3054else
3055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056/* end confdefs.h.  */
3057
3058int
3059main ()
3060{
3061
3062  ;
3063  return 0;
3064}
3065_ACEOF
3066rm -f conftest.o conftest.obj
3067if { { ac_try="$ac_compile"
3068case "(($ac_try" in
3069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070  *) ac_try_echo=$ac_try;;
3071esac
3072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073$as_echo "$ac_try_echo"; } >&5
3074  (eval "$ac_compile") 2>&5
3075  ac_status=$?
3076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077  test $ac_status = 0; }; then :
3078  for ac_file in conftest.o conftest.obj conftest.*; do
3079  test -f "$ac_file" || continue;
3080  case $ac_file in
3081    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3082    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3083       break;;
3084  esac
3085done
3086else
3087  $as_echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
3090{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092as_fn_error $? "cannot compute suffix of object files: cannot compile
3093See \`config.log' for more details" "$LINENO" 5; }
3094fi
3095rm -f conftest.$ac_cv_objext conftest.$ac_ext
3096fi
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3098$as_echo "$ac_cv_objext" >&6; }
3099OBJEXT=$ac_cv_objext
3100ac_objext=$OBJEXT
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3102$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3103if ${ac_cv_c_compiler_gnu+:} false; then :
3104  $as_echo_n "(cached) " >&6
3105else
3106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107/* end confdefs.h.  */
3108
3109int
3110main ()
3111{
3112#ifndef __GNUC__
3113       choke me
3114#endif
3115
3116  ;
3117  return 0;
3118}
3119_ACEOF
3120if ac_fn_c_try_compile "$LINENO"; then :
3121  ac_compiler_gnu=yes
3122else
3123  ac_compiler_gnu=no
3124fi
3125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126ac_cv_c_compiler_gnu=$ac_compiler_gnu
3127
3128fi
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3130$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3131if test $ac_compiler_gnu = yes; then
3132  GCC=yes
3133else
3134  GCC=
3135fi
3136ac_test_CFLAGS=${CFLAGS+set}
3137ac_save_CFLAGS=$CFLAGS
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3139$as_echo_n "checking whether $CC accepts -g... " >&6; }
3140if ${ac_cv_prog_cc_g+:} false; then :
3141  $as_echo_n "(cached) " >&6
3142else
3143  ac_save_c_werror_flag=$ac_c_werror_flag
3144   ac_c_werror_flag=yes
3145   ac_cv_prog_cc_g=no
3146   CFLAGS="-g"
3147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148/* end confdefs.h.  */
3149
3150int
3151main ()
3152{
3153
3154  ;
3155  return 0;
3156}
3157_ACEOF
3158if ac_fn_c_try_compile "$LINENO"; then :
3159  ac_cv_prog_cc_g=yes
3160else
3161  CFLAGS=""
3162      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163/* end confdefs.h.  */
3164
3165int
3166main ()
3167{
3168
3169  ;
3170  return 0;
3171}
3172_ACEOF
3173if ac_fn_c_try_compile "$LINENO"; then :
3174
3175else
3176  ac_c_werror_flag=$ac_save_c_werror_flag
3177	 CFLAGS="-g"
3178	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179/* end confdefs.h.  */
3180
3181int
3182main ()
3183{
3184
3185  ;
3186  return 0;
3187}
3188_ACEOF
3189if ac_fn_c_try_compile "$LINENO"; then :
3190  ac_cv_prog_cc_g=yes
3191fi
3192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193fi
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197   ac_c_werror_flag=$ac_save_c_werror_flag
3198fi
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3200$as_echo "$ac_cv_prog_cc_g" >&6; }
3201if test "$ac_test_CFLAGS" = set; then
3202  CFLAGS=$ac_save_CFLAGS
3203elif test $ac_cv_prog_cc_g = yes; then
3204  if test "$GCC" = yes; then
3205    CFLAGS="-g -O2"
3206  else
3207    CFLAGS="-g"
3208  fi
3209else
3210  if test "$GCC" = yes; then
3211    CFLAGS="-O2"
3212  else
3213    CFLAGS=
3214  fi
3215fi
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3217$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3218if ${ac_cv_prog_cc_c89+:} false; then :
3219  $as_echo_n "(cached) " >&6
3220else
3221  ac_cv_prog_cc_c89=no
3222ac_save_CC=$CC
3223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224/* end confdefs.h.  */
3225#include <stdarg.h>
3226#include <stdio.h>
3227struct stat;
3228/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3229struct buf { int x; };
3230FILE * (*rcsopen) (struct buf *, struct stat *, int);
3231static char *e (p, i)
3232     char **p;
3233     int i;
3234{
3235  return p[i];
3236}
3237static char *f (char * (*g) (char **, int), char **p, ...)
3238{
3239  char *s;
3240  va_list v;
3241  va_start (v,p);
3242  s = g (p, va_arg (v,int));
3243  va_end (v);
3244  return s;
3245}
3246
3247/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3248   function prototypes and stuff, but not '\xHH' hex character constants.
3249   These don't provoke an error unfortunately, instead are silently treated
3250   as 'x'.  The following induces an error, until -std is added to get
3251   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3252   array size at least.  It's necessary to write '\x00'==0 to get something
3253   that's true only with -std.  */
3254int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3255
3256/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3257   inside strings and character constants.  */
3258#define FOO(x) 'x'
3259int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3260
3261int test (int i, double x);
3262struct s1 {int (*f) (int a);};
3263struct s2 {int (*f) (double a);};
3264int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3265int argc;
3266char **argv;
3267int
3268main ()
3269{
3270return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3271  ;
3272  return 0;
3273}
3274_ACEOF
3275for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3276	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3277do
3278  CC="$ac_save_CC $ac_arg"
3279  if ac_fn_c_try_compile "$LINENO"; then :
3280  ac_cv_prog_cc_c89=$ac_arg
3281fi
3282rm -f core conftest.err conftest.$ac_objext
3283  test "x$ac_cv_prog_cc_c89" != "xno" && break
3284done
3285rm -f conftest.$ac_ext
3286CC=$ac_save_CC
3287
3288fi
3289# AC_CACHE_VAL
3290case "x$ac_cv_prog_cc_c89" in
3291  x)
3292    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3293$as_echo "none needed" >&6; } ;;
3294  xno)
3295    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3296$as_echo "unsupported" >&6; } ;;
3297  *)
3298    CC="$CC $ac_cv_prog_cc_c89"
3299    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3300$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3301esac
3302if test "x$ac_cv_prog_cc_c89" != xno; then :
3303
3304fi
3305
3306ac_ext=c
3307ac_cpp='$CPP $CPPFLAGS'
3308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311
3312ac_ext=c
3313ac_cpp='$CPP $CPPFLAGS'
3314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3318$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3319if ${am_cv_prog_cc_c_o+:} false; then :
3320  $as_echo_n "(cached) " >&6
3321else
3322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323/* end confdefs.h.  */
3324
3325int
3326main ()
3327{
3328
3329  ;
3330  return 0;
3331}
3332_ACEOF
3333  # Make sure it works both with $CC and with simple cc.
3334  # Following AC_PROG_CC_C_O, we do the test twice because some
3335  # compilers refuse to overwrite an existing .o file with -o,
3336  # though they will create one.
3337  am_cv_prog_cc_c_o=yes
3338  for am_i in 1 2; do
3339    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3340   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3341   ac_status=$?
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); } \
3344         && test -f conftest2.$ac_objext; then
3345      : OK
3346    else
3347      am_cv_prog_cc_c_o=no
3348      break
3349    fi
3350  done
3351  rm -f core conftest*
3352  unset am_i
3353fi
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3355$as_echo "$am_cv_prog_cc_c_o" >&6; }
3356if test "$am_cv_prog_cc_c_o" != yes; then
3357   # Losing compiler, so override with the script.
3358   # FIXME: It is wrong to rewrite CC.
3359   # But if we don't then we get into trouble of one sort or another.
3360   # A longer-term fix would be to have automake use am__CC in this case,
3361   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3362   CC="$am_aux_dir/compile $CC"
3363fi
3364ac_ext=c
3365ac_cpp='$CPP $CPPFLAGS'
3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369
3370
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3372$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3373if ${ac_cv_path_SED+:} false; then :
3374  $as_echo_n "(cached) " >&6
3375else
3376            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3377     for ac_i in 1 2 3 4 5 6 7; do
3378       ac_script="$ac_script$as_nl$ac_script"
3379     done
3380     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3381     { ac_script=; unset ac_script;}
3382     if test -z "$SED"; then
3383  ac_path_SED_found=false
3384  # Loop through the user's path and test for each of PROGNAME-LIST
3385  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388  IFS=$as_save_IFS
3389  test -z "$as_dir" && as_dir=.
3390    for ac_prog in sed gsed; do
3391    for ac_exec_ext in '' $ac_executable_extensions; do
3392      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3393      as_fn_executable_p "$ac_path_SED" || continue
3394# Check for GNU ac_path_SED and select it if it is found.
3395  # Check for GNU $ac_path_SED
3396case `"$ac_path_SED" --version 2>&1` in
3397*GNU*)
3398  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3399*)
3400  ac_count=0
3401  $as_echo_n 0123456789 >"conftest.in"
3402  while :
3403  do
3404    cat "conftest.in" "conftest.in" >"conftest.tmp"
3405    mv "conftest.tmp" "conftest.in"
3406    cp "conftest.in" "conftest.nl"
3407    $as_echo '' >> "conftest.nl"
3408    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3409    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3410    as_fn_arith $ac_count + 1 && ac_count=$as_val
3411    if test $ac_count -gt ${ac_path_SED_max-0}; then
3412      # Best one so far, save it but keep looking for a better one
3413      ac_cv_path_SED="$ac_path_SED"
3414      ac_path_SED_max=$ac_count
3415    fi
3416    # 10*(2^10) chars as input seems more than enough
3417    test $ac_count -gt 10 && break
3418  done
3419  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3420esac
3421
3422      $ac_path_SED_found && break 3
3423    done
3424  done
3425  done
3426IFS=$as_save_IFS
3427  if test -z "$ac_cv_path_SED"; then
3428    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3429  fi
3430else
3431  ac_cv_path_SED=$SED
3432fi
3433
3434fi
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3436$as_echo "$ac_cv_path_SED" >&6; }
3437 SED="$ac_cv_path_SED"
3438  rm -f conftest.sed
3439
3440test -z "$SED" && SED=sed
3441Xsed="$SED -e 1s/^X//"
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3454$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3455if ${ac_cv_path_GREP+:} false; then :
3456  $as_echo_n "(cached) " >&6
3457else
3458  if test -z "$GREP"; then
3459  ac_path_GREP_found=false
3460  # Loop through the user's path and test for each of PROGNAME-LIST
3461  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3463do
3464  IFS=$as_save_IFS
3465  test -z "$as_dir" && as_dir=.
3466    for ac_prog in grep ggrep; do
3467    for ac_exec_ext in '' $ac_executable_extensions; do
3468      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3469      as_fn_executable_p "$ac_path_GREP" || continue
3470# Check for GNU ac_path_GREP and select it if it is found.
3471  # Check for GNU $ac_path_GREP
3472case `"$ac_path_GREP" --version 2>&1` in
3473*GNU*)
3474  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3475*)
3476  ac_count=0
3477  $as_echo_n 0123456789 >"conftest.in"
3478  while :
3479  do
3480    cat "conftest.in" "conftest.in" >"conftest.tmp"
3481    mv "conftest.tmp" "conftest.in"
3482    cp "conftest.in" "conftest.nl"
3483    $as_echo 'GREP' >> "conftest.nl"
3484    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3485    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3486    as_fn_arith $ac_count + 1 && ac_count=$as_val
3487    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3488      # Best one so far, save it but keep looking for a better one
3489      ac_cv_path_GREP="$ac_path_GREP"
3490      ac_path_GREP_max=$ac_count
3491    fi
3492    # 10*(2^10) chars as input seems more than enough
3493    test $ac_count -gt 10 && break
3494  done
3495  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3496esac
3497
3498      $ac_path_GREP_found && break 3
3499    done
3500  done
3501  done
3502IFS=$as_save_IFS
3503  if test -z "$ac_cv_path_GREP"; then
3504    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3505  fi
3506else
3507  ac_cv_path_GREP=$GREP
3508fi
3509
3510fi
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3512$as_echo "$ac_cv_path_GREP" >&6; }
3513 GREP="$ac_cv_path_GREP"
3514
3515
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3517$as_echo_n "checking for egrep... " >&6; }
3518if ${ac_cv_path_EGREP+:} false; then :
3519  $as_echo_n "(cached) " >&6
3520else
3521  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3522   then ac_cv_path_EGREP="$GREP -E"
3523   else
3524     if test -z "$EGREP"; then
3525  ac_path_EGREP_found=false
3526  # Loop through the user's path and test for each of PROGNAME-LIST
3527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3529do
3530  IFS=$as_save_IFS
3531  test -z "$as_dir" && as_dir=.
3532    for ac_prog in egrep; do
3533    for ac_exec_ext in '' $ac_executable_extensions; do
3534      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3535      as_fn_executable_p "$ac_path_EGREP" || continue
3536# Check for GNU ac_path_EGREP and select it if it is found.
3537  # Check for GNU $ac_path_EGREP
3538case `"$ac_path_EGREP" --version 2>&1` in
3539*GNU*)
3540  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3541*)
3542  ac_count=0
3543  $as_echo_n 0123456789 >"conftest.in"
3544  while :
3545  do
3546    cat "conftest.in" "conftest.in" >"conftest.tmp"
3547    mv "conftest.tmp" "conftest.in"
3548    cp "conftest.in" "conftest.nl"
3549    $as_echo 'EGREP' >> "conftest.nl"
3550    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3551    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3552    as_fn_arith $ac_count + 1 && ac_count=$as_val
3553    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3554      # Best one so far, save it but keep looking for a better one
3555      ac_cv_path_EGREP="$ac_path_EGREP"
3556      ac_path_EGREP_max=$ac_count
3557    fi
3558    # 10*(2^10) chars as input seems more than enough
3559    test $ac_count -gt 10 && break
3560  done
3561  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3562esac
3563
3564      $ac_path_EGREP_found && break 3
3565    done
3566  done
3567  done
3568IFS=$as_save_IFS
3569  if test -z "$ac_cv_path_EGREP"; then
3570    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3571  fi
3572else
3573  ac_cv_path_EGREP=$EGREP
3574fi
3575
3576   fi
3577fi
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3579$as_echo "$ac_cv_path_EGREP" >&6; }
3580 EGREP="$ac_cv_path_EGREP"
3581
3582
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3584$as_echo_n "checking for fgrep... " >&6; }
3585if ${ac_cv_path_FGREP+:} false; then :
3586  $as_echo_n "(cached) " >&6
3587else
3588  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3589   then ac_cv_path_FGREP="$GREP -F"
3590   else
3591     if test -z "$FGREP"; then
3592  ac_path_FGREP_found=false
3593  # Loop through the user's path and test for each of PROGNAME-LIST
3594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3596do
3597  IFS=$as_save_IFS
3598  test -z "$as_dir" && as_dir=.
3599    for ac_prog in fgrep; do
3600    for ac_exec_ext in '' $ac_executable_extensions; do
3601      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3602      as_fn_executable_p "$ac_path_FGREP" || continue
3603# Check for GNU ac_path_FGREP and select it if it is found.
3604  # Check for GNU $ac_path_FGREP
3605case `"$ac_path_FGREP" --version 2>&1` in
3606*GNU*)
3607  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3608*)
3609  ac_count=0
3610  $as_echo_n 0123456789 >"conftest.in"
3611  while :
3612  do
3613    cat "conftest.in" "conftest.in" >"conftest.tmp"
3614    mv "conftest.tmp" "conftest.in"
3615    cp "conftest.in" "conftest.nl"
3616    $as_echo 'FGREP' >> "conftest.nl"
3617    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3618    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3619    as_fn_arith $ac_count + 1 && ac_count=$as_val
3620    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3621      # Best one so far, save it but keep looking for a better one
3622      ac_cv_path_FGREP="$ac_path_FGREP"
3623      ac_path_FGREP_max=$ac_count
3624    fi
3625    # 10*(2^10) chars as input seems more than enough
3626    test $ac_count -gt 10 && break
3627  done
3628  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3629esac
3630
3631      $ac_path_FGREP_found && break 3
3632    done
3633  done
3634  done
3635IFS=$as_save_IFS
3636  if test -z "$ac_cv_path_FGREP"; then
3637    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3638  fi
3639else
3640  ac_cv_path_FGREP=$FGREP
3641fi
3642
3643   fi
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3646$as_echo "$ac_cv_path_FGREP" >&6; }
3647 FGREP="$ac_cv_path_FGREP"
3648
3649
3650test -z "$GREP" && GREP=grep
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670# Check whether --with-gnu-ld was given.
3671if test "${with_gnu_ld+set}" = set; then :
3672  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3673else
3674  with_gnu_ld=no
3675fi
3676
3677ac_prog=ld
3678if test "$GCC" = yes; then
3679  # Check if gcc -print-prog-name=ld gives a path.
3680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3681$as_echo_n "checking for ld used by $CC... " >&6; }
3682  case $host in
3683  *-*-mingw*)
3684    # gcc leaves a trailing carriage return which upsets mingw
3685    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3686  *)
3687    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3688  esac
3689  case $ac_prog in
3690    # Accept absolute paths.
3691    [\\/]* | ?:[\\/]*)
3692      re_direlt='/[^/][^/]*/\.\./'
3693      # Canonicalize the pathname of ld
3694      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3695      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3696	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3697      done
3698      test -z "$LD" && LD="$ac_prog"
3699      ;;
3700  "")
3701    # If it fails, then pretend we aren't using GCC.
3702    ac_prog=ld
3703    ;;
3704  *)
3705    # If it is relative, then search for the first ld in PATH.
3706    with_gnu_ld=unknown
3707    ;;
3708  esac
3709elif test "$with_gnu_ld" = yes; then
3710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3711$as_echo_n "checking for GNU ld... " >&6; }
3712else
3713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3714$as_echo_n "checking for non-GNU ld... " >&6; }
3715fi
3716if ${lt_cv_path_LD+:} false; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  if test -z "$LD"; then
3720  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3721  for ac_dir in $PATH; do
3722    IFS="$lt_save_ifs"
3723    test -z "$ac_dir" && ac_dir=.
3724    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3725      lt_cv_path_LD="$ac_dir/$ac_prog"
3726      # Check to see if the program is GNU ld.  I'd rather use --version,
3727      # but apparently some variants of GNU ld only accept -v.
3728      # Break only if it was the GNU/non-GNU ld that we prefer.
3729      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3730      *GNU* | *'with BFD'*)
3731	test "$with_gnu_ld" != no && break
3732	;;
3733      *)
3734	test "$with_gnu_ld" != yes && break
3735	;;
3736      esac
3737    fi
3738  done
3739  IFS="$lt_save_ifs"
3740else
3741  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3742fi
3743fi
3744
3745LD="$lt_cv_path_LD"
3746if test -n "$LD"; then
3747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3748$as_echo "$LD" >&6; }
3749else
3750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751$as_echo "no" >&6; }
3752fi
3753test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3755$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3756if ${lt_cv_prog_gnu_ld+:} false; then :
3757  $as_echo_n "(cached) " >&6
3758else
3759  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3760case `$LD -v 2>&1 </dev/null` in
3761*GNU* | *'with BFD'*)
3762  lt_cv_prog_gnu_ld=yes
3763  ;;
3764*)
3765  lt_cv_prog_gnu_ld=no
3766  ;;
3767esac
3768fi
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3770$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3771with_gnu_ld=$lt_cv_prog_gnu_ld
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3782$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3783if ${lt_cv_path_NM+:} false; then :
3784  $as_echo_n "(cached) " >&6
3785else
3786  if test -n "$NM"; then
3787  # Let the user override the test.
3788  lt_cv_path_NM="$NM"
3789else
3790  lt_nm_to_check="${ac_tool_prefix}nm"
3791  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3792    lt_nm_to_check="$lt_nm_to_check nm"
3793  fi
3794  for lt_tmp_nm in $lt_nm_to_check; do
3795    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3796    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3797      IFS="$lt_save_ifs"
3798      test -z "$ac_dir" && ac_dir=.
3799      tmp_nm="$ac_dir/$lt_tmp_nm"
3800      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3801	# Check to see if the nm accepts a BSD-compat flag.
3802	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3803	#   nm: unknown option "B" ignored
3804	# Tru64's nm complains that /dev/null is an invalid object file
3805	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3806	*/dev/null* | *'Invalid file or object type'*)
3807	  lt_cv_path_NM="$tmp_nm -B"
3808	  break
3809	  ;;
3810	*)
3811	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3812	  */dev/null*)
3813	    lt_cv_path_NM="$tmp_nm -p"
3814	    break
3815	    ;;
3816	  *)
3817	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3818	    continue # so that we can try to find one that supports BSD flags
3819	    ;;
3820	  esac
3821	  ;;
3822	esac
3823      fi
3824    done
3825    IFS="$lt_save_ifs"
3826  done
3827  : ${lt_cv_path_NM=no}
3828fi
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3831$as_echo "$lt_cv_path_NM" >&6; }
3832if test "$lt_cv_path_NM" != "no"; then
3833  NM="$lt_cv_path_NM"
3834else
3835  # Didn't find any BSD compatible name lister, look for dumpbin.
3836  if test -n "$DUMPBIN"; then :
3837    # Let the user override the test.
3838  else
3839    if test -n "$ac_tool_prefix"; then
3840  for ac_prog in dumpbin "link -dump"
3841  do
3842    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3843set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845$as_echo_n "checking for $ac_word... " >&6; }
3846if ${ac_cv_prog_DUMPBIN+:} false; then :
3847  $as_echo_n "(cached) " >&6
3848else
3849  if test -n "$DUMPBIN"; then
3850  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855  IFS=$as_save_IFS
3856  test -z "$as_dir" && as_dir=.
3857    for ac_exec_ext in '' $ac_executable_extensions; do
3858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861    break 2
3862  fi
3863done
3864  done
3865IFS=$as_save_IFS
3866
3867fi
3868fi
3869DUMPBIN=$ac_cv_prog_DUMPBIN
3870if test -n "$DUMPBIN"; then
3871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3872$as_echo "$DUMPBIN" >&6; }
3873else
3874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875$as_echo "no" >&6; }
3876fi
3877
3878
3879    test -n "$DUMPBIN" && break
3880  done
3881fi
3882if test -z "$DUMPBIN"; then
3883  ac_ct_DUMPBIN=$DUMPBIN
3884  for ac_prog in dumpbin "link -dump"
3885do
3886  # Extract the first word of "$ac_prog", so it can be a program name with args.
3887set dummy $ac_prog; ac_word=$2
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889$as_echo_n "checking for $ac_word... " >&6; }
3890if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3891  $as_echo_n "(cached) " >&6
3892else
3893  if test -n "$ac_ct_DUMPBIN"; then
3894  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3895else
3896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897for as_dir in $PATH
3898do
3899  IFS=$as_save_IFS
3900  test -z "$as_dir" && as_dir=.
3901    for ac_exec_ext in '' $ac_executable_extensions; do
3902  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905    break 2
3906  fi
3907done
3908  done
3909IFS=$as_save_IFS
3910
3911fi
3912fi
3913ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3914if test -n "$ac_ct_DUMPBIN"; then
3915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3916$as_echo "$ac_ct_DUMPBIN" >&6; }
3917else
3918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919$as_echo "no" >&6; }
3920fi
3921
3922
3923  test -n "$ac_ct_DUMPBIN" && break
3924done
3925
3926  if test "x$ac_ct_DUMPBIN" = x; then
3927    DUMPBIN=":"
3928  else
3929    case $cross_compiling:$ac_tool_warned in
3930yes:)
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3933ac_tool_warned=yes ;;
3934esac
3935    DUMPBIN=$ac_ct_DUMPBIN
3936  fi
3937fi
3938
3939    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3940    *COFF*)
3941      DUMPBIN="$DUMPBIN -symbols"
3942      ;;
3943    *)
3944      DUMPBIN=:
3945      ;;
3946    esac
3947  fi
3948
3949  if test "$DUMPBIN" != ":"; then
3950    NM="$DUMPBIN"
3951  fi
3952fi
3953test -z "$NM" && NM=nm
3954
3955
3956
3957
3958
3959
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3961$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3962if ${lt_cv_nm_interface+:} false; then :
3963  $as_echo_n "(cached) " >&6
3964else
3965  lt_cv_nm_interface="BSD nm"
3966  echo "int some_variable = 0;" > conftest.$ac_ext
3967  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3968  (eval "$ac_compile" 2>conftest.err)
3969  cat conftest.err >&5
3970  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3971  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3972  cat conftest.err >&5
3973  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3974  cat conftest.out >&5
3975  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3976    lt_cv_nm_interface="MS dumpbin"
3977  fi
3978  rm -f conftest*
3979fi
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3981$as_echo "$lt_cv_nm_interface" >&6; }
3982
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3984$as_echo_n "checking whether ln -s works... " >&6; }
3985LN_S=$as_ln_s
3986if test "$LN_S" = "ln -s"; then
3987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3988$as_echo "yes" >&6; }
3989else
3990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3991$as_echo "no, using $LN_S" >&6; }
3992fi
3993
3994# find the maximum length of command line arguments
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3996$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3997if ${lt_cv_sys_max_cmd_len+:} false; then :
3998  $as_echo_n "(cached) " >&6
3999else
4000    i=0
4001  teststring="ABCD"
4002
4003  case $build_os in
4004  msdosdjgpp*)
4005    # On DJGPP, this test can blow up pretty badly due to problems in libc
4006    # (any single argument exceeding 2000 bytes causes a buffer overrun
4007    # during glob expansion).  Even if it were fixed, the result of this
4008    # check would be larger than it should be.
4009    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4010    ;;
4011
4012  gnu*)
4013    # Under GNU Hurd, this test is not required because there is
4014    # no limit to the length of command line arguments.
4015    # Libtool will interpret -1 as no limit whatsoever
4016    lt_cv_sys_max_cmd_len=-1;
4017    ;;
4018
4019  cygwin* | mingw* | cegcc*)
4020    # On Win9x/ME, this test blows up -- it succeeds, but takes
4021    # about 5 minutes as the teststring grows exponentially.
4022    # Worse, since 9x/ME are not pre-emptively multitasking,
4023    # you end up with a "frozen" computer, even though with patience
4024    # the test eventually succeeds (with a max line length of 256k).
4025    # Instead, let's just punt: use the minimum linelength reported by
4026    # all of the supported platforms: 8192 (on NT/2K/XP).
4027    lt_cv_sys_max_cmd_len=8192;
4028    ;;
4029
4030  mint*)
4031    # On MiNT this can take a long time and run out of memory.
4032    lt_cv_sys_max_cmd_len=8192;
4033    ;;
4034
4035  amigaos*)
4036    # On AmigaOS with pdksh, this test takes hours, literally.
4037    # So we just punt and use a minimum line length of 8192.
4038    lt_cv_sys_max_cmd_len=8192;
4039    ;;
4040
4041  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4042    # This has been around since 386BSD, at least.  Likely further.
4043    if test -x /sbin/sysctl; then
4044      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4045    elif test -x /usr/sbin/sysctl; then
4046      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4047    else
4048      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4049    fi
4050    # And add a safety zone
4051    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4052    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4053    ;;
4054
4055  interix*)
4056    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4057    lt_cv_sys_max_cmd_len=196608
4058    ;;
4059
4060  os2*)
4061    # The test takes a long time on OS/2.
4062    lt_cv_sys_max_cmd_len=8192
4063    ;;
4064
4065  osf*)
4066    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4067    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4068    # nice to cause kernel panics so lets avoid the loop below.
4069    # First set a reasonable default.
4070    lt_cv_sys_max_cmd_len=16384
4071    #
4072    if test -x /sbin/sysconfig; then
4073      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4074        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4075      esac
4076    fi
4077    ;;
4078  sco3.2v5*)
4079    lt_cv_sys_max_cmd_len=102400
4080    ;;
4081  sysv5* | sco5v6* | sysv4.2uw2*)
4082    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4083    if test -n "$kargmax"; then
4084      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4085    else
4086      lt_cv_sys_max_cmd_len=32768
4087    fi
4088    ;;
4089  *)
4090    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4091    if test -n "$lt_cv_sys_max_cmd_len" && \
4092	test undefined != "$lt_cv_sys_max_cmd_len"; then
4093      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4094      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4095    else
4096      # Make teststring a little bigger before we do anything with it.
4097      # a 1K string should be a reasonable start.
4098      for i in 1 2 3 4 5 6 7 8 ; do
4099        teststring=$teststring$teststring
4100      done
4101      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4102      # If test is not a shell built-in, we'll probably end up computing a
4103      # maximum length that is only half of the actual maximum length, but
4104      # we can't tell.
4105      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4106	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4107	      test $i != 17 # 1/2 MB should be enough
4108      do
4109        i=`expr $i + 1`
4110        teststring=$teststring$teststring
4111      done
4112      # Only check the string length outside the loop.
4113      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4114      teststring=
4115      # Add a significant safety factor because C++ compilers can tack on
4116      # massive amounts of additional arguments before passing them to the
4117      # linker.  It appears as though 1/2 is a usable value.
4118      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4119    fi
4120    ;;
4121  esac
4122
4123fi
4124
4125if test -n $lt_cv_sys_max_cmd_len ; then
4126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4127$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4128else
4129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4130$as_echo "none" >&6; }
4131fi
4132max_cmd_len=$lt_cv_sys_max_cmd_len
4133
4134
4135
4136
4137
4138
4139: ${CP="cp -f"}
4140: ${MV="mv -f"}
4141: ${RM="rm -f"}
4142
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4144$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4145# Try some XSI features
4146xsi_shell=no
4147( _lt_dummy="a/b/c"
4148  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4149      = c,a/b,b/c, \
4150    && eval 'test $(( 1 + 1 )) -eq 2 \
4151    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4152  && xsi_shell=yes
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4154$as_echo "$xsi_shell" >&6; }
4155
4156
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4158$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4159lt_shell_append=no
4160( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4161    >/dev/null 2>&1 \
4162  && lt_shell_append=yes
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4164$as_echo "$lt_shell_append" >&6; }
4165
4166
4167if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4168  lt_unset=unset
4169else
4170  lt_unset=false
4171fi
4172
4173
4174
4175
4176
4177# test EBCDIC or ASCII
4178case `echo X|tr X '\101'` in
4179 A) # ASCII based system
4180    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4181  lt_SP2NL='tr \040 \012'
4182  lt_NL2SP='tr \015\012 \040\040'
4183  ;;
4184 *) # EBCDIC based system
4185  lt_SP2NL='tr \100 \n'
4186  lt_NL2SP='tr \r\n \100\100'
4187  ;;
4188esac
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4199$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4200if ${lt_cv_to_host_file_cmd+:} false; then :
4201  $as_echo_n "(cached) " >&6
4202else
4203  case $host in
4204  *-*-mingw* )
4205    case $build in
4206      *-*-mingw* ) # actually msys
4207        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4208        ;;
4209      *-*-cygwin* )
4210        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4211        ;;
4212      * ) # otherwise, assume *nix
4213        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4214        ;;
4215    esac
4216    ;;
4217  *-*-cygwin* )
4218    case $build in
4219      *-*-mingw* ) # actually msys
4220        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4221        ;;
4222      *-*-cygwin* )
4223        lt_cv_to_host_file_cmd=func_convert_file_noop
4224        ;;
4225      * ) # otherwise, assume *nix
4226        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4227        ;;
4228    esac
4229    ;;
4230  * ) # unhandled hosts (and "normal" native builds)
4231    lt_cv_to_host_file_cmd=func_convert_file_noop
4232    ;;
4233esac
4234
4235fi
4236
4237to_host_file_cmd=$lt_cv_to_host_file_cmd
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4239$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4240
4241
4242
4243
4244
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4246$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4247if ${lt_cv_to_tool_file_cmd+:} false; then :
4248  $as_echo_n "(cached) " >&6
4249else
4250  #assume ordinary cross tools, or native build.
4251lt_cv_to_tool_file_cmd=func_convert_file_noop
4252case $host in
4253  *-*-mingw* )
4254    case $build in
4255      *-*-mingw* ) # actually msys
4256        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4257        ;;
4258    esac
4259    ;;
4260esac
4261
4262fi
4263
4264to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4266$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4267
4268
4269
4270
4271
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4273$as_echo_n "checking for $LD option to reload object files... " >&6; }
4274if ${lt_cv_ld_reload_flag+:} false; then :
4275  $as_echo_n "(cached) " >&6
4276else
4277  lt_cv_ld_reload_flag='-r'
4278fi
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4280$as_echo "$lt_cv_ld_reload_flag" >&6; }
4281reload_flag=$lt_cv_ld_reload_flag
4282case $reload_flag in
4283"" | " "*) ;;
4284*) reload_flag=" $reload_flag" ;;
4285esac
4286reload_cmds='$LD$reload_flag -o $output$reload_objs'
4287case $host_os in
4288  cygwin* | mingw* | pw32* | cegcc*)
4289    if test "$GCC" != yes; then
4290      reload_cmds=false
4291    fi
4292    ;;
4293  darwin*)
4294    if test "$GCC" = yes; then
4295      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4296    else
4297      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4298    fi
4299    ;;
4300esac
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310if test -n "$ac_tool_prefix"; then
4311  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4312set dummy ${ac_tool_prefix}objdump; ac_word=$2
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314$as_echo_n "checking for $ac_word... " >&6; }
4315if ${ac_cv_prog_OBJDUMP+:} false; then :
4316  $as_echo_n "(cached) " >&6
4317else
4318  if test -n "$OBJDUMP"; then
4319  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4320else
4321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH
4323do
4324  IFS=$as_save_IFS
4325  test -z "$as_dir" && as_dir=.
4326    for ac_exec_ext in '' $ac_executable_extensions; do
4327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330    break 2
4331  fi
4332done
4333  done
4334IFS=$as_save_IFS
4335
4336fi
4337fi
4338OBJDUMP=$ac_cv_prog_OBJDUMP
4339if test -n "$OBJDUMP"; then
4340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4341$as_echo "$OBJDUMP" >&6; }
4342else
4343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344$as_echo "no" >&6; }
4345fi
4346
4347
4348fi
4349if test -z "$ac_cv_prog_OBJDUMP"; then
4350  ac_ct_OBJDUMP=$OBJDUMP
4351  # Extract the first word of "objdump", so it can be a program name with args.
4352set dummy objdump; ac_word=$2
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354$as_echo_n "checking for $ac_word... " >&6; }
4355if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358  if test -n "$ac_ct_OBJDUMP"; then
4359  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4360else
4361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362for as_dir in $PATH
4363do
4364  IFS=$as_save_IFS
4365  test -z "$as_dir" && as_dir=.
4366    for ac_exec_ext in '' $ac_executable_extensions; do
4367  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370    break 2
4371  fi
4372done
4373  done
4374IFS=$as_save_IFS
4375
4376fi
4377fi
4378ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4379if test -n "$ac_ct_OBJDUMP"; then
4380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4381$as_echo "$ac_ct_OBJDUMP" >&6; }
4382else
4383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384$as_echo "no" >&6; }
4385fi
4386
4387  if test "x$ac_ct_OBJDUMP" = x; then
4388    OBJDUMP="false"
4389  else
4390    case $cross_compiling:$ac_tool_warned in
4391yes:)
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4394ac_tool_warned=yes ;;
4395esac
4396    OBJDUMP=$ac_ct_OBJDUMP
4397  fi
4398else
4399  OBJDUMP="$ac_cv_prog_OBJDUMP"
4400fi
4401
4402test -z "$OBJDUMP" && OBJDUMP=objdump
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4413$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4414if ${lt_cv_deplibs_check_method+:} false; then :
4415  $as_echo_n "(cached) " >&6
4416else
4417  lt_cv_file_magic_cmd='$MAGIC_CMD'
4418lt_cv_file_magic_test_file=
4419lt_cv_deplibs_check_method='unknown'
4420# Need to set the preceding variable on all platforms that support
4421# interlibrary dependencies.
4422# 'none' -- dependencies not supported.
4423# `unknown' -- same as none, but documents that we really don't know.
4424# 'pass_all' -- all dependencies passed with no checks.
4425# 'test_compile' -- check by making test program.
4426# 'file_magic [[regex]]' -- check by looking for files in library path
4427# which responds to the $file_magic_cmd with a given extended regex.
4428# If you have `file' or equivalent on your system and you're not sure
4429# whether `pass_all' will *always* work, you probably want this one.
4430
4431case $host_os in
4432aix[4-9]*)
4433  lt_cv_deplibs_check_method=pass_all
4434  ;;
4435
4436beos*)
4437  lt_cv_deplibs_check_method=pass_all
4438  ;;
4439
4440bsdi[45]*)
4441  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4442  lt_cv_file_magic_cmd='/usr/bin/file -L'
4443  lt_cv_file_magic_test_file=/shlib/libc.so
4444  ;;
4445
4446cygwin*)
4447  # func_win32_libid is a shell function defined in ltmain.sh
4448  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4449  lt_cv_file_magic_cmd='func_win32_libid'
4450  ;;
4451
4452mingw* | pw32*)
4453  # Base MSYS/MinGW do not provide the 'file' command needed by
4454  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4455  # unless we find 'file', for example because we are cross-compiling.
4456  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4457  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4458    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4459    lt_cv_file_magic_cmd='func_win32_libid'
4460  else
4461    # Keep this pattern in sync with the one in func_win32_libid.
4462    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4463    lt_cv_file_magic_cmd='$OBJDUMP -f'
4464  fi
4465  ;;
4466
4467cegcc*)
4468  # use the weaker test based on 'objdump'. See mingw*.
4469  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4470  lt_cv_file_magic_cmd='$OBJDUMP -f'
4471  ;;
4472
4473darwin* | rhapsody*)
4474  lt_cv_deplibs_check_method=pass_all
4475  ;;
4476
4477freebsd* | dragonfly*)
4478  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4479    case $host_cpu in
4480    i*86 )
4481      # Not sure whether the presence of OpenBSD here was a mistake.
4482      # Let's accept both of them until this is cleared up.
4483      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4484      lt_cv_file_magic_cmd=/usr/bin/file
4485      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4486      ;;
4487    esac
4488  else
4489    lt_cv_deplibs_check_method=pass_all
4490  fi
4491  ;;
4492
4493haiku*)
4494  lt_cv_deplibs_check_method=pass_all
4495  ;;
4496
4497hpux10.20* | hpux11*)
4498  lt_cv_file_magic_cmd=/usr/bin/file
4499  case $host_cpu in
4500  ia64*)
4501    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4502    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4503    ;;
4504  hppa*64*)
4505    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]'
4506    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4507    ;;
4508  *)
4509    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4510    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4511    ;;
4512  esac
4513  ;;
4514
4515interix[3-9]*)
4516  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4517  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4518  ;;
4519
4520irix5* | irix6* | nonstopux*)
4521  case $LD in
4522  *-32|*"-32 ") libmagic=32-bit;;
4523  *-n32|*"-n32 ") libmagic=N32;;
4524  *-64|*"-64 ") libmagic=64-bit;;
4525  *) libmagic=never-match;;
4526  esac
4527  lt_cv_deplibs_check_method=pass_all
4528  ;;
4529
4530# This must be glibc/ELF.
4531linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4532  lt_cv_deplibs_check_method=pass_all
4533  ;;
4534
4535netbsd* | netbsdelf*-gnu)
4536  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4537    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4538  else
4539    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4540  fi
4541  ;;
4542
4543newos6*)
4544  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4545  lt_cv_file_magic_cmd=/usr/bin/file
4546  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4547  ;;
4548
4549*nto* | *qnx*)
4550  lt_cv_deplibs_check_method=pass_all
4551  ;;
4552
4553openbsd*)
4554  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4555    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4556  else
4557    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4558  fi
4559  ;;
4560
4561osf3* | osf4* | osf5*)
4562  lt_cv_deplibs_check_method=pass_all
4563  ;;
4564
4565rdos*)
4566  lt_cv_deplibs_check_method=pass_all
4567  ;;
4568
4569solaris*)
4570  lt_cv_deplibs_check_method=pass_all
4571  ;;
4572
4573sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4574  lt_cv_deplibs_check_method=pass_all
4575  ;;
4576
4577sysv4 | sysv4.3*)
4578  case $host_vendor in
4579  motorola)
4580    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]'
4581    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4582    ;;
4583  ncr)
4584    lt_cv_deplibs_check_method=pass_all
4585    ;;
4586  sequent)
4587    lt_cv_file_magic_cmd='/bin/file'
4588    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4589    ;;
4590  sni)
4591    lt_cv_file_magic_cmd='/bin/file'
4592    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4593    lt_cv_file_magic_test_file=/lib/libc.so
4594    ;;
4595  siemens)
4596    lt_cv_deplibs_check_method=pass_all
4597    ;;
4598  pc)
4599    lt_cv_deplibs_check_method=pass_all
4600    ;;
4601  esac
4602  ;;
4603
4604tpf*)
4605  lt_cv_deplibs_check_method=pass_all
4606  ;;
4607esac
4608
4609fi
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4611$as_echo "$lt_cv_deplibs_check_method" >&6; }
4612
4613file_magic_glob=
4614want_nocaseglob=no
4615if test "$build" = "$host"; then
4616  case $host_os in
4617  mingw* | pw32*)
4618    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4619      want_nocaseglob=yes
4620    else
4621      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4622    fi
4623    ;;
4624  esac
4625fi
4626
4627file_magic_cmd=$lt_cv_file_magic_cmd
4628deplibs_check_method=$lt_cv_deplibs_check_method
4629test -z "$deplibs_check_method" && deplibs_check_method=unknown
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652if test -n "$ac_tool_prefix"; then
4653  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4654set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656$as_echo_n "checking for $ac_word... " >&6; }
4657if ${ac_cv_prog_DLLTOOL+:} false; then :
4658  $as_echo_n "(cached) " >&6
4659else
4660  if test -n "$DLLTOOL"; then
4661  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4662else
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666  IFS=$as_save_IFS
4667  test -z "$as_dir" && as_dir=.
4668    for ac_exec_ext in '' $ac_executable_extensions; do
4669  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672    break 2
4673  fi
4674done
4675  done
4676IFS=$as_save_IFS
4677
4678fi
4679fi
4680DLLTOOL=$ac_cv_prog_DLLTOOL
4681if test -n "$DLLTOOL"; then
4682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4683$as_echo "$DLLTOOL" >&6; }
4684else
4685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686$as_echo "no" >&6; }
4687fi
4688
4689
4690fi
4691if test -z "$ac_cv_prog_DLLTOOL"; then
4692  ac_ct_DLLTOOL=$DLLTOOL
4693  # Extract the first word of "dlltool", so it can be a program name with args.
4694set dummy dlltool; ac_word=$2
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696$as_echo_n "checking for $ac_word... " >&6; }
4697if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4698  $as_echo_n "(cached) " >&6
4699else
4700  if test -n "$ac_ct_DLLTOOL"; then
4701  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4702else
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706  IFS=$as_save_IFS
4707  test -z "$as_dir" && as_dir=.
4708    for ac_exec_ext in '' $ac_executable_extensions; do
4709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4710    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712    break 2
4713  fi
4714done
4715  done
4716IFS=$as_save_IFS
4717
4718fi
4719fi
4720ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4721if test -n "$ac_ct_DLLTOOL"; then
4722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4723$as_echo "$ac_ct_DLLTOOL" >&6; }
4724else
4725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726$as_echo "no" >&6; }
4727fi
4728
4729  if test "x$ac_ct_DLLTOOL" = x; then
4730    DLLTOOL="false"
4731  else
4732    case $cross_compiling:$ac_tool_warned in
4733yes:)
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4736ac_tool_warned=yes ;;
4737esac
4738    DLLTOOL=$ac_ct_DLLTOOL
4739  fi
4740else
4741  DLLTOOL="$ac_cv_prog_DLLTOOL"
4742fi
4743
4744test -z "$DLLTOOL" && DLLTOOL=dlltool
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4756$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4757if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4758  $as_echo_n "(cached) " >&6
4759else
4760  lt_cv_sharedlib_from_linklib_cmd='unknown'
4761
4762case $host_os in
4763cygwin* | mingw* | pw32* | cegcc*)
4764  # two different shell functions defined in ltmain.sh
4765  # decide which to use based on capabilities of $DLLTOOL
4766  case `$DLLTOOL --help 2>&1` in
4767  *--identify-strict*)
4768    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4769    ;;
4770  *)
4771    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4772    ;;
4773  esac
4774  ;;
4775*)
4776  # fallback: assume linklib IS sharedlib
4777  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4778  ;;
4779esac
4780
4781fi
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4783$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4784sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4785test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4786
4787
4788
4789
4790
4791
4792
4793
4794if test -n "$ac_tool_prefix"; then
4795  for ac_prog in ar
4796  do
4797    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
4801if ${ac_cv_prog_AR+:} false; then :
4802  $as_echo_n "(cached) " >&6
4803else
4804  if test -n "$AR"; then
4805  ac_cv_prog_AR="$AR" # Let the user override the test.
4806else
4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810  IFS=$as_save_IFS
4811  test -z "$as_dir" && as_dir=.
4812    for ac_exec_ext in '' $ac_executable_extensions; do
4813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816    break 2
4817  fi
4818done
4819  done
4820IFS=$as_save_IFS
4821
4822fi
4823fi
4824AR=$ac_cv_prog_AR
4825if test -n "$AR"; then
4826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4827$as_echo "$AR" >&6; }
4828else
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
4831fi
4832
4833
4834    test -n "$AR" && break
4835  done
4836fi
4837if test -z "$AR"; then
4838  ac_ct_AR=$AR
4839  for ac_prog in ar
4840do
4841  # Extract the first word of "$ac_prog", so it can be a program name with args.
4842set dummy $ac_prog; ac_word=$2
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844$as_echo_n "checking for $ac_word... " >&6; }
4845if ${ac_cv_prog_ac_ct_AR+:} false; then :
4846  $as_echo_n "(cached) " >&6
4847else
4848  if test -n "$ac_ct_AR"; then
4849  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4850else
4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852for as_dir in $PATH
4853do
4854  IFS=$as_save_IFS
4855  test -z "$as_dir" && as_dir=.
4856    for ac_exec_ext in '' $ac_executable_extensions; do
4857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858    ac_cv_prog_ac_ct_AR="$ac_prog"
4859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860    break 2
4861  fi
4862done
4863  done
4864IFS=$as_save_IFS
4865
4866fi
4867fi
4868ac_ct_AR=$ac_cv_prog_ac_ct_AR
4869if test -n "$ac_ct_AR"; then
4870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4871$as_echo "$ac_ct_AR" >&6; }
4872else
4873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874$as_echo "no" >&6; }
4875fi
4876
4877
4878  test -n "$ac_ct_AR" && break
4879done
4880
4881  if test "x$ac_ct_AR" = x; then
4882    AR="false"
4883  else
4884    case $cross_compiling:$ac_tool_warned in
4885yes:)
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888ac_tool_warned=yes ;;
4889esac
4890    AR=$ac_ct_AR
4891  fi
4892fi
4893
4894: ${AR=ar}
4895: ${AR_FLAGS=cru}
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4908$as_echo_n "checking for archiver @FILE support... " >&6; }
4909if ${lt_cv_ar_at_file+:} false; then :
4910  $as_echo_n "(cached) " >&6
4911else
4912  lt_cv_ar_at_file=no
4913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914/* end confdefs.h.  */
4915
4916int
4917main ()
4918{
4919
4920  ;
4921  return 0;
4922}
4923_ACEOF
4924if ac_fn_c_try_compile "$LINENO"; then :
4925  echo conftest.$ac_objext > conftest.lst
4926      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4927      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4928  (eval $lt_ar_try) 2>&5
4929  ac_status=$?
4930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931  test $ac_status = 0; }
4932      if test "$ac_status" -eq 0; then
4933	# Ensure the archiver fails upon bogus file names.
4934	rm -f conftest.$ac_objext libconftest.a
4935	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4936  (eval $lt_ar_try) 2>&5
4937  ac_status=$?
4938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939  test $ac_status = 0; }
4940	if test "$ac_status" -ne 0; then
4941          lt_cv_ar_at_file=@
4942        fi
4943      fi
4944      rm -f conftest.* libconftest.a
4945
4946fi
4947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948
4949fi
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4951$as_echo "$lt_cv_ar_at_file" >&6; }
4952
4953if test "x$lt_cv_ar_at_file" = xno; then
4954  archiver_list_spec=
4955else
4956  archiver_list_spec=$lt_cv_ar_at_file
4957fi
4958
4959
4960
4961
4962
4963
4964
4965if test -n "$ac_tool_prefix"; then
4966  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4967set dummy ${ac_tool_prefix}strip; ac_word=$2
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969$as_echo_n "checking for $ac_word... " >&6; }
4970if ${ac_cv_prog_STRIP+:} false; then :
4971  $as_echo_n "(cached) " >&6
4972else
4973  if test -n "$STRIP"; then
4974  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979  IFS=$as_save_IFS
4980  test -z "$as_dir" && as_dir=.
4981    for ac_exec_ext in '' $ac_executable_extensions; do
4982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985    break 2
4986  fi
4987done
4988  done
4989IFS=$as_save_IFS
4990
4991fi
4992fi
4993STRIP=$ac_cv_prog_STRIP
4994if test -n "$STRIP"; then
4995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4996$as_echo "$STRIP" >&6; }
4997else
4998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
5000fi
5001
5002
5003fi
5004if test -z "$ac_cv_prog_STRIP"; then
5005  ac_ct_STRIP=$STRIP
5006  # Extract the first word of "strip", so it can be a program name with args.
5007set dummy strip; ac_word=$2
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009$as_echo_n "checking for $ac_word... " >&6; }
5010if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  if test -n "$ac_ct_STRIP"; then
5014  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5015else
5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019  IFS=$as_save_IFS
5020  test -z "$as_dir" && as_dir=.
5021    for ac_exec_ext in '' $ac_executable_extensions; do
5022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023    ac_cv_prog_ac_ct_STRIP="strip"
5024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025    break 2
5026  fi
5027done
5028  done
5029IFS=$as_save_IFS
5030
5031fi
5032fi
5033ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5034if test -n "$ac_ct_STRIP"; then
5035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5036$as_echo "$ac_ct_STRIP" >&6; }
5037else
5038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
5040fi
5041
5042  if test "x$ac_ct_STRIP" = x; then
5043    STRIP=":"
5044  else
5045    case $cross_compiling:$ac_tool_warned in
5046yes:)
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049ac_tool_warned=yes ;;
5050esac
5051    STRIP=$ac_ct_STRIP
5052  fi
5053else
5054  STRIP="$ac_cv_prog_STRIP"
5055fi
5056
5057test -z "$STRIP" && STRIP=:
5058
5059
5060
5061
5062
5063
5064if test -n "$ac_tool_prefix"; then
5065  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5066set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068$as_echo_n "checking for $ac_word... " >&6; }
5069if ${ac_cv_prog_RANLIB+:} false; then :
5070  $as_echo_n "(cached) " >&6
5071else
5072  if test -n "$RANLIB"; then
5073  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5074else
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078  IFS=$as_save_IFS
5079  test -z "$as_dir" && as_dir=.
5080    for ac_exec_ext in '' $ac_executable_extensions; do
5081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084    break 2
5085  fi
5086done
5087  done
5088IFS=$as_save_IFS
5089
5090fi
5091fi
5092RANLIB=$ac_cv_prog_RANLIB
5093if test -n "$RANLIB"; then
5094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5095$as_echo "$RANLIB" >&6; }
5096else
5097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
5099fi
5100
5101
5102fi
5103if test -z "$ac_cv_prog_RANLIB"; then
5104  ac_ct_RANLIB=$RANLIB
5105  # Extract the first word of "ranlib", so it can be a program name with args.
5106set dummy ranlib; ac_word=$2
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108$as_echo_n "checking for $ac_word... " >&6; }
5109if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5110  $as_echo_n "(cached) " >&6
5111else
5112  if test -n "$ac_ct_RANLIB"; then
5113  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5114else
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118  IFS=$as_save_IFS
5119  test -z "$as_dir" && as_dir=.
5120    for ac_exec_ext in '' $ac_executable_extensions; do
5121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122    ac_cv_prog_ac_ct_RANLIB="ranlib"
5123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124    break 2
5125  fi
5126done
5127  done
5128IFS=$as_save_IFS
5129
5130fi
5131fi
5132ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5133if test -n "$ac_ct_RANLIB"; then
5134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5135$as_echo "$ac_ct_RANLIB" >&6; }
5136else
5137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138$as_echo "no" >&6; }
5139fi
5140
5141  if test "x$ac_ct_RANLIB" = x; then
5142    RANLIB=":"
5143  else
5144    case $cross_compiling:$ac_tool_warned in
5145yes:)
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148ac_tool_warned=yes ;;
5149esac
5150    RANLIB=$ac_ct_RANLIB
5151  fi
5152else
5153  RANLIB="$ac_cv_prog_RANLIB"
5154fi
5155
5156test -z "$RANLIB" && RANLIB=:
5157
5158
5159
5160
5161
5162
5163# Determine commands to create old-style static archives.
5164old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5165old_postinstall_cmds='chmod 644 $oldlib'
5166old_postuninstall_cmds=
5167
5168if test -n "$RANLIB"; then
5169  case $host_os in
5170  openbsd*)
5171    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5172    ;;
5173  *)
5174    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5175    ;;
5176  esac
5177  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5178fi
5179
5180case $host_os in
5181  darwin*)
5182    lock_old_archive_extraction=yes ;;
5183  *)
5184    lock_old_archive_extraction=no ;;
5185esac
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207for ac_prog in gawk mawk nawk awk
5208do
5209  # Extract the first word of "$ac_prog", so it can be a program name with args.
5210set dummy $ac_prog; ac_word=$2
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212$as_echo_n "checking for $ac_word... " >&6; }
5213if ${ac_cv_prog_AWK+:} false; then :
5214  $as_echo_n "(cached) " >&6
5215else
5216  if test -n "$AWK"; then
5217  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5218else
5219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH
5221do
5222  IFS=$as_save_IFS
5223  test -z "$as_dir" && as_dir=.
5224    for ac_exec_ext in '' $ac_executable_extensions; do
5225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226    ac_cv_prog_AWK="$ac_prog"
5227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228    break 2
5229  fi
5230done
5231  done
5232IFS=$as_save_IFS
5233
5234fi
5235fi
5236AWK=$ac_cv_prog_AWK
5237if test -n "$AWK"; then
5238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5239$as_echo "$AWK" >&6; }
5240else
5241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242$as_echo "no" >&6; }
5243fi
5244
5245
5246  test -n "$AWK" && break
5247done
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267# If no C compiler was specified, use CC.
5268LTCC=${LTCC-"$CC"}
5269
5270# If no C compiler flags were specified, use CFLAGS.
5271LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5272
5273# Allow CC to be a program name with arguments.
5274compiler=$CC
5275
5276
5277# Check for command to grab the raw symbol name followed by C symbol from nm.
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5279$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5280if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5281  $as_echo_n "(cached) " >&6
5282else
5283
5284# These are sane defaults that work on at least a few old systems.
5285# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5286
5287# Character class describing NM global symbol codes.
5288symcode='[BCDEGRST]'
5289
5290# Regexp to match symbols that can be accessed directly from C.
5291sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5292
5293# Define system-specific variables.
5294case $host_os in
5295aix*)
5296  symcode='[BCDT]'
5297  ;;
5298cygwin* | mingw* | pw32* | cegcc*)
5299  symcode='[ABCDGISTW]'
5300  ;;
5301hpux*)
5302  if test "$host_cpu" = ia64; then
5303    symcode='[ABCDEGRST]'
5304  fi
5305  ;;
5306irix* | nonstopux*)
5307  symcode='[BCDEGRST]'
5308  ;;
5309osf*)
5310  symcode='[BCDEGQRST]'
5311  ;;
5312solaris*)
5313  symcode='[BDRT]'
5314  ;;
5315sco3.2v5*)
5316  symcode='[DT]'
5317  ;;
5318sysv4.2uw2*)
5319  symcode='[DT]'
5320  ;;
5321sysv5* | sco5v6* | unixware* | OpenUNIX*)
5322  symcode='[ABDT]'
5323  ;;
5324sysv4)
5325  symcode='[DFNSTU]'
5326  ;;
5327esac
5328
5329# If we're using GNU nm, then use its standard symbol codes.
5330case `$NM -V 2>&1` in
5331*GNU* | *'with BFD'*)
5332  symcode='[ABCDGIRSTW]' ;;
5333esac
5334
5335# Transform an extracted symbol line into a proper C declaration.
5336# Some systems (esp. on ia64) link data and code symbols differently,
5337# so use this general approach.
5338lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5339
5340# Transform an extracted symbol line into symbol name and symbol address
5341lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5342lt_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'"
5343
5344# Handle CRLF in mingw tool chain
5345opt_cr=
5346case $build_os in
5347mingw*)
5348  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5349  ;;
5350esac
5351
5352# Try without a prefix underscore, then with it.
5353for ac_symprfx in "" "_"; do
5354
5355  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5356  symxfrm="\\1 $ac_symprfx\\2 \\2"
5357
5358  # Write the raw and C identifiers.
5359  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5360    # Fake it for dumpbin and say T for any non-static function
5361    # and D for any global variable.
5362    # Also find C++ and __fastcall symbols from MSVC++,
5363    # which start with @ or ?.
5364    lt_cv_sys_global_symbol_pipe="$AWK '"\
5365"     {last_section=section; section=\$ 3};"\
5366"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5367"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5368"     \$ 0!~/External *\|/{next};"\
5369"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5370"     {if(hide[section]) next};"\
5371"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5372"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5373"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5374"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5375"     ' prfx=^$ac_symprfx"
5376  else
5377    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5378  fi
5379  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5380
5381  # Check to see that the pipe works correctly.
5382  pipe_works=no
5383
5384  rm -f conftest*
5385  cat > conftest.$ac_ext <<_LT_EOF
5386#ifdef __cplusplus
5387extern "C" {
5388#endif
5389char nm_test_var;
5390void nm_test_func(void);
5391void nm_test_func(void){}
5392#ifdef __cplusplus
5393}
5394#endif
5395int main(){nm_test_var='a';nm_test_func();return(0);}
5396_LT_EOF
5397
5398  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5399  (eval $ac_compile) 2>&5
5400  ac_status=$?
5401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5402  test $ac_status = 0; }; then
5403    # Now try to grab the symbols.
5404    nlist=conftest.nm
5405    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5406  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5407  ac_status=$?
5408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5409  test $ac_status = 0; } && test -s "$nlist"; then
5410      # Try sorting and uniquifying the output.
5411      if sort "$nlist" | uniq > "$nlist"T; then
5412	mv -f "$nlist"T "$nlist"
5413      else
5414	rm -f "$nlist"T
5415      fi
5416
5417      # Make sure that we snagged all the symbols we need.
5418      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5419	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5420	  cat <<_LT_EOF > conftest.$ac_ext
5421/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5422#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5423/* DATA imports from DLLs on WIN32 con't be const, because runtime
5424   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5425# define LT_DLSYM_CONST
5426#elif defined(__osf__)
5427/* This system does not cope well with relocations in const data.  */
5428# define LT_DLSYM_CONST
5429#else
5430# define LT_DLSYM_CONST const
5431#endif
5432
5433#ifdef __cplusplus
5434extern "C" {
5435#endif
5436
5437_LT_EOF
5438	  # Now generate the symbol file.
5439	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5440
5441	  cat <<_LT_EOF >> conftest.$ac_ext
5442
5443/* The mapping between symbol names and symbols.  */
5444LT_DLSYM_CONST struct {
5445  const char *name;
5446  void       *address;
5447}
5448lt__PROGRAM__LTX_preloaded_symbols[] =
5449{
5450  { "@PROGRAM@", (void *) 0 },
5451_LT_EOF
5452	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5453	  cat <<\_LT_EOF >> conftest.$ac_ext
5454  {0, (void *) 0}
5455};
5456
5457/* This works around a problem in FreeBSD linker */
5458#ifdef FREEBSD_WORKAROUND
5459static const void *lt_preloaded_setup() {
5460  return lt__PROGRAM__LTX_preloaded_symbols;
5461}
5462#endif
5463
5464#ifdef __cplusplus
5465}
5466#endif
5467_LT_EOF
5468	  # Now try linking the two files.
5469	  mv conftest.$ac_objext conftstm.$ac_objext
5470	  lt_globsym_save_LIBS=$LIBS
5471	  lt_globsym_save_CFLAGS=$CFLAGS
5472	  LIBS="conftstm.$ac_objext"
5473	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5474	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5475  (eval $ac_link) 2>&5
5476  ac_status=$?
5477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5478  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5479	    pipe_works=yes
5480	  fi
5481	  LIBS=$lt_globsym_save_LIBS
5482	  CFLAGS=$lt_globsym_save_CFLAGS
5483	else
5484	  echo "cannot find nm_test_func in $nlist" >&5
5485	fi
5486      else
5487	echo "cannot find nm_test_var in $nlist" >&5
5488      fi
5489    else
5490      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5491    fi
5492  else
5493    echo "$progname: failed program was:" >&5
5494    cat conftest.$ac_ext >&5
5495  fi
5496  rm -rf conftest* conftst*
5497
5498  # Do not use the global_symbol_pipe unless it works.
5499  if test "$pipe_works" = yes; then
5500    break
5501  else
5502    lt_cv_sys_global_symbol_pipe=
5503  fi
5504done
5505
5506fi
5507
5508if test -z "$lt_cv_sys_global_symbol_pipe"; then
5509  lt_cv_sys_global_symbol_to_cdecl=
5510fi
5511if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5513$as_echo "failed" >&6; }
5514else
5515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5516$as_echo "ok" >&6; }
5517fi
5518
5519# Response file support.
5520if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5521  nm_file_list_spec='@'
5522elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5523  nm_file_list_spec='@'
5524fi
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5553$as_echo_n "checking for sysroot... " >&6; }
5554
5555# Check whether --with-sysroot was given.
5556if test "${with_sysroot+set}" = set; then :
5557  withval=$with_sysroot;
5558else
5559  with_sysroot=no
5560fi
5561
5562
5563lt_sysroot=
5564case ${with_sysroot} in #(
5565 yes)
5566   if test "$GCC" = yes; then
5567     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5568   fi
5569   ;; #(
5570 /*)
5571   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5572   ;; #(
5573 no|'')
5574   ;; #(
5575 *)
5576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5577$as_echo "${with_sysroot}" >&6; }
5578   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5579   ;;
5580esac
5581
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5583$as_echo "${lt_sysroot:-no}" >&6; }
5584
5585
5586
5587
5588
5589# Check whether --enable-libtool-lock was given.
5590if test "${enable_libtool_lock+set}" = set; then :
5591  enableval=$enable_libtool_lock;
5592fi
5593
5594test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5595
5596# Some flags need to be propagated to the compiler or linker for good
5597# libtool support.
5598case $host in
5599ia64-*-hpux*)
5600  # Find out which ABI we are using.
5601  echo 'int i;' > conftest.$ac_ext
5602  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5603  (eval $ac_compile) 2>&5
5604  ac_status=$?
5605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5606  test $ac_status = 0; }; then
5607    case `/usr/bin/file conftest.$ac_objext` in
5608      *ELF-32*)
5609	HPUX_IA64_MODE="32"
5610	;;
5611      *ELF-64*)
5612	HPUX_IA64_MODE="64"
5613	;;
5614    esac
5615  fi
5616  rm -rf conftest*
5617  ;;
5618*-*-irix6*)
5619  # Find out which ABI we are using.
5620  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5621  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5622  (eval $ac_compile) 2>&5
5623  ac_status=$?
5624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5625  test $ac_status = 0; }; then
5626    if test "$lt_cv_prog_gnu_ld" = yes; then
5627      case `/usr/bin/file conftest.$ac_objext` in
5628	*32-bit*)
5629	  LD="${LD-ld} -melf32bsmip"
5630	  ;;
5631	*N32*)
5632	  LD="${LD-ld} -melf32bmipn32"
5633	  ;;
5634	*64-bit*)
5635	  LD="${LD-ld} -melf64bmip"
5636	;;
5637      esac
5638    else
5639      case `/usr/bin/file conftest.$ac_objext` in
5640	*32-bit*)
5641	  LD="${LD-ld} -32"
5642	  ;;
5643	*N32*)
5644	  LD="${LD-ld} -n32"
5645	  ;;
5646	*64-bit*)
5647	  LD="${LD-ld} -64"
5648	  ;;
5649      esac
5650    fi
5651  fi
5652  rm -rf conftest*
5653  ;;
5654
5655x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5656s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5657  # Find out which ABI we are using.
5658  echo 'int i;' > conftest.$ac_ext
5659  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5660  (eval $ac_compile) 2>&5
5661  ac_status=$?
5662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5663  test $ac_status = 0; }; then
5664    case `/usr/bin/file conftest.o` in
5665      *32-bit*)
5666	case $host in
5667	  x86_64-*kfreebsd*-gnu)
5668	    LD="${LD-ld} -m elf_i386_fbsd"
5669	    ;;
5670	  x86_64-*linux*)
5671	    case `/usr/bin/file conftest.o` in
5672	      *x86-64*)
5673		LD="${LD-ld} -m elf32_x86_64"
5674		;;
5675	      *)
5676		LD="${LD-ld} -m elf_i386"
5677		;;
5678	    esac
5679	    ;;
5680	  powerpc64le-*)
5681	    LD="${LD-ld} -m elf32lppclinux"
5682	    ;;
5683	  powerpc64-*)
5684	    LD="${LD-ld} -m elf32ppclinux"
5685	    ;;
5686	  s390x-*linux*)
5687	    LD="${LD-ld} -m elf_s390"
5688	    ;;
5689	  sparc64-*linux*)
5690	    LD="${LD-ld} -m elf32_sparc"
5691	    ;;
5692	esac
5693	;;
5694      *64-bit*)
5695	case $host in
5696	  x86_64-*kfreebsd*-gnu)
5697	    LD="${LD-ld} -m elf_x86_64_fbsd"
5698	    ;;
5699	  x86_64-*linux*)
5700	    LD="${LD-ld} -m elf_x86_64"
5701	    ;;
5702	  powerpcle-*)
5703	    LD="${LD-ld} -m elf64lppc"
5704	    ;;
5705	  powerpc-*)
5706	    LD="${LD-ld} -m elf64ppc"
5707	    ;;
5708	  s390*-*linux*|s390*-*tpf*)
5709	    LD="${LD-ld} -m elf64_s390"
5710	    ;;
5711	  sparc*-*linux*)
5712	    LD="${LD-ld} -m elf64_sparc"
5713	    ;;
5714	esac
5715	;;
5716    esac
5717  fi
5718  rm -rf conftest*
5719  ;;
5720
5721*-*-sco3.2v5*)
5722  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5723  SAVE_CFLAGS="$CFLAGS"
5724  CFLAGS="$CFLAGS -belf"
5725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5726$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5727if ${lt_cv_cc_needs_belf+:} false; then :
5728  $as_echo_n "(cached) " >&6
5729else
5730  ac_ext=c
5731ac_cpp='$CPP $CPPFLAGS'
5732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5734ac_compiler_gnu=$ac_cv_c_compiler_gnu
5735
5736     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737/* end confdefs.h.  */
5738
5739int
5740main ()
5741{
5742
5743  ;
5744  return 0;
5745}
5746_ACEOF
5747if ac_fn_c_try_link "$LINENO"; then :
5748  lt_cv_cc_needs_belf=yes
5749else
5750  lt_cv_cc_needs_belf=no
5751fi
5752rm -f core conftest.err conftest.$ac_objext \
5753    conftest$ac_exeext conftest.$ac_ext
5754     ac_ext=c
5755ac_cpp='$CPP $CPPFLAGS'
5756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758ac_compiler_gnu=$ac_cv_c_compiler_gnu
5759
5760fi
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5762$as_echo "$lt_cv_cc_needs_belf" >&6; }
5763  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5764    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5765    CFLAGS="$SAVE_CFLAGS"
5766  fi
5767  ;;
5768*-*solaris*)
5769  # Find out which ABI we are using.
5770  echo 'int i;' > conftest.$ac_ext
5771  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5772  (eval $ac_compile) 2>&5
5773  ac_status=$?
5774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5775  test $ac_status = 0; }; then
5776    case `/usr/bin/file conftest.o` in
5777    *64-bit*)
5778      case $lt_cv_prog_gnu_ld in
5779      yes*)
5780        case $host in
5781        i?86-*-solaris*)
5782          LD="${LD-ld} -m elf_x86_64"
5783          ;;
5784        sparc*-*-solaris*)
5785          LD="${LD-ld} -m elf64_sparc"
5786          ;;
5787        esac
5788        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
5789        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5790          LD="${LD-ld}_sol2"
5791        fi
5792        ;;
5793      *)
5794	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5795	  LD="${LD-ld} -64"
5796	fi
5797	;;
5798      esac
5799      ;;
5800    esac
5801  fi
5802  rm -rf conftest*
5803  ;;
5804esac
5805
5806need_locks="$enable_libtool_lock"
5807
5808if test -n "$ac_tool_prefix"; then
5809  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5810set dummy ${ac_tool_prefix}mt; ac_word=$2
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812$as_echo_n "checking for $ac_word... " >&6; }
5813if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5814  $as_echo_n "(cached) " >&6
5815else
5816  if test -n "$MANIFEST_TOOL"; then
5817  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5818else
5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH
5821do
5822  IFS=$as_save_IFS
5823  test -z "$as_dir" && as_dir=.
5824    for ac_exec_ext in '' $ac_executable_extensions; do
5825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828    break 2
5829  fi
5830done
5831  done
5832IFS=$as_save_IFS
5833
5834fi
5835fi
5836MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5837if test -n "$MANIFEST_TOOL"; then
5838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5839$as_echo "$MANIFEST_TOOL" >&6; }
5840else
5841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842$as_echo "no" >&6; }
5843fi
5844
5845
5846fi
5847if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5848  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5849  # Extract the first word of "mt", so it can be a program name with args.
5850set dummy mt; ac_word=$2
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852$as_echo_n "checking for $ac_word... " >&6; }
5853if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5854  $as_echo_n "(cached) " >&6
5855else
5856  if test -n "$ac_ct_MANIFEST_TOOL"; then
5857  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5858else
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH
5861do
5862  IFS=$as_save_IFS
5863  test -z "$as_dir" && as_dir=.
5864    for ac_exec_ext in '' $ac_executable_extensions; do
5865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868    break 2
5869  fi
5870done
5871  done
5872IFS=$as_save_IFS
5873
5874fi
5875fi
5876ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5877if test -n "$ac_ct_MANIFEST_TOOL"; then
5878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5879$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5880else
5881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882$as_echo "no" >&6; }
5883fi
5884
5885  if test "x$ac_ct_MANIFEST_TOOL" = x; then
5886    MANIFEST_TOOL=":"
5887  else
5888    case $cross_compiling:$ac_tool_warned in
5889yes:)
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892ac_tool_warned=yes ;;
5893esac
5894    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5895  fi
5896else
5897  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5898fi
5899
5900test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5902$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5903if ${lt_cv_path_mainfest_tool+:} false; then :
5904  $as_echo_n "(cached) " >&6
5905else
5906  lt_cv_path_mainfest_tool=no
5907  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5908  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5909  cat conftest.err >&5
5910  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5911    lt_cv_path_mainfest_tool=yes
5912  fi
5913  rm -f conftest*
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5916$as_echo "$lt_cv_path_mainfest_tool" >&6; }
5917if test "x$lt_cv_path_mainfest_tool" != xyes; then
5918  MANIFEST_TOOL=:
5919fi
5920
5921
5922
5923
5924
5925
5926  case $host_os in
5927    rhapsody* | darwin*)
5928    if test -n "$ac_tool_prefix"; then
5929  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5930set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932$as_echo_n "checking for $ac_word... " >&6; }
5933if ${ac_cv_prog_DSYMUTIL+:} false; then :
5934  $as_echo_n "(cached) " >&6
5935else
5936  if test -n "$DSYMUTIL"; then
5937  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5938else
5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942  IFS=$as_save_IFS
5943  test -z "$as_dir" && as_dir=.
5944    for ac_exec_ext in '' $ac_executable_extensions; do
5945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948    break 2
5949  fi
5950done
5951  done
5952IFS=$as_save_IFS
5953
5954fi
5955fi
5956DSYMUTIL=$ac_cv_prog_DSYMUTIL
5957if test -n "$DSYMUTIL"; then
5958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5959$as_echo "$DSYMUTIL" >&6; }
5960else
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962$as_echo "no" >&6; }
5963fi
5964
5965
5966fi
5967if test -z "$ac_cv_prog_DSYMUTIL"; then
5968  ac_ct_DSYMUTIL=$DSYMUTIL
5969  # Extract the first word of "dsymutil", so it can be a program name with args.
5970set dummy dsymutil; ac_word=$2
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972$as_echo_n "checking for $ac_word... " >&6; }
5973if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5974  $as_echo_n "(cached) " >&6
5975else
5976  if test -n "$ac_ct_DSYMUTIL"; then
5977  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5978else
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982  IFS=$as_save_IFS
5983  test -z "$as_dir" && as_dir=.
5984    for ac_exec_ext in '' $ac_executable_extensions; do
5985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988    break 2
5989  fi
5990done
5991  done
5992IFS=$as_save_IFS
5993
5994fi
5995fi
5996ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5997if test -n "$ac_ct_DSYMUTIL"; then
5998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5999$as_echo "$ac_ct_DSYMUTIL" >&6; }
6000else
6001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002$as_echo "no" >&6; }
6003fi
6004
6005  if test "x$ac_ct_DSYMUTIL" = x; then
6006    DSYMUTIL=":"
6007  else
6008    case $cross_compiling:$ac_tool_warned in
6009yes:)
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6012ac_tool_warned=yes ;;
6013esac
6014    DSYMUTIL=$ac_ct_DSYMUTIL
6015  fi
6016else
6017  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6018fi
6019
6020    if test -n "$ac_tool_prefix"; then
6021  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6022set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024$as_echo_n "checking for $ac_word... " >&6; }
6025if ${ac_cv_prog_NMEDIT+:} false; then :
6026  $as_echo_n "(cached) " >&6
6027else
6028  if test -n "$NMEDIT"; then
6029  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6030else
6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032for as_dir in $PATH
6033do
6034  IFS=$as_save_IFS
6035  test -z "$as_dir" && as_dir=.
6036    for ac_exec_ext in '' $ac_executable_extensions; do
6037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040    break 2
6041  fi
6042done
6043  done
6044IFS=$as_save_IFS
6045
6046fi
6047fi
6048NMEDIT=$ac_cv_prog_NMEDIT
6049if test -n "$NMEDIT"; then
6050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6051$as_echo "$NMEDIT" >&6; }
6052else
6053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054$as_echo "no" >&6; }
6055fi
6056
6057
6058fi
6059if test -z "$ac_cv_prog_NMEDIT"; then
6060  ac_ct_NMEDIT=$NMEDIT
6061  # Extract the first word of "nmedit", so it can be a program name with args.
6062set dummy nmedit; ac_word=$2
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064$as_echo_n "checking for $ac_word... " >&6; }
6065if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6066  $as_echo_n "(cached) " >&6
6067else
6068  if test -n "$ac_ct_NMEDIT"; then
6069  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6070else
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074  IFS=$as_save_IFS
6075  test -z "$as_dir" && as_dir=.
6076    for ac_exec_ext in '' $ac_executable_extensions; do
6077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080    break 2
6081  fi
6082done
6083  done
6084IFS=$as_save_IFS
6085
6086fi
6087fi
6088ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6089if test -n "$ac_ct_NMEDIT"; then
6090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6091$as_echo "$ac_ct_NMEDIT" >&6; }
6092else
6093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094$as_echo "no" >&6; }
6095fi
6096
6097  if test "x$ac_ct_NMEDIT" = x; then
6098    NMEDIT=":"
6099  else
6100    case $cross_compiling:$ac_tool_warned in
6101yes:)
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104ac_tool_warned=yes ;;
6105esac
6106    NMEDIT=$ac_ct_NMEDIT
6107  fi
6108else
6109  NMEDIT="$ac_cv_prog_NMEDIT"
6110fi
6111
6112    if test -n "$ac_tool_prefix"; then
6113  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6114set dummy ${ac_tool_prefix}lipo; ac_word=$2
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116$as_echo_n "checking for $ac_word... " >&6; }
6117if ${ac_cv_prog_LIPO+:} false; then :
6118  $as_echo_n "(cached) " >&6
6119else
6120  if test -n "$LIPO"; then
6121  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6122else
6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124for as_dir in $PATH
6125do
6126  IFS=$as_save_IFS
6127  test -z "$as_dir" && as_dir=.
6128    for ac_exec_ext in '' $ac_executable_extensions; do
6129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132    break 2
6133  fi
6134done
6135  done
6136IFS=$as_save_IFS
6137
6138fi
6139fi
6140LIPO=$ac_cv_prog_LIPO
6141if test -n "$LIPO"; then
6142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6143$as_echo "$LIPO" >&6; }
6144else
6145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146$as_echo "no" >&6; }
6147fi
6148
6149
6150fi
6151if test -z "$ac_cv_prog_LIPO"; then
6152  ac_ct_LIPO=$LIPO
6153  # Extract the first word of "lipo", so it can be a program name with args.
6154set dummy lipo; ac_word=$2
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156$as_echo_n "checking for $ac_word... " >&6; }
6157if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6158  $as_echo_n "(cached) " >&6
6159else
6160  if test -n "$ac_ct_LIPO"; then
6161  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6162else
6163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164for as_dir in $PATH
6165do
6166  IFS=$as_save_IFS
6167  test -z "$as_dir" && as_dir=.
6168    for ac_exec_ext in '' $ac_executable_extensions; do
6169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170    ac_cv_prog_ac_ct_LIPO="lipo"
6171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172    break 2
6173  fi
6174done
6175  done
6176IFS=$as_save_IFS
6177
6178fi
6179fi
6180ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6181if test -n "$ac_ct_LIPO"; then
6182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6183$as_echo "$ac_ct_LIPO" >&6; }
6184else
6185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186$as_echo "no" >&6; }
6187fi
6188
6189  if test "x$ac_ct_LIPO" = x; then
6190    LIPO=":"
6191  else
6192    case $cross_compiling:$ac_tool_warned in
6193yes:)
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196ac_tool_warned=yes ;;
6197esac
6198    LIPO=$ac_ct_LIPO
6199  fi
6200else
6201  LIPO="$ac_cv_prog_LIPO"
6202fi
6203
6204    if test -n "$ac_tool_prefix"; then
6205  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6206set dummy ${ac_tool_prefix}otool; ac_word=$2
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208$as_echo_n "checking for $ac_word... " >&6; }
6209if ${ac_cv_prog_OTOOL+:} false; then :
6210  $as_echo_n "(cached) " >&6
6211else
6212  if test -n "$OTOOL"; then
6213  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6214else
6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218  IFS=$as_save_IFS
6219  test -z "$as_dir" && as_dir=.
6220    for ac_exec_ext in '' $ac_executable_extensions; do
6221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224    break 2
6225  fi
6226done
6227  done
6228IFS=$as_save_IFS
6229
6230fi
6231fi
6232OTOOL=$ac_cv_prog_OTOOL
6233if test -n "$OTOOL"; then
6234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6235$as_echo "$OTOOL" >&6; }
6236else
6237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238$as_echo "no" >&6; }
6239fi
6240
6241
6242fi
6243if test -z "$ac_cv_prog_OTOOL"; then
6244  ac_ct_OTOOL=$OTOOL
6245  # Extract the first word of "otool", so it can be a program name with args.
6246set dummy otool; ac_word=$2
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248$as_echo_n "checking for $ac_word... " >&6; }
6249if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6250  $as_echo_n "(cached) " >&6
6251else
6252  if test -n "$ac_ct_OTOOL"; then
6253  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258  IFS=$as_save_IFS
6259  test -z "$as_dir" && as_dir=.
6260    for ac_exec_ext in '' $ac_executable_extensions; do
6261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262    ac_cv_prog_ac_ct_OTOOL="otool"
6263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264    break 2
6265  fi
6266done
6267  done
6268IFS=$as_save_IFS
6269
6270fi
6271fi
6272ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6273if test -n "$ac_ct_OTOOL"; then
6274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6275$as_echo "$ac_ct_OTOOL" >&6; }
6276else
6277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278$as_echo "no" >&6; }
6279fi
6280
6281  if test "x$ac_ct_OTOOL" = x; then
6282    OTOOL=":"
6283  else
6284    case $cross_compiling:$ac_tool_warned in
6285yes:)
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288ac_tool_warned=yes ;;
6289esac
6290    OTOOL=$ac_ct_OTOOL
6291  fi
6292else
6293  OTOOL="$ac_cv_prog_OTOOL"
6294fi
6295
6296    if test -n "$ac_tool_prefix"; then
6297  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6298set dummy ${ac_tool_prefix}otool64; ac_word=$2
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300$as_echo_n "checking for $ac_word... " >&6; }
6301if ${ac_cv_prog_OTOOL64+:} false; then :
6302  $as_echo_n "(cached) " >&6
6303else
6304  if test -n "$OTOOL64"; then
6305  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6306else
6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH
6309do
6310  IFS=$as_save_IFS
6311  test -z "$as_dir" && as_dir=.
6312    for ac_exec_ext in '' $ac_executable_extensions; do
6313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316    break 2
6317  fi
6318done
6319  done
6320IFS=$as_save_IFS
6321
6322fi
6323fi
6324OTOOL64=$ac_cv_prog_OTOOL64
6325if test -n "$OTOOL64"; then
6326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6327$as_echo "$OTOOL64" >&6; }
6328else
6329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330$as_echo "no" >&6; }
6331fi
6332
6333
6334fi
6335if test -z "$ac_cv_prog_OTOOL64"; then
6336  ac_ct_OTOOL64=$OTOOL64
6337  # Extract the first word of "otool64", so it can be a program name with args.
6338set dummy otool64; ac_word=$2
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340$as_echo_n "checking for $ac_word... " >&6; }
6341if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6342  $as_echo_n "(cached) " >&6
6343else
6344  if test -n "$ac_ct_OTOOL64"; then
6345  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6346else
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350  IFS=$as_save_IFS
6351  test -z "$as_dir" && as_dir=.
6352    for ac_exec_ext in '' $ac_executable_extensions; do
6353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354    ac_cv_prog_ac_ct_OTOOL64="otool64"
6355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356    break 2
6357  fi
6358done
6359  done
6360IFS=$as_save_IFS
6361
6362fi
6363fi
6364ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6365if test -n "$ac_ct_OTOOL64"; then
6366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6367$as_echo "$ac_ct_OTOOL64" >&6; }
6368else
6369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370$as_echo "no" >&6; }
6371fi
6372
6373  if test "x$ac_ct_OTOOL64" = x; then
6374    OTOOL64=":"
6375  else
6376    case $cross_compiling:$ac_tool_warned in
6377yes:)
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380ac_tool_warned=yes ;;
6381esac
6382    OTOOL64=$ac_ct_OTOOL64
6383  fi
6384else
6385  OTOOL64="$ac_cv_prog_OTOOL64"
6386fi
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6415$as_echo_n "checking for -single_module linker flag... " >&6; }
6416if ${lt_cv_apple_cc_single_mod+:} false; then :
6417  $as_echo_n "(cached) " >&6
6418else
6419  lt_cv_apple_cc_single_mod=no
6420      if test -z "${LT_MULTI_MODULE}"; then
6421	# By default we will add the -single_module flag. You can override
6422	# by either setting the environment variable LT_MULTI_MODULE
6423	# non-empty at configure time, or by adding -multi_module to the
6424	# link flags.
6425	rm -rf libconftest.dylib*
6426	echo "int foo(void){return 1;}" > conftest.c
6427	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6428-dynamiclib -Wl,-single_module conftest.c" >&5
6429	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6430	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6431        _lt_result=$?
6432	# If there is a non-empty error log, and "single_module"
6433	# appears in it, assume the flag caused a linker warning
6434        if test -s conftest.err && $GREP single_module conftest.err; then
6435	  cat conftest.err >&5
6436	# Otherwise, if the output was created with a 0 exit code from
6437	# the compiler, it worked.
6438	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6439	  lt_cv_apple_cc_single_mod=yes
6440	else
6441	  cat conftest.err >&5
6442	fi
6443	rm -rf libconftest.dylib*
6444	rm -f conftest.*
6445      fi
6446fi
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6448$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6449
6450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6451$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6452if ${lt_cv_ld_exported_symbols_list+:} false; then :
6453  $as_echo_n "(cached) " >&6
6454else
6455  lt_cv_ld_exported_symbols_list=no
6456      save_LDFLAGS=$LDFLAGS
6457      echo "_main" > conftest.sym
6458      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6459      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460/* end confdefs.h.  */
6461
6462int
6463main ()
6464{
6465
6466  ;
6467  return 0;
6468}
6469_ACEOF
6470if ac_fn_c_try_link "$LINENO"; then :
6471  lt_cv_ld_exported_symbols_list=yes
6472else
6473  lt_cv_ld_exported_symbols_list=no
6474fi
6475rm -f core conftest.err conftest.$ac_objext \
6476    conftest$ac_exeext conftest.$ac_ext
6477	LDFLAGS="$save_LDFLAGS"
6478
6479fi
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6481$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6482
6483    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6484$as_echo_n "checking for -force_load linker flag... " >&6; }
6485if ${lt_cv_ld_force_load+:} false; then :
6486  $as_echo_n "(cached) " >&6
6487else
6488  lt_cv_ld_force_load=no
6489      cat > conftest.c << _LT_EOF
6490int forced_loaded() { return 2;}
6491_LT_EOF
6492      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6493      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6494      echo "$AR cru libconftest.a conftest.o" >&5
6495      $AR cru libconftest.a conftest.o 2>&5
6496      echo "$RANLIB libconftest.a" >&5
6497      $RANLIB libconftest.a 2>&5
6498      cat > conftest.c << _LT_EOF
6499int main() { return 0;}
6500_LT_EOF
6501      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6502      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6503      _lt_result=$?
6504      if test -s conftest.err && $GREP force_load conftest.err; then
6505	cat conftest.err >&5
6506      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6507	lt_cv_ld_force_load=yes
6508      else
6509	cat conftest.err >&5
6510      fi
6511        rm -f conftest.err libconftest.a conftest conftest.c
6512        rm -rf conftest.dSYM
6513
6514fi
6515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6516$as_echo "$lt_cv_ld_force_load" >&6; }
6517    case $host_os in
6518    rhapsody* | darwin1.[012])
6519      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6520    darwin1.*)
6521      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6522    darwin*) # darwin 5.x on
6523      # if running on 10.5 or later, the deployment target defaults
6524      # to the OS version, if on x86, and 10.4, the deployment
6525      # target defaults to 10.4. Don't you love it?
6526      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6527	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6528	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6529	10.[012]*)
6530	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6531	10.*)
6532	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6533      esac
6534    ;;
6535  esac
6536    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6537      _lt_dar_single_mod='$single_module'
6538    fi
6539    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6540      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6541    else
6542      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6543    fi
6544    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6545      _lt_dsymutil='~$DSYMUTIL $lib || :'
6546    else
6547      _lt_dsymutil=
6548    fi
6549    ;;
6550  esac
6551
6552ac_ext=c
6553ac_cpp='$CPP $CPPFLAGS'
6554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556ac_compiler_gnu=$ac_cv_c_compiler_gnu
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6558$as_echo_n "checking how to run the C preprocessor... " >&6; }
6559# On Suns, sometimes $CPP names a directory.
6560if test -n "$CPP" && test -d "$CPP"; then
6561  CPP=
6562fi
6563if test -z "$CPP"; then
6564  if ${ac_cv_prog_CPP+:} false; then :
6565  $as_echo_n "(cached) " >&6
6566else
6567      # Double quotes because CPP needs to be expanded
6568    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6569    do
6570      ac_preproc_ok=false
6571for ac_c_preproc_warn_flag in '' yes
6572do
6573  # Use a header file that comes with gcc, so configuring glibc
6574  # with a fresh cross-compiler works.
6575  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6576  # <limits.h> exists even on freestanding compilers.
6577  # On the NeXT, cc -E runs the code through the compiler's parser,
6578  # not just through cpp. "Syntax error" is here to catch this case.
6579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580/* end confdefs.h.  */
6581#ifdef __STDC__
6582# include <limits.h>
6583#else
6584# include <assert.h>
6585#endif
6586		     Syntax error
6587_ACEOF
6588if ac_fn_c_try_cpp "$LINENO"; then :
6589
6590else
6591  # Broken: fails on valid input.
6592continue
6593fi
6594rm -f conftest.err conftest.i conftest.$ac_ext
6595
6596  # OK, works on sane cases.  Now check whether nonexistent headers
6597  # can be detected and how.
6598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h.  */
6600#include <ac_nonexistent.h>
6601_ACEOF
6602if ac_fn_c_try_cpp "$LINENO"; then :
6603  # Broken: success on invalid input.
6604continue
6605else
6606  # Passes both tests.
6607ac_preproc_ok=:
6608break
6609fi
6610rm -f conftest.err conftest.i conftest.$ac_ext
6611
6612done
6613# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6614rm -f conftest.i conftest.err conftest.$ac_ext
6615if $ac_preproc_ok; then :
6616  break
6617fi
6618
6619    done
6620    ac_cv_prog_CPP=$CPP
6621
6622fi
6623  CPP=$ac_cv_prog_CPP
6624else
6625  ac_cv_prog_CPP=$CPP
6626fi
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6628$as_echo "$CPP" >&6; }
6629ac_preproc_ok=false
6630for ac_c_preproc_warn_flag in '' yes
6631do
6632  # Use a header file that comes with gcc, so configuring glibc
6633  # with a fresh cross-compiler works.
6634  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6635  # <limits.h> exists even on freestanding compilers.
6636  # On the NeXT, cc -E runs the code through the compiler's parser,
6637  # not just through cpp. "Syntax error" is here to catch this case.
6638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h.  */
6640#ifdef __STDC__
6641# include <limits.h>
6642#else
6643# include <assert.h>
6644#endif
6645		     Syntax error
6646_ACEOF
6647if ac_fn_c_try_cpp "$LINENO"; then :
6648
6649else
6650  # Broken: fails on valid input.
6651continue
6652fi
6653rm -f conftest.err conftest.i conftest.$ac_ext
6654
6655  # OK, works on sane cases.  Now check whether nonexistent headers
6656  # can be detected and how.
6657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h.  */
6659#include <ac_nonexistent.h>
6660_ACEOF
6661if ac_fn_c_try_cpp "$LINENO"; then :
6662  # Broken: success on invalid input.
6663continue
6664else
6665  # Passes both tests.
6666ac_preproc_ok=:
6667break
6668fi
6669rm -f conftest.err conftest.i conftest.$ac_ext
6670
6671done
6672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6673rm -f conftest.i conftest.err conftest.$ac_ext
6674if $ac_preproc_ok; then :
6675
6676else
6677  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6679as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6680See \`config.log' for more details" "$LINENO" 5; }
6681fi
6682
6683ac_ext=c
6684ac_cpp='$CPP $CPPFLAGS'
6685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687ac_compiler_gnu=$ac_cv_c_compiler_gnu
6688
6689
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6691$as_echo_n "checking for ANSI C header files... " >&6; }
6692if ${ac_cv_header_stdc+:} false; then :
6693  $as_echo_n "(cached) " >&6
6694else
6695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h.  */
6697#include <stdlib.h>
6698#include <stdarg.h>
6699#include <string.h>
6700#include <float.h>
6701
6702int
6703main ()
6704{
6705
6706  ;
6707  return 0;
6708}
6709_ACEOF
6710if ac_fn_c_try_compile "$LINENO"; then :
6711  ac_cv_header_stdc=yes
6712else
6713  ac_cv_header_stdc=no
6714fi
6715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716
6717if test $ac_cv_header_stdc = yes; then
6718  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h.  */
6721#include <string.h>
6722
6723_ACEOF
6724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6725  $EGREP "memchr" >/dev/null 2>&1; then :
6726
6727else
6728  ac_cv_header_stdc=no
6729fi
6730rm -f conftest*
6731
6732fi
6733
6734if test $ac_cv_header_stdc = yes; then
6735  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737/* end confdefs.h.  */
6738#include <stdlib.h>
6739
6740_ACEOF
6741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6742  $EGREP "free" >/dev/null 2>&1; then :
6743
6744else
6745  ac_cv_header_stdc=no
6746fi
6747rm -f conftest*
6748
6749fi
6750
6751if test $ac_cv_header_stdc = yes; then
6752  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6753  if test "$cross_compiling" = yes; then :
6754  :
6755else
6756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757/* end confdefs.h.  */
6758#include <ctype.h>
6759#include <stdlib.h>
6760#if ((' ' & 0x0FF) == 0x020)
6761# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6762# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6763#else
6764# define ISLOWER(c) \
6765		   (('a' <= (c) && (c) <= 'i') \
6766		     || ('j' <= (c) && (c) <= 'r') \
6767		     || ('s' <= (c) && (c) <= 'z'))
6768# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6769#endif
6770
6771#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6772int
6773main ()
6774{
6775  int i;
6776  for (i = 0; i < 256; i++)
6777    if (XOR (islower (i), ISLOWER (i))
6778	|| toupper (i) != TOUPPER (i))
6779      return 2;
6780  return 0;
6781}
6782_ACEOF
6783if ac_fn_c_try_run "$LINENO"; then :
6784
6785else
6786  ac_cv_header_stdc=no
6787fi
6788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6789  conftest.$ac_objext conftest.beam conftest.$ac_ext
6790fi
6791
6792fi
6793fi
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6795$as_echo "$ac_cv_header_stdc" >&6; }
6796if test $ac_cv_header_stdc = yes; then
6797
6798$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6799
6800fi
6801
6802# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6803for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6804		  inttypes.h stdint.h unistd.h
6805do :
6806  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6807ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6808"
6809if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6810  cat >>confdefs.h <<_ACEOF
6811#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6812_ACEOF
6813
6814fi
6815
6816done
6817
6818
6819for ac_header in dlfcn.h
6820do :
6821  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6822"
6823if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6824  cat >>confdefs.h <<_ACEOF
6825#define HAVE_DLFCN_H 1
6826_ACEOF
6827
6828fi
6829
6830done
6831
6832
6833
6834
6835
6836# Set options
6837
6838
6839
6840        enable_dlopen=no
6841
6842
6843  enable_win32_dll=no
6844
6845
6846            # Check whether --enable-shared was given.
6847if test "${enable_shared+set}" = set; then :
6848  enableval=$enable_shared; p=${PACKAGE-default}
6849    case $enableval in
6850    yes) enable_shared=yes ;;
6851    no) enable_shared=no ;;
6852    *)
6853      enable_shared=no
6854      # Look at the argument we got.  We use all the common list separators.
6855      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6856      for pkg in $enableval; do
6857	IFS="$lt_save_ifs"
6858	if test "X$pkg" = "X$p"; then
6859	  enable_shared=yes
6860	fi
6861      done
6862      IFS="$lt_save_ifs"
6863      ;;
6864    esac
6865else
6866  enable_shared=yes
6867fi
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877  # Check whether --enable-static was given.
6878if test "${enable_static+set}" = set; then :
6879  enableval=$enable_static; p=${PACKAGE-default}
6880    case $enableval in
6881    yes) enable_static=yes ;;
6882    no) enable_static=no ;;
6883    *)
6884     enable_static=no
6885      # Look at the argument we got.  We use all the common list separators.
6886      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6887      for pkg in $enableval; do
6888	IFS="$lt_save_ifs"
6889	if test "X$pkg" = "X$p"; then
6890	  enable_static=yes
6891	fi
6892      done
6893      IFS="$lt_save_ifs"
6894      ;;
6895    esac
6896else
6897  enable_static=yes
6898fi
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909# Check whether --with-pic was given.
6910if test "${with_pic+set}" = set; then :
6911  withval=$with_pic; lt_p=${PACKAGE-default}
6912    case $withval in
6913    yes|no) pic_mode=$withval ;;
6914    *)
6915      pic_mode=default
6916      # Look at the argument we got.  We use all the common list separators.
6917      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6918      for lt_pkg in $withval; do
6919	IFS="$lt_save_ifs"
6920	if test "X$lt_pkg" = "X$lt_p"; then
6921	  pic_mode=yes
6922	fi
6923      done
6924      IFS="$lt_save_ifs"
6925      ;;
6926    esac
6927else
6928  pic_mode=default
6929fi
6930
6931
6932test -z "$pic_mode" && pic_mode=default
6933
6934
6935
6936
6937
6938
6939
6940  # Check whether --enable-fast-install was given.
6941if test "${enable_fast_install+set}" = set; then :
6942  enableval=$enable_fast_install; p=${PACKAGE-default}
6943    case $enableval in
6944    yes) enable_fast_install=yes ;;
6945    no) enable_fast_install=no ;;
6946    *)
6947      enable_fast_install=no
6948      # Look at the argument we got.  We use all the common list separators.
6949      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6950      for pkg in $enableval; do
6951	IFS="$lt_save_ifs"
6952	if test "X$pkg" = "X$p"; then
6953	  enable_fast_install=yes
6954	fi
6955      done
6956      IFS="$lt_save_ifs"
6957      ;;
6958    esac
6959else
6960  enable_fast_install=yes
6961fi
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973# This can be used to rebuild libtool when needed
6974LIBTOOL_DEPS="$ltmain"
6975
6976# Always use our own libtool.
6977LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008test -z "$LN_S" && LN_S="ln -s"
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023if test -n "${ZSH_VERSION+set}" ; then
7024   setopt NO_GLOB_SUBST
7025fi
7026
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7028$as_echo_n "checking for objdir... " >&6; }
7029if ${lt_cv_objdir+:} false; then :
7030  $as_echo_n "(cached) " >&6
7031else
7032  rm -f .libs 2>/dev/null
7033mkdir .libs 2>/dev/null
7034if test -d .libs; then
7035  lt_cv_objdir=.libs
7036else
7037  # MS-DOS does not allow filenames that begin with a dot.
7038  lt_cv_objdir=_libs
7039fi
7040rmdir .libs 2>/dev/null
7041fi
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7043$as_echo "$lt_cv_objdir" >&6; }
7044objdir=$lt_cv_objdir
7045
7046
7047
7048
7049
7050cat >>confdefs.h <<_ACEOF
7051#define LT_OBJDIR "$lt_cv_objdir/"
7052_ACEOF
7053
7054
7055
7056
7057case $host_os in
7058aix3*)
7059  # AIX sometimes has problems with the GCC collect2 program.  For some
7060  # reason, if we set the COLLECT_NAMES environment variable, the problems
7061  # vanish in a puff of smoke.
7062  if test "X${COLLECT_NAMES+set}" != Xset; then
7063    COLLECT_NAMES=
7064    export COLLECT_NAMES
7065  fi
7066  ;;
7067esac
7068
7069# Global variables:
7070ofile=libtool
7071can_build_shared=yes
7072
7073# All known linkers require a `.a' archive for static linking (except MSVC,
7074# which needs '.lib').
7075libext=a
7076
7077with_gnu_ld="$lt_cv_prog_gnu_ld"
7078
7079old_CC="$CC"
7080old_CFLAGS="$CFLAGS"
7081
7082# Set sane defaults for various variables
7083test -z "$CC" && CC=cc
7084test -z "$LTCC" && LTCC=$CC
7085test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7086test -z "$LD" && LD=ld
7087test -z "$ac_objext" && ac_objext=o
7088
7089for cc_temp in $compiler""; do
7090  case $cc_temp in
7091    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7092    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7093    \-*) ;;
7094    *) break;;
7095  esac
7096done
7097cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7098
7099
7100# Only perform the check for file, if the check method requires it
7101test -z "$MAGIC_CMD" && MAGIC_CMD=file
7102case $deplibs_check_method in
7103file_magic*)
7104  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7105    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7106$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7107if ${lt_cv_path_MAGIC_CMD+:} false; then :
7108  $as_echo_n "(cached) " >&6
7109else
7110  case $MAGIC_CMD in
7111[\\/*] |  ?:[\\/]*)
7112  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7113  ;;
7114*)
7115  lt_save_MAGIC_CMD="$MAGIC_CMD"
7116  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7117  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7118  for ac_dir in $ac_dummy; do
7119    IFS="$lt_save_ifs"
7120    test -z "$ac_dir" && ac_dir=.
7121    if test -f $ac_dir/${ac_tool_prefix}file; then
7122      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7123      if test -n "$file_magic_test_file"; then
7124	case $deplibs_check_method in
7125	"file_magic "*)
7126	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7127	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7128	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7129	    $EGREP "$file_magic_regex" > /dev/null; then
7130	    :
7131	  else
7132	    cat <<_LT_EOF 1>&2
7133
7134*** Warning: the command libtool uses to detect shared libraries,
7135*** $file_magic_cmd, produces output that libtool cannot recognize.
7136*** The result is that libtool may fail to recognize shared libraries
7137*** as such.  This will affect the creation of libtool libraries that
7138*** depend on shared libraries, but programs linked with such libtool
7139*** libraries will work regardless of this problem.  Nevertheless, you
7140*** may want to report the problem to your system manager and/or to
7141*** bug-libtool@gnu.org
7142
7143_LT_EOF
7144	  fi ;;
7145	esac
7146      fi
7147      break
7148    fi
7149  done
7150  IFS="$lt_save_ifs"
7151  MAGIC_CMD="$lt_save_MAGIC_CMD"
7152  ;;
7153esac
7154fi
7155
7156MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7157if test -n "$MAGIC_CMD"; then
7158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7159$as_echo "$MAGIC_CMD" >&6; }
7160else
7161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162$as_echo "no" >&6; }
7163fi
7164
7165
7166
7167
7168
7169if test -z "$lt_cv_path_MAGIC_CMD"; then
7170  if test -n "$ac_tool_prefix"; then
7171    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7172$as_echo_n "checking for file... " >&6; }
7173if ${lt_cv_path_MAGIC_CMD+:} false; then :
7174  $as_echo_n "(cached) " >&6
7175else
7176  case $MAGIC_CMD in
7177[\\/*] |  ?:[\\/]*)
7178  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7179  ;;
7180*)
7181  lt_save_MAGIC_CMD="$MAGIC_CMD"
7182  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7183  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7184  for ac_dir in $ac_dummy; do
7185    IFS="$lt_save_ifs"
7186    test -z "$ac_dir" && ac_dir=.
7187    if test -f $ac_dir/file; then
7188      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7189      if test -n "$file_magic_test_file"; then
7190	case $deplibs_check_method in
7191	"file_magic "*)
7192	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7193	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7194	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7195	    $EGREP "$file_magic_regex" > /dev/null; then
7196	    :
7197	  else
7198	    cat <<_LT_EOF 1>&2
7199
7200*** Warning: the command libtool uses to detect shared libraries,
7201*** $file_magic_cmd, produces output that libtool cannot recognize.
7202*** The result is that libtool may fail to recognize shared libraries
7203*** as such.  This will affect the creation of libtool libraries that
7204*** depend on shared libraries, but programs linked with such libtool
7205*** libraries will work regardless of this problem.  Nevertheless, you
7206*** may want to report the problem to your system manager and/or to
7207*** bug-libtool@gnu.org
7208
7209_LT_EOF
7210	  fi ;;
7211	esac
7212      fi
7213      break
7214    fi
7215  done
7216  IFS="$lt_save_ifs"
7217  MAGIC_CMD="$lt_save_MAGIC_CMD"
7218  ;;
7219esac
7220fi
7221
7222MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7223if test -n "$MAGIC_CMD"; then
7224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7225$as_echo "$MAGIC_CMD" >&6; }
7226else
7227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228$as_echo "no" >&6; }
7229fi
7230
7231
7232  else
7233    MAGIC_CMD=:
7234  fi
7235fi
7236
7237  fi
7238  ;;
7239esac
7240
7241# Use C for the default configuration in the libtool script
7242
7243lt_save_CC="$CC"
7244ac_ext=c
7245ac_cpp='$CPP $CPPFLAGS'
7246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248ac_compiler_gnu=$ac_cv_c_compiler_gnu
7249
7250
7251# Source file extension for C test sources.
7252ac_ext=c
7253
7254# Object file extension for compiled C test sources.
7255objext=o
7256objext=$objext
7257
7258# Code to be used in simple compile tests
7259lt_simple_compile_test_code="int some_variable = 0;"
7260
7261# Code to be used in simple link tests
7262lt_simple_link_test_code='int main(){return(0);}'
7263
7264
7265
7266
7267
7268
7269
7270# If no C compiler was specified, use CC.
7271LTCC=${LTCC-"$CC"}
7272
7273# If no C compiler flags were specified, use CFLAGS.
7274LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7275
7276# Allow CC to be a program name with arguments.
7277compiler=$CC
7278
7279# Save the default compiler, since it gets overwritten when the other
7280# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7281compiler_DEFAULT=$CC
7282
7283# save warnings/boilerplate of simple test code
7284ac_outfile=conftest.$ac_objext
7285echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7286eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7287_lt_compiler_boilerplate=`cat conftest.err`
7288$RM conftest*
7289
7290ac_outfile=conftest.$ac_objext
7291echo "$lt_simple_link_test_code" >conftest.$ac_ext
7292eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7293_lt_linker_boilerplate=`cat conftest.err`
7294$RM -r conftest*
7295
7296
7297## CAVEAT EMPTOR:
7298## There is no encapsulation within the following macros, do not change
7299## the running order or otherwise move them around unless you know exactly
7300## what you are doing...
7301if test -n "$compiler"; then
7302
7303lt_prog_compiler_no_builtin_flag=
7304
7305if test "$GCC" = yes; then
7306  case $cc_basename in
7307  nvcc*)
7308    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7309  *)
7310    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7311  esac
7312
7313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7314$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7315if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7316  $as_echo_n "(cached) " >&6
7317else
7318  lt_cv_prog_compiler_rtti_exceptions=no
7319   ac_outfile=conftest.$ac_objext
7320   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7321   lt_compiler_flag="-fno-rtti -fno-exceptions"
7322   # Insert the option either (1) after the last *FLAGS variable, or
7323   # (2) before a word containing "conftest.", or (3) at the end.
7324   # Note that $ac_compile itself does not contain backslashes and begins
7325   # with a dollar sign (not a hyphen), so the echo should work correctly.
7326   # The option is referenced via a variable to avoid confusing sed.
7327   lt_compile=`echo "$ac_compile" | $SED \
7328   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7329   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7330   -e 's:$: $lt_compiler_flag:'`
7331   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7332   (eval "$lt_compile" 2>conftest.err)
7333   ac_status=$?
7334   cat conftest.err >&5
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   if (exit $ac_status) && test -s "$ac_outfile"; then
7337     # The compiler can only warn and ignore the option if not recognized
7338     # So say no if there are warnings other than the usual output.
7339     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7340     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7341     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7342       lt_cv_prog_compiler_rtti_exceptions=yes
7343     fi
7344   fi
7345   $RM conftest*
7346
7347fi
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7349$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7350
7351if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7352    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7353else
7354    :
7355fi
7356
7357fi
7358
7359
7360
7361
7362
7363
7364  lt_prog_compiler_wl=
7365lt_prog_compiler_pic=
7366lt_prog_compiler_static=
7367
7368
7369  if test "$GCC" = yes; then
7370    lt_prog_compiler_wl='-Wl,'
7371    lt_prog_compiler_static='-static'
7372
7373    case $host_os in
7374      aix*)
7375      # All AIX code is PIC.
7376      if test "$host_cpu" = ia64; then
7377	# AIX 5 now supports IA64 processor
7378	lt_prog_compiler_static='-Bstatic'
7379      fi
7380      ;;
7381
7382    amigaos*)
7383      case $host_cpu in
7384      powerpc)
7385            # see comment about AmigaOS4 .so support
7386            lt_prog_compiler_pic='-fPIC'
7387        ;;
7388      m68k)
7389            # FIXME: we need at least 68020 code to build shared libraries, but
7390            # adding the `-m68020' flag to GCC prevents building anything better,
7391            # like `-m68040'.
7392            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7393        ;;
7394      esac
7395      ;;
7396
7397    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7398      # PIC is the default for these OSes.
7399      ;;
7400
7401    mingw* | cygwin* | pw32* | os2* | cegcc*)
7402      # This hack is so that the source file can tell whether it is being
7403      # built for inclusion in a dll (and should export symbols for example).
7404      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7405      # (--disable-auto-import) libraries
7406      lt_prog_compiler_pic='-DDLL_EXPORT'
7407      ;;
7408
7409    darwin* | rhapsody*)
7410      # PIC is the default on this platform
7411      # Common symbols not allowed in MH_DYLIB files
7412      lt_prog_compiler_pic='-fno-common'
7413      ;;
7414
7415    haiku*)
7416      # PIC is the default for Haiku.
7417      # The "-static" flag exists, but is broken.
7418      lt_prog_compiler_static=
7419      ;;
7420
7421    hpux*)
7422      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7423      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7424      # sets the default TLS model and affects inlining.
7425      case $host_cpu in
7426      hppa*64*)
7427	# +Z the default
7428	;;
7429      *)
7430	lt_prog_compiler_pic='-fPIC'
7431	;;
7432      esac
7433      ;;
7434
7435    interix[3-9]*)
7436      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7437      # Instead, we relocate shared libraries at runtime.
7438      ;;
7439
7440    msdosdjgpp*)
7441      # Just because we use GCC doesn't mean we suddenly get shared libraries
7442      # on systems that don't support them.
7443      lt_prog_compiler_can_build_shared=no
7444      enable_shared=no
7445      ;;
7446
7447    *nto* | *qnx*)
7448      # QNX uses GNU C++, but need to define -shared option too, otherwise
7449      # it will coredump.
7450      lt_prog_compiler_pic='-fPIC -shared'
7451      ;;
7452
7453    sysv4*MP*)
7454      if test -d /usr/nec; then
7455	lt_prog_compiler_pic=-Kconform_pic
7456      fi
7457      ;;
7458
7459    *)
7460      lt_prog_compiler_pic='-fPIC'
7461      ;;
7462    esac
7463
7464    case $cc_basename in
7465    nvcc*) # Cuda Compiler Driver 2.2
7466      lt_prog_compiler_wl='-Xlinker '
7467      if test -n "$lt_prog_compiler_pic"; then
7468        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7469      fi
7470      ;;
7471    esac
7472  else
7473    # PORTME Check for flag to pass linker flags through the system compiler.
7474    case $host_os in
7475    aix*)
7476      lt_prog_compiler_wl='-Wl,'
7477      if test "$host_cpu" = ia64; then
7478	# AIX 5 now supports IA64 processor
7479	lt_prog_compiler_static='-Bstatic'
7480      else
7481	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7482      fi
7483      ;;
7484
7485    mingw* | cygwin* | pw32* | os2* | cegcc*)
7486      # This hack is so that the source file can tell whether it is being
7487      # built for inclusion in a dll (and should export symbols for example).
7488      lt_prog_compiler_pic='-DDLL_EXPORT'
7489      ;;
7490
7491    hpux9* | hpux10* | hpux11*)
7492      lt_prog_compiler_wl='-Wl,'
7493      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7494      # not for PA HP-UX.
7495      case $host_cpu in
7496      hppa*64*|ia64*)
7497	# +Z the default
7498	;;
7499      *)
7500	lt_prog_compiler_pic='+Z'
7501	;;
7502      esac
7503      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7504      lt_prog_compiler_static='${wl}-a ${wl}archive'
7505      ;;
7506
7507    irix5* | irix6* | nonstopux*)
7508      lt_prog_compiler_wl='-Wl,'
7509      # PIC (with -KPIC) is the default.
7510      lt_prog_compiler_static='-non_shared'
7511      ;;
7512
7513    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7514      case $cc_basename in
7515      # old Intel for x86_64 which still supported -KPIC.
7516      ecc*)
7517	lt_prog_compiler_wl='-Wl,'
7518	lt_prog_compiler_pic='-KPIC'
7519	lt_prog_compiler_static='-static'
7520        ;;
7521      # icc used to be incompatible with GCC.
7522      # ICC 10 doesn't accept -KPIC any more.
7523      icc* | ifort*)
7524	lt_prog_compiler_wl='-Wl,'
7525	lt_prog_compiler_pic='-fPIC'
7526	lt_prog_compiler_static='-static'
7527        ;;
7528      # Lahey Fortran 8.1.
7529      lf95*)
7530	lt_prog_compiler_wl='-Wl,'
7531	lt_prog_compiler_pic='--shared'
7532	lt_prog_compiler_static='--static'
7533	;;
7534      nagfor*)
7535	# NAG Fortran compiler
7536	lt_prog_compiler_wl='-Wl,-Wl,,'
7537	lt_prog_compiler_pic='-PIC'
7538	lt_prog_compiler_static='-Bstatic'
7539	;;
7540      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7541        # Portland Group compilers (*not* the Pentium gcc compiler,
7542	# which looks to be a dead project)
7543	lt_prog_compiler_wl='-Wl,'
7544	lt_prog_compiler_pic='-fpic'
7545	lt_prog_compiler_static='-Bstatic'
7546        ;;
7547      ccc*)
7548        lt_prog_compiler_wl='-Wl,'
7549        # All Alpha code is PIC.
7550        lt_prog_compiler_static='-non_shared'
7551        ;;
7552      xl* | bgxl* | bgf* | mpixl*)
7553	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7554	lt_prog_compiler_wl='-Wl,'
7555	lt_prog_compiler_pic='-qpic'
7556	lt_prog_compiler_static='-qstaticlink'
7557	;;
7558      *)
7559	case `$CC -V 2>&1 | sed 5q` in
7560	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7561	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7562	  lt_prog_compiler_pic='-KPIC'
7563	  lt_prog_compiler_static='-Bstatic'
7564	  lt_prog_compiler_wl=''
7565	  ;;
7566	*Sun\ F* | *Sun*Fortran*)
7567	  lt_prog_compiler_pic='-KPIC'
7568	  lt_prog_compiler_static='-Bstatic'
7569	  lt_prog_compiler_wl='-Qoption ld '
7570	  ;;
7571	*Sun\ C*)
7572	  # Sun C 5.9
7573	  lt_prog_compiler_pic='-KPIC'
7574	  lt_prog_compiler_static='-Bstatic'
7575	  lt_prog_compiler_wl='-Wl,'
7576	  ;;
7577        *Intel*\ [CF]*Compiler*)
7578	  lt_prog_compiler_wl='-Wl,'
7579	  lt_prog_compiler_pic='-fPIC'
7580	  lt_prog_compiler_static='-static'
7581	  ;;
7582	*Portland\ Group*)
7583	  lt_prog_compiler_wl='-Wl,'
7584	  lt_prog_compiler_pic='-fpic'
7585	  lt_prog_compiler_static='-Bstatic'
7586	  ;;
7587	esac
7588	;;
7589      esac
7590      ;;
7591
7592    newsos6)
7593      lt_prog_compiler_pic='-KPIC'
7594      lt_prog_compiler_static='-Bstatic'
7595      ;;
7596
7597    *nto* | *qnx*)
7598      # QNX uses GNU C++, but need to define -shared option too, otherwise
7599      # it will coredump.
7600      lt_prog_compiler_pic='-fPIC -shared'
7601      ;;
7602
7603    osf3* | osf4* | osf5*)
7604      lt_prog_compiler_wl='-Wl,'
7605      # All OSF/1 code is PIC.
7606      lt_prog_compiler_static='-non_shared'
7607      ;;
7608
7609    rdos*)
7610      lt_prog_compiler_static='-non_shared'
7611      ;;
7612
7613    solaris*)
7614      lt_prog_compiler_pic='-KPIC'
7615      lt_prog_compiler_static='-Bstatic'
7616      case $cc_basename in
7617      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7618	lt_prog_compiler_wl='-Qoption ld ';;
7619      *)
7620	lt_prog_compiler_wl='-Wl,';;
7621      esac
7622      ;;
7623
7624    sunos4*)
7625      lt_prog_compiler_wl='-Qoption ld '
7626      lt_prog_compiler_pic='-PIC'
7627      lt_prog_compiler_static='-Bstatic'
7628      ;;
7629
7630    sysv4 | sysv4.2uw2* | sysv4.3*)
7631      lt_prog_compiler_wl='-Wl,'
7632      lt_prog_compiler_pic='-KPIC'
7633      lt_prog_compiler_static='-Bstatic'
7634      ;;
7635
7636    sysv4*MP*)
7637      if test -d /usr/nec ;then
7638	lt_prog_compiler_pic='-Kconform_pic'
7639	lt_prog_compiler_static='-Bstatic'
7640      fi
7641      ;;
7642
7643    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7644      lt_prog_compiler_wl='-Wl,'
7645      lt_prog_compiler_pic='-KPIC'
7646      lt_prog_compiler_static='-Bstatic'
7647      ;;
7648
7649    unicos*)
7650      lt_prog_compiler_wl='-Wl,'
7651      lt_prog_compiler_can_build_shared=no
7652      ;;
7653
7654    uts4*)
7655      lt_prog_compiler_pic='-pic'
7656      lt_prog_compiler_static='-Bstatic'
7657      ;;
7658
7659    *)
7660      lt_prog_compiler_can_build_shared=no
7661      ;;
7662    esac
7663  fi
7664
7665case $host_os in
7666  # For platforms which do not support PIC, -DPIC is meaningless:
7667  *djgpp*)
7668    lt_prog_compiler_pic=
7669    ;;
7670  *)
7671    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7672    ;;
7673esac
7674
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7676$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7677if ${lt_cv_prog_compiler_pic+:} false; then :
7678  $as_echo_n "(cached) " >&6
7679else
7680  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7681fi
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7683$as_echo "$lt_cv_prog_compiler_pic" >&6; }
7684lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7685
7686#
7687# Check to make sure the PIC flag actually works.
7688#
7689if test -n "$lt_prog_compiler_pic"; then
7690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7691$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7692if ${lt_cv_prog_compiler_pic_works+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  lt_cv_prog_compiler_pic_works=no
7696   ac_outfile=conftest.$ac_objext
7697   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7698   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7699   # Insert the option either (1) after the last *FLAGS variable, or
7700   # (2) before a word containing "conftest.", or (3) at the end.
7701   # Note that $ac_compile itself does not contain backslashes and begins
7702   # with a dollar sign (not a hyphen), so the echo should work correctly.
7703   # The option is referenced via a variable to avoid confusing sed.
7704   lt_compile=`echo "$ac_compile" | $SED \
7705   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7706   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7707   -e 's:$: $lt_compiler_flag:'`
7708   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7709   (eval "$lt_compile" 2>conftest.err)
7710   ac_status=$?
7711   cat conftest.err >&5
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   if (exit $ac_status) && test -s "$ac_outfile"; then
7714     # The compiler can only warn and ignore the option if not recognized
7715     # So say no if there are warnings other than the usual output.
7716     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7717     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7718     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7719       lt_cv_prog_compiler_pic_works=yes
7720     fi
7721   fi
7722   $RM conftest*
7723
7724fi
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7726$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7727
7728if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7729    case $lt_prog_compiler_pic in
7730     "" | " "*) ;;
7731     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7732     esac
7733else
7734    lt_prog_compiler_pic=
7735     lt_prog_compiler_can_build_shared=no
7736fi
7737
7738fi
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750#
7751# Check to make sure the static flag actually works.
7752#
7753wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7755$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7756if ${lt_cv_prog_compiler_static_works+:} false; then :
7757  $as_echo_n "(cached) " >&6
7758else
7759  lt_cv_prog_compiler_static_works=no
7760   save_LDFLAGS="$LDFLAGS"
7761   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7762   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7763   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7764     # The linker can only warn and ignore the option if not recognized
7765     # So say no if there are warnings
7766     if test -s conftest.err; then
7767       # Append any errors to the config.log.
7768       cat conftest.err 1>&5
7769       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7770       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7771       if diff conftest.exp conftest.er2 >/dev/null; then
7772         lt_cv_prog_compiler_static_works=yes
7773       fi
7774     else
7775       lt_cv_prog_compiler_static_works=yes
7776     fi
7777   fi
7778   $RM -r conftest*
7779   LDFLAGS="$save_LDFLAGS"
7780
7781fi
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7783$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7784
7785if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7786    :
7787else
7788    lt_prog_compiler_static=
7789fi
7790
7791
7792
7793
7794
7795
7796
7797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7798$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7799if ${lt_cv_prog_compiler_c_o+:} false; then :
7800  $as_echo_n "(cached) " >&6
7801else
7802  lt_cv_prog_compiler_c_o=no
7803   $RM -r conftest 2>/dev/null
7804   mkdir conftest
7805   cd conftest
7806   mkdir out
7807   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7808
7809   lt_compiler_flag="-o out/conftest2.$ac_objext"
7810   # Insert the option either (1) after the last *FLAGS variable, or
7811   # (2) before a word containing "conftest.", or (3) at the end.
7812   # Note that $ac_compile itself does not contain backslashes and begins
7813   # with a dollar sign (not a hyphen), so the echo should work correctly.
7814   lt_compile=`echo "$ac_compile" | $SED \
7815   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7816   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7817   -e 's:$: $lt_compiler_flag:'`
7818   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7819   (eval "$lt_compile" 2>out/conftest.err)
7820   ac_status=$?
7821   cat out/conftest.err >&5
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7824   then
7825     # The compiler can only warn and ignore the option if not recognized
7826     # So say no if there are warnings
7827     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7828     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7829     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7830       lt_cv_prog_compiler_c_o=yes
7831     fi
7832   fi
7833   chmod u+w . 2>&5
7834   $RM conftest*
7835   # SGI C++ compiler will create directory out/ii_files/ for
7836   # template instantiation
7837   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7838   $RM out/* && rmdir out
7839   cd ..
7840   $RM -r conftest
7841   $RM conftest*
7842
7843fi
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7845$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7846
7847
7848
7849
7850
7851
7852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7853$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7854if ${lt_cv_prog_compiler_c_o+:} false; then :
7855  $as_echo_n "(cached) " >&6
7856else
7857  lt_cv_prog_compiler_c_o=no
7858   $RM -r conftest 2>/dev/null
7859   mkdir conftest
7860   cd conftest
7861   mkdir out
7862   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7863
7864   lt_compiler_flag="-o out/conftest2.$ac_objext"
7865   # Insert the option either (1) after the last *FLAGS variable, or
7866   # (2) before a word containing "conftest.", or (3) at the end.
7867   # Note that $ac_compile itself does not contain backslashes and begins
7868   # with a dollar sign (not a hyphen), so the echo should work correctly.
7869   lt_compile=`echo "$ac_compile" | $SED \
7870   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7871   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7872   -e 's:$: $lt_compiler_flag:'`
7873   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7874   (eval "$lt_compile" 2>out/conftest.err)
7875   ac_status=$?
7876   cat out/conftest.err >&5
7877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7879   then
7880     # The compiler can only warn and ignore the option if not recognized
7881     # So say no if there are warnings
7882     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7883     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7884     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7885       lt_cv_prog_compiler_c_o=yes
7886     fi
7887   fi
7888   chmod u+w . 2>&5
7889   $RM conftest*
7890   # SGI C++ compiler will create directory out/ii_files/ for
7891   # template instantiation
7892   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7893   $RM out/* && rmdir out
7894   cd ..
7895   $RM -r conftest
7896   $RM conftest*
7897
7898fi
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7900$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7901
7902
7903
7904
7905hard_links="nottested"
7906if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7907  # do not overwrite the value of need_locks provided by the user
7908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7909$as_echo_n "checking if we can lock with hard links... " >&6; }
7910  hard_links=yes
7911  $RM conftest*
7912  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7913  touch conftest.a
7914  ln conftest.a conftest.b 2>&5 || hard_links=no
7915  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7917$as_echo "$hard_links" >&6; }
7918  if test "$hard_links" = no; then
7919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7920$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7921    need_locks=warn
7922  fi
7923else
7924  need_locks=no
7925fi
7926
7927
7928
7929
7930
7931
7932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7933$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7934
7935  runpath_var=
7936  allow_undefined_flag=
7937  always_export_symbols=no
7938  archive_cmds=
7939  archive_expsym_cmds=
7940  compiler_needs_object=no
7941  enable_shared_with_static_runtimes=no
7942  export_dynamic_flag_spec=
7943  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7944  hardcode_automatic=no
7945  hardcode_direct=no
7946  hardcode_direct_absolute=no
7947  hardcode_libdir_flag_spec=
7948  hardcode_libdir_separator=
7949  hardcode_minus_L=no
7950  hardcode_shlibpath_var=unsupported
7951  inherit_rpath=no
7952  link_all_deplibs=unknown
7953  module_cmds=
7954  module_expsym_cmds=
7955  old_archive_from_new_cmds=
7956  old_archive_from_expsyms_cmds=
7957  thread_safe_flag_spec=
7958  whole_archive_flag_spec=
7959  # include_expsyms should be a list of space-separated symbols to be *always*
7960  # included in the symbol list
7961  include_expsyms=
7962  # exclude_expsyms can be an extended regexp of symbols to exclude
7963  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7964  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7965  # as well as any symbol that contains `d'.
7966  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7967  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7968  # platforms (ab)use it in PIC code, but their linkers get confused if
7969  # the symbol is explicitly referenced.  Since portable code cannot
7970  # rely on this symbol name, it's probably fine to never include it in
7971  # preloaded symbol tables.
7972  # Exclude shared library initialization/finalization symbols.
7973  extract_expsyms_cmds=
7974
7975  case $host_os in
7976  cygwin* | mingw* | pw32* | cegcc*)
7977    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7978    # When not using gcc, we currently assume that we are using
7979    # Microsoft Visual C++.
7980    if test "$GCC" != yes; then
7981      with_gnu_ld=no
7982    fi
7983    ;;
7984  interix*)
7985    # we just hope/assume this is gcc and not c89 (= MSVC++)
7986    with_gnu_ld=yes
7987    ;;
7988  openbsd*)
7989    with_gnu_ld=no
7990    ;;
7991  linux* | k*bsd*-gnu | gnu*)
7992    link_all_deplibs=no
7993    ;;
7994  esac
7995
7996  ld_shlibs=yes
7997
7998  # On some targets, GNU ld is compatible enough with the native linker
7999  # that we're better off using the native interface for both.
8000  lt_use_gnu_ld_interface=no
8001  if test "$with_gnu_ld" = yes; then
8002    case $host_os in
8003      aix*)
8004	# The AIX port of GNU ld has always aspired to compatibility
8005	# with the native linker.  However, as the warning in the GNU ld
8006	# block says, versions before 2.19.5* couldn't really create working
8007	# shared libraries, regardless of the interface used.
8008	case `$LD -v 2>&1` in
8009	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8010	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8011	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8012	  *)
8013	    lt_use_gnu_ld_interface=yes
8014	    ;;
8015	esac
8016	;;
8017      *)
8018	lt_use_gnu_ld_interface=yes
8019	;;
8020    esac
8021  fi
8022
8023  if test "$lt_use_gnu_ld_interface" = yes; then
8024    # If archive_cmds runs LD, not CC, wlarc should be empty
8025    wlarc='${wl}'
8026
8027    # Set some defaults for GNU ld with shared library support. These
8028    # are reset later if shared libraries are not supported. Putting them
8029    # here allows them to be overridden if necessary.
8030    runpath_var=LD_RUN_PATH
8031    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8032    export_dynamic_flag_spec='${wl}--export-dynamic'
8033    # ancient GNU ld didn't support --whole-archive et. al.
8034    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8035      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8036    else
8037      whole_archive_flag_spec=
8038    fi
8039    supports_anon_versioning=no
8040    case `$LD -v 2>&1` in
8041      *GNU\ gold*) supports_anon_versioning=yes ;;
8042      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8043      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8044      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8045      *\ 2.11.*) ;; # other 2.11 versions
8046      *) supports_anon_versioning=yes ;;
8047    esac
8048
8049    # See if GNU ld supports shared libraries.
8050    case $host_os in
8051    aix[3-9]*)
8052      # On AIX/PPC, the GNU linker is very broken
8053      if test "$host_cpu" != ia64; then
8054	ld_shlibs=no
8055	cat <<_LT_EOF 1>&2
8056
8057*** Warning: the GNU linker, at least up to release 2.19, is reported
8058*** to be unable to reliably create shared libraries on AIX.
8059*** Therefore, libtool is disabling shared libraries support.  If you
8060*** really care for shared libraries, you may want to install binutils
8061*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8062*** You will then need to restart the configuration process.
8063
8064_LT_EOF
8065      fi
8066      ;;
8067
8068    amigaos*)
8069      case $host_cpu in
8070      powerpc)
8071            # see comment about AmigaOS4 .so support
8072            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8073            archive_expsym_cmds=''
8074        ;;
8075      m68k)
8076            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)'
8077            hardcode_libdir_flag_spec='-L$libdir'
8078            hardcode_minus_L=yes
8079        ;;
8080      esac
8081      ;;
8082
8083    beos*)
8084      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8085	allow_undefined_flag=unsupported
8086	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8087	# support --undefined.  This deserves some investigation.  FIXME
8088	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8089      else
8090	ld_shlibs=no
8091      fi
8092      ;;
8093
8094    cygwin* | mingw* | pw32* | cegcc*)
8095      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8096      # as there is no search path for DLLs.
8097      hardcode_libdir_flag_spec='-L$libdir'
8098      export_dynamic_flag_spec='${wl}--export-all-symbols'
8099      allow_undefined_flag=unsupported
8100      always_export_symbols=no
8101      enable_shared_with_static_runtimes=yes
8102      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'
8103      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8104
8105      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8106        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8107	# If the export-symbols file already is a .def file (1st line
8108	# is EXPORTS), use it as is; otherwise, prepend...
8109	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8110	  cp $export_symbols $output_objdir/$soname.def;
8111	else
8112	  echo EXPORTS > $output_objdir/$soname.def;
8113	  cat $export_symbols >> $output_objdir/$soname.def;
8114	fi~
8115	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8116      else
8117	ld_shlibs=no
8118      fi
8119      ;;
8120
8121    haiku*)
8122      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8123      link_all_deplibs=yes
8124      ;;
8125
8126    interix[3-9]*)
8127      hardcode_direct=no
8128      hardcode_shlibpath_var=no
8129      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8130      export_dynamic_flag_spec='${wl}-E'
8131      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8132      # Instead, shared libraries are loaded at an image base (0x10000000 by
8133      # default) and relocated if they conflict, which is a slow very memory
8134      # consuming and fragmenting process.  To avoid this, we pick a random,
8135      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8136      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8137      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8138      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'
8139      ;;
8140
8141    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8142      tmp_diet=no
8143      if test "$host_os" = linux-dietlibc; then
8144	case $cc_basename in
8145	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8146	esac
8147      fi
8148      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8149	 && test "$tmp_diet" = no
8150      then
8151	tmp_addflag=' $pic_flag'
8152	tmp_sharedflag='-shared'
8153	case $cc_basename,$host_cpu in
8154        pgcc*)				# Portland Group C compiler
8155	  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'
8156	  tmp_addflag=' $pic_flag'
8157	  ;;
8158	pgf77* | pgf90* | pgf95* | pgfortran*)
8159					# Portland Group f77 and f90 compilers
8160	  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'
8161	  tmp_addflag=' $pic_flag -Mnomain' ;;
8162	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8163	  tmp_addflag=' -i_dynamic' ;;
8164	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8165	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8166	ifc* | ifort*)			# Intel Fortran compiler
8167	  tmp_addflag=' -nofor_main' ;;
8168	lf95*)				# Lahey Fortran 8.1
8169	  whole_archive_flag_spec=
8170	  tmp_sharedflag='--shared' ;;
8171	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8172	  tmp_sharedflag='-qmkshrobj'
8173	  tmp_addflag= ;;
8174	nvcc*)	# Cuda Compiler Driver 2.2
8175	  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'
8176	  compiler_needs_object=yes
8177	  ;;
8178	esac
8179	case `$CC -V 2>&1 | sed 5q` in
8180	*Sun\ C*)			# Sun C 5.9
8181	  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'
8182	  compiler_needs_object=yes
8183	  tmp_sharedflag='-G' ;;
8184	*Sun\ F*)			# Sun Fortran 8.3
8185	  tmp_sharedflag='-G' ;;
8186	esac
8187	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8188
8189        if test "x$supports_anon_versioning" = xyes; then
8190          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8191	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8192	    echo "local: *; };" >> $output_objdir/$libname.ver~
8193	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8194        fi
8195
8196	case $cc_basename in
8197	xlf* | bgf* | bgxlf* | mpixlf*)
8198	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8199	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8200	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8201	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8202	  if test "x$supports_anon_versioning" = xyes; then
8203	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8204	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8205	      echo "local: *; };" >> $output_objdir/$libname.ver~
8206	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8207	  fi
8208	  ;;
8209	esac
8210      else
8211        ld_shlibs=no
8212      fi
8213      ;;
8214
8215    netbsd* | netbsdelf*-gnu)
8216      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8217	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8218	wlarc=
8219      else
8220	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8221	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8222      fi
8223      ;;
8224
8225    solaris*)
8226      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8227	ld_shlibs=no
8228	cat <<_LT_EOF 1>&2
8229
8230*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8231*** create shared libraries on Solaris systems.  Therefore, libtool
8232*** is disabling shared libraries support.  We urge you to upgrade GNU
8233*** binutils to release 2.9.1 or newer.  Another option is to modify
8234*** your PATH or compiler configuration so that the native linker is
8235*** used, and then restart.
8236
8237_LT_EOF
8238      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8239	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8240	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8241      else
8242	ld_shlibs=no
8243      fi
8244      ;;
8245
8246    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8247      case `$LD -v 2>&1` in
8248        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8249	ld_shlibs=no
8250	cat <<_LT_EOF 1>&2
8251
8252*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8253*** reliably create shared libraries on SCO systems.  Therefore, libtool
8254*** is disabling shared libraries support.  We urge you to upgrade GNU
8255*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8256*** your PATH or compiler configuration so that the native linker is
8257*** used, and then restart.
8258
8259_LT_EOF
8260	;;
8261	*)
8262	  # For security reasons, it is highly recommended that you always
8263	  # use absolute paths for naming shared libraries, and exclude the
8264	  # DT_RUNPATH tag from executables and libraries.  But doing so
8265	  # requires that you compile everything twice, which is a pain.
8266	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8267	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8268	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8269	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8270	  else
8271	    ld_shlibs=no
8272	  fi
8273	;;
8274      esac
8275      ;;
8276
8277    sunos4*)
8278      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8279      wlarc=
8280      hardcode_direct=yes
8281      hardcode_shlibpath_var=no
8282      ;;
8283
8284    *)
8285      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8286	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8287	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8288      else
8289	ld_shlibs=no
8290      fi
8291      ;;
8292    esac
8293
8294    if test "$ld_shlibs" = no; then
8295      runpath_var=
8296      hardcode_libdir_flag_spec=
8297      export_dynamic_flag_spec=
8298      whole_archive_flag_spec=
8299    fi
8300  else
8301    # PORTME fill in a description of your system's linker (not GNU ld)
8302    case $host_os in
8303    aix3*)
8304      allow_undefined_flag=unsupported
8305      always_export_symbols=yes
8306      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'
8307      # Note: this linker hardcodes the directories in LIBPATH if there
8308      # are no directories specified by -L.
8309      hardcode_minus_L=yes
8310      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8311	# Neither direct hardcoding nor static linking is supported with a
8312	# broken collect2.
8313	hardcode_direct=unsupported
8314      fi
8315      ;;
8316
8317    aix[4-9]*)
8318      if test "$host_cpu" = ia64; then
8319	# On IA64, the linker does run time linking by default, so we don't
8320	# have to do anything special.
8321	aix_use_runtimelinking=no
8322	exp_sym_flag='-Bexport'
8323	no_entry_flag=""
8324      else
8325	# If we're using GNU nm, then we don't want the "-C" option.
8326	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8327	# Also, AIX nm treats weak defined symbols like other global
8328	# defined symbols, whereas GNU nm marks them as "W".
8329	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8330	  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'
8331	else
8332	  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'
8333	fi
8334	aix_use_runtimelinking=no
8335
8336	# Test if we are trying to use run time linking or normal
8337	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8338	# need to do runtime linking.
8339	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8340	  for ld_flag in $LDFLAGS; do
8341	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8342	    aix_use_runtimelinking=yes
8343	    break
8344	  fi
8345	  done
8346	  ;;
8347	esac
8348
8349	exp_sym_flag='-bexport'
8350	no_entry_flag='-bnoentry'
8351      fi
8352
8353      # When large executables or shared objects are built, AIX ld can
8354      # have problems creating the table of contents.  If linking a library
8355      # or program results in "error TOC overflow" add -mminimal-toc to
8356      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8357      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8358
8359      archive_cmds=''
8360      hardcode_direct=yes
8361      hardcode_direct_absolute=yes
8362      hardcode_libdir_separator=':'
8363      link_all_deplibs=yes
8364      file_list_spec='${wl}-f,'
8365
8366      if test "$GCC" = yes; then
8367	case $host_os in aix4.[012]|aix4.[012].*)
8368	# We only want to do this on AIX 4.2 and lower, the check
8369	# below for broken collect2 doesn't work under 4.3+
8370	  collect2name=`${CC} -print-prog-name=collect2`
8371	  if test -f "$collect2name" &&
8372	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8373	  then
8374	  # We have reworked collect2
8375	  :
8376	  else
8377	  # We have old collect2
8378	  hardcode_direct=unsupported
8379	  # It fails to find uninstalled libraries when the uninstalled
8380	  # path is not listed in the libpath.  Setting hardcode_minus_L
8381	  # to unsupported forces relinking
8382	  hardcode_minus_L=yes
8383	  hardcode_libdir_flag_spec='-L$libdir'
8384	  hardcode_libdir_separator=
8385	  fi
8386	  ;;
8387	esac
8388	shared_flag='-shared'
8389	if test "$aix_use_runtimelinking" = yes; then
8390	  shared_flag="$shared_flag "'${wl}-G'
8391	fi
8392	link_all_deplibs=no
8393      else
8394	# not using gcc
8395	if test "$host_cpu" = ia64; then
8396	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8397	# chokes on -Wl,-G. The following line is correct:
8398	  shared_flag='-G'
8399	else
8400	  if test "$aix_use_runtimelinking" = yes; then
8401	    shared_flag='${wl}-G'
8402	  else
8403	    shared_flag='${wl}-bM:SRE'
8404	  fi
8405	fi
8406      fi
8407
8408      export_dynamic_flag_spec='${wl}-bexpall'
8409      # It seems that -bexpall does not export symbols beginning with
8410      # underscore (_), so it is better to generate a list of symbols to export.
8411      always_export_symbols=yes
8412      if test "$aix_use_runtimelinking" = yes; then
8413	# Warning - without using the other runtime loading flags (-brtl),
8414	# -berok will link without error, but may produce a broken library.
8415	allow_undefined_flag='-berok'
8416        # Determine the default libpath from the value encoded in an
8417        # empty executable.
8418        if test "${lt_cv_aix_libpath+set}" = set; then
8419  aix_libpath=$lt_cv_aix_libpath
8420else
8421  if ${lt_cv_aix_libpath_+:} false; then :
8422  $as_echo_n "(cached) " >&6
8423else
8424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425/* end confdefs.h.  */
8426
8427int
8428main ()
8429{
8430
8431  ;
8432  return 0;
8433}
8434_ACEOF
8435if ac_fn_c_try_link "$LINENO"; then :
8436
8437  lt_aix_libpath_sed='
8438      /Import File Strings/,/^$/ {
8439	  /^0/ {
8440	      s/^0  *\([^ ]*\) *$/\1/
8441	      p
8442	  }
8443      }'
8444  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8445  # Check for a 64-bit object if we didn't find anything.
8446  if test -z "$lt_cv_aix_libpath_"; then
8447    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8448  fi
8449fi
8450rm -f core conftest.err conftest.$ac_objext \
8451    conftest$ac_exeext conftest.$ac_ext
8452  if test -z "$lt_cv_aix_libpath_"; then
8453    lt_cv_aix_libpath_="/usr/lib:/lib"
8454  fi
8455
8456fi
8457
8458  aix_libpath=$lt_cv_aix_libpath_
8459fi
8460
8461        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8462        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"
8463      else
8464	if test "$host_cpu" = ia64; then
8465	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8466	  allow_undefined_flag="-z nodefs"
8467	  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"
8468	else
8469	 # Determine the default libpath from the value encoded in an
8470	 # empty executable.
8471	 if test "${lt_cv_aix_libpath+set}" = set; then
8472  aix_libpath=$lt_cv_aix_libpath
8473else
8474  if ${lt_cv_aix_libpath_+:} false; then :
8475  $as_echo_n "(cached) " >&6
8476else
8477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478/* end confdefs.h.  */
8479
8480int
8481main ()
8482{
8483
8484  ;
8485  return 0;
8486}
8487_ACEOF
8488if ac_fn_c_try_link "$LINENO"; then :
8489
8490  lt_aix_libpath_sed='
8491      /Import File Strings/,/^$/ {
8492	  /^0/ {
8493	      s/^0  *\([^ ]*\) *$/\1/
8494	      p
8495	  }
8496      }'
8497  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8498  # Check for a 64-bit object if we didn't find anything.
8499  if test -z "$lt_cv_aix_libpath_"; then
8500    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8501  fi
8502fi
8503rm -f core conftest.err conftest.$ac_objext \
8504    conftest$ac_exeext conftest.$ac_ext
8505  if test -z "$lt_cv_aix_libpath_"; then
8506    lt_cv_aix_libpath_="/usr/lib:/lib"
8507  fi
8508
8509fi
8510
8511  aix_libpath=$lt_cv_aix_libpath_
8512fi
8513
8514	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8515	  # Warning - without using the other run time loading flags,
8516	  # -berok will link without error, but may produce a broken library.
8517	  no_undefined_flag=' ${wl}-bernotok'
8518	  allow_undefined_flag=' ${wl}-berok'
8519	  if test "$with_gnu_ld" = yes; then
8520	    # We only use this code for GNU lds that support --whole-archive.
8521	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8522	  else
8523	    # Exported symbols can be pulled into shared objects from archives
8524	    whole_archive_flag_spec='$convenience'
8525	  fi
8526	  archive_cmds_need_lc=yes
8527	  # This is similar to how AIX traditionally builds its shared libraries.
8528	  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'
8529	fi
8530      fi
8531      ;;
8532
8533    amigaos*)
8534      case $host_cpu in
8535      powerpc)
8536            # see comment about AmigaOS4 .so support
8537            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8538            archive_expsym_cmds=''
8539        ;;
8540      m68k)
8541            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)'
8542            hardcode_libdir_flag_spec='-L$libdir'
8543            hardcode_minus_L=yes
8544        ;;
8545      esac
8546      ;;
8547
8548    bsdi[45]*)
8549      export_dynamic_flag_spec=-rdynamic
8550      ;;
8551
8552    cygwin* | mingw* | pw32* | cegcc*)
8553      # When not using gcc, we currently assume that we are using
8554      # Microsoft Visual C++.
8555      # hardcode_libdir_flag_spec is actually meaningless, as there is
8556      # no search path for DLLs.
8557      case $cc_basename in
8558      cl*)
8559	# Native MSVC
8560	hardcode_libdir_flag_spec=' '
8561	allow_undefined_flag=unsupported
8562	always_export_symbols=yes
8563	file_list_spec='@'
8564	# Tell ltmain to make .lib files, not .a files.
8565	libext=lib
8566	# Tell ltmain to make .dll files, not .so files.
8567	shrext_cmds=".dll"
8568	# FIXME: Setting linknames here is a bad hack.
8569	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8570	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8571	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8572	  else
8573	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8574	  fi~
8575	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8576	  linknames='
8577	# The linker will not automatically build a static lib if we build a DLL.
8578	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8579	enable_shared_with_static_runtimes=yes
8580	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8581	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8582	# Don't use ranlib
8583	old_postinstall_cmds='chmod 644 $oldlib'
8584	postlink_cmds='lt_outputfile="@OUTPUT@"~
8585	  lt_tool_outputfile="@TOOL_OUTPUT@"~
8586	  case $lt_outputfile in
8587	    *.exe|*.EXE) ;;
8588	    *)
8589	      lt_outputfile="$lt_outputfile.exe"
8590	      lt_tool_outputfile="$lt_tool_outputfile.exe"
8591	      ;;
8592	  esac~
8593	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8594	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8595	    $RM "$lt_outputfile.manifest";
8596	  fi'
8597	;;
8598      *)
8599	# Assume MSVC wrapper
8600	hardcode_libdir_flag_spec=' '
8601	allow_undefined_flag=unsupported
8602	# Tell ltmain to make .lib files, not .a files.
8603	libext=lib
8604	# Tell ltmain to make .dll files, not .so files.
8605	shrext_cmds=".dll"
8606	# FIXME: Setting linknames here is a bad hack.
8607	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8608	# The linker will automatically build a .lib file if we build a DLL.
8609	old_archive_from_new_cmds='true'
8610	# FIXME: Should let the user specify the lib program.
8611	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8612	enable_shared_with_static_runtimes=yes
8613	;;
8614      esac
8615      ;;
8616
8617    darwin* | rhapsody*)
8618
8619
8620  archive_cmds_need_lc=no
8621  hardcode_direct=no
8622  hardcode_automatic=yes
8623  hardcode_shlibpath_var=unsupported
8624  if test "$lt_cv_ld_force_load" = "yes"; then
8625    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\"`'
8626
8627  else
8628    whole_archive_flag_spec=''
8629  fi
8630  link_all_deplibs=yes
8631  allow_undefined_flag="$_lt_dar_allow_undefined"
8632  case $cc_basename in
8633     ifort*) _lt_dar_can_shared=yes ;;
8634     *) _lt_dar_can_shared=$GCC ;;
8635  esac
8636  if test "$_lt_dar_can_shared" = "yes"; then
8637    output_verbose_link_cmd=func_echo_all
8638    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8639    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8640    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}"
8641    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}"
8642
8643  else
8644  ld_shlibs=no
8645  fi
8646
8647      ;;
8648
8649    dgux*)
8650      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8651      hardcode_libdir_flag_spec='-L$libdir'
8652      hardcode_shlibpath_var=no
8653      ;;
8654
8655    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8656    # support.  Future versions do this automatically, but an explicit c++rt0.o
8657    # does not break anything, and helps significantly (at the cost of a little
8658    # extra space).
8659    freebsd2.2*)
8660      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8661      hardcode_libdir_flag_spec='-R$libdir'
8662      hardcode_direct=yes
8663      hardcode_shlibpath_var=no
8664      ;;
8665
8666    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8667    freebsd2.*)
8668      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8669      hardcode_direct=yes
8670      hardcode_minus_L=yes
8671      hardcode_shlibpath_var=no
8672      ;;
8673
8674    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8675    freebsd* | dragonfly*)
8676      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8677      hardcode_libdir_flag_spec='-R$libdir'
8678      hardcode_direct=yes
8679      hardcode_shlibpath_var=no
8680      ;;
8681
8682    hpux9*)
8683      if test "$GCC" = yes; then
8684	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'
8685      else
8686	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'
8687      fi
8688      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8689      hardcode_libdir_separator=:
8690      hardcode_direct=yes
8691
8692      # hardcode_minus_L: Not really in the search PATH,
8693      # but as the default location of the library.
8694      hardcode_minus_L=yes
8695      export_dynamic_flag_spec='${wl}-E'
8696      ;;
8697
8698    hpux10*)
8699      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8700	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8701      else
8702	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8703      fi
8704      if test "$with_gnu_ld" = no; then
8705	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8706	hardcode_libdir_separator=:
8707	hardcode_direct=yes
8708	hardcode_direct_absolute=yes
8709	export_dynamic_flag_spec='${wl}-E'
8710	# hardcode_minus_L: Not really in the search PATH,
8711	# but as the default location of the library.
8712	hardcode_minus_L=yes
8713      fi
8714      ;;
8715
8716    hpux11*)
8717      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8718	case $host_cpu in
8719	hppa*64*)
8720	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721	  ;;
8722	ia64*)
8723	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8724	  ;;
8725	*)
8726	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8727	  ;;
8728	esac
8729      else
8730	case $host_cpu in
8731	hppa*64*)
8732	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8733	  ;;
8734	ia64*)
8735	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8736	  ;;
8737	*)
8738
8739	  # Older versions of the 11.00 compiler do not understand -b yet
8740	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8741	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8742$as_echo_n "checking if $CC understands -b... " >&6; }
8743if ${lt_cv_prog_compiler__b+:} false; then :
8744  $as_echo_n "(cached) " >&6
8745else
8746  lt_cv_prog_compiler__b=no
8747   save_LDFLAGS="$LDFLAGS"
8748   LDFLAGS="$LDFLAGS -b"
8749   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8750   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8751     # The linker can only warn and ignore the option if not recognized
8752     # So say no if there are warnings
8753     if test -s conftest.err; then
8754       # Append any errors to the config.log.
8755       cat conftest.err 1>&5
8756       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8757       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8758       if diff conftest.exp conftest.er2 >/dev/null; then
8759         lt_cv_prog_compiler__b=yes
8760       fi
8761     else
8762       lt_cv_prog_compiler__b=yes
8763     fi
8764   fi
8765   $RM -r conftest*
8766   LDFLAGS="$save_LDFLAGS"
8767
8768fi
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8770$as_echo "$lt_cv_prog_compiler__b" >&6; }
8771
8772if test x"$lt_cv_prog_compiler__b" = xyes; then
8773    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8774else
8775    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8776fi
8777
8778	  ;;
8779	esac
8780      fi
8781      if test "$with_gnu_ld" = no; then
8782	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8783	hardcode_libdir_separator=:
8784
8785	case $host_cpu in
8786	hppa*64*|ia64*)
8787	  hardcode_direct=no
8788	  hardcode_shlibpath_var=no
8789	  ;;
8790	*)
8791	  hardcode_direct=yes
8792	  hardcode_direct_absolute=yes
8793	  export_dynamic_flag_spec='${wl}-E'
8794
8795	  # hardcode_minus_L: Not really in the search PATH,
8796	  # but as the default location of the library.
8797	  hardcode_minus_L=yes
8798	  ;;
8799	esac
8800      fi
8801      ;;
8802
8803    irix5* | irix6* | nonstopux*)
8804      if test "$GCC" = yes; then
8805	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'
8806	# Try to use the -exported_symbol ld option, if it does not
8807	# work, assume that -exports_file does not work either and
8808	# implicitly export all symbols.
8809	# This should be the same for all languages, so no per-tag cache variable.
8810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8811$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8812if ${lt_cv_irix_exported_symbol+:} false; then :
8813  $as_echo_n "(cached) " >&6
8814else
8815  save_LDFLAGS="$LDFLAGS"
8816	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8817	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818/* end confdefs.h.  */
8819int foo (void) { return 0; }
8820_ACEOF
8821if ac_fn_c_try_link "$LINENO"; then :
8822  lt_cv_irix_exported_symbol=yes
8823else
8824  lt_cv_irix_exported_symbol=no
8825fi
8826rm -f core conftest.err conftest.$ac_objext \
8827    conftest$ac_exeext conftest.$ac_ext
8828           LDFLAGS="$save_LDFLAGS"
8829fi
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8831$as_echo "$lt_cv_irix_exported_symbol" >&6; }
8832	if test "$lt_cv_irix_exported_symbol" = yes; then
8833          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'
8834	fi
8835      else
8836	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'
8837	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'
8838      fi
8839      archive_cmds_need_lc='no'
8840      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8841      hardcode_libdir_separator=:
8842      inherit_rpath=yes
8843      link_all_deplibs=yes
8844      ;;
8845
8846    netbsd* | netbsdelf*-gnu)
8847      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8848	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8849      else
8850	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8851      fi
8852      hardcode_libdir_flag_spec='-R$libdir'
8853      hardcode_direct=yes
8854      hardcode_shlibpath_var=no
8855      ;;
8856
8857    newsos6)
8858      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859      hardcode_direct=yes
8860      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8861      hardcode_libdir_separator=:
8862      hardcode_shlibpath_var=no
8863      ;;
8864
8865    *nto* | *qnx*)
8866      ;;
8867
8868    openbsd*)
8869      if test -f /usr/libexec/ld.so; then
8870	hardcode_direct=yes
8871	hardcode_shlibpath_var=no
8872	hardcode_direct_absolute=yes
8873	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8874	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8875	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8876	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8877	  export_dynamic_flag_spec='${wl}-E'
8878	else
8879	  case $host_os in
8880	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8881	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8882	     hardcode_libdir_flag_spec='-R$libdir'
8883	     ;;
8884	   *)
8885	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8886	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8887	     ;;
8888	  esac
8889	fi
8890      else
8891	ld_shlibs=no
8892      fi
8893      ;;
8894
8895    os2*)
8896      hardcode_libdir_flag_spec='-L$libdir'
8897      hardcode_minus_L=yes
8898      allow_undefined_flag=unsupported
8899      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'
8900      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8901      ;;
8902
8903    osf3*)
8904      if test "$GCC" = yes; then
8905	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8906	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'
8907      else
8908	allow_undefined_flag=' -expect_unresolved \*'
8909	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'
8910      fi
8911      archive_cmds_need_lc='no'
8912      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8913      hardcode_libdir_separator=:
8914      ;;
8915
8916    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8917      if test "$GCC" = yes; then
8918	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8919	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'
8920	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921      else
8922	allow_undefined_flag=' -expect_unresolved \*'
8923	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'
8924	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~
8925	$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'
8926
8927	# Both c and cxx compiler support -rpath directly
8928	hardcode_libdir_flag_spec='-rpath $libdir'
8929      fi
8930      archive_cmds_need_lc='no'
8931      hardcode_libdir_separator=:
8932      ;;
8933
8934    solaris*)
8935      no_undefined_flag=' -z defs'
8936      if test "$GCC" = yes; then
8937	wlarc='${wl}'
8938	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8939	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8940	  $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'
8941      else
8942	case `$CC -V 2>&1` in
8943	*"Compilers 5.0"*)
8944	  wlarc=''
8945	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8947	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8948	  ;;
8949	*)
8950	  wlarc='${wl}'
8951	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8952	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8953	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8954	  ;;
8955	esac
8956      fi
8957      hardcode_libdir_flag_spec='-R$libdir'
8958      hardcode_shlibpath_var=no
8959      case $host_os in
8960      solaris2.[0-5] | solaris2.[0-5].*) ;;
8961      *)
8962	# The compiler driver will combine and reorder linker options,
8963	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8964	# but is careful enough not to reorder.
8965	# Supported since Solaris 2.6 (maybe 2.5.1?)
8966	if test "$GCC" = yes; then
8967	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8968	else
8969	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8970	fi
8971	;;
8972      esac
8973      link_all_deplibs=yes
8974      ;;
8975
8976    sunos4*)
8977      if test "x$host_vendor" = xsequent; then
8978	# Use $CC to link under sequent, because it throws in some extra .o
8979	# files that make .init and .fini sections work.
8980	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8981      else
8982	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8983      fi
8984      hardcode_libdir_flag_spec='-L$libdir'
8985      hardcode_direct=yes
8986      hardcode_minus_L=yes
8987      hardcode_shlibpath_var=no
8988      ;;
8989
8990    sysv4)
8991      case $host_vendor in
8992	sni)
8993	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8994	  hardcode_direct=yes # is this really true???
8995	;;
8996	siemens)
8997	  ## LD is ld it makes a PLAMLIB
8998	  ## CC just makes a GrossModule.
8999	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9000	  reload_cmds='$CC -r -o $output$reload_objs'
9001	  hardcode_direct=no
9002        ;;
9003	motorola)
9004	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9005	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9006	;;
9007      esac
9008      runpath_var='LD_RUN_PATH'
9009      hardcode_shlibpath_var=no
9010      ;;
9011
9012    sysv4.3*)
9013      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9014      hardcode_shlibpath_var=no
9015      export_dynamic_flag_spec='-Bexport'
9016      ;;
9017
9018    sysv4*MP*)
9019      if test -d /usr/nec; then
9020	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9021	hardcode_shlibpath_var=no
9022	runpath_var=LD_RUN_PATH
9023	hardcode_runpath_var=yes
9024	ld_shlibs=yes
9025      fi
9026      ;;
9027
9028    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9029      no_undefined_flag='${wl}-z,text'
9030      archive_cmds_need_lc=no
9031      hardcode_shlibpath_var=no
9032      runpath_var='LD_RUN_PATH'
9033
9034      if test "$GCC" = yes; then
9035	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9036	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9037      else
9038	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9039	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9040      fi
9041      ;;
9042
9043    sysv5* | sco3.2v5* | sco5v6*)
9044      # Note: We can NOT use -z defs as we might desire, because we do not
9045      # link with -lc, and that would cause any symbols used from libc to
9046      # always be unresolved, which means just about no library would
9047      # ever link correctly.  If we're not using GNU ld we use -z text
9048      # though, which does catch some bad symbols but isn't as heavy-handed
9049      # as -z defs.
9050      no_undefined_flag='${wl}-z,text'
9051      allow_undefined_flag='${wl}-z,nodefs'
9052      archive_cmds_need_lc=no
9053      hardcode_shlibpath_var=no
9054      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9055      hardcode_libdir_separator=':'
9056      link_all_deplibs=yes
9057      export_dynamic_flag_spec='${wl}-Bexport'
9058      runpath_var='LD_RUN_PATH'
9059
9060      if test "$GCC" = yes; then
9061	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9062	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9063      else
9064	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9065	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9066      fi
9067      ;;
9068
9069    uts4*)
9070      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9071      hardcode_libdir_flag_spec='-L$libdir'
9072      hardcode_shlibpath_var=no
9073      ;;
9074
9075    *)
9076      ld_shlibs=no
9077      ;;
9078    esac
9079
9080    if test x$host_vendor = xsni; then
9081      case $host in
9082      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9083	export_dynamic_flag_spec='${wl}-Blargedynsym'
9084	;;
9085      esac
9086    fi
9087  fi
9088
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9090$as_echo "$ld_shlibs" >&6; }
9091test "$ld_shlibs" = no && can_build_shared=no
9092
9093with_gnu_ld=$with_gnu_ld
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109#
9110# Do we need to explicitly link libc?
9111#
9112case "x$archive_cmds_need_lc" in
9113x|xyes)
9114  # Assume -lc should be added
9115  archive_cmds_need_lc=yes
9116
9117  if test "$enable_shared" = yes && test "$GCC" = yes; then
9118    case $archive_cmds in
9119    *'~'*)
9120      # FIXME: we may have to deal with multi-command sequences.
9121      ;;
9122    '$CC '*)
9123      # Test whether the compiler implicitly links with -lc since on some
9124      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9125      # to ld, don't add -lc before -lgcc.
9126      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9127$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9128if ${lt_cv_archive_cmds_need_lc+:} false; then :
9129  $as_echo_n "(cached) " >&6
9130else
9131  $RM conftest*
9132	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9133
9134	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9135  (eval $ac_compile) 2>&5
9136  ac_status=$?
9137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9138  test $ac_status = 0; } 2>conftest.err; then
9139	  soname=conftest
9140	  lib=conftest
9141	  libobjs=conftest.$ac_objext
9142	  deplibs=
9143	  wl=$lt_prog_compiler_wl
9144	  pic_flag=$lt_prog_compiler_pic
9145	  compiler_flags=-v
9146	  linker_flags=-v
9147	  verstring=
9148	  output_objdir=.
9149	  libname=conftest
9150	  lt_save_allow_undefined_flag=$allow_undefined_flag
9151	  allow_undefined_flag=
9152	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9153  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9154  ac_status=$?
9155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9156  test $ac_status = 0; }
9157	  then
9158	    lt_cv_archive_cmds_need_lc=no
9159	  else
9160	    lt_cv_archive_cmds_need_lc=yes
9161	  fi
9162	  allow_undefined_flag=$lt_save_allow_undefined_flag
9163	else
9164	  cat conftest.err 1>&5
9165	fi
9166	$RM conftest*
9167
9168fi
9169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9170$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9171      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9172      ;;
9173    esac
9174  fi
9175  ;;
9176esac
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9330$as_echo_n "checking dynamic linker characteristics... " >&6; }
9331
9332if test "$GCC" = yes; then
9333  case $host_os in
9334    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9335    *) lt_awk_arg="/^libraries:/" ;;
9336  esac
9337  case $host_os in
9338    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9339    *) lt_sed_strip_eq="s,=/,/,g" ;;
9340  esac
9341  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9342  case $lt_search_path_spec in
9343  *\;*)
9344    # if the path contains ";" then we assume it to be the separator
9345    # otherwise default to the standard path separator (i.e. ":") - it is
9346    # assumed that no part of a normal pathname contains ";" but that should
9347    # okay in the real world where ";" in dirpaths is itself problematic.
9348    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9349    ;;
9350  *)
9351    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9352    ;;
9353  esac
9354  # Ok, now we have the path, separated by spaces, we can step through it
9355  # and add multilib dir if necessary.
9356  lt_tmp_lt_search_path_spec=
9357  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9358  for lt_sys_path in $lt_search_path_spec; do
9359    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9360      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9361    else
9362      test -d "$lt_sys_path" && \
9363	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9364    fi
9365  done
9366  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9367BEGIN {RS=" "; FS="/|\n";} {
9368  lt_foo="";
9369  lt_count=0;
9370  for (lt_i = NF; lt_i > 0; lt_i--) {
9371    if ($lt_i != "" && $lt_i != ".") {
9372      if ($lt_i == "..") {
9373        lt_count++;
9374      } else {
9375        if (lt_count == 0) {
9376          lt_foo="/" $lt_i lt_foo;
9377        } else {
9378          lt_count--;
9379        }
9380      }
9381    }
9382  }
9383  if (lt_foo != "") { lt_freq[lt_foo]++; }
9384  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9385}'`
9386  # AWK program above erroneously prepends '/' to C:/dos/paths
9387  # for these hosts.
9388  case $host_os in
9389    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9390      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9391  esac
9392  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9393else
9394  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9395fi
9396library_names_spec=
9397libname_spec='lib$name'
9398soname_spec=
9399shrext_cmds=".so"
9400postinstall_cmds=
9401postuninstall_cmds=
9402finish_cmds=
9403finish_eval=
9404shlibpath_var=
9405shlibpath_overrides_runpath=unknown
9406version_type=none
9407dynamic_linker="$host_os ld.so"
9408sys_lib_dlsearch_path_spec="/lib /usr/lib"
9409need_lib_prefix=unknown
9410hardcode_into_libs=no
9411
9412# when you set need_version to no, make sure it does not cause -set_version
9413# flags to be left without arguments
9414need_version=unknown
9415
9416case $host_os in
9417aix3*)
9418  version_type=linux # correct to gnu/linux during the next big refactor
9419  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9420  shlibpath_var=LIBPATH
9421
9422  # AIX 3 has no versioning support, so we append a major version to the name.
9423  soname_spec='${libname}${release}${shared_ext}$major'
9424  ;;
9425
9426aix[4-9]*)
9427  version_type=linux # correct to gnu/linux during the next big refactor
9428  need_lib_prefix=no
9429  need_version=no
9430  hardcode_into_libs=yes
9431  if test "$host_cpu" = ia64; then
9432    # AIX 5 supports IA64
9433    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9434    shlibpath_var=LD_LIBRARY_PATH
9435  else
9436    # With GCC up to 2.95.x, collect2 would create an import file
9437    # for dependence libraries.  The import file would start with
9438    # the line `#! .'.  This would cause the generated library to
9439    # depend on `.', always an invalid library.  This was fixed in
9440    # development snapshots of GCC prior to 3.0.
9441    case $host_os in
9442      aix4 | aix4.[01] | aix4.[01].*)
9443      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9444	   echo ' yes '
9445	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9446	:
9447      else
9448	can_build_shared=no
9449      fi
9450      ;;
9451    esac
9452    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9453    # soname into executable. Probably we can add versioning support to
9454    # collect2, so additional links can be useful in future.
9455    if test "$aix_use_runtimelinking" = yes; then
9456      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9457      # instead of lib<name>.a to let people know that these are not
9458      # typical AIX shared libraries.
9459      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460    else
9461      # We preserve .a as extension for shared libraries through AIX4.2
9462      # and later when we are not doing run time linking.
9463      library_names_spec='${libname}${release}.a $libname.a'
9464      soname_spec='${libname}${release}${shared_ext}$major'
9465    fi
9466    shlibpath_var=LIBPATH
9467  fi
9468  ;;
9469
9470amigaos*)
9471  case $host_cpu in
9472  powerpc)
9473    # Since July 2007 AmigaOS4 officially supports .so libraries.
9474    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9475    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476    ;;
9477  m68k)
9478    library_names_spec='$libname.ixlibrary $libname.a'
9479    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9480    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'
9481    ;;
9482  esac
9483  ;;
9484
9485beos*)
9486  library_names_spec='${libname}${shared_ext}'
9487  dynamic_linker="$host_os ld.so"
9488  shlibpath_var=LIBRARY_PATH
9489  ;;
9490
9491bsdi[45]*)
9492  version_type=linux # correct to gnu/linux during the next big refactor
9493  need_version=no
9494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495  soname_spec='${libname}${release}${shared_ext}$major'
9496  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9497  shlibpath_var=LD_LIBRARY_PATH
9498  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9499  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9500  # the default ld.so.conf also contains /usr/contrib/lib and
9501  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9502  # libtool to hard-code these into programs
9503  ;;
9504
9505cygwin* | mingw* | pw32* | cegcc*)
9506  version_type=windows
9507  shrext_cmds=".dll"
9508  need_version=no
9509  need_lib_prefix=no
9510
9511  case $GCC,$cc_basename in
9512  yes,*)
9513    # gcc
9514    library_names_spec='$libname.dll.a'
9515    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9516    postinstall_cmds='base_file=`basename \${file}`~
9517      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9518      dldir=$destdir/`dirname \$dlpath`~
9519      test -d \$dldir || mkdir -p \$dldir~
9520      $install_prog $dir/$dlname \$dldir/$dlname~
9521      chmod a+x \$dldir/$dlname~
9522      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9523        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9524      fi'
9525    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9526      dlpath=$dir/\$dldll~
9527       $RM \$dlpath'
9528    shlibpath_overrides_runpath=yes
9529
9530    case $host_os in
9531    cygwin*)
9532      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9533      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9534
9535      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9536      ;;
9537    mingw* | cegcc*)
9538      # MinGW DLLs use traditional 'lib' prefix
9539      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9540      ;;
9541    pw32*)
9542      # pw32 DLLs use 'pw' prefix rather than 'lib'
9543      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9544      ;;
9545    esac
9546    dynamic_linker='Win32 ld.exe'
9547    ;;
9548
9549  *,cl*)
9550    # Native MSVC
9551    libname_spec='$name'
9552    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9553    library_names_spec='${libname}.dll.lib'
9554
9555    case $build_os in
9556    mingw*)
9557      sys_lib_search_path_spec=
9558      lt_save_ifs=$IFS
9559      IFS=';'
9560      for lt_path in $LIB
9561      do
9562        IFS=$lt_save_ifs
9563        # Let DOS variable expansion print the short 8.3 style file name.
9564        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9565        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9566      done
9567      IFS=$lt_save_ifs
9568      # Convert to MSYS style.
9569      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9570      ;;
9571    cygwin*)
9572      # Convert to unix form, then to dos form, then back to unix form
9573      # but this time dos style (no spaces!) so that the unix form looks
9574      # like /cygdrive/c/PROGRA~1:/cygdr...
9575      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9576      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9577      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9578      ;;
9579    *)
9580      sys_lib_search_path_spec="$LIB"
9581      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9582        # It is most probably a Windows format PATH.
9583        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9584      else
9585        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9586      fi
9587      # FIXME: find the short name or the path components, as spaces are
9588      # common. (e.g. "Program Files" -> "PROGRA~1")
9589      ;;
9590    esac
9591
9592    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9593    postinstall_cmds='base_file=`basename \${file}`~
9594      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9595      dldir=$destdir/`dirname \$dlpath`~
9596      test -d \$dldir || mkdir -p \$dldir~
9597      $install_prog $dir/$dlname \$dldir/$dlname'
9598    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9599      dlpath=$dir/\$dldll~
9600       $RM \$dlpath'
9601    shlibpath_overrides_runpath=yes
9602    dynamic_linker='Win32 link.exe'
9603    ;;
9604
9605  *)
9606    # Assume MSVC wrapper
9607    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9608    dynamic_linker='Win32 ld.exe'
9609    ;;
9610  esac
9611  # FIXME: first we should search . and the directory the executable is in
9612  shlibpath_var=PATH
9613  ;;
9614
9615darwin* | rhapsody*)
9616  dynamic_linker="$host_os dyld"
9617  version_type=darwin
9618  need_lib_prefix=no
9619  need_version=no
9620  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9621  soname_spec='${libname}${release}${major}$shared_ext'
9622  shlibpath_overrides_runpath=yes
9623  shlibpath_var=DYLD_LIBRARY_PATH
9624  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9625
9626  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9627  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9628  ;;
9629
9630dgux*)
9631  version_type=linux # correct to gnu/linux during the next big refactor
9632  need_lib_prefix=no
9633  need_version=no
9634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9635  soname_spec='${libname}${release}${shared_ext}$major'
9636  shlibpath_var=LD_LIBRARY_PATH
9637  ;;
9638
9639freebsd* | dragonfly*)
9640  # DragonFly does not have aout.  When/if they implement a new
9641  # versioning mechanism, adjust this.
9642  if test -x /usr/bin/objformat; then
9643    objformat=`/usr/bin/objformat`
9644  else
9645    case $host_os in
9646    freebsd[23].*) objformat=aout ;;
9647    *) objformat=elf ;;
9648    esac
9649  fi
9650  version_type=freebsd-$objformat
9651  case $version_type in
9652    freebsd-elf*)
9653      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9654      need_version=no
9655      need_lib_prefix=no
9656      ;;
9657    freebsd-*)
9658      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9659      need_version=yes
9660      ;;
9661  esac
9662  shlibpath_var=LD_LIBRARY_PATH
9663  case $host_os in
9664  freebsd2.*)
9665    shlibpath_overrides_runpath=yes
9666    ;;
9667  freebsd3.[01]* | freebsdelf3.[01]*)
9668    shlibpath_overrides_runpath=yes
9669    hardcode_into_libs=yes
9670    ;;
9671  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9672  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9673    shlibpath_overrides_runpath=no
9674    hardcode_into_libs=yes
9675    ;;
9676  *) # from 4.6 on, and DragonFly
9677    shlibpath_overrides_runpath=yes
9678    hardcode_into_libs=yes
9679    ;;
9680  esac
9681  ;;
9682
9683haiku*)
9684  version_type=linux # correct to gnu/linux during the next big refactor
9685  need_lib_prefix=no
9686  need_version=no
9687  dynamic_linker="$host_os runtime_loader"
9688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9689  soname_spec='${libname}${release}${shared_ext}$major'
9690  shlibpath_var=LIBRARY_PATH
9691  shlibpath_overrides_runpath=yes
9692  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9693  hardcode_into_libs=yes
9694  ;;
9695
9696hpux9* | hpux10* | hpux11*)
9697  # Give a soname corresponding to the major version so that dld.sl refuses to
9698  # link against other versions.
9699  version_type=sunos
9700  need_lib_prefix=no
9701  need_version=no
9702  case $host_cpu in
9703  ia64*)
9704    shrext_cmds='.so'
9705    hardcode_into_libs=yes
9706    dynamic_linker="$host_os dld.so"
9707    shlibpath_var=LD_LIBRARY_PATH
9708    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9709    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9710    soname_spec='${libname}${release}${shared_ext}$major'
9711    if test "X$HPUX_IA64_MODE" = X32; then
9712      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9713    else
9714      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9715    fi
9716    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9717    ;;
9718  hppa*64*)
9719    shrext_cmds='.sl'
9720    hardcode_into_libs=yes
9721    dynamic_linker="$host_os dld.sl"
9722    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9723    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9724    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725    soname_spec='${libname}${release}${shared_ext}$major'
9726    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9727    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9728    ;;
9729  *)
9730    shrext_cmds='.sl'
9731    dynamic_linker="$host_os dld.sl"
9732    shlibpath_var=SHLIB_PATH
9733    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9734    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735    soname_spec='${libname}${release}${shared_ext}$major'
9736    ;;
9737  esac
9738  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9739  postinstall_cmds='chmod 555 $lib'
9740  # or fails outright, so override atomically:
9741  install_override_mode=555
9742  ;;
9743
9744interix[3-9]*)
9745  version_type=linux # correct to gnu/linux during the next big refactor
9746  need_lib_prefix=no
9747  need_version=no
9748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9749  soname_spec='${libname}${release}${shared_ext}$major'
9750  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9751  shlibpath_var=LD_LIBRARY_PATH
9752  shlibpath_overrides_runpath=no
9753  hardcode_into_libs=yes
9754  ;;
9755
9756irix5* | irix6* | nonstopux*)
9757  case $host_os in
9758    nonstopux*) version_type=nonstopux ;;
9759    *)
9760	if test "$lt_cv_prog_gnu_ld" = yes; then
9761		version_type=linux # correct to gnu/linux during the next big refactor
9762	else
9763		version_type=irix
9764	fi ;;
9765  esac
9766  need_lib_prefix=no
9767  need_version=no
9768  soname_spec='${libname}${release}${shared_ext}$major'
9769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9770  case $host_os in
9771  irix5* | nonstopux*)
9772    libsuff= shlibsuff=
9773    ;;
9774  *)
9775    case $LD in # libtool.m4 will add one of these switches to LD
9776    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9777      libsuff= shlibsuff= libmagic=32-bit;;
9778    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9779      libsuff=32 shlibsuff=N32 libmagic=N32;;
9780    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9781      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9782    *) libsuff= shlibsuff= libmagic=never-match;;
9783    esac
9784    ;;
9785  esac
9786  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9787  shlibpath_overrides_runpath=no
9788  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9789  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9790  hardcode_into_libs=yes
9791  ;;
9792
9793# No shared lib support for Linux oldld, aout, or coff.
9794linux*oldld* | linux*aout* | linux*coff*)
9795  dynamic_linker=no
9796  ;;
9797
9798# This must be glibc/ELF.
9799linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9800  version_type=linux # correct to gnu/linux during the next big refactor
9801  need_lib_prefix=no
9802  need_version=no
9803  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804  soname_spec='${libname}${release}${shared_ext}$major'
9805  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9806  shlibpath_var=LD_LIBRARY_PATH
9807  shlibpath_overrides_runpath=no
9808
9809  # Some binutils ld are patched to set DT_RUNPATH
9810  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9811  $as_echo_n "(cached) " >&6
9812else
9813  lt_cv_shlibpath_overrides_runpath=no
9814    save_LDFLAGS=$LDFLAGS
9815    save_libdir=$libdir
9816    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9817	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9818    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819/* end confdefs.h.  */
9820
9821int
9822main ()
9823{
9824
9825  ;
9826  return 0;
9827}
9828_ACEOF
9829if ac_fn_c_try_link "$LINENO"; then :
9830  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9831  lt_cv_shlibpath_overrides_runpath=yes
9832fi
9833fi
9834rm -f core conftest.err conftest.$ac_objext \
9835    conftest$ac_exeext conftest.$ac_ext
9836    LDFLAGS=$save_LDFLAGS
9837    libdir=$save_libdir
9838
9839fi
9840
9841  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9842
9843  # This implies no fast_install, which is unacceptable.
9844  # Some rework will be needed to allow for fast_install
9845  # before this can be enabled.
9846  hardcode_into_libs=yes
9847
9848  # Append ld.so.conf contents to the search path
9849  if test -f /etc/ld.so.conf; then
9850    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' ' '`
9851    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9852  fi
9853
9854  # We used to test for /lib/ld.so.1 and disable shared libraries on
9855  # powerpc, because MkLinux only supported shared libraries with the
9856  # GNU dynamic linker.  Since this was broken with cross compilers,
9857  # most powerpc-linux boxes support dynamic linking these days and
9858  # people can always --disable-shared, the test was removed, and we
9859  # assume the GNU/Linux dynamic linker is in use.
9860  dynamic_linker='GNU/Linux ld.so'
9861  ;;
9862
9863netbsdelf*-gnu)
9864  version_type=linux
9865  need_lib_prefix=no
9866  need_version=no
9867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9868  soname_spec='${libname}${release}${shared_ext}$major'
9869  shlibpath_var=LD_LIBRARY_PATH
9870  shlibpath_overrides_runpath=no
9871  hardcode_into_libs=yes
9872  dynamic_linker='NetBSD ld.elf_so'
9873  ;;
9874
9875netbsd*)
9876  version_type=sunos
9877  need_lib_prefix=no
9878  need_version=no
9879  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9880    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9881    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9882    dynamic_linker='NetBSD (a.out) ld.so'
9883  else
9884    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9885    soname_spec='${libname}${release}${shared_ext}$major'
9886    dynamic_linker='NetBSD ld.elf_so'
9887  fi
9888  shlibpath_var=LD_LIBRARY_PATH
9889  shlibpath_overrides_runpath=yes
9890  hardcode_into_libs=yes
9891  ;;
9892
9893newsos6)
9894  version_type=linux # correct to gnu/linux during the next big refactor
9895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896  shlibpath_var=LD_LIBRARY_PATH
9897  shlibpath_overrides_runpath=yes
9898  ;;
9899
9900*nto* | *qnx*)
9901  version_type=qnx
9902  need_lib_prefix=no
9903  need_version=no
9904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905  soname_spec='${libname}${release}${shared_ext}$major'
9906  shlibpath_var=LD_LIBRARY_PATH
9907  shlibpath_overrides_runpath=no
9908  hardcode_into_libs=yes
9909  dynamic_linker='ldqnx.so'
9910  ;;
9911
9912openbsd*)
9913  version_type=sunos
9914  sys_lib_dlsearch_path_spec="/usr/lib"
9915  need_lib_prefix=no
9916  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9917  case $host_os in
9918    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9919    *)				need_version=no  ;;
9920  esac
9921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9922  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9923  shlibpath_var=LD_LIBRARY_PATH
9924  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9925    case $host_os in
9926      openbsd2.[89] | openbsd2.[89].*)
9927	shlibpath_overrides_runpath=no
9928	;;
9929      *)
9930	shlibpath_overrides_runpath=yes
9931	;;
9932      esac
9933  else
9934    shlibpath_overrides_runpath=yes
9935  fi
9936  ;;
9937
9938os2*)
9939  libname_spec='$name'
9940  shrext_cmds=".dll"
9941  need_lib_prefix=no
9942  library_names_spec='$libname${shared_ext} $libname.a'
9943  dynamic_linker='OS/2 ld.exe'
9944  shlibpath_var=LIBPATH
9945  ;;
9946
9947osf3* | osf4* | osf5*)
9948  version_type=osf
9949  need_lib_prefix=no
9950  need_version=no
9951  soname_spec='${libname}${release}${shared_ext}$major'
9952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953  shlibpath_var=LD_LIBRARY_PATH
9954  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9955  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9956  ;;
9957
9958rdos*)
9959  dynamic_linker=no
9960  ;;
9961
9962solaris*)
9963  version_type=linux # correct to gnu/linux during the next big refactor
9964  need_lib_prefix=no
9965  need_version=no
9966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9967  soname_spec='${libname}${release}${shared_ext}$major'
9968  shlibpath_var=LD_LIBRARY_PATH
9969  shlibpath_overrides_runpath=yes
9970  hardcode_into_libs=yes
9971  # ldd complains unless libraries are executable
9972  postinstall_cmds='chmod +x $lib'
9973  ;;
9974
9975sunos4*)
9976  version_type=sunos
9977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9978  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9979  shlibpath_var=LD_LIBRARY_PATH
9980  shlibpath_overrides_runpath=yes
9981  if test "$with_gnu_ld" = yes; then
9982    need_lib_prefix=no
9983  fi
9984  need_version=yes
9985  ;;
9986
9987sysv4 | sysv4.3*)
9988  version_type=linux # correct to gnu/linux during the next big refactor
9989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990  soname_spec='${libname}${release}${shared_ext}$major'
9991  shlibpath_var=LD_LIBRARY_PATH
9992  case $host_vendor in
9993    sni)
9994      shlibpath_overrides_runpath=no
9995      need_lib_prefix=no
9996      runpath_var=LD_RUN_PATH
9997      ;;
9998    siemens)
9999      need_lib_prefix=no
10000      ;;
10001    motorola)
10002      need_lib_prefix=no
10003      need_version=no
10004      shlibpath_overrides_runpath=no
10005      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10006      ;;
10007  esac
10008  ;;
10009
10010sysv4*MP*)
10011  if test -d /usr/nec ;then
10012    version_type=linux # correct to gnu/linux during the next big refactor
10013    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10014    soname_spec='$libname${shared_ext}.$major'
10015    shlibpath_var=LD_LIBRARY_PATH
10016  fi
10017  ;;
10018
10019sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10020  version_type=freebsd-elf
10021  need_lib_prefix=no
10022  need_version=no
10023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10024  soname_spec='${libname}${release}${shared_ext}$major'
10025  shlibpath_var=LD_LIBRARY_PATH
10026  shlibpath_overrides_runpath=yes
10027  hardcode_into_libs=yes
10028  if test "$with_gnu_ld" = yes; then
10029    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10030  else
10031    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10032    case $host_os in
10033      sco3.2v5*)
10034        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10035	;;
10036    esac
10037  fi
10038  sys_lib_dlsearch_path_spec='/usr/lib'
10039  ;;
10040
10041tpf*)
10042  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10043  version_type=linux # correct to gnu/linux during the next big refactor
10044  need_lib_prefix=no
10045  need_version=no
10046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047  shlibpath_var=LD_LIBRARY_PATH
10048  shlibpath_overrides_runpath=no
10049  hardcode_into_libs=yes
10050  ;;
10051
10052uts4*)
10053  version_type=linux # correct to gnu/linux during the next big refactor
10054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055  soname_spec='${libname}${release}${shared_ext}$major'
10056  shlibpath_var=LD_LIBRARY_PATH
10057  ;;
10058
10059*)
10060  dynamic_linker=no
10061  ;;
10062esac
10063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10064$as_echo "$dynamic_linker" >&6; }
10065test "$dynamic_linker" = no && can_build_shared=no
10066
10067variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10068if test "$GCC" = yes; then
10069  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10070fi
10071
10072if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10073  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10074fi
10075if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10076  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10077fi
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10171$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10172hardcode_action=
10173if test -n "$hardcode_libdir_flag_spec" ||
10174   test -n "$runpath_var" ||
10175   test "X$hardcode_automatic" = "Xyes" ; then
10176
10177  # We can hardcode non-existent directories.
10178  if test "$hardcode_direct" != no &&
10179     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10180     # have to relink, otherwise we might link with an installed library
10181     # when we should be linking with a yet-to-be-installed one
10182     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10183     test "$hardcode_minus_L" != no; then
10184    # Linking always hardcodes the temporary library directory.
10185    hardcode_action=relink
10186  else
10187    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10188    hardcode_action=immediate
10189  fi
10190else
10191  # We cannot hardcode anything, or else we can only hardcode existing
10192  # directories.
10193  hardcode_action=unsupported
10194fi
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10196$as_echo "$hardcode_action" >&6; }
10197
10198if test "$hardcode_action" = relink ||
10199   test "$inherit_rpath" = yes; then
10200  # Fast installation is not supported
10201  enable_fast_install=no
10202elif test "$shlibpath_overrides_runpath" = yes ||
10203     test "$enable_shared" = no; then
10204  # Fast installation is not necessary
10205  enable_fast_install=needless
10206fi
10207
10208
10209
10210
10211
10212
10213  if test "x$enable_dlopen" != xyes; then
10214  enable_dlopen=unknown
10215  enable_dlopen_self=unknown
10216  enable_dlopen_self_static=unknown
10217else
10218  lt_cv_dlopen=no
10219  lt_cv_dlopen_libs=
10220
10221  case $host_os in
10222  beos*)
10223    lt_cv_dlopen="load_add_on"
10224    lt_cv_dlopen_libs=
10225    lt_cv_dlopen_self=yes
10226    ;;
10227
10228  mingw* | pw32* | cegcc*)
10229    lt_cv_dlopen="LoadLibrary"
10230    lt_cv_dlopen_libs=
10231    ;;
10232
10233  cygwin*)
10234    lt_cv_dlopen="dlopen"
10235    lt_cv_dlopen_libs=
10236    ;;
10237
10238  darwin*)
10239  # if libdl is installed we need to link against it
10240    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10241$as_echo_n "checking for dlopen in -ldl... " >&6; }
10242if ${ac_cv_lib_dl_dlopen+:} false; then :
10243  $as_echo_n "(cached) " >&6
10244else
10245  ac_check_lib_save_LIBS=$LIBS
10246LIBS="-ldl  $LIBS"
10247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248/* end confdefs.h.  */
10249
10250/* Override any GCC internal prototype to avoid an error.
10251   Use char because int might match the return type of a GCC
10252   builtin and then its argument prototype would still apply.  */
10253#ifdef __cplusplus
10254extern "C"
10255#endif
10256char dlopen ();
10257int
10258main ()
10259{
10260return dlopen ();
10261  ;
10262  return 0;
10263}
10264_ACEOF
10265if ac_fn_c_try_link "$LINENO"; then :
10266  ac_cv_lib_dl_dlopen=yes
10267else
10268  ac_cv_lib_dl_dlopen=no
10269fi
10270rm -f core conftest.err conftest.$ac_objext \
10271    conftest$ac_exeext conftest.$ac_ext
10272LIBS=$ac_check_lib_save_LIBS
10273fi
10274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10275$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10276if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10277  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10278else
10279
10280    lt_cv_dlopen="dyld"
10281    lt_cv_dlopen_libs=
10282    lt_cv_dlopen_self=yes
10283
10284fi
10285
10286    ;;
10287
10288  *)
10289    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10290if test "x$ac_cv_func_shl_load" = xyes; then :
10291  lt_cv_dlopen="shl_load"
10292else
10293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10294$as_echo_n "checking for shl_load in -ldld... " >&6; }
10295if ${ac_cv_lib_dld_shl_load+:} false; then :
10296  $as_echo_n "(cached) " >&6
10297else
10298  ac_check_lib_save_LIBS=$LIBS
10299LIBS="-ldld  $LIBS"
10300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301/* end confdefs.h.  */
10302
10303/* Override any GCC internal prototype to avoid an error.
10304   Use char because int might match the return type of a GCC
10305   builtin and then its argument prototype would still apply.  */
10306#ifdef __cplusplus
10307extern "C"
10308#endif
10309char shl_load ();
10310int
10311main ()
10312{
10313return shl_load ();
10314  ;
10315  return 0;
10316}
10317_ACEOF
10318if ac_fn_c_try_link "$LINENO"; then :
10319  ac_cv_lib_dld_shl_load=yes
10320else
10321  ac_cv_lib_dld_shl_load=no
10322fi
10323rm -f core conftest.err conftest.$ac_objext \
10324    conftest$ac_exeext conftest.$ac_ext
10325LIBS=$ac_check_lib_save_LIBS
10326fi
10327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10328$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10329if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10330  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10331else
10332  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10333if test "x$ac_cv_func_dlopen" = xyes; then :
10334  lt_cv_dlopen="dlopen"
10335else
10336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10337$as_echo_n "checking for dlopen in -ldl... " >&6; }
10338if ${ac_cv_lib_dl_dlopen+:} false; then :
10339  $as_echo_n "(cached) " >&6
10340else
10341  ac_check_lib_save_LIBS=$LIBS
10342LIBS="-ldl  $LIBS"
10343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344/* end confdefs.h.  */
10345
10346/* Override any GCC internal prototype to avoid an error.
10347   Use char because int might match the return type of a GCC
10348   builtin and then its argument prototype would still apply.  */
10349#ifdef __cplusplus
10350extern "C"
10351#endif
10352char dlopen ();
10353int
10354main ()
10355{
10356return dlopen ();
10357  ;
10358  return 0;
10359}
10360_ACEOF
10361if ac_fn_c_try_link "$LINENO"; then :
10362  ac_cv_lib_dl_dlopen=yes
10363else
10364  ac_cv_lib_dl_dlopen=no
10365fi
10366rm -f core conftest.err conftest.$ac_objext \
10367    conftest$ac_exeext conftest.$ac_ext
10368LIBS=$ac_check_lib_save_LIBS
10369fi
10370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10371$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10372if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10373  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10374else
10375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10376$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10377if ${ac_cv_lib_svld_dlopen+:} false; then :
10378  $as_echo_n "(cached) " >&6
10379else
10380  ac_check_lib_save_LIBS=$LIBS
10381LIBS="-lsvld  $LIBS"
10382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383/* end confdefs.h.  */
10384
10385/* Override any GCC internal prototype to avoid an error.
10386   Use char because int might match the return type of a GCC
10387   builtin and then its argument prototype would still apply.  */
10388#ifdef __cplusplus
10389extern "C"
10390#endif
10391char dlopen ();
10392int
10393main ()
10394{
10395return dlopen ();
10396  ;
10397  return 0;
10398}
10399_ACEOF
10400if ac_fn_c_try_link "$LINENO"; then :
10401  ac_cv_lib_svld_dlopen=yes
10402else
10403  ac_cv_lib_svld_dlopen=no
10404fi
10405rm -f core conftest.err conftest.$ac_objext \
10406    conftest$ac_exeext conftest.$ac_ext
10407LIBS=$ac_check_lib_save_LIBS
10408fi
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10410$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10411if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10412  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10413else
10414  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10415$as_echo_n "checking for dld_link in -ldld... " >&6; }
10416if ${ac_cv_lib_dld_dld_link+:} false; then :
10417  $as_echo_n "(cached) " >&6
10418else
10419  ac_check_lib_save_LIBS=$LIBS
10420LIBS="-ldld  $LIBS"
10421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422/* end confdefs.h.  */
10423
10424/* Override any GCC internal prototype to avoid an error.
10425   Use char because int might match the return type of a GCC
10426   builtin and then its argument prototype would still apply.  */
10427#ifdef __cplusplus
10428extern "C"
10429#endif
10430char dld_link ();
10431int
10432main ()
10433{
10434return dld_link ();
10435  ;
10436  return 0;
10437}
10438_ACEOF
10439if ac_fn_c_try_link "$LINENO"; then :
10440  ac_cv_lib_dld_dld_link=yes
10441else
10442  ac_cv_lib_dld_dld_link=no
10443fi
10444rm -f core conftest.err conftest.$ac_objext \
10445    conftest$ac_exeext conftest.$ac_ext
10446LIBS=$ac_check_lib_save_LIBS
10447fi
10448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10449$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10450if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10451  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10452fi
10453
10454
10455fi
10456
10457
10458fi
10459
10460
10461fi
10462
10463
10464fi
10465
10466
10467fi
10468
10469    ;;
10470  esac
10471
10472  if test "x$lt_cv_dlopen" != xno; then
10473    enable_dlopen=yes
10474  else
10475    enable_dlopen=no
10476  fi
10477
10478  case $lt_cv_dlopen in
10479  dlopen)
10480    save_CPPFLAGS="$CPPFLAGS"
10481    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10482
10483    save_LDFLAGS="$LDFLAGS"
10484    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10485
10486    save_LIBS="$LIBS"
10487    LIBS="$lt_cv_dlopen_libs $LIBS"
10488
10489    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10490$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10491if ${lt_cv_dlopen_self+:} false; then :
10492  $as_echo_n "(cached) " >&6
10493else
10494  	  if test "$cross_compiling" = yes; then :
10495  lt_cv_dlopen_self=cross
10496else
10497  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10498  lt_status=$lt_dlunknown
10499  cat > conftest.$ac_ext <<_LT_EOF
10500#line $LINENO "configure"
10501#include "confdefs.h"
10502
10503#if HAVE_DLFCN_H
10504#include <dlfcn.h>
10505#endif
10506
10507#include <stdio.h>
10508
10509#ifdef RTLD_GLOBAL
10510#  define LT_DLGLOBAL		RTLD_GLOBAL
10511#else
10512#  ifdef DL_GLOBAL
10513#    define LT_DLGLOBAL		DL_GLOBAL
10514#  else
10515#    define LT_DLGLOBAL		0
10516#  endif
10517#endif
10518
10519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10520   find out it does not work in some platform. */
10521#ifndef LT_DLLAZY_OR_NOW
10522#  ifdef RTLD_LAZY
10523#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10524#  else
10525#    ifdef DL_LAZY
10526#      define LT_DLLAZY_OR_NOW		DL_LAZY
10527#    else
10528#      ifdef RTLD_NOW
10529#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10530#      else
10531#        ifdef DL_NOW
10532#          define LT_DLLAZY_OR_NOW	DL_NOW
10533#        else
10534#          define LT_DLLAZY_OR_NOW	0
10535#        endif
10536#      endif
10537#    endif
10538#  endif
10539#endif
10540
10541/* When -fvisbility=hidden is used, assume the code has been annotated
10542   correspondingly for the symbols needed.  */
10543#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10544int fnord () __attribute__((visibility("default")));
10545#endif
10546
10547int fnord () { return 42; }
10548int main ()
10549{
10550  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10551  int status = $lt_dlunknown;
10552
10553  if (self)
10554    {
10555      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10556      else
10557        {
10558	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10559          else puts (dlerror ());
10560	}
10561      /* dlclose (self); */
10562    }
10563  else
10564    puts (dlerror ());
10565
10566  return status;
10567}
10568_LT_EOF
10569  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10570  (eval $ac_link) 2>&5
10571  ac_status=$?
10572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10573  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10574    (./conftest; exit; ) >&5 2>/dev/null
10575    lt_status=$?
10576    case x$lt_status in
10577      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10578      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10579      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10580    esac
10581  else :
10582    # compilation failed
10583    lt_cv_dlopen_self=no
10584  fi
10585fi
10586rm -fr conftest*
10587
10588
10589fi
10590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10591$as_echo "$lt_cv_dlopen_self" >&6; }
10592
10593    if test "x$lt_cv_dlopen_self" = xyes; then
10594      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10595      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10596$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10597if ${lt_cv_dlopen_self_static+:} false; then :
10598  $as_echo_n "(cached) " >&6
10599else
10600  	  if test "$cross_compiling" = yes; then :
10601  lt_cv_dlopen_self_static=cross
10602else
10603  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10604  lt_status=$lt_dlunknown
10605  cat > conftest.$ac_ext <<_LT_EOF
10606#line $LINENO "configure"
10607#include "confdefs.h"
10608
10609#if HAVE_DLFCN_H
10610#include <dlfcn.h>
10611#endif
10612
10613#include <stdio.h>
10614
10615#ifdef RTLD_GLOBAL
10616#  define LT_DLGLOBAL		RTLD_GLOBAL
10617#else
10618#  ifdef DL_GLOBAL
10619#    define LT_DLGLOBAL		DL_GLOBAL
10620#  else
10621#    define LT_DLGLOBAL		0
10622#  endif
10623#endif
10624
10625/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10626   find out it does not work in some platform. */
10627#ifndef LT_DLLAZY_OR_NOW
10628#  ifdef RTLD_LAZY
10629#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10630#  else
10631#    ifdef DL_LAZY
10632#      define LT_DLLAZY_OR_NOW		DL_LAZY
10633#    else
10634#      ifdef RTLD_NOW
10635#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10636#      else
10637#        ifdef DL_NOW
10638#          define LT_DLLAZY_OR_NOW	DL_NOW
10639#        else
10640#          define LT_DLLAZY_OR_NOW	0
10641#        endif
10642#      endif
10643#    endif
10644#  endif
10645#endif
10646
10647/* When -fvisbility=hidden is used, assume the code has been annotated
10648   correspondingly for the symbols needed.  */
10649#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10650int fnord () __attribute__((visibility("default")));
10651#endif
10652
10653int fnord () { return 42; }
10654int main ()
10655{
10656  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10657  int status = $lt_dlunknown;
10658
10659  if (self)
10660    {
10661      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10662      else
10663        {
10664	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10665          else puts (dlerror ());
10666	}
10667      /* dlclose (self); */
10668    }
10669  else
10670    puts (dlerror ());
10671
10672  return status;
10673}
10674_LT_EOF
10675  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10676  (eval $ac_link) 2>&5
10677  ac_status=$?
10678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10679  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10680    (./conftest; exit; ) >&5 2>/dev/null
10681    lt_status=$?
10682    case x$lt_status in
10683      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10684      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10685      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10686    esac
10687  else :
10688    # compilation failed
10689    lt_cv_dlopen_self_static=no
10690  fi
10691fi
10692rm -fr conftest*
10693
10694
10695fi
10696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10697$as_echo "$lt_cv_dlopen_self_static" >&6; }
10698    fi
10699
10700    CPPFLAGS="$save_CPPFLAGS"
10701    LDFLAGS="$save_LDFLAGS"
10702    LIBS="$save_LIBS"
10703    ;;
10704  esac
10705
10706  case $lt_cv_dlopen_self in
10707  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10708  *) enable_dlopen_self=unknown ;;
10709  esac
10710
10711  case $lt_cv_dlopen_self_static in
10712  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10713  *) enable_dlopen_self_static=unknown ;;
10714  esac
10715fi
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733striplib=
10734old_striplib=
10735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10736$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10737if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10738  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10739  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10741$as_echo "yes" >&6; }
10742else
10743# FIXME - insert some real tests, host_os isn't really good enough
10744  case $host_os in
10745  darwin*)
10746    if test -n "$STRIP" ; then
10747      striplib="$STRIP -x"
10748      old_striplib="$STRIP -S"
10749      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10750$as_echo "yes" >&6; }
10751    else
10752      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753$as_echo "no" >&6; }
10754    fi
10755    ;;
10756  *)
10757    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758$as_echo "no" >&6; }
10759    ;;
10760  esac
10761fi
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774  # Report which library types will actually be built
10775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10776$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10778$as_echo "$can_build_shared" >&6; }
10779
10780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10781$as_echo_n "checking whether to build shared libraries... " >&6; }
10782  test "$can_build_shared" = "no" && enable_shared=no
10783
10784  # On AIX, shared libraries and static libraries use the same namespace, and
10785  # are all built from PIC.
10786  case $host_os in
10787  aix3*)
10788    test "$enable_shared" = yes && enable_static=no
10789    if test -n "$RANLIB"; then
10790      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10791      postinstall_cmds='$RANLIB $lib'
10792    fi
10793    ;;
10794
10795  aix[4-9]*)
10796    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10797      test "$enable_shared" = yes && enable_static=no
10798    fi
10799    ;;
10800  esac
10801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10802$as_echo "$enable_shared" >&6; }
10803
10804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10805$as_echo_n "checking whether to build static libraries... " >&6; }
10806  # Make sure either enable_shared or enable_static is yes.
10807  test "$enable_shared" = yes || enable_static=yes
10808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10809$as_echo "$enable_static" >&6; }
10810
10811
10812
10813
10814fi
10815ac_ext=c
10816ac_cpp='$CPP $CPPFLAGS'
10817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10819ac_compiler_gnu=$ac_cv_c_compiler_gnu
10820
10821CC="$lt_save_CC"
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837        ac_config_commands="$ac_config_commands libtool"
10838
10839
10840
10841
10842# Only expand once:
10843
10844
10845
10846LT_CURRENT=4
10847
10848LT_REVISION=0
10849
10850LT_AGE=1
10851
10852
10853
10854
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
10856$as_echo_n "checking target system type... " >&6; }
10857if ${ac_cv_target+:} false; then :
10858  $as_echo_n "(cached) " >&6
10859else
10860  if test "x$target_alias" = x; then
10861  ac_cv_target=$ac_cv_host
10862else
10863  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
10864    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
10865fi
10866
10867fi
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
10869$as_echo "$ac_cv_target" >&6; }
10870case $ac_cv_target in
10871*-*-*) ;;
10872*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
10873esac
10874target=$ac_cv_target
10875ac_save_IFS=$IFS; IFS='-'
10876set x $ac_cv_target
10877shift
10878target_cpu=$1
10879target_vendor=$2
10880shift; shift
10881# Remember, the first character of IFS is used to create $*,
10882# except with old shells:
10883target_os=$*
10884IFS=$ac_save_IFS
10885case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
10886
10887
10888# The aliases save the names the user supplied, while $host etc.
10889# will get canonicalized.
10890test -n "$target_alias" &&
10891  test "$program_prefix$program_suffix$program_transform_name" = \
10892    NONENONEs,x,x, &&
10893  program_prefix=${target_alias}-
10894
10895am__api_version='1.14'
10896
10897# Find a good install program.  We prefer a C program (faster),
10898# so one script is as good as another.  But avoid the broken or
10899# incompatible versions:
10900# SysV /etc/install, /usr/sbin/install
10901# SunOS /usr/etc/install
10902# IRIX /sbin/install
10903# AIX /bin/install
10904# AmigaOS /C/install, which installs bootblocks on floppy discs
10905# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10906# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10907# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10908# OS/2's system install, which has a completely different semantic
10909# ./install, which can be erroneously created by make from ./install.sh.
10910# Reject install programs that cannot install multiple files.
10911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10912$as_echo_n "checking for a BSD-compatible install... " >&6; }
10913if test -z "$INSTALL"; then
10914if ${ac_cv_path_install+:} false; then :
10915  $as_echo_n "(cached) " >&6
10916else
10917  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10918for as_dir in $PATH
10919do
10920  IFS=$as_save_IFS
10921  test -z "$as_dir" && as_dir=.
10922    # Account for people who put trailing slashes in PATH elements.
10923case $as_dir/ in #((
10924  ./ | .// | /[cC]/* | \
10925  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10926  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10927  /usr/ucb/* ) ;;
10928  *)
10929    # OSF1 and SCO ODT 3.0 have their own names for install.
10930    # Don't use installbsd from OSF since it installs stuff as root
10931    # by default.
10932    for ac_prog in ginstall scoinst install; do
10933      for ac_exec_ext in '' $ac_executable_extensions; do
10934	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10935	  if test $ac_prog = install &&
10936	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10937	    # AIX install.  It has an incompatible calling convention.
10938	    :
10939	  elif test $ac_prog = install &&
10940	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10941	    # program-specific install script used by HP pwplus--don't use.
10942	    :
10943	  else
10944	    rm -rf conftest.one conftest.two conftest.dir
10945	    echo one > conftest.one
10946	    echo two > conftest.two
10947	    mkdir conftest.dir
10948	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10949	      test -s conftest.one && test -s conftest.two &&
10950	      test -s conftest.dir/conftest.one &&
10951	      test -s conftest.dir/conftest.two
10952	    then
10953	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10954	      break 3
10955	    fi
10956	  fi
10957	fi
10958      done
10959    done
10960    ;;
10961esac
10962
10963  done
10964IFS=$as_save_IFS
10965
10966rm -rf conftest.one conftest.two conftest.dir
10967
10968fi
10969  if test "${ac_cv_path_install+set}" = set; then
10970    INSTALL=$ac_cv_path_install
10971  else
10972    # As a last resort, use the slow shell script.  Don't cache a
10973    # value for INSTALL within a source directory, because that will
10974    # break other packages using the cache if that directory is
10975    # removed, or if the value is a relative name.
10976    INSTALL=$ac_install_sh
10977  fi
10978fi
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10980$as_echo "$INSTALL" >&6; }
10981
10982# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10983# It thinks the first close brace ends the variable substitution.
10984test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10985
10986test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10987
10988test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10989
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10991$as_echo_n "checking whether build environment is sane... " >&6; }
10992# Reject unsafe characters in $srcdir or the absolute working directory
10993# name.  Accept space and tab only in the latter.
10994am_lf='
10995'
10996case `pwd` in
10997  *[\\\"\#\$\&\'\`$am_lf]*)
10998    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10999esac
11000case $srcdir in
11001  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
11002    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11003esac
11004
11005# Do 'set' in a subshell so we don't clobber the current shell's
11006# arguments.  Must try -L first in case configure is actually a
11007# symlink; some systems play weird games with the mod time of symlinks
11008# (eg FreeBSD returns the mod time of the symlink's containing
11009# directory).
11010if (
11011   am_has_slept=no
11012   for am_try in 1 2; do
11013     echo "timestamp, slept: $am_has_slept" > conftest.file
11014     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11015     if test "$*" = "X"; then
11016	# -L didn't work.
11017	set X `ls -t "$srcdir/configure" conftest.file`
11018     fi
11019     if test "$*" != "X $srcdir/configure conftest.file" \
11020	&& test "$*" != "X conftest.file $srcdir/configure"; then
11021
11022	# If neither matched, then we have a broken ls.  This can happen
11023	# if, for instance, CONFIG_SHELL is bash and it inherits a
11024	# broken ls alias from the environment.  This has actually
11025	# happened.  Such a system could not be considered "sane".
11026	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
11027  alias in your environment" "$LINENO" 5
11028     fi
11029     if test "$2" = conftest.file || test $am_try -eq 2; then
11030       break
11031     fi
11032     # Just in case.
11033     sleep 1
11034     am_has_slept=yes
11035   done
11036   test "$2" = conftest.file
11037   )
11038then
11039   # Ok.
11040   :
11041else
11042   as_fn_error $? "newly created file is older than distributed files!
11043Check your system clock" "$LINENO" 5
11044fi
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11046$as_echo "yes" >&6; }
11047# If we didn't sleep, we still need to ensure time stamps of config.status and
11048# generated files are strictly newer.
11049am_sleep_pid=
11050if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11051  ( sleep 1 ) &
11052  am_sleep_pid=$!
11053fi
11054
11055rm -f conftest.file
11056
11057test "$program_prefix" != NONE &&
11058  program_transform_name="s&^&$program_prefix&;$program_transform_name"
11059# Use a double $ so make ignores it.
11060test "$program_suffix" != NONE &&
11061  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11062# Double any \ or $.
11063# By default was `s,x,x', remove it if useless.
11064ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11065program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11066
11067if test x"${MISSING+set}" != xset; then
11068  case $am_aux_dir in
11069  *\ * | *\	*)
11070    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11071  *)
11072    MISSING="\${SHELL} $am_aux_dir/missing" ;;
11073  esac
11074fi
11075# Use eval to expand $SHELL
11076if eval "$MISSING --is-lightweight"; then
11077  am_missing_run="$MISSING "
11078else
11079  am_missing_run=
11080  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11081$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11082fi
11083
11084if test x"${install_sh}" != xset; then
11085  case $am_aux_dir in
11086  *\ * | *\	*)
11087    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11088  *)
11089    install_sh="\${SHELL} $am_aux_dir/install-sh"
11090  esac
11091fi
11092
11093# Installed binaries are usually stripped using 'strip' when the user
11094# run "make install-strip".  However 'strip' might not be the right
11095# tool to use in cross-compilation environments, therefore Automake
11096# will honor the 'STRIP' environment variable to overrule this program.
11097if test "$cross_compiling" != no; then
11098  if test -n "$ac_tool_prefix"; then
11099  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11100set dummy ${ac_tool_prefix}strip; ac_word=$2
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11102$as_echo_n "checking for $ac_word... " >&6; }
11103if ${ac_cv_prog_STRIP+:} false; then :
11104  $as_echo_n "(cached) " >&6
11105else
11106  if test -n "$STRIP"; then
11107  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11108else
11109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110for as_dir in $PATH
11111do
11112  IFS=$as_save_IFS
11113  test -z "$as_dir" && as_dir=.
11114    for ac_exec_ext in '' $ac_executable_extensions; do
11115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11116    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11118    break 2
11119  fi
11120done
11121  done
11122IFS=$as_save_IFS
11123
11124fi
11125fi
11126STRIP=$ac_cv_prog_STRIP
11127if test -n "$STRIP"; then
11128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11129$as_echo "$STRIP" >&6; }
11130else
11131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132$as_echo "no" >&6; }
11133fi
11134
11135
11136fi
11137if test -z "$ac_cv_prog_STRIP"; then
11138  ac_ct_STRIP=$STRIP
11139  # Extract the first word of "strip", so it can be a program name with args.
11140set dummy strip; ac_word=$2
11141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11142$as_echo_n "checking for $ac_word... " >&6; }
11143if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11144  $as_echo_n "(cached) " >&6
11145else
11146  if test -n "$ac_ct_STRIP"; then
11147  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11148else
11149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150for as_dir in $PATH
11151do
11152  IFS=$as_save_IFS
11153  test -z "$as_dir" && as_dir=.
11154    for ac_exec_ext in '' $ac_executable_extensions; do
11155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11156    ac_cv_prog_ac_ct_STRIP="strip"
11157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11158    break 2
11159  fi
11160done
11161  done
11162IFS=$as_save_IFS
11163
11164fi
11165fi
11166ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11167if test -n "$ac_ct_STRIP"; then
11168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11169$as_echo "$ac_ct_STRIP" >&6; }
11170else
11171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172$as_echo "no" >&6; }
11173fi
11174
11175  if test "x$ac_ct_STRIP" = x; then
11176    STRIP=":"
11177  else
11178    case $cross_compiling:$ac_tool_warned in
11179yes:)
11180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11182ac_tool_warned=yes ;;
11183esac
11184    STRIP=$ac_ct_STRIP
11185  fi
11186else
11187  STRIP="$ac_cv_prog_STRIP"
11188fi
11189
11190fi
11191INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11192
11193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11194$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11195if test -z "$MKDIR_P"; then
11196  if ${ac_cv_path_mkdir+:} false; then :
11197  $as_echo_n "(cached) " >&6
11198else
11199  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11201do
11202  IFS=$as_save_IFS
11203  test -z "$as_dir" && as_dir=.
11204    for ac_prog in mkdir gmkdir; do
11205	 for ac_exec_ext in '' $ac_executable_extensions; do
11206	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11207	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11208	     'mkdir (GNU coreutils) '* | \
11209	     'mkdir (coreutils) '* | \
11210	     'mkdir (fileutils) '4.1*)
11211	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11212	       break 3;;
11213	   esac
11214	 done
11215       done
11216  done
11217IFS=$as_save_IFS
11218
11219fi
11220
11221  test -d ./--version && rmdir ./--version
11222  if test "${ac_cv_path_mkdir+set}" = set; then
11223    MKDIR_P="$ac_cv_path_mkdir -p"
11224  else
11225    # As a last resort, use the slow shell script.  Don't cache a
11226    # value for MKDIR_P within a source directory, because that will
11227    # break other packages using the cache if that directory is
11228    # removed, or if the value is a relative name.
11229    MKDIR_P="$ac_install_sh -d"
11230  fi
11231fi
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11233$as_echo "$MKDIR_P" >&6; }
11234
11235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11236$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11237set x ${MAKE-make}
11238ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11239if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11240  $as_echo_n "(cached) " >&6
11241else
11242  cat >conftest.make <<\_ACEOF
11243SHELL = /bin/sh
11244all:
11245	@echo '@@@%%%=$(MAKE)=@@@%%%'
11246_ACEOF
11247# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11248case `${MAKE-make} -f conftest.make 2>/dev/null` in
11249  *@@@%%%=?*=@@@%%%*)
11250    eval ac_cv_prog_make_${ac_make}_set=yes;;
11251  *)
11252    eval ac_cv_prog_make_${ac_make}_set=no;;
11253esac
11254rm -f conftest.make
11255fi
11256if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11258$as_echo "yes" >&6; }
11259  SET_MAKE=
11260else
11261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262$as_echo "no" >&6; }
11263  SET_MAKE="MAKE=${MAKE-make}"
11264fi
11265
11266rm -rf .tst 2>/dev/null
11267mkdir .tst 2>/dev/null
11268if test -d .tst; then
11269  am__leading_dot=.
11270else
11271  am__leading_dot=_
11272fi
11273rmdir .tst 2>/dev/null
11274
11275DEPDIR="${am__leading_dot}deps"
11276
11277ac_config_commands="$ac_config_commands depfiles"
11278
11279
11280am_make=${MAKE-make}
11281cat > confinc << 'END'
11282am__doit:
11283	@echo this is the am__doit target
11284.PHONY: am__doit
11285END
11286# If we don't find an include directive, just comment out the code.
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11288$as_echo_n "checking for style of include used by $am_make... " >&6; }
11289am__include="#"
11290am__quote=
11291_am_result=none
11292# First try GNU make style include.
11293echo "include confinc" > confmf
11294# Ignore all kinds of additional output from 'make'.
11295case `$am_make -s -f confmf 2> /dev/null` in #(
11296*the\ am__doit\ target*)
11297  am__include=include
11298  am__quote=
11299  _am_result=GNU
11300  ;;
11301esac
11302# Now try BSD make style include.
11303if test "$am__include" = "#"; then
11304   echo '.include "confinc"' > confmf
11305   case `$am_make -s -f confmf 2> /dev/null` in #(
11306   *the\ am__doit\ target*)
11307     am__include=.include
11308     am__quote="\""
11309     _am_result=BSD
11310     ;;
11311   esac
11312fi
11313
11314
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11316$as_echo "$_am_result" >&6; }
11317rm -f confinc confmf
11318
11319# Check whether --enable-dependency-tracking was given.
11320if test "${enable_dependency_tracking+set}" = set; then :
11321  enableval=$enable_dependency_tracking;
11322fi
11323
11324if test "x$enable_dependency_tracking" != xno; then
11325  am_depcomp="$ac_aux_dir/depcomp"
11326  AMDEPBACKSLASH='\'
11327  am__nodep='_no'
11328fi
11329 if test "x$enable_dependency_tracking" != xno; then
11330  AMDEP_TRUE=
11331  AMDEP_FALSE='#'
11332else
11333  AMDEP_TRUE='#'
11334  AMDEP_FALSE=
11335fi
11336
11337
11338# Check whether --enable-silent-rules was given.
11339if test "${enable_silent_rules+set}" = set; then :
11340  enableval=$enable_silent_rules;
11341fi
11342
11343case $enable_silent_rules in # (((
11344  yes) AM_DEFAULT_VERBOSITY=0;;
11345   no) AM_DEFAULT_VERBOSITY=1;;
11346    *) AM_DEFAULT_VERBOSITY=1;;
11347esac
11348am_make=${MAKE-make}
11349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11350$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11351if ${am_cv_make_support_nested_variables+:} false; then :
11352  $as_echo_n "(cached) " >&6
11353else
11354  if $as_echo 'TRUE=$(BAR$(V))
11355BAR0=false
11356BAR1=true
11357V=1
11358am__doit:
11359	@$(TRUE)
11360.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11361  am_cv_make_support_nested_variables=yes
11362else
11363  am_cv_make_support_nested_variables=no
11364fi
11365fi
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11367$as_echo "$am_cv_make_support_nested_variables" >&6; }
11368if test $am_cv_make_support_nested_variables = yes; then
11369    AM_V='$(V)'
11370  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11371else
11372  AM_V=$AM_DEFAULT_VERBOSITY
11373  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11374fi
11375AM_BACKSLASH='\'
11376
11377if test "`cd $srcdir && pwd`" != "`pwd`"; then
11378  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11379  # is not polluted with repeated "-I."
11380  am__isrc=' -I$(srcdir)'
11381  # test to see if srcdir already configured
11382  if test -f $srcdir/config.status; then
11383    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11384  fi
11385fi
11386
11387# test whether we have cygpath
11388if test -z "$CYGPATH_W"; then
11389  if (cygpath --version) >/dev/null 2>/dev/null; then
11390    CYGPATH_W='cygpath -w'
11391  else
11392    CYGPATH_W=echo
11393  fi
11394fi
11395
11396
11397# Define the identity of the package.
11398 PACKAGE='libmetalink'
11399 VERSION='0.1.3'
11400
11401
11402cat >>confdefs.h <<_ACEOF
11403#define PACKAGE "$PACKAGE"
11404_ACEOF
11405
11406
11407cat >>confdefs.h <<_ACEOF
11408#define VERSION "$VERSION"
11409_ACEOF
11410
11411# Some tools Automake needs.
11412
11413ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11414
11415
11416AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11417
11418
11419AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11420
11421
11422AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11423
11424
11425MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11426
11427# For better backward compatibility.  To be removed once Automake 1.9.x
11428# dies out for good.  For more background, see:
11429# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
11430# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
11431mkdir_p='$(MKDIR_P)'
11432
11433# We need awk for the "check" target.  The system "awk" is bad on
11434# some platforms.
11435# Always define AMTAR for backward compatibility.  Yes, it's still used
11436# in the wild :-(  We should find a proper way to deprecate it ...
11437AMTAR='$${TAR-tar}'
11438
11439
11440# We'll loop over all known methods to create a tar archive until one works.
11441_am_tools='gnutar  pax cpio none'
11442
11443am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11444
11445
11446
11447
11448
11449depcc="$CC"   am_compiler_list=
11450
11451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11452$as_echo_n "checking dependency style of $depcc... " >&6; }
11453if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11454  $as_echo_n "(cached) " >&6
11455else
11456  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11457  # We make a subdir and do the tests there.  Otherwise we can end up
11458  # making bogus files that we don't know about and never remove.  For
11459  # instance it was reported that on HP-UX the gcc test will end up
11460  # making a dummy file named 'D' -- because '-MD' means "put the output
11461  # in D".
11462  rm -rf conftest.dir
11463  mkdir conftest.dir
11464  # Copy depcomp to subdir because otherwise we won't find it if we're
11465  # using a relative directory.
11466  cp "$am_depcomp" conftest.dir
11467  cd conftest.dir
11468  # We will build objects and dependencies in a subdirectory because
11469  # it helps to detect inapplicable dependency modes.  For instance
11470  # both Tru64's cc and ICC support -MD to output dependencies as a
11471  # side effect of compilation, but ICC will put the dependencies in
11472  # the current directory while Tru64 will put them in the object
11473  # directory.
11474  mkdir sub
11475
11476  am_cv_CC_dependencies_compiler_type=none
11477  if test "$am_compiler_list" = ""; then
11478     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11479  fi
11480  am__universal=false
11481  case " $depcc " in #(
11482     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11483     esac
11484
11485  for depmode in $am_compiler_list; do
11486    # Setup a source with many dependencies, because some compilers
11487    # like to wrap large dependency lists on column 80 (with \), and
11488    # we should not choose a depcomp mode which is confused by this.
11489    #
11490    # We need to recreate these files for each test, as the compiler may
11491    # overwrite some of them when testing with obscure command lines.
11492    # This happens at least with the AIX C compiler.
11493    : > sub/conftest.c
11494    for i in 1 2 3 4 5 6; do
11495      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11496      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11497      # Solaris 10 /bin/sh.
11498      echo '/* dummy */' > sub/conftst$i.h
11499    done
11500    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11501
11502    # We check with '-c' and '-o' for the sake of the "dashmstdout"
11503    # mode.  It turns out that the SunPro C++ compiler does not properly
11504    # handle '-M -o', and we need to detect this.  Also, some Intel
11505    # versions had trouble with output in subdirs.
11506    am__obj=sub/conftest.${OBJEXT-o}
11507    am__minus_obj="-o $am__obj"
11508    case $depmode in
11509    gcc)
11510      # This depmode causes a compiler race in universal mode.
11511      test "$am__universal" = false || continue
11512      ;;
11513    nosideeffect)
11514      # After this tag, mechanisms are not by side-effect, so they'll
11515      # only be used when explicitly requested.
11516      if test "x$enable_dependency_tracking" = xyes; then
11517	continue
11518      else
11519	break
11520      fi
11521      ;;
11522    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11523      # This compiler won't grok '-c -o', but also, the minuso test has
11524      # not run yet.  These depmodes are late enough in the game, and
11525      # so weak that their functioning should not be impacted.
11526      am__obj=conftest.${OBJEXT-o}
11527      am__minus_obj=
11528      ;;
11529    none) break ;;
11530    esac
11531    if depmode=$depmode \
11532       source=sub/conftest.c object=$am__obj \
11533       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11534       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11535         >/dev/null 2>conftest.err &&
11536       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11537       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11538       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11539       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11540      # icc doesn't choke on unknown options, it will just issue warnings
11541      # or remarks (even with -Werror).  So we grep stderr for any message
11542      # that says an option was ignored or not supported.
11543      # When given -MP, icc 7.0 and 7.1 complain thusly:
11544      #   icc: Command line warning: ignoring option '-M'; no argument required
11545      # The diagnosis changed in icc 8.0:
11546      #   icc: Command line remark: option '-MP' not supported
11547      if (grep 'ignoring option' conftest.err ||
11548          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11549        am_cv_CC_dependencies_compiler_type=$depmode
11550        break
11551      fi
11552    fi
11553  done
11554
11555  cd ..
11556  rm -rf conftest.dir
11557else
11558  am_cv_CC_dependencies_compiler_type=none
11559fi
11560
11561fi
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11563$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11564CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11565
11566 if
11567  test "x$enable_dependency_tracking" != xno \
11568  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11569  am__fastdepCC_TRUE=
11570  am__fastdepCC_FALSE='#'
11571else
11572  am__fastdepCC_TRUE='#'
11573  am__fastdepCC_FALSE=
11574fi
11575
11576
11577
11578# POSIX will say in a future version that running "rm -f" with no argument
11579# is OK; and we want to be able to make that assumption in our Makefile
11580# recipes.  So use an aggressive probe to check that the usage we want is
11581# actually supported "in the wild" to an acceptable degree.
11582# See automake bug#10828.
11583# To make any issue more visible, cause the running configure to be aborted
11584# by default if the 'rm' program in use doesn't match our expectations; the
11585# user can still override this though.
11586if rm -f && rm -fr && rm -rf; then : OK; else
11587  cat >&2 <<'END'
11588Oops!
11589
11590Your 'rm' program seems unable to run without file operands specified
11591on the command line, even when the '-f' option is present.  This is contrary
11592to the behaviour of most rm programs out there, and not conforming with
11593the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
11594
11595Please tell bug-automake@gnu.org about your system, including the value
11596of your $PATH and any error possibly output before this message.  This
11597can help us improve future automake versions.
11598
11599END
11600  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
11601    echo 'Configuration will proceed anyway, since you have set the' >&2
11602    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
11603    echo >&2
11604  else
11605    cat >&2 <<'END'
11606Aborting the configuration process, to ensure you take notice of the issue.
11607
11608You can download and install GNU coreutils to get an 'rm' implementation
11609that behaves properly: <http://www.gnu.org/software/coreutils/>.
11610
11611If you want to complete the configuration process using your problematic
11612'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
11613to "yes", and re-run configure.
11614
11615END
11616    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
11617  fi
11618fi
11619
11620
11621
11622# Special host-dependent stuff
11623case ${host} in
11624    *android*|*mingw*)
11625        ac_cv_func_malloc_0_nonnull=yes
11626        ac_cv_func_realloc_0_nonnull=yes
11627        ;;
11628    *-*solaris*)
11629        CFLAGS="-std=gnu99 -D_XOPEN_SOURCE=600 $CFLAGS"
11630        ;;
11631    *)
11632        ;;
11633esac
11634
11635# Checks for arguments.
11636
11637# Check whether --with-libexpat was given.
11638if test "${with_libexpat+set}" = set; then :
11639  withval=$with_libexpat; with_libexpat=$withval
11640else
11641  with_libexpat=yes
11642fi
11643
11644
11645# Check whether --with-libxml2 was given.
11646if test "${with_libxml2+set}" = set; then :
11647  withval=$with_libxml2; with_libxml2=$withval
11648else
11649  with_libxml2=yes
11650fi
11651
11652
11653# Check whether --enable-maintainer-mode was given.
11654if test "${enable_maintainer_mode+set}" = set; then :
11655  enableval=$enable_maintainer_mode; maintainer_mode=$withval
11656else
11657  maintainer_mode=no
11658fi
11659
11660
11661# Check whether --enable-gcc-visibility was given.
11662if test "${enable_gcc_visibility+set}" = set; then :
11663  enableval=$enable_gcc_visibility; gcc_visibility=$withval
11664else
11665  gcc_visibility=no
11666fi
11667
11668
11669# Checks for programs
11670ac_ext=c
11671ac_cpp='$CPP $CPPFLAGS'
11672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11674ac_compiler_gnu=$ac_cv_c_compiler_gnu
11675if test -n "$ac_tool_prefix"; then
11676  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11677set dummy ${ac_tool_prefix}gcc; ac_word=$2
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679$as_echo_n "checking for $ac_word... " >&6; }
11680if ${ac_cv_prog_CC+:} false; then :
11681  $as_echo_n "(cached) " >&6
11682else
11683  if test -n "$CC"; then
11684  ac_cv_prog_CC="$CC" # Let the user override the test.
11685else
11686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687for as_dir in $PATH
11688do
11689  IFS=$as_save_IFS
11690  test -z "$as_dir" && as_dir=.
11691    for ac_exec_ext in '' $ac_executable_extensions; do
11692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11693    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11695    break 2
11696  fi
11697done
11698  done
11699IFS=$as_save_IFS
11700
11701fi
11702fi
11703CC=$ac_cv_prog_CC
11704if test -n "$CC"; then
11705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11706$as_echo "$CC" >&6; }
11707else
11708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709$as_echo "no" >&6; }
11710fi
11711
11712
11713fi
11714if test -z "$ac_cv_prog_CC"; then
11715  ac_ct_CC=$CC
11716  # Extract the first word of "gcc", so it can be a program name with args.
11717set dummy gcc; ac_word=$2
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719$as_echo_n "checking for $ac_word... " >&6; }
11720if ${ac_cv_prog_ac_ct_CC+:} false; then :
11721  $as_echo_n "(cached) " >&6
11722else
11723  if test -n "$ac_ct_CC"; then
11724  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11725else
11726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727for as_dir in $PATH
11728do
11729  IFS=$as_save_IFS
11730  test -z "$as_dir" && as_dir=.
11731    for ac_exec_ext in '' $ac_executable_extensions; do
11732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11733    ac_cv_prog_ac_ct_CC="gcc"
11734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11735    break 2
11736  fi
11737done
11738  done
11739IFS=$as_save_IFS
11740
11741fi
11742fi
11743ac_ct_CC=$ac_cv_prog_ac_ct_CC
11744if test -n "$ac_ct_CC"; then
11745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11746$as_echo "$ac_ct_CC" >&6; }
11747else
11748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749$as_echo "no" >&6; }
11750fi
11751
11752  if test "x$ac_ct_CC" = x; then
11753    CC=""
11754  else
11755    case $cross_compiling:$ac_tool_warned in
11756yes:)
11757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11759ac_tool_warned=yes ;;
11760esac
11761    CC=$ac_ct_CC
11762  fi
11763else
11764  CC="$ac_cv_prog_CC"
11765fi
11766
11767if test -z "$CC"; then
11768          if test -n "$ac_tool_prefix"; then
11769    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11770set dummy ${ac_tool_prefix}cc; ac_word=$2
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11772$as_echo_n "checking for $ac_word... " >&6; }
11773if ${ac_cv_prog_CC+:} false; then :
11774  $as_echo_n "(cached) " >&6
11775else
11776  if test -n "$CC"; then
11777  ac_cv_prog_CC="$CC" # Let the user override the test.
11778else
11779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780for as_dir in $PATH
11781do
11782  IFS=$as_save_IFS
11783  test -z "$as_dir" && as_dir=.
11784    for ac_exec_ext in '' $ac_executable_extensions; do
11785  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11786    ac_cv_prog_CC="${ac_tool_prefix}cc"
11787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11788    break 2
11789  fi
11790done
11791  done
11792IFS=$as_save_IFS
11793
11794fi
11795fi
11796CC=$ac_cv_prog_CC
11797if test -n "$CC"; then
11798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11799$as_echo "$CC" >&6; }
11800else
11801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802$as_echo "no" >&6; }
11803fi
11804
11805
11806  fi
11807fi
11808if test -z "$CC"; then
11809  # Extract the first word of "cc", so it can be a program name with args.
11810set dummy cc; ac_word=$2
11811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812$as_echo_n "checking for $ac_word... " >&6; }
11813if ${ac_cv_prog_CC+:} false; then :
11814  $as_echo_n "(cached) " >&6
11815else
11816  if test -n "$CC"; then
11817  ac_cv_prog_CC="$CC" # Let the user override the test.
11818else
11819  ac_prog_rejected=no
11820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821for as_dir in $PATH
11822do
11823  IFS=$as_save_IFS
11824  test -z "$as_dir" && as_dir=.
11825    for ac_exec_ext in '' $ac_executable_extensions; do
11826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11827    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11828       ac_prog_rejected=yes
11829       continue
11830     fi
11831    ac_cv_prog_CC="cc"
11832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11833    break 2
11834  fi
11835done
11836  done
11837IFS=$as_save_IFS
11838
11839if test $ac_prog_rejected = yes; then
11840  # We found a bogon in the path, so make sure we never use it.
11841  set dummy $ac_cv_prog_CC
11842  shift
11843  if test $# != 0; then
11844    # We chose a different compiler from the bogus one.
11845    # However, it has the same basename, so the bogon will be chosen
11846    # first if we set CC to just the basename; use the full file name.
11847    shift
11848    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11849  fi
11850fi
11851fi
11852fi
11853CC=$ac_cv_prog_CC
11854if test -n "$CC"; then
11855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11856$as_echo "$CC" >&6; }
11857else
11858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859$as_echo "no" >&6; }
11860fi
11861
11862
11863fi
11864if test -z "$CC"; then
11865  if test -n "$ac_tool_prefix"; then
11866  for ac_prog in cl.exe
11867  do
11868    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11869set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871$as_echo_n "checking for $ac_word... " >&6; }
11872if ${ac_cv_prog_CC+:} false; then :
11873  $as_echo_n "(cached) " >&6
11874else
11875  if test -n "$CC"; then
11876  ac_cv_prog_CC="$CC" # Let the user override the test.
11877else
11878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879for as_dir in $PATH
11880do
11881  IFS=$as_save_IFS
11882  test -z "$as_dir" && as_dir=.
11883    for ac_exec_ext in '' $ac_executable_extensions; do
11884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11885    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887    break 2
11888  fi
11889done
11890  done
11891IFS=$as_save_IFS
11892
11893fi
11894fi
11895CC=$ac_cv_prog_CC
11896if test -n "$CC"; then
11897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11898$as_echo "$CC" >&6; }
11899else
11900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901$as_echo "no" >&6; }
11902fi
11903
11904
11905    test -n "$CC" && break
11906  done
11907fi
11908if test -z "$CC"; then
11909  ac_ct_CC=$CC
11910  for ac_prog in cl.exe
11911do
11912  # Extract the first word of "$ac_prog", so it can be a program name with args.
11913set dummy $ac_prog; ac_word=$2
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915$as_echo_n "checking for $ac_word... " >&6; }
11916if ${ac_cv_prog_ac_ct_CC+:} false; then :
11917  $as_echo_n "(cached) " >&6
11918else
11919  if test -n "$ac_ct_CC"; then
11920  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11921else
11922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923for as_dir in $PATH
11924do
11925  IFS=$as_save_IFS
11926  test -z "$as_dir" && as_dir=.
11927    for ac_exec_ext in '' $ac_executable_extensions; do
11928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11929    ac_cv_prog_ac_ct_CC="$ac_prog"
11930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11931    break 2
11932  fi
11933done
11934  done
11935IFS=$as_save_IFS
11936
11937fi
11938fi
11939ac_ct_CC=$ac_cv_prog_ac_ct_CC
11940if test -n "$ac_ct_CC"; then
11941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11942$as_echo "$ac_ct_CC" >&6; }
11943else
11944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945$as_echo "no" >&6; }
11946fi
11947
11948
11949  test -n "$ac_ct_CC" && break
11950done
11951
11952  if test "x$ac_ct_CC" = x; then
11953    CC=""
11954  else
11955    case $cross_compiling:$ac_tool_warned in
11956yes:)
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11959ac_tool_warned=yes ;;
11960esac
11961    CC=$ac_ct_CC
11962  fi
11963fi
11964
11965fi
11966
11967
11968test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11970as_fn_error $? "no acceptable C compiler found in \$PATH
11971See \`config.log' for more details" "$LINENO" 5; }
11972
11973# Provide some information about the compiler.
11974$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11975set X $ac_compile
11976ac_compiler=$2
11977for ac_option in --version -v -V -qversion; do
11978  { { ac_try="$ac_compiler $ac_option >&5"
11979case "(($ac_try" in
11980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981  *) ac_try_echo=$ac_try;;
11982esac
11983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11984$as_echo "$ac_try_echo"; } >&5
11985  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11986  ac_status=$?
11987  if test -s conftest.err; then
11988    sed '10a\
11989... rest of stderr output deleted ...
11990         10q' conftest.err >conftest.er1
11991    cat conftest.er1 >&5
11992  fi
11993  rm -f conftest.er1 conftest.err
11994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11995  test $ac_status = 0; }
11996done
11997
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11999$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12000if ${ac_cv_c_compiler_gnu+:} false; then :
12001  $as_echo_n "(cached) " >&6
12002else
12003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004/* end confdefs.h.  */
12005
12006int
12007main ()
12008{
12009#ifndef __GNUC__
12010       choke me
12011#endif
12012
12013  ;
12014  return 0;
12015}
12016_ACEOF
12017if ac_fn_c_try_compile "$LINENO"; then :
12018  ac_compiler_gnu=yes
12019else
12020  ac_compiler_gnu=no
12021fi
12022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023ac_cv_c_compiler_gnu=$ac_compiler_gnu
12024
12025fi
12026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12027$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12028if test $ac_compiler_gnu = yes; then
12029  GCC=yes
12030else
12031  GCC=
12032fi
12033ac_test_CFLAGS=${CFLAGS+set}
12034ac_save_CFLAGS=$CFLAGS
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12036$as_echo_n "checking whether $CC accepts -g... " >&6; }
12037if ${ac_cv_prog_cc_g+:} false; then :
12038  $as_echo_n "(cached) " >&6
12039else
12040  ac_save_c_werror_flag=$ac_c_werror_flag
12041   ac_c_werror_flag=yes
12042   ac_cv_prog_cc_g=no
12043   CFLAGS="-g"
12044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045/* end confdefs.h.  */
12046
12047int
12048main ()
12049{
12050
12051  ;
12052  return 0;
12053}
12054_ACEOF
12055if ac_fn_c_try_compile "$LINENO"; then :
12056  ac_cv_prog_cc_g=yes
12057else
12058  CFLAGS=""
12059      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060/* end confdefs.h.  */
12061
12062int
12063main ()
12064{
12065
12066  ;
12067  return 0;
12068}
12069_ACEOF
12070if ac_fn_c_try_compile "$LINENO"; then :
12071
12072else
12073  ac_c_werror_flag=$ac_save_c_werror_flag
12074	 CFLAGS="-g"
12075	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076/* end confdefs.h.  */
12077
12078int
12079main ()
12080{
12081
12082  ;
12083  return 0;
12084}
12085_ACEOF
12086if ac_fn_c_try_compile "$LINENO"; then :
12087  ac_cv_prog_cc_g=yes
12088fi
12089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12090fi
12091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092fi
12093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094   ac_c_werror_flag=$ac_save_c_werror_flag
12095fi
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12097$as_echo "$ac_cv_prog_cc_g" >&6; }
12098if test "$ac_test_CFLAGS" = set; then
12099  CFLAGS=$ac_save_CFLAGS
12100elif test $ac_cv_prog_cc_g = yes; then
12101  if test "$GCC" = yes; then
12102    CFLAGS="-g -O2"
12103  else
12104    CFLAGS="-g"
12105  fi
12106else
12107  if test "$GCC" = yes; then
12108    CFLAGS="-O2"
12109  else
12110    CFLAGS=
12111  fi
12112fi
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12114$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12115if ${ac_cv_prog_cc_c89+:} false; then :
12116  $as_echo_n "(cached) " >&6
12117else
12118  ac_cv_prog_cc_c89=no
12119ac_save_CC=$CC
12120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121/* end confdefs.h.  */
12122#include <stdarg.h>
12123#include <stdio.h>
12124struct stat;
12125/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12126struct buf { int x; };
12127FILE * (*rcsopen) (struct buf *, struct stat *, int);
12128static char *e (p, i)
12129     char **p;
12130     int i;
12131{
12132  return p[i];
12133}
12134static char *f (char * (*g) (char **, int), char **p, ...)
12135{
12136  char *s;
12137  va_list v;
12138  va_start (v,p);
12139  s = g (p, va_arg (v,int));
12140  va_end (v);
12141  return s;
12142}
12143
12144/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12145   function prototypes and stuff, but not '\xHH' hex character constants.
12146   These don't provoke an error unfortunately, instead are silently treated
12147   as 'x'.  The following induces an error, until -std is added to get
12148   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12149   array size at least.  It's necessary to write '\x00'==0 to get something
12150   that's true only with -std.  */
12151int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12152
12153/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12154   inside strings and character constants.  */
12155#define FOO(x) 'x'
12156int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12157
12158int test (int i, double x);
12159struct s1 {int (*f) (int a);};
12160struct s2 {int (*f) (double a);};
12161int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12162int argc;
12163char **argv;
12164int
12165main ()
12166{
12167return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12168  ;
12169  return 0;
12170}
12171_ACEOF
12172for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12173	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12174do
12175  CC="$ac_save_CC $ac_arg"
12176  if ac_fn_c_try_compile "$LINENO"; then :
12177  ac_cv_prog_cc_c89=$ac_arg
12178fi
12179rm -f core conftest.err conftest.$ac_objext
12180  test "x$ac_cv_prog_cc_c89" != "xno" && break
12181done
12182rm -f conftest.$ac_ext
12183CC=$ac_save_CC
12184
12185fi
12186# AC_CACHE_VAL
12187case "x$ac_cv_prog_cc_c89" in
12188  x)
12189    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12190$as_echo "none needed" >&6; } ;;
12191  xno)
12192    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12193$as_echo "unsupported" >&6; } ;;
12194  *)
12195    CC="$CC $ac_cv_prog_cc_c89"
12196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12197$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12198esac
12199if test "x$ac_cv_prog_cc_c89" != xno; then :
12200
12201fi
12202
12203ac_ext=c
12204ac_cpp='$CPP $CPPFLAGS'
12205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12207ac_compiler_gnu=$ac_cv_c_compiler_gnu
12208
12209ac_ext=c
12210ac_cpp='$CPP $CPPFLAGS'
12211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12213ac_compiler_gnu=$ac_cv_c_compiler_gnu
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12215$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12216if ${am_cv_prog_cc_c_o+:} false; then :
12217  $as_echo_n "(cached) " >&6
12218else
12219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220/* end confdefs.h.  */
12221
12222int
12223main ()
12224{
12225
12226  ;
12227  return 0;
12228}
12229_ACEOF
12230  # Make sure it works both with $CC and with simple cc.
12231  # Following AC_PROG_CC_C_O, we do the test twice because some
12232  # compilers refuse to overwrite an existing .o file with -o,
12233  # though they will create one.
12234  am_cv_prog_cc_c_o=yes
12235  for am_i in 1 2; do
12236    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12237   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); } \
12241         && test -f conftest2.$ac_objext; then
12242      : OK
12243    else
12244      am_cv_prog_cc_c_o=no
12245      break
12246    fi
12247  done
12248  rm -f core conftest*
12249  unset am_i
12250fi
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12252$as_echo "$am_cv_prog_cc_c_o" >&6; }
12253if test "$am_cv_prog_cc_c_o" != yes; then
12254   # Losing compiler, so override with the script.
12255   # FIXME: It is wrong to rewrite CC.
12256   # But if we don't then we get into trouble of one sort or another.
12257   # A longer-term fix would be to have automake use am__CC in this case,
12258   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12259   CC="$am_aux_dir/compile $CC"
12260fi
12261ac_ext=c
12262ac_cpp='$CPP $CPPFLAGS'
12263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12265ac_compiler_gnu=$ac_cv_c_compiler_gnu
12266
12267
12268
12269
12270# Package version
12271MAJOR_VERSION=`echo $PACKAGE_VERSION | sed 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*.*/\1/'`
12272
12273MINOR_VERSION=`echo $PACKAGE_VERSION | sed 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*.*/\1/'`
12274
12275PATCH_VERSION=`echo $PACKAGE_VERSION | sed 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\).*/\1/'`
12276
12277NUMBER_VERSION=`printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`
12278
12279
12280# Checks for libraries.
12281
12282if test "x$with_libexpat" = "xyes"; then
12283
12284
12285
12286
12287
12288
12289
12290if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12291	if test -n "$ac_tool_prefix"; then
12292  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12293set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295$as_echo_n "checking for $ac_word... " >&6; }
12296if ${ac_cv_path_PKG_CONFIG+:} false; then :
12297  $as_echo_n "(cached) " >&6
12298else
12299  case $PKG_CONFIG in
12300  [\\/]* | ?:[\\/]*)
12301  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12302  ;;
12303  *)
12304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305for as_dir in $PATH
12306do
12307  IFS=$as_save_IFS
12308  test -z "$as_dir" && as_dir=.
12309    for ac_exec_ext in '' $ac_executable_extensions; do
12310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12311    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12313    break 2
12314  fi
12315done
12316  done
12317IFS=$as_save_IFS
12318
12319  ;;
12320esac
12321fi
12322PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12323if test -n "$PKG_CONFIG"; then
12324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12325$as_echo "$PKG_CONFIG" >&6; }
12326else
12327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328$as_echo "no" >&6; }
12329fi
12330
12331
12332fi
12333if test -z "$ac_cv_path_PKG_CONFIG"; then
12334  ac_pt_PKG_CONFIG=$PKG_CONFIG
12335  # Extract the first word of "pkg-config", so it can be a program name with args.
12336set dummy pkg-config; ac_word=$2
12337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12338$as_echo_n "checking for $ac_word... " >&6; }
12339if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12340  $as_echo_n "(cached) " >&6
12341else
12342  case $ac_pt_PKG_CONFIG in
12343  [\\/]* | ?:[\\/]*)
12344  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12345  ;;
12346  *)
12347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348for as_dir in $PATH
12349do
12350  IFS=$as_save_IFS
12351  test -z "$as_dir" && as_dir=.
12352    for ac_exec_ext in '' $ac_executable_extensions; do
12353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12354    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12356    break 2
12357  fi
12358done
12359  done
12360IFS=$as_save_IFS
12361
12362  ;;
12363esac
12364fi
12365ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12366if test -n "$ac_pt_PKG_CONFIG"; then
12367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12368$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12369else
12370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371$as_echo "no" >&6; }
12372fi
12373
12374  if test "x$ac_pt_PKG_CONFIG" = x; then
12375    PKG_CONFIG=""
12376  else
12377    case $cross_compiling:$ac_tool_warned in
12378yes:)
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12381ac_tool_warned=yes ;;
12382esac
12383    PKG_CONFIG=$ac_pt_PKG_CONFIG
12384  fi
12385else
12386  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12387fi
12388
12389fi
12390if test -n "$PKG_CONFIG"; then
12391	_pkg_min_version=0.9.0
12392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12393$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12394	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12395		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12396$as_echo "yes" >&6; }
12397	else
12398		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399$as_echo "no" >&6; }
12400		PKG_CONFIG=""
12401	fi
12402fi
12403
12404pkg_failed=no
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
12406$as_echo_n "checking for EXPAT... " >&6; }
12407
12408if test -n "$EXPAT_CFLAGS"; then
12409    pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
12410 elif test -n "$PKG_CONFIG"; then
12411    if test -n "$PKG_CONFIG" && \
12412    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat >= 2.1.0\""; } >&5
12413  ($PKG_CONFIG --exists --print-errors "expat >= 2.1.0") 2>&5
12414  ac_status=$?
12415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12416  test $ac_status = 0; }; then
12417  pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat >= 2.1.0" 2>/dev/null`
12418		      test "x$?" != "x0" && pkg_failed=yes
12419else
12420  pkg_failed=yes
12421fi
12422 else
12423    pkg_failed=untried
12424fi
12425if test -n "$EXPAT_LIBS"; then
12426    pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
12427 elif test -n "$PKG_CONFIG"; then
12428    if test -n "$PKG_CONFIG" && \
12429    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat >= 2.1.0\""; } >&5
12430  ($PKG_CONFIG --exists --print-errors "expat >= 2.1.0") 2>&5
12431  ac_status=$?
12432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12433  test $ac_status = 0; }; then
12434  pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat >= 2.1.0" 2>/dev/null`
12435		      test "x$?" != "x0" && pkg_failed=yes
12436else
12437  pkg_failed=yes
12438fi
12439 else
12440    pkg_failed=untried
12441fi
12442
12443
12444
12445if test $pkg_failed = yes; then
12446   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447$as_echo "no" >&6; }
12448
12449if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12450        _pkg_short_errors_supported=yes
12451else
12452        _pkg_short_errors_supported=no
12453fi
12454        if test $_pkg_short_errors_supported = yes; then
12455	        EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat >= 2.1.0" 2>&1`
12456        else
12457	        EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat >= 2.1.0" 2>&1`
12458        fi
12459	# Put the nasty error message in config.log where it belongs
12460	echo "$EXPAT_PKG_ERRORS" >&5
12461
12462	have_libexpat=no
12463elif test $pkg_failed = untried; then
12464     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465$as_echo "no" >&6; }
12466	have_libexpat=no
12467else
12468	EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
12469	EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
12470        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12471$as_echo "yes" >&6; }
12472	have_libexpat=yes
12473fi
12474  if test "x$have_libexpat" != "xyes"; then
12475    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $EXPAT_PKG_ERRORS" >&5
12476$as_echo "$as_me: WARNING: $EXPAT_PKG_ERRORS" >&2;}
12477
12478LIBS_save=$LIBS
12479CPPFLAGS_save=$CPPFLAGS
12480
12481LIBS="-lexpat $LIBS"
12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
12483$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
12484if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
12485  $as_echo_n "(cached) " >&6
12486else
12487  ac_check_lib_save_LIBS=$LIBS
12488LIBS="-lexpat  $LIBS"
12489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490/* end confdefs.h.  */
12491
12492/* Override any GCC internal prototype to avoid an error.
12493   Use char because int might match the return type of a GCC
12494   builtin and then its argument prototype would still apply.  */
12495#ifdef __cplusplus
12496extern "C"
12497#endif
12498char XML_ParserCreate ();
12499int
12500main ()
12501{
12502return XML_ParserCreate ();
12503  ;
12504  return 0;
12505}
12506_ACEOF
12507if ac_fn_c_try_link "$LINENO"; then :
12508  ac_cv_lib_expat_XML_ParserCreate=yes
12509else
12510  ac_cv_lib_expat_XML_ParserCreate=no
12511fi
12512rm -f core conftest.err conftest.$ac_objext \
12513    conftest$ac_exeext conftest.$ac_ext
12514LIBS=$ac_check_lib_save_LIBS
12515fi
12516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
12517$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
12518if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
12519  have_libexpat=yes
12520fi
12521
12522if test "x$have_libexpat" = "xyes"; then
12523
12524$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
12525
12526    EXPAT_LIBS=-lexpat
12527    EXPAT_CFLAGS=
12528
12529
12530fi
12531
12532LIBS=$LIBS_save
12533CPPFLAGS=$CPPFLAGS_save
12534
12535
12536  fi
12537fi
12538
12539if test "x$with_libxml2" = "xyes" && test "x$have_libexpat" != "xyes"; then
12540
12541
12542# Check whether --with-xml-prefix was given.
12543if test "${with_xml_prefix+set}" = set; then :
12544  withval=$with_xml_prefix; xml_config_prefix="$withval"
12545else
12546  xml_config_prefix=""
12547fi
12548
12549
12550# Check whether --with-xml-exec-prefix was given.
12551if test "${with_xml_exec_prefix+set}" = set; then :
12552  withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
12553else
12554  xml_config_exec_prefix=""
12555fi
12556
12557# Check whether --enable-xmltest was given.
12558if test "${enable_xmltest+set}" = set; then :
12559  enableval=$enable_xmltest;
12560else
12561  enable_xmltest=yes
12562fi
12563
12564
12565  if test x$xml_config_exec_prefix != x ; then
12566     xml_config_args="$xml_config_args"
12567     if test x${XML2_CONFIG+set} != xset ; then
12568        XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
12569     fi
12570  fi
12571  if test x$xml_config_prefix != x ; then
12572     xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
12573     if test x${XML2_CONFIG+set} != xset ; then
12574        XML2_CONFIG=$xml_config_prefix/bin/xml2-config
12575     fi
12576  fi
12577
12578  # Extract the first word of "xml2-config", so it can be a program name with args.
12579set dummy xml2-config; ac_word=$2
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581$as_echo_n "checking for $ac_word... " >&6; }
12582if ${ac_cv_path_XML2_CONFIG+:} false; then :
12583  $as_echo_n "(cached) " >&6
12584else
12585  case $XML2_CONFIG in
12586  [\\/]* | ?:[\\/]*)
12587  ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
12588  ;;
12589  *)
12590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12591for as_dir in $PATH
12592do
12593  IFS=$as_save_IFS
12594  test -z "$as_dir" && as_dir=.
12595    for ac_exec_ext in '' $ac_executable_extensions; do
12596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12597    ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12599    break 2
12600  fi
12601done
12602  done
12603IFS=$as_save_IFS
12604
12605  test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
12606  ;;
12607esac
12608fi
12609XML2_CONFIG=$ac_cv_path_XML2_CONFIG
12610if test -n "$XML2_CONFIG"; then
12611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
12612$as_echo "$XML2_CONFIG" >&6; }
12613else
12614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615$as_echo "no" >&6; }
12616fi
12617
12618
12619  min_xml_version=2.6.24
12620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
12621$as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
12622  no_xml=""
12623  if test "$XML2_CONFIG" = "no" ; then
12624    no_xml=yes
12625  else
12626    XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
12627    XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
12628    xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
12629           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12630    xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
12631           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12632    xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
12633           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12634    if test "x$enable_xmltest" = "xyes" ; then
12635      ac_save_CPPFLAGS="$CPPFLAGS"
12636      ac_save_LIBS="$LIBS"
12637      CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
12638      LIBS="$XML_LIBS $LIBS"
12639      rm -f conf.xmltest
12640      if test "$cross_compiling" = yes; then :
12641  echo $ac_n "cross compiling; assumed OK... $ac_c"
12642else
12643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644/* end confdefs.h.  */
12645
12646#include <stdlib.h>
12647#include <stdio.h>
12648#include <string.h>
12649#include <libxml/xmlversion.h>
12650
12651int
12652main()
12653{
12654  int xml_major_version, xml_minor_version, xml_micro_version;
12655  int major, minor, micro;
12656  char *tmp_version;
12657
12658  system("touch conf.xmltest");
12659
12660  /* Capture xml2-config output via autoconf/configure variables */
12661  /* HP/UX 9 (%@#!) writes to sscanf strings */
12662  tmp_version = (char *)strdup("$min_xml_version");
12663  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12664     printf("%s, bad version string from xml2-config\n", "$min_xml_version");
12665     exit(1);
12666   }
12667   free(tmp_version);
12668
12669   /* Capture the version information from the header files */
12670   tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
12671   if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
12672     printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
12673     exit(1);
12674   }
12675   free(tmp_version);
12676
12677 /* Compare xml2-config output to the libxml headers */
12678  if ((xml_major_version != $xml_config_major_version) ||
12679      (xml_minor_version != $xml_config_minor_version) ||
12680      (xml_micro_version != $xml_config_micro_version))
12681    {
12682      printf("*** libxml header files (version %d.%d.%d) do not match\n",
12683         xml_major_version, xml_minor_version, xml_micro_version);
12684      printf("*** xml2-config (version %d.%d.%d)\n",
12685         $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
12686      return 1;
12687    }
12688/* Compare the headers to the library to make sure we match */
12689  /* Less than ideal -- doesn't provide us with return value feedback,
12690   * only exits if there's a serious mismatch between header and library.
12691   */
12692    LIBXML_TEST_VERSION;
12693
12694    /* Test that the library is greater than our minimum version */
12695    if ((xml_major_version > major) ||
12696        ((xml_major_version == major) && (xml_minor_version > minor)) ||
12697        ((xml_major_version == major) && (xml_minor_version == minor) &&
12698        (xml_micro_version >= micro)))
12699      {
12700        return 0;
12701       }
12702     else
12703      {
12704        printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
12705               xml_major_version, xml_minor_version, xml_micro_version);
12706        printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
12707           major, minor, micro);
12708        printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
12709        printf("***\n");
12710        printf("*** If you have already installed a sufficiently new version, this error\n");
12711        printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
12712        printf("*** being found. The easiest way to fix this is to remove the old version\n");
12713        printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
12714        printf("*** correct copy of xml2-config. (In this case, you will have to\n");
12715        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12716        printf("*** so that the correct libraries are found at run-time))\n");
12717    }
12718  return 1;
12719}
12720
12721_ACEOF
12722if ac_fn_c_try_run "$LINENO"; then :
12723
12724else
12725  no_xml=yes
12726fi
12727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12728  conftest.$ac_objext conftest.beam conftest.$ac_ext
12729fi
12730
12731       CPPFLAGS="$ac_save_CPPFLAGS"
12732       LIBS="$ac_save_LIBS"
12733     fi
12734  fi
12735
12736  if test "x$no_xml" = x ; then
12737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
12738$as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
12739     have_libxml2=yes
12740  else
12741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742$as_echo "no" >&6; }
12743     if test "$XML2_CONFIG" = "no" ; then
12744       echo "*** The xml2-config script installed by LIBXML could not be found"
12745       echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
12746       echo "*** your path, or set the XML2_CONFIG environment variable to the"
12747       echo "*** full path to xml2-config."
12748     else
12749       if test -f conf.xmltest ; then
12750        :
12751       else
12752          echo "*** Could not run libxml test program, checking why..."
12753          CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
12754          LIBS="$LIBS $XML_LIBS"
12755          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756/* end confdefs.h.  */
12757
12758#include <libxml/xmlversion.h>
12759#include <stdio.h>
12760
12761int
12762main ()
12763{
12764 LIBXML_TEST_VERSION; return 0;
12765  ;
12766  return 0;
12767}
12768_ACEOF
12769if ac_fn_c_try_link "$LINENO"; then :
12770   echo "*** The test program compiled, but did not run. This usually means"
12771          echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
12772          echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
12773          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12774          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12775          echo "*** is required on your system"
12776          echo "***"
12777          echo "*** If you have an old version installed, it is best to remove it, although"
12778          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12779else
12780   echo "*** The test program failed to compile or link. See the file config.log for the"
12781          echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
12782          echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
12783          echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
12784fi
12785rm -f core conftest.err conftest.$ac_objext \
12786    conftest$ac_exeext conftest.$ac_ext
12787          CPPFLAGS="$ac_save_CPPFLAGS"
12788          LIBS="$ac_save_LIBS"
12789       fi
12790     fi
12791
12792     XML_CPPFLAGS=""
12793     XML_LIBS=""
12794     :
12795  fi
12796
12797
12798  rm -f conf.xmltest
12799
12800   if test "x$have_libxml2" = "xyes"; then
12801
12802$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12803
12804   fi
12805fi
12806
12807if test "x$have_libexpat" != "xyes" && test "x$have_libxml2" != "xyes"; then
12808    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12810as_fn_error $? "Neither expat nor libxml2 found. Please install one of \
12811them and run configure again.
12812See \`config.log' for more details" "$LINENO" 5; }
12813fi
12814
12815# cunit
12816
12817pkg_failed=no
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
12819$as_echo_n "checking for CUNIT... " >&6; }
12820
12821if test -n "$CUNIT_CFLAGS"; then
12822    pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
12823 elif test -n "$PKG_CONFIG"; then
12824    if test -n "$PKG_CONFIG" && \
12825    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
12826  ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
12827  ac_status=$?
12828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12829  test $ac_status = 0; }; then
12830  pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.1" 2>/dev/null`
12831		      test "x$?" != "x0" && pkg_failed=yes
12832else
12833  pkg_failed=yes
12834fi
12835 else
12836    pkg_failed=untried
12837fi
12838if test -n "$CUNIT_LIBS"; then
12839    pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
12840 elif test -n "$PKG_CONFIG"; then
12841    if test -n "$PKG_CONFIG" && \
12842    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
12843  ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
12844  ac_status=$?
12845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12846  test $ac_status = 0; }; then
12847  pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.1" 2>/dev/null`
12848		      test "x$?" != "x0" && pkg_failed=yes
12849else
12850  pkg_failed=yes
12851fi
12852 else
12853    pkg_failed=untried
12854fi
12855
12856
12857
12858if test $pkg_failed = yes; then
12859   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860$as_echo "no" >&6; }
12861
12862if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12863        _pkg_short_errors_supported=yes
12864else
12865        _pkg_short_errors_supported=no
12866fi
12867        if test $_pkg_short_errors_supported = yes; then
12868	        CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
12869        else
12870	        CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
12871        fi
12872	# Put the nasty error message in config.log where it belongs
12873	echo "$CUNIT_PKG_ERRORS" >&5
12874
12875	have_cunit=no
12876elif test $pkg_failed = untried; then
12877     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878$as_echo "no" >&6; }
12879	have_cunit=no
12880else
12881	CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
12882	CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
12883        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12884$as_echo "yes" >&6; }
12885	have_cunit=yes
12886fi
12887# If pkg-config does not find cunit, check it using AC_CHECK_LIB.  We
12888# do this because Debian (Ubuntu) lacks pkg-config file for cunit.
12889if test "x${have_cunit}" = "xno"; then
12890  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CUNIT_PKG_ERRORS}" >&5
12891$as_echo "$as_me: WARNING: ${CUNIT_PKG_ERRORS}" >&2;}
12892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CU_initialize_registry in -lcunit" >&5
12893$as_echo_n "checking for CU_initialize_registry in -lcunit... " >&6; }
12894if ${ac_cv_lib_cunit_CU_initialize_registry+:} false; then :
12895  $as_echo_n "(cached) " >&6
12896else
12897  ac_check_lib_save_LIBS=$LIBS
12898LIBS="-lcunit  $LIBS"
12899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900/* end confdefs.h.  */
12901
12902/* Override any GCC internal prototype to avoid an error.
12903   Use char because int might match the return type of a GCC
12904   builtin and then its argument prototype would still apply.  */
12905#ifdef __cplusplus
12906extern "C"
12907#endif
12908char CU_initialize_registry ();
12909int
12910main ()
12911{
12912return CU_initialize_registry ();
12913  ;
12914  return 0;
12915}
12916_ACEOF
12917if ac_fn_c_try_link "$LINENO"; then :
12918  ac_cv_lib_cunit_CU_initialize_registry=yes
12919else
12920  ac_cv_lib_cunit_CU_initialize_registry=no
12921fi
12922rm -f core conftest.err conftest.$ac_objext \
12923    conftest$ac_exeext conftest.$ac_ext
12924LIBS=$ac_check_lib_save_LIBS
12925fi
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cunit_CU_initialize_registry" >&5
12927$as_echo "$ac_cv_lib_cunit_CU_initialize_registry" >&6; }
12928if test "x$ac_cv_lib_cunit_CU_initialize_registry" = xyes; then :
12929  have_cunit=yes
12930else
12931  have_cunit=no
12932fi
12933
12934  if test "x${have_cunit}" = "xyes"; then
12935    CUNIT_LIBS="-lcunit"
12936    CUNIT_CFLAGS=""
12937
12938
12939  fi
12940fi
12941
12942 if test "x$have_libexpat" = "xyes"; then
12943  ENABLE_LIBEXPAT_TRUE=
12944  ENABLE_LIBEXPAT_FALSE='#'
12945else
12946  ENABLE_LIBEXPAT_TRUE='#'
12947  ENABLE_LIBEXPAT_FALSE=
12948fi
12949
12950 if test "x$have_libxml2" = "xyes"; then
12951  ENABLE_LIBXML2_TRUE=
12952  ENABLE_LIBXML2_FALSE='#'
12953else
12954  ENABLE_LIBXML2_TRUE='#'
12955  ENABLE_LIBXML2_FALSE=
12956fi
12957
12958 if  test "x${have_cunit}" = "xyes" ; then
12959  HAVE_CUNIT_TRUE=
12960  HAVE_CUNIT_FALSE='#'
12961else
12962  HAVE_CUNIT_TRUE='#'
12963  HAVE_CUNIT_FALSE=
12964fi
12965
12966
12967# Checks for header files.
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12969$as_echo_n "checking for ANSI C header files... " >&6; }
12970if ${ac_cv_header_stdc+:} false; then :
12971  $as_echo_n "(cached) " >&6
12972else
12973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974/* end confdefs.h.  */
12975#include <stdlib.h>
12976#include <stdarg.h>
12977#include <string.h>
12978#include <float.h>
12979
12980int
12981main ()
12982{
12983
12984  ;
12985  return 0;
12986}
12987_ACEOF
12988if ac_fn_c_try_compile "$LINENO"; then :
12989  ac_cv_header_stdc=yes
12990else
12991  ac_cv_header_stdc=no
12992fi
12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994
12995if test $ac_cv_header_stdc = yes; then
12996  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998/* end confdefs.h.  */
12999#include <string.h>
13000
13001_ACEOF
13002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13003  $EGREP "memchr" >/dev/null 2>&1; then :
13004
13005else
13006  ac_cv_header_stdc=no
13007fi
13008rm -f conftest*
13009
13010fi
13011
13012if test $ac_cv_header_stdc = yes; then
13013  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015/* end confdefs.h.  */
13016#include <stdlib.h>
13017
13018_ACEOF
13019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13020  $EGREP "free" >/dev/null 2>&1; then :
13021
13022else
13023  ac_cv_header_stdc=no
13024fi
13025rm -f conftest*
13026
13027fi
13028
13029if test $ac_cv_header_stdc = yes; then
13030  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13031  if test "$cross_compiling" = yes; then :
13032  :
13033else
13034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035/* end confdefs.h.  */
13036#include <ctype.h>
13037#include <stdlib.h>
13038#if ((' ' & 0x0FF) == 0x020)
13039# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13040# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13041#else
13042# define ISLOWER(c) \
13043		   (('a' <= (c) && (c) <= 'i') \
13044		     || ('j' <= (c) && (c) <= 'r') \
13045		     || ('s' <= (c) && (c) <= 'z'))
13046# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13047#endif
13048
13049#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13050int
13051main ()
13052{
13053  int i;
13054  for (i = 0; i < 256; i++)
13055    if (XOR (islower (i), ISLOWER (i))
13056	|| toupper (i) != TOUPPER (i))
13057      return 2;
13058  return 0;
13059}
13060_ACEOF
13061if ac_fn_c_try_run "$LINENO"; then :
13062
13063else
13064  ac_cv_header_stdc=no
13065fi
13066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13067  conftest.$ac_objext conftest.beam conftest.$ac_ext
13068fi
13069
13070fi
13071fi
13072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13073$as_echo "$ac_cv_header_stdc" >&6; }
13074if test $ac_cv_header_stdc = yes; then
13075
13076$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13077
13078fi
13079
13080for ac_header in limits.h stdlib.h string.h time64.h alloca.h
13081do :
13082  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13083ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13084if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13085  cat >>confdefs.h <<_ACEOF
13086#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13087_ACEOF
13088
13089fi
13090
13091done
13092
13093
13094ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13095if test "x$ac_cv_header_inttypes_h" = xyes; then :
13096  have_inttypes_h=yes
13097else
13098  have_inttypes_h=no
13099fi
13100
13101
13102
13103if test "x$have_inttypes_h" = "xyes"; then
13104
13105$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
13106
13107    CPPFLAGS="-DHAVE_INTTYPES_H ${CPPFLAGS}"
13108fi
13109
13110# Checks for typedefs, structures, and compiler characteristics.
13111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13112$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13113if ${ac_cv_c_const+:} false; then :
13114  $as_echo_n "(cached) " >&6
13115else
13116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117/* end confdefs.h.  */
13118
13119int
13120main ()
13121{
13122
13123#ifndef __cplusplus
13124  /* Ultrix mips cc rejects this sort of thing.  */
13125  typedef int charset[2];
13126  const charset cs = { 0, 0 };
13127  /* SunOS 4.1.1 cc rejects this.  */
13128  char const *const *pcpcc;
13129  char **ppc;
13130  /* NEC SVR4.0.2 mips cc rejects this.  */
13131  struct point {int x, y;};
13132  static struct point const zero = {0,0};
13133  /* AIX XL C 1.02.0.0 rejects this.
13134     It does not let you subtract one const X* pointer from another in
13135     an arm of an if-expression whose if-part is not a constant
13136     expression */
13137  const char *g = "string";
13138  pcpcc = &g + (g ? g-g : 0);
13139  /* HPUX 7.0 cc rejects these. */
13140  ++pcpcc;
13141  ppc = (char**) pcpcc;
13142  pcpcc = (char const *const *) ppc;
13143  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13144    char tx;
13145    char *t = &tx;
13146    char const *s = 0 ? (char *) 0 : (char const *) 0;
13147
13148    *t++ = 0;
13149    if (s) return 0;
13150  }
13151  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13152    int x[] = {25, 17};
13153    const int *foo = &x[0];
13154    ++foo;
13155  }
13156  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13157    typedef const int *iptr;
13158    iptr p = 0;
13159    ++p;
13160  }
13161  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13162       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13163    struct s { int j; const int *ap[3]; } bx;
13164    struct s *b = &bx; b->j = 5;
13165  }
13166  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13167    const int foo = 10;
13168    if (!foo) return 0;
13169  }
13170  return !cs[0] && !zero.x;
13171#endif
13172
13173  ;
13174  return 0;
13175}
13176_ACEOF
13177if ac_fn_c_try_compile "$LINENO"; then :
13178  ac_cv_c_const=yes
13179else
13180  ac_cv_c_const=no
13181fi
13182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183fi
13184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13185$as_echo "$ac_cv_c_const" >&6; }
13186if test $ac_cv_c_const = no; then
13187
13188$as_echo "#define const /**/" >>confdefs.h
13189
13190fi
13191
13192ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13193if test "x$ac_cv_type_size_t" = xyes; then :
13194
13195else
13196
13197cat >>confdefs.h <<_ACEOF
13198#define size_t unsigned int
13199_ACEOF
13200
13201fi
13202
13203
13204# Checks for library functions.
13205for ac_header in stdlib.h
13206do :
13207  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13208if test "x$ac_cv_header_stdlib_h" = xyes; then :
13209  cat >>confdefs.h <<_ACEOF
13210#define HAVE_STDLIB_H 1
13211_ACEOF
13212
13213fi
13214
13215done
13216
13217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13218$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13219if ${ac_cv_func_malloc_0_nonnull+:} false; then :
13220  $as_echo_n "(cached) " >&6
13221else
13222  if test "$cross_compiling" = yes; then :
13223  ac_cv_func_malloc_0_nonnull=no
13224else
13225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226/* end confdefs.h.  */
13227#if defined STDC_HEADERS || defined HAVE_STDLIB_H
13228# include <stdlib.h>
13229#else
13230char *malloc ();
13231#endif
13232
13233int
13234main ()
13235{
13236return ! malloc (0);
13237  ;
13238  return 0;
13239}
13240_ACEOF
13241if ac_fn_c_try_run "$LINENO"; then :
13242  ac_cv_func_malloc_0_nonnull=yes
13243else
13244  ac_cv_func_malloc_0_nonnull=no
13245fi
13246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13247  conftest.$ac_objext conftest.beam conftest.$ac_ext
13248fi
13249
13250fi
13251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13252$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13253if test $ac_cv_func_malloc_0_nonnull = yes; then :
13254
13255$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13256
13257else
13258  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13259
13260   case " $LIBOBJS " in
13261  *" malloc.$ac_objext "* ) ;;
13262  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13263 ;;
13264esac
13265
13266
13267$as_echo "#define malloc rpl_malloc" >>confdefs.h
13268
13269fi
13270
13271
13272
13273# _mkgmtime is available in Windows, behaves like timegm.
13274# _mkgmtime is for mingw. mkgmtime is for NetWare.
13275# Newer Android NDKs have timegm64 in the time64.h header.
13276for ac_func in memset strtol strtoll timegm64 _mkgmtime mkgmtime
13277do :
13278  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13279ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13280if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13281  cat >>confdefs.h <<_ACEOF
13282#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13283_ACEOF
13284
13285fi
13286done
13287
13288ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
13289if test "x$ac_cv_func_timegm" = xyes; then :
13290  have_timegm=yes
13291else
13292  have_timegm=no
13293fi
13294
13295
13296if test "x$have_timegm" = "xyes"; then
13297
13298$as_echo "#define HAVE_TIMEGM 1" >>confdefs.h
13299
13300fi
13301 if  test "x$have_timegm" = "xyes" ; then
13302  HAVE_TIMEGM_TRUE=
13303  HAVE_TIMEGM_FALSE='#'
13304else
13305  HAVE_TIMEGM_TRUE='#'
13306  HAVE_TIMEGM_FALSE=
13307fi
13308
13309
13310
13311ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13312if test "x$ac_cv_func_strptime" = xyes; then :
13313  have_strptime=yes
13314else
13315  have_strptime=no
13316fi
13317
13318
13319if test "x$have_strptime" = "xyes"; then
13320
13321$as_echo "#define HAVE_STRPTIME 1" >>confdefs.h
13322
13323fi
13324 if  test "x$have_strptime" = "xyes" ; then
13325  HAVE_STRPTIME_TRUE=
13326  HAVE_STRPTIME_FALSE='#'
13327else
13328  HAVE_STRPTIME_TRUE='#'
13329  HAVE_STRPTIME_FALSE=
13330fi
13331
13332
13333if test "x$maintainer_mode" != "xno"; then
13334    CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith -Wdeclaration-after-statement -Werror=declaration-after-statement -Wformat -Wformat-security -Werror=format-security -Wimplicit-function-declaration -Werror=implicit-function-declaration $CFLAGS"
13335fi
13336
13337if test "x$gcc_visibility" != "xno"; then
13338    CFLAGS="-fvisibility=hidden $CFLAGS"
13339
13340$as_echo "#define GCC_VISIBILITY 1" >>confdefs.h
13341
13342fi
13343
13344ac_config_headers="$ac_config_headers config.h"
13345
13346ac_config_files="$ac_config_files Makefile lib/Makefile lib/libmetalink.pc lib/includes/metalink/metalinkver.h lib/includes/Makefile test/Makefile doc/Makefile doc/examples/Makefile doc/man3/Makefile m4/Makefile"
13347
13348cat >confcache <<\_ACEOF
13349# This file is a shell script that caches the results of configure
13350# tests run on this system so they can be shared between configure
13351# scripts and configure runs, see configure's option --config-cache.
13352# It is not useful on other systems.  If it contains results you don't
13353# want to keep, you may remove or edit it.
13354#
13355# config.status only pays attention to the cache file if you give it
13356# the --recheck option to rerun configure.
13357#
13358# `ac_cv_env_foo' variables (set or unset) will be overridden when
13359# loading this file, other *unset* `ac_cv_foo' will be assigned the
13360# following values.
13361
13362_ACEOF
13363
13364# The following way of writing the cache mishandles newlines in values,
13365# but we know of no workaround that is simple, portable, and efficient.
13366# So, we kill variables containing newlines.
13367# Ultrix sh set writes to stderr and can't be redirected directly,
13368# and sets the high bit in the cache file unless we assign to the vars.
13369(
13370  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13371    eval ac_val=\$$ac_var
13372    case $ac_val in #(
13373    *${as_nl}*)
13374      case $ac_var in #(
13375      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13376$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13377      esac
13378      case $ac_var in #(
13379      _ | IFS | as_nl) ;; #(
13380      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13381      *) { eval $ac_var=; unset $ac_var;} ;;
13382      esac ;;
13383    esac
13384  done
13385
13386  (set) 2>&1 |
13387    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13388    *${as_nl}ac_space=\ *)
13389      # `set' does not quote correctly, so add quotes: double-quote
13390      # substitution turns \\\\ into \\, and sed turns \\ into \.
13391      sed -n \
13392	"s/'/'\\\\''/g;
13393	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13394      ;; #(
13395    *)
13396      # `set' quotes correctly as required by POSIX, so do not add quotes.
13397      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13398      ;;
13399    esac |
13400    sort
13401) |
13402  sed '
13403     /^ac_cv_env_/b end
13404     t clear
13405     :clear
13406     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13407     t end
13408     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13409     :end' >>confcache
13410if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13411  if test -w "$cache_file"; then
13412    if test "x$cache_file" != "x/dev/null"; then
13413      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13414$as_echo "$as_me: updating cache $cache_file" >&6;}
13415      if test ! -f "$cache_file" || test -h "$cache_file"; then
13416	cat confcache >"$cache_file"
13417      else
13418        case $cache_file in #(
13419        */* | ?:*)
13420	  mv -f confcache "$cache_file"$$ &&
13421	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13422        *)
13423	  mv -f confcache "$cache_file" ;;
13424	esac
13425      fi
13426    fi
13427  else
13428    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13429$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13430  fi
13431fi
13432rm -f confcache
13433
13434test "x$prefix" = xNONE && prefix=$ac_default_prefix
13435# Let make expand exec_prefix.
13436test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13437
13438DEFS=-DHAVE_CONFIG_H
13439
13440ac_libobjs=
13441ac_ltlibobjs=
13442U=
13443for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13444  # 1. Remove the extension, and $U if already installed.
13445  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13446  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13447  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13448  #    will be set to the directory where LIBOBJS objects are built.
13449  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13450  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13451done
13452LIBOBJS=$ac_libobjs
13453
13454LTLIBOBJS=$ac_ltlibobjs
13455
13456
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13458$as_echo_n "checking that generated files are newer than configure... " >&6; }
13459   if test -n "$am_sleep_pid"; then
13460     # Hide warnings about reused PIDs.
13461     wait $am_sleep_pid 2>/dev/null
13462   fi
13463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13464$as_echo "done" >&6; }
13465if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13466  as_fn_error $? "conditional \"AMDEP\" was never defined.
13467Usually this means the macro was only invoked conditionally." "$LINENO" 5
13468fi
13469if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13470  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13471Usually this means the macro was only invoked conditionally." "$LINENO" 5
13472fi
13473 if test -n "$EXEEXT"; then
13474  am__EXEEXT_TRUE=
13475  am__EXEEXT_FALSE='#'
13476else
13477  am__EXEEXT_TRUE='#'
13478  am__EXEEXT_FALSE=
13479fi
13480
13481if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
13482  as_fn_error $? "conditional \"ENABLE_LIBEXPAT\" was never defined.
13483Usually this means the macro was only invoked conditionally." "$LINENO" 5
13484fi
13485if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
13486  as_fn_error $? "conditional \"ENABLE_LIBXML2\" was never defined.
13487Usually this means the macro was only invoked conditionally." "$LINENO" 5
13488fi
13489if test -z "${HAVE_CUNIT_TRUE}" && test -z "${HAVE_CUNIT_FALSE}"; then
13490  as_fn_error $? "conditional \"HAVE_CUNIT\" was never defined.
13491Usually this means the macro was only invoked conditionally." "$LINENO" 5
13492fi
13493if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
13494  as_fn_error $? "conditional \"HAVE_TIMEGM\" was never defined.
13495Usually this means the macro was only invoked conditionally." "$LINENO" 5
13496fi
13497if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
13498  as_fn_error $? "conditional \"HAVE_STRPTIME\" was never defined.
13499Usually this means the macro was only invoked conditionally." "$LINENO" 5
13500fi
13501
13502: "${CONFIG_STATUS=./config.status}"
13503ac_write_fail=0
13504ac_clean_files_save=$ac_clean_files
13505ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13507$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13508as_write_fail=0
13509cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13510#! $SHELL
13511# Generated by $as_me.
13512# Run this file to recreate the current configuration.
13513# Compiler output produced by configure, useful for debugging
13514# configure, is in config.log if it exists.
13515
13516debug=false
13517ac_cs_recheck=false
13518ac_cs_silent=false
13519
13520SHELL=\${CONFIG_SHELL-$SHELL}
13521export SHELL
13522_ASEOF
13523cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13524## -------------------- ##
13525## M4sh Initialization. ##
13526## -------------------- ##
13527
13528# Be more Bourne compatible
13529DUALCASE=1; export DUALCASE # for MKS sh
13530if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13531  emulate sh
13532  NULLCMD=:
13533  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13534  # is contrary to our usage.  Disable this feature.
13535  alias -g '${1+"$@"}'='"$@"'
13536  setopt NO_GLOB_SUBST
13537else
13538  case `(set -o) 2>/dev/null` in #(
13539  *posix*) :
13540    set -o posix ;; #(
13541  *) :
13542     ;;
13543esac
13544fi
13545
13546
13547as_nl='
13548'
13549export as_nl
13550# Printing a long string crashes Solaris 7 /usr/bin/printf.
13551as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13552as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13553as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13554# Prefer a ksh shell builtin over an external printf program on Solaris,
13555# but without wasting forks for bash or zsh.
13556if test -z "$BASH_VERSION$ZSH_VERSION" \
13557    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13558  as_echo='print -r --'
13559  as_echo_n='print -rn --'
13560elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13561  as_echo='printf %s\n'
13562  as_echo_n='printf %s'
13563else
13564  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13565    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13566    as_echo_n='/usr/ucb/echo -n'
13567  else
13568    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13569    as_echo_n_body='eval
13570      arg=$1;
13571      case $arg in #(
13572      *"$as_nl"*)
13573	expr "X$arg" : "X\\(.*\\)$as_nl";
13574	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13575      esac;
13576      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13577    '
13578    export as_echo_n_body
13579    as_echo_n='sh -c $as_echo_n_body as_echo'
13580  fi
13581  export as_echo_body
13582  as_echo='sh -c $as_echo_body as_echo'
13583fi
13584
13585# The user is always right.
13586if test "${PATH_SEPARATOR+set}" != set; then
13587  PATH_SEPARATOR=:
13588  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13589    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13590      PATH_SEPARATOR=';'
13591  }
13592fi
13593
13594
13595# IFS
13596# We need space, tab and new line, in precisely that order.  Quoting is
13597# there to prevent editors from complaining about space-tab.
13598# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13599# splitting by setting IFS to empty value.)
13600IFS=" ""	$as_nl"
13601
13602# Find who we are.  Look in the path if we contain no directory separator.
13603as_myself=
13604case $0 in #((
13605  *[\\/]* ) as_myself=$0 ;;
13606  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607for as_dir in $PATH
13608do
13609  IFS=$as_save_IFS
13610  test -z "$as_dir" && as_dir=.
13611    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13612  done
13613IFS=$as_save_IFS
13614
13615     ;;
13616esac
13617# We did not find ourselves, most probably we were run as `sh COMMAND'
13618# in which case we are not to be found in the path.
13619if test "x$as_myself" = x; then
13620  as_myself=$0
13621fi
13622if test ! -f "$as_myself"; then
13623  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13624  exit 1
13625fi
13626
13627# Unset variables that we do not need and which cause bugs (e.g. in
13628# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13629# suppresses any "Segmentation fault" message there.  '((' could
13630# trigger a bug in pdksh 5.2.14.
13631for as_var in BASH_ENV ENV MAIL MAILPATH
13632do eval test x\${$as_var+set} = xset \
13633  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13634done
13635PS1='$ '
13636PS2='> '
13637PS4='+ '
13638
13639# NLS nuisances.
13640LC_ALL=C
13641export LC_ALL
13642LANGUAGE=C
13643export LANGUAGE
13644
13645# CDPATH.
13646(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13647
13648
13649# as_fn_error STATUS ERROR [LINENO LOG_FD]
13650# ----------------------------------------
13651# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13652# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13653# script with STATUS, using 1 if that was 0.
13654as_fn_error ()
13655{
13656  as_status=$1; test $as_status -eq 0 && as_status=1
13657  if test "$4"; then
13658    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13659    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13660  fi
13661  $as_echo "$as_me: error: $2" >&2
13662  as_fn_exit $as_status
13663} # as_fn_error
13664
13665
13666# as_fn_set_status STATUS
13667# -----------------------
13668# Set $? to STATUS, without forking.
13669as_fn_set_status ()
13670{
13671  return $1
13672} # as_fn_set_status
13673
13674# as_fn_exit STATUS
13675# -----------------
13676# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13677as_fn_exit ()
13678{
13679  set +e
13680  as_fn_set_status $1
13681  exit $1
13682} # as_fn_exit
13683
13684# as_fn_unset VAR
13685# ---------------
13686# Portably unset VAR.
13687as_fn_unset ()
13688{
13689  { eval $1=; unset $1;}
13690}
13691as_unset=as_fn_unset
13692# as_fn_append VAR VALUE
13693# ----------------------
13694# Append the text in VALUE to the end of the definition contained in VAR. Take
13695# advantage of any shell optimizations that allow amortized linear growth over
13696# repeated appends, instead of the typical quadratic growth present in naive
13697# implementations.
13698if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13699  eval 'as_fn_append ()
13700  {
13701    eval $1+=\$2
13702  }'
13703else
13704  as_fn_append ()
13705  {
13706    eval $1=\$$1\$2
13707  }
13708fi # as_fn_append
13709
13710# as_fn_arith ARG...
13711# ------------------
13712# Perform arithmetic evaluation on the ARGs, and store the result in the
13713# global $as_val. Take advantage of shells that can avoid forks. The arguments
13714# must be portable across $(()) and expr.
13715if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13716  eval 'as_fn_arith ()
13717  {
13718    as_val=$(( $* ))
13719  }'
13720else
13721  as_fn_arith ()
13722  {
13723    as_val=`expr "$@" || test $? -eq 1`
13724  }
13725fi # as_fn_arith
13726
13727
13728if expr a : '\(a\)' >/dev/null 2>&1 &&
13729   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13730  as_expr=expr
13731else
13732  as_expr=false
13733fi
13734
13735if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13736  as_basename=basename
13737else
13738  as_basename=false
13739fi
13740
13741if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13742  as_dirname=dirname
13743else
13744  as_dirname=false
13745fi
13746
13747as_me=`$as_basename -- "$0" ||
13748$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13749	 X"$0" : 'X\(//\)$' \| \
13750	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13751$as_echo X/"$0" |
13752    sed '/^.*\/\([^/][^/]*\)\/*$/{
13753	    s//\1/
13754	    q
13755	  }
13756	  /^X\/\(\/\/\)$/{
13757	    s//\1/
13758	    q
13759	  }
13760	  /^X\/\(\/\).*/{
13761	    s//\1/
13762	    q
13763	  }
13764	  s/.*/./; q'`
13765
13766# Avoid depending upon Character Ranges.
13767as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13768as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13769as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13770as_cr_digits='0123456789'
13771as_cr_alnum=$as_cr_Letters$as_cr_digits
13772
13773ECHO_C= ECHO_N= ECHO_T=
13774case `echo -n x` in #(((((
13775-n*)
13776  case `echo 'xy\c'` in
13777  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13778  xy)  ECHO_C='\c';;
13779  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13780       ECHO_T='	';;
13781  esac;;
13782*)
13783  ECHO_N='-n';;
13784esac
13785
13786rm -f conf$$ conf$$.exe conf$$.file
13787if test -d conf$$.dir; then
13788  rm -f conf$$.dir/conf$$.file
13789else
13790  rm -f conf$$.dir
13791  mkdir conf$$.dir 2>/dev/null
13792fi
13793if (echo >conf$$.file) 2>/dev/null; then
13794  if ln -s conf$$.file conf$$ 2>/dev/null; then
13795    as_ln_s='ln -s'
13796    # ... but there are two gotchas:
13797    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13798    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13799    # In both cases, we have to default to `cp -pR'.
13800    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13801      as_ln_s='cp -pR'
13802  elif ln conf$$.file conf$$ 2>/dev/null; then
13803    as_ln_s=ln
13804  else
13805    as_ln_s='cp -pR'
13806  fi
13807else
13808  as_ln_s='cp -pR'
13809fi
13810rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13811rmdir conf$$.dir 2>/dev/null
13812
13813
13814# as_fn_mkdir_p
13815# -------------
13816# Create "$as_dir" as a directory, including parents if necessary.
13817as_fn_mkdir_p ()
13818{
13819
13820  case $as_dir in #(
13821  -*) as_dir=./$as_dir;;
13822  esac
13823  test -d "$as_dir" || eval $as_mkdir_p || {
13824    as_dirs=
13825    while :; do
13826      case $as_dir in #(
13827      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13828      *) as_qdir=$as_dir;;
13829      esac
13830      as_dirs="'$as_qdir' $as_dirs"
13831      as_dir=`$as_dirname -- "$as_dir" ||
13832$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13833	 X"$as_dir" : 'X\(//\)[^/]' \| \
13834	 X"$as_dir" : 'X\(//\)$' \| \
13835	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13836$as_echo X"$as_dir" |
13837    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13838	    s//\1/
13839	    q
13840	  }
13841	  /^X\(\/\/\)[^/].*/{
13842	    s//\1/
13843	    q
13844	  }
13845	  /^X\(\/\/\)$/{
13846	    s//\1/
13847	    q
13848	  }
13849	  /^X\(\/\).*/{
13850	    s//\1/
13851	    q
13852	  }
13853	  s/.*/./; q'`
13854      test -d "$as_dir" && break
13855    done
13856    test -z "$as_dirs" || eval "mkdir $as_dirs"
13857  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13858
13859
13860} # as_fn_mkdir_p
13861if mkdir -p . 2>/dev/null; then
13862  as_mkdir_p='mkdir -p "$as_dir"'
13863else
13864  test -d ./-p && rmdir ./-p
13865  as_mkdir_p=false
13866fi
13867
13868
13869# as_fn_executable_p FILE
13870# -----------------------
13871# Test if FILE is an executable regular file.
13872as_fn_executable_p ()
13873{
13874  test -f "$1" && test -x "$1"
13875} # as_fn_executable_p
13876as_test_x='test -x'
13877as_executable_p=as_fn_executable_p
13878
13879# Sed expression to map a string onto a valid CPP name.
13880as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13881
13882# Sed expression to map a string onto a valid variable name.
13883as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13884
13885
13886exec 6>&1
13887## ----------------------------------- ##
13888## Main body of $CONFIG_STATUS script. ##
13889## ----------------------------------- ##
13890_ASEOF
13891test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13892
13893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13894# Save the log message, to keep $0 and so on meaningful, and to
13895# report actual input values of CONFIG_FILES etc. instead of their
13896# values after options handling.
13897ac_log="
13898This file was extended by libmetalink $as_me 0.1.3, which was
13899generated by GNU Autoconf 2.69.  Invocation command line was
13900
13901  CONFIG_FILES    = $CONFIG_FILES
13902  CONFIG_HEADERS  = $CONFIG_HEADERS
13903  CONFIG_LINKS    = $CONFIG_LINKS
13904  CONFIG_COMMANDS = $CONFIG_COMMANDS
13905  $ $0 $@
13906
13907on `(hostname || uname -n) 2>/dev/null | sed 1q`
13908"
13909
13910_ACEOF
13911
13912case $ac_config_files in *"
13913"*) set x $ac_config_files; shift; ac_config_files=$*;;
13914esac
13915
13916case $ac_config_headers in *"
13917"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13918esac
13919
13920
13921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13922# Files that config.status was made for.
13923config_files="$ac_config_files"
13924config_headers="$ac_config_headers"
13925config_commands="$ac_config_commands"
13926
13927_ACEOF
13928
13929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13930ac_cs_usage="\
13931\`$as_me' instantiates files and other configuration actions
13932from templates according to the current configuration.  Unless the files
13933and actions are specified as TAGs, all are instantiated by default.
13934
13935Usage: $0 [OPTION]... [TAG]...
13936
13937  -h, --help       print this help, then exit
13938  -V, --version    print version number and configuration settings, then exit
13939      --config     print configuration, then exit
13940  -q, --quiet, --silent
13941                   do not print progress messages
13942  -d, --debug      don't remove temporary files
13943      --recheck    update $as_me by reconfiguring in the same conditions
13944      --file=FILE[:TEMPLATE]
13945                   instantiate the configuration file FILE
13946      --header=FILE[:TEMPLATE]
13947                   instantiate the configuration header FILE
13948
13949Configuration files:
13950$config_files
13951
13952Configuration headers:
13953$config_headers
13954
13955Configuration commands:
13956$config_commands
13957
13958Report bugs to <t-tujikawa@users.sourceforge.net>."
13959
13960_ACEOF
13961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13962ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13963ac_cs_version="\\
13964libmetalink config.status 0.1.3
13965configured by $0, generated by GNU Autoconf 2.69,
13966  with options \\"\$ac_cs_config\\"
13967
13968Copyright (C) 2012 Free Software Foundation, Inc.
13969This config.status script is free software; the Free Software Foundation
13970gives unlimited permission to copy, distribute and modify it."
13971
13972ac_pwd='$ac_pwd'
13973srcdir='$srcdir'
13974INSTALL='$INSTALL'
13975MKDIR_P='$MKDIR_P'
13976AWK='$AWK'
13977test -n "\$AWK" || AWK=awk
13978_ACEOF
13979
13980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13981# The default lists apply if the user does not specify any file.
13982ac_need_defaults=:
13983while test $# != 0
13984do
13985  case $1 in
13986  --*=?*)
13987    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13988    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13989    ac_shift=:
13990    ;;
13991  --*=)
13992    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13993    ac_optarg=
13994    ac_shift=:
13995    ;;
13996  *)
13997    ac_option=$1
13998    ac_optarg=$2
13999    ac_shift=shift
14000    ;;
14001  esac
14002
14003  case $ac_option in
14004  # Handling of the options.
14005  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14006    ac_cs_recheck=: ;;
14007  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14008    $as_echo "$ac_cs_version"; exit ;;
14009  --config | --confi | --conf | --con | --co | --c )
14010    $as_echo "$ac_cs_config"; exit ;;
14011  --debug | --debu | --deb | --de | --d | -d )
14012    debug=: ;;
14013  --file | --fil | --fi | --f )
14014    $ac_shift
14015    case $ac_optarg in
14016    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14017    '') as_fn_error $? "missing file argument" ;;
14018    esac
14019    as_fn_append CONFIG_FILES " '$ac_optarg'"
14020    ac_need_defaults=false;;
14021  --header | --heade | --head | --hea )
14022    $ac_shift
14023    case $ac_optarg in
14024    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14025    esac
14026    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14027    ac_need_defaults=false;;
14028  --he | --h)
14029    # Conflict between --help and --header
14030    as_fn_error $? "ambiguous option: \`$1'
14031Try \`$0 --help' for more information.";;
14032  --help | --hel | -h )
14033    $as_echo "$ac_cs_usage"; exit ;;
14034  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14035  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14036    ac_cs_silent=: ;;
14037
14038  # This is an error.
14039  -*) as_fn_error $? "unrecognized option: \`$1'
14040Try \`$0 --help' for more information." ;;
14041
14042  *) as_fn_append ac_config_targets " $1"
14043     ac_need_defaults=false ;;
14044
14045  esac
14046  shift
14047done
14048
14049ac_configure_extra_args=
14050
14051if $ac_cs_silent; then
14052  exec 6>/dev/null
14053  ac_configure_extra_args="$ac_configure_extra_args --silent"
14054fi
14055
14056_ACEOF
14057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14058if \$ac_cs_recheck; then
14059  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14060  shift
14061  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14062  CONFIG_SHELL='$SHELL'
14063  export CONFIG_SHELL
14064  exec "\$@"
14065fi
14066
14067_ACEOF
14068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14069exec 5>>config.log
14070{
14071  echo
14072  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14073## Running $as_me. ##
14074_ASBOX
14075  $as_echo "$ac_log"
14076} >&5
14077
14078_ACEOF
14079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14080#
14081# INIT-COMMANDS
14082#
14083
14084
14085# The HP-UX ksh and POSIX shell print the target directory to stdout
14086# if CDPATH is set.
14087(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14088
14089sed_quote_subst='$sed_quote_subst'
14090double_quote_subst='$double_quote_subst'
14091delay_variable_subst='$delay_variable_subst'
14092macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14093macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14094enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14095enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14096pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14097enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14098SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14099ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14100PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14101host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14102host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14103host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14104build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14105build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14106build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14107SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14108Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14109GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14110EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14111FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14112LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14113NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14114LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14115max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14116ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14117exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14118lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14119lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14120lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14121lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14122lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14123reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14124reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14125OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14126deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14127file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14128file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14129want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14130DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14131sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14132AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14133AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14134archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14135STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14136RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14137old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14138old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14139old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14140lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14141CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14142CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14143compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14144GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14145lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14146lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14147lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14148lt_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"`'
14149nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14150lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14151objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14152MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14153lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14154lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14155lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14156lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14157lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14158need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14159MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14160DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14161NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14162LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14163OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14164OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14165libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14166shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14167extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14168archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14169enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14170export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14171whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14172compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14173old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14174old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14175archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14176archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14177module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14178module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14179with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14180allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14181no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14182hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14183hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14184hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14185hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14186hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14187hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14188hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14189inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14190link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14191always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14192export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14193exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14194include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14195prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14196postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14197file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14198variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14199need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14200need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14201version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14202runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14203shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14204shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14205libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14206library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14207soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14208install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14209postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14210postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14211finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14212finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14213hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14214sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14215sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14216hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14217enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14218enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14219enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14220old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14221striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14222
14223LTCC='$LTCC'
14224LTCFLAGS='$LTCFLAGS'
14225compiler='$compiler_DEFAULT'
14226
14227# A function that is used when there is no print builtin or printf.
14228func_fallback_echo ()
14229{
14230  eval 'cat <<_LTECHO_EOF
14231\$1
14232_LTECHO_EOF'
14233}
14234
14235# Quote evaled strings.
14236for var in SHELL \
14237ECHO \
14238PATH_SEPARATOR \
14239SED \
14240GREP \
14241EGREP \
14242FGREP \
14243LD \
14244NM \
14245LN_S \
14246lt_SP2NL \
14247lt_NL2SP \
14248reload_flag \
14249OBJDUMP \
14250deplibs_check_method \
14251file_magic_cmd \
14252file_magic_glob \
14253want_nocaseglob \
14254DLLTOOL \
14255sharedlib_from_linklib_cmd \
14256AR \
14257AR_FLAGS \
14258archiver_list_spec \
14259STRIP \
14260RANLIB \
14261CC \
14262CFLAGS \
14263compiler \
14264lt_cv_sys_global_symbol_pipe \
14265lt_cv_sys_global_symbol_to_cdecl \
14266lt_cv_sys_global_symbol_to_c_name_address \
14267lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14268nm_file_list_spec \
14269lt_prog_compiler_no_builtin_flag \
14270lt_prog_compiler_pic \
14271lt_prog_compiler_wl \
14272lt_prog_compiler_static \
14273lt_cv_prog_compiler_c_o \
14274need_locks \
14275MANIFEST_TOOL \
14276DSYMUTIL \
14277NMEDIT \
14278LIPO \
14279OTOOL \
14280OTOOL64 \
14281shrext_cmds \
14282export_dynamic_flag_spec \
14283whole_archive_flag_spec \
14284compiler_needs_object \
14285with_gnu_ld \
14286allow_undefined_flag \
14287no_undefined_flag \
14288hardcode_libdir_flag_spec \
14289hardcode_libdir_separator \
14290exclude_expsyms \
14291include_expsyms \
14292file_list_spec \
14293variables_saved_for_relink \
14294libname_spec \
14295library_names_spec \
14296soname_spec \
14297install_override_mode \
14298finish_eval \
14299old_striplib \
14300striplib; do
14301    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14302    *[\\\\\\\`\\"\\\$]*)
14303      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14304      ;;
14305    *)
14306      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14307      ;;
14308    esac
14309done
14310
14311# Double-quote double-evaled strings.
14312for var in reload_cmds \
14313old_postinstall_cmds \
14314old_postuninstall_cmds \
14315old_archive_cmds \
14316extract_expsyms_cmds \
14317old_archive_from_new_cmds \
14318old_archive_from_expsyms_cmds \
14319archive_cmds \
14320archive_expsym_cmds \
14321module_cmds \
14322module_expsym_cmds \
14323export_symbols_cmds \
14324prelink_cmds \
14325postlink_cmds \
14326postinstall_cmds \
14327postuninstall_cmds \
14328finish_cmds \
14329sys_lib_search_path_spec \
14330sys_lib_dlsearch_path_spec; do
14331    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14332    *[\\\\\\\`\\"\\\$]*)
14333      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14334      ;;
14335    *)
14336      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14337      ;;
14338    esac
14339done
14340
14341ac_aux_dir='$ac_aux_dir'
14342xsi_shell='$xsi_shell'
14343lt_shell_append='$lt_shell_append'
14344
14345# See if we are running on zsh, and set the options which allow our
14346# commands through without removal of \ escapes INIT.
14347if test -n "\${ZSH_VERSION+set}" ; then
14348   setopt NO_GLOB_SUBST
14349fi
14350
14351
14352    PACKAGE='$PACKAGE'
14353    VERSION='$VERSION'
14354    TIMESTAMP='$TIMESTAMP'
14355    RM='$RM'
14356    ofile='$ofile'
14357
14358
14359
14360AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14361
14362_ACEOF
14363
14364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14365
14366# Handling of arguments.
14367for ac_config_target in $ac_config_targets
14368do
14369  case $ac_config_target in
14370    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14371    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14372    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14373    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14374    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14375    "lib/libmetalink.pc") CONFIG_FILES="$CONFIG_FILES lib/libmetalink.pc" ;;
14376    "lib/includes/metalink/metalinkver.h") CONFIG_FILES="$CONFIG_FILES lib/includes/metalink/metalinkver.h" ;;
14377    "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
14378    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14379    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14380    "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
14381    "doc/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man3/Makefile" ;;
14382    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
14383
14384  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14385  esac
14386done
14387
14388
14389# If the user did not use the arguments to specify the items to instantiate,
14390# then the envvar interface is used.  Set only those that are not.
14391# We use the long form for the default assignment because of an extremely
14392# bizarre bug on SunOS 4.1.3.
14393if $ac_need_defaults; then
14394  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14395  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14396  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14397fi
14398
14399# Have a temporary directory for convenience.  Make it in the build tree
14400# simply because there is no reason against having it here, and in addition,
14401# creating and moving files from /tmp can sometimes cause problems.
14402# Hook for its removal unless debugging.
14403# Note that there is a small window in which the directory will not be cleaned:
14404# after its creation but before its name has been assigned to `$tmp'.
14405$debug ||
14406{
14407  tmp= ac_tmp=
14408  trap 'exit_status=$?
14409  : "${ac_tmp:=$tmp}"
14410  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14411' 0
14412  trap 'as_fn_exit 1' 1 2 13 15
14413}
14414# Create a (secure) tmp directory for tmp files.
14415
14416{
14417  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14418  test -d "$tmp"
14419}  ||
14420{
14421  tmp=./conf$$-$RANDOM
14422  (umask 077 && mkdir "$tmp")
14423} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14424ac_tmp=$tmp
14425
14426# Set up the scripts for CONFIG_FILES section.
14427# No need to generate them if there are no CONFIG_FILES.
14428# This happens for instance with `./config.status config.h'.
14429if test -n "$CONFIG_FILES"; then
14430
14431
14432ac_cr=`echo X | tr X '\015'`
14433# On cygwin, bash can eat \r inside `` if the user requested igncr.
14434# But we know of no other shell where ac_cr would be empty at this
14435# point, so we can use a bashism as a fallback.
14436if test "x$ac_cr" = x; then
14437  eval ac_cr=\$\'\\r\'
14438fi
14439ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14440if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14441  ac_cs_awk_cr='\\r'
14442else
14443  ac_cs_awk_cr=$ac_cr
14444fi
14445
14446echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14447_ACEOF
14448
14449
14450{
14451  echo "cat >conf$$subs.awk <<_ACEOF" &&
14452  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14453  echo "_ACEOF"
14454} >conf$$subs.sh ||
14455  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14456ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14457ac_delim='%!_!# '
14458for ac_last_try in false false false false false :; do
14459  . ./conf$$subs.sh ||
14460    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14461
14462  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14463  if test $ac_delim_n = $ac_delim_num; then
14464    break
14465  elif $ac_last_try; then
14466    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14467  else
14468    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14469  fi
14470done
14471rm -f conf$$subs.sh
14472
14473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14474cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14475_ACEOF
14476sed -n '
14477h
14478s/^/S["/; s/!.*/"]=/
14479p
14480g
14481s/^[^!]*!//
14482:repl
14483t repl
14484s/'"$ac_delim"'$//
14485t delim
14486:nl
14487h
14488s/\(.\{148\}\)..*/\1/
14489t more1
14490s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14491p
14492n
14493b repl
14494:more1
14495s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14496p
14497g
14498s/.\{148\}//
14499t nl
14500:delim
14501h
14502s/\(.\{148\}\)..*/\1/
14503t more2
14504s/["\\]/\\&/g; s/^/"/; s/$/"/
14505p
14506b
14507:more2
14508s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14509p
14510g
14511s/.\{148\}//
14512t delim
14513' <conf$$subs.awk | sed '
14514/^[^""]/{
14515  N
14516  s/\n//
14517}
14518' >>$CONFIG_STATUS || ac_write_fail=1
14519rm -f conf$$subs.awk
14520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14521_ACAWK
14522cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14523  for (key in S) S_is_set[key] = 1
14524  FS = ""
14525
14526}
14527{
14528  line = $ 0
14529  nfields = split(line, field, "@")
14530  substed = 0
14531  len = length(field[1])
14532  for (i = 2; i < nfields; i++) {
14533    key = field[i]
14534    keylen = length(key)
14535    if (S_is_set[key]) {
14536      value = S[key]
14537      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14538      len += length(value) + length(field[++i])
14539      substed = 1
14540    } else
14541      len += 1 + keylen
14542  }
14543
14544  print line
14545}
14546
14547_ACAWK
14548_ACEOF
14549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14550if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14551  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14552else
14553  cat
14554fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14555  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14556_ACEOF
14557
14558# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14559# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14560# trailing colons and then remove the whole line if VPATH becomes empty
14561# (actually we leave an empty line to preserve line numbers).
14562if test "x$srcdir" = x.; then
14563  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14564h
14565s///
14566s/^/:/
14567s/[	 ]*$/:/
14568s/:\$(srcdir):/:/g
14569s/:\${srcdir}:/:/g
14570s/:@srcdir@:/:/g
14571s/^:*//
14572s/:*$//
14573x
14574s/\(=[	 ]*\).*/\1/
14575G
14576s/\n//
14577s/^[^=]*=[	 ]*$//
14578}'
14579fi
14580
14581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14582fi # test -n "$CONFIG_FILES"
14583
14584# Set up the scripts for CONFIG_HEADERS section.
14585# No need to generate them if there are no CONFIG_HEADERS.
14586# This happens for instance with `./config.status Makefile'.
14587if test -n "$CONFIG_HEADERS"; then
14588cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14589BEGIN {
14590_ACEOF
14591
14592# Transform confdefs.h into an awk script `defines.awk', embedded as
14593# here-document in config.status, that substitutes the proper values into
14594# config.h.in to produce config.h.
14595
14596# Create a delimiter string that does not exist in confdefs.h, to ease
14597# handling of long lines.
14598ac_delim='%!_!# '
14599for ac_last_try in false false :; do
14600  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14601  if test -z "$ac_tt"; then
14602    break
14603  elif $ac_last_try; then
14604    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14605  else
14606    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14607  fi
14608done
14609
14610# For the awk script, D is an array of macro values keyed by name,
14611# likewise P contains macro parameters if any.  Preserve backslash
14612# newline sequences.
14613
14614ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14615sed -n '
14616s/.\{148\}/&'"$ac_delim"'/g
14617t rset
14618:rset
14619s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14620t def
14621d
14622:def
14623s/\\$//
14624t bsnl
14625s/["\\]/\\&/g
14626s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14627D["\1"]=" \3"/p
14628s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14629d
14630:bsnl
14631s/["\\]/\\&/g
14632s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14633D["\1"]=" \3\\\\\\n"\\/p
14634t cont
14635s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14636t cont
14637d
14638:cont
14639n
14640s/.\{148\}/&'"$ac_delim"'/g
14641t clear
14642:clear
14643s/\\$//
14644t bsnlc
14645s/["\\]/\\&/g; s/^/"/; s/$/"/p
14646d
14647:bsnlc
14648s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14649b cont
14650' <confdefs.h | sed '
14651s/'"$ac_delim"'/"\\\
14652"/g' >>$CONFIG_STATUS || ac_write_fail=1
14653
14654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14655  for (key in D) D_is_set[key] = 1
14656  FS = ""
14657}
14658/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14659  line = \$ 0
14660  split(line, arg, " ")
14661  if (arg[1] == "#") {
14662    defundef = arg[2]
14663    mac1 = arg[3]
14664  } else {
14665    defundef = substr(arg[1], 2)
14666    mac1 = arg[2]
14667  }
14668  split(mac1, mac2, "(") #)
14669  macro = mac2[1]
14670  prefix = substr(line, 1, index(line, defundef) - 1)
14671  if (D_is_set[macro]) {
14672    # Preserve the white space surrounding the "#".
14673    print prefix "define", macro P[macro] D[macro]
14674    next
14675  } else {
14676    # Replace #undef with comments.  This is necessary, for example,
14677    # in the case of _POSIX_SOURCE, which is predefined and required
14678    # on some systems where configure will not decide to define it.
14679    if (defundef == "undef") {
14680      print "/*", prefix defundef, macro, "*/"
14681      next
14682    }
14683  }
14684}
14685{ print }
14686_ACAWK
14687_ACEOF
14688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14689  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14690fi # test -n "$CONFIG_HEADERS"
14691
14692
14693eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14694shift
14695for ac_tag
14696do
14697  case $ac_tag in
14698  :[FHLC]) ac_mode=$ac_tag; continue;;
14699  esac
14700  case $ac_mode$ac_tag in
14701  :[FHL]*:*);;
14702  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14703  :[FH]-) ac_tag=-:-;;
14704  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14705  esac
14706  ac_save_IFS=$IFS
14707  IFS=:
14708  set x $ac_tag
14709  IFS=$ac_save_IFS
14710  shift
14711  ac_file=$1
14712  shift
14713
14714  case $ac_mode in
14715  :L) ac_source=$1;;
14716  :[FH])
14717    ac_file_inputs=
14718    for ac_f
14719    do
14720      case $ac_f in
14721      -) ac_f="$ac_tmp/stdin";;
14722      *) # Look for the file first in the build tree, then in the source tree
14723	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14724	 # because $ac_f cannot contain `:'.
14725	 test -f "$ac_f" ||
14726	   case $ac_f in
14727	   [\\/$]*) false;;
14728	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14729	   esac ||
14730	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14731      esac
14732      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14733      as_fn_append ac_file_inputs " '$ac_f'"
14734    done
14735
14736    # Let's still pretend it is `configure' which instantiates (i.e., don't
14737    # use $as_me), people would be surprised to read:
14738    #    /* config.h.  Generated by config.status.  */
14739    configure_input='Generated from '`
14740	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14741	`' by configure.'
14742    if test x"$ac_file" != x-; then
14743      configure_input="$ac_file.  $configure_input"
14744      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14745$as_echo "$as_me: creating $ac_file" >&6;}
14746    fi
14747    # Neutralize special characters interpreted by sed in replacement strings.
14748    case $configure_input in #(
14749    *\&* | *\|* | *\\* )
14750       ac_sed_conf_input=`$as_echo "$configure_input" |
14751       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14752    *) ac_sed_conf_input=$configure_input;;
14753    esac
14754
14755    case $ac_tag in
14756    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14757      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14758    esac
14759    ;;
14760  esac
14761
14762  ac_dir=`$as_dirname -- "$ac_file" ||
14763$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14764	 X"$ac_file" : 'X\(//\)[^/]' \| \
14765	 X"$ac_file" : 'X\(//\)$' \| \
14766	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14767$as_echo X"$ac_file" |
14768    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14769	    s//\1/
14770	    q
14771	  }
14772	  /^X\(\/\/\)[^/].*/{
14773	    s//\1/
14774	    q
14775	  }
14776	  /^X\(\/\/\)$/{
14777	    s//\1/
14778	    q
14779	  }
14780	  /^X\(\/\).*/{
14781	    s//\1/
14782	    q
14783	  }
14784	  s/.*/./; q'`
14785  as_dir="$ac_dir"; as_fn_mkdir_p
14786  ac_builddir=.
14787
14788case "$ac_dir" in
14789.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14790*)
14791  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14792  # A ".." for each directory in $ac_dir_suffix.
14793  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14794  case $ac_top_builddir_sub in
14795  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14796  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14797  esac ;;
14798esac
14799ac_abs_top_builddir=$ac_pwd
14800ac_abs_builddir=$ac_pwd$ac_dir_suffix
14801# for backward compatibility:
14802ac_top_builddir=$ac_top_build_prefix
14803
14804case $srcdir in
14805  .)  # We are building in place.
14806    ac_srcdir=.
14807    ac_top_srcdir=$ac_top_builddir_sub
14808    ac_abs_top_srcdir=$ac_pwd ;;
14809  [\\/]* | ?:[\\/]* )  # Absolute name.
14810    ac_srcdir=$srcdir$ac_dir_suffix;
14811    ac_top_srcdir=$srcdir
14812    ac_abs_top_srcdir=$srcdir ;;
14813  *) # Relative name.
14814    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14815    ac_top_srcdir=$ac_top_build_prefix$srcdir
14816    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14817esac
14818ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14819
14820
14821  case $ac_mode in
14822  :F)
14823  #
14824  # CONFIG_FILE
14825  #
14826
14827  case $INSTALL in
14828  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14829  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14830  esac
14831  ac_MKDIR_P=$MKDIR_P
14832  case $MKDIR_P in
14833  [\\/$]* | ?:[\\/]* ) ;;
14834  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14835  esac
14836_ACEOF
14837
14838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14839# If the template does not know about datarootdir, expand it.
14840# FIXME: This hack should be removed a few years after 2.60.
14841ac_datarootdir_hack=; ac_datarootdir_seen=
14842ac_sed_dataroot='
14843/datarootdir/ {
14844  p
14845  q
14846}
14847/@datadir@/p
14848/@docdir@/p
14849/@infodir@/p
14850/@localedir@/p
14851/@mandir@/p'
14852case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14853*datarootdir*) ac_datarootdir_seen=yes;;
14854*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14855  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14856$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14857_ACEOF
14858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14859  ac_datarootdir_hack='
14860  s&@datadir@&$datadir&g
14861  s&@docdir@&$docdir&g
14862  s&@infodir@&$infodir&g
14863  s&@localedir@&$localedir&g
14864  s&@mandir@&$mandir&g
14865  s&\\\${datarootdir}&$datarootdir&g' ;;
14866esac
14867_ACEOF
14868
14869# Neutralize VPATH when `$srcdir' = `.'.
14870# Shell code in configure.ac might set extrasub.
14871# FIXME: do we really want to maintain this feature?
14872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14873ac_sed_extra="$ac_vpsub
14874$extrasub
14875_ACEOF
14876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14877:t
14878/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14879s|@configure_input@|$ac_sed_conf_input|;t t
14880s&@top_builddir@&$ac_top_builddir_sub&;t t
14881s&@top_build_prefix@&$ac_top_build_prefix&;t t
14882s&@srcdir@&$ac_srcdir&;t t
14883s&@abs_srcdir@&$ac_abs_srcdir&;t t
14884s&@top_srcdir@&$ac_top_srcdir&;t t
14885s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14886s&@builddir@&$ac_builddir&;t t
14887s&@abs_builddir@&$ac_abs_builddir&;t t
14888s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14889s&@INSTALL@&$ac_INSTALL&;t t
14890s&@MKDIR_P@&$ac_MKDIR_P&;t t
14891$ac_datarootdir_hack
14892"
14893eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14894  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14895
14896test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14897  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14898  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14899      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14900  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14901which seems to be undefined.  Please make sure it is defined" >&5
14902$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14903which seems to be undefined.  Please make sure it is defined" >&2;}
14904
14905  rm -f "$ac_tmp/stdin"
14906  case $ac_file in
14907  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14908  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14909  esac \
14910  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14911 ;;
14912  :H)
14913  #
14914  # CONFIG_HEADER
14915  #
14916  if test x"$ac_file" != x-; then
14917    {
14918      $as_echo "/* $configure_input  */" \
14919      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14920    } >"$ac_tmp/config.h" \
14921      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14922    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14923      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14924$as_echo "$as_me: $ac_file is unchanged" >&6;}
14925    else
14926      rm -f "$ac_file"
14927      mv "$ac_tmp/config.h" "$ac_file" \
14928	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14929    fi
14930  else
14931    $as_echo "/* $configure_input  */" \
14932      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14933      || as_fn_error $? "could not create -" "$LINENO" 5
14934  fi
14935# Compute "$ac_file"'s index in $config_headers.
14936_am_arg="$ac_file"
14937_am_stamp_count=1
14938for _am_header in $config_headers :; do
14939  case $_am_header in
14940    $_am_arg | $_am_arg:* )
14941      break ;;
14942    * )
14943      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14944  esac
14945done
14946echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14947$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14948	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14949	 X"$_am_arg" : 'X\(//\)$' \| \
14950	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14951$as_echo X"$_am_arg" |
14952    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14953	    s//\1/
14954	    q
14955	  }
14956	  /^X\(\/\/\)[^/].*/{
14957	    s//\1/
14958	    q
14959	  }
14960	  /^X\(\/\/\)$/{
14961	    s//\1/
14962	    q
14963	  }
14964	  /^X\(\/\).*/{
14965	    s//\1/
14966	    q
14967	  }
14968	  s/.*/./; q'`/stamp-h$_am_stamp_count
14969 ;;
14970
14971  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14972$as_echo "$as_me: executing $ac_file commands" >&6;}
14973 ;;
14974  esac
14975
14976
14977  case $ac_file$ac_mode in
14978    "libtool":C)
14979
14980    # See if we are running on zsh, and set the options which allow our
14981    # commands through without removal of \ escapes.
14982    if test -n "${ZSH_VERSION+set}" ; then
14983      setopt NO_GLOB_SUBST
14984    fi
14985
14986    cfgfile="${ofile}T"
14987    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14988    $RM "$cfgfile"
14989
14990    cat <<_LT_EOF >> "$cfgfile"
14991#! $SHELL
14992
14993# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14994# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14995# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14996# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14997#
14998#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14999#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15000#                 Foundation, Inc.
15001#   Written by Gordon Matzigkeit, 1996
15002#
15003#   This file is part of GNU Libtool.
15004#
15005# GNU Libtool is free software; you can redistribute it and/or
15006# modify it under the terms of the GNU General Public License as
15007# published by the Free Software Foundation; either version 2 of
15008# the License, or (at your option) any later version.
15009#
15010# As a special exception to the GNU General Public License,
15011# if you distribute this file as part of a program or library that
15012# is built using GNU Libtool, you may include this file under the
15013# same distribution terms that you use for the rest of that program.
15014#
15015# GNU Libtool is distributed in the hope that it will be useful,
15016# but WITHOUT ANY WARRANTY; without even the implied warranty of
15017# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15018# GNU General Public License for more details.
15019#
15020# You should have received a copy of the GNU General Public License
15021# along with GNU Libtool; see the file COPYING.  If not, a copy
15022# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15023# obtained by writing to the Free Software Foundation, Inc.,
15024# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15025
15026
15027# The names of the tagged configurations supported by this script.
15028available_tags=""
15029
15030# ### BEGIN LIBTOOL CONFIG
15031
15032# Which release of libtool.m4 was used?
15033macro_version=$macro_version
15034macro_revision=$macro_revision
15035
15036# Whether or not to build shared libraries.
15037build_libtool_libs=$enable_shared
15038
15039# Whether or not to build static libraries.
15040build_old_libs=$enable_static
15041
15042# What type of objects to build.
15043pic_mode=$pic_mode
15044
15045# Whether or not to optimize for fast installation.
15046fast_install=$enable_fast_install
15047
15048# Shell to use when invoking shell scripts.
15049SHELL=$lt_SHELL
15050
15051# An echo program that protects backslashes.
15052ECHO=$lt_ECHO
15053
15054# The PATH separator for the build system.
15055PATH_SEPARATOR=$lt_PATH_SEPARATOR
15056
15057# The host system.
15058host_alias=$host_alias
15059host=$host
15060host_os=$host_os
15061
15062# The build system.
15063build_alias=$build_alias
15064build=$build
15065build_os=$build_os
15066
15067# A sed program that does not truncate output.
15068SED=$lt_SED
15069
15070# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15071Xsed="\$SED -e 1s/^X//"
15072
15073# A grep program that handles long lines.
15074GREP=$lt_GREP
15075
15076# An ERE matcher.
15077EGREP=$lt_EGREP
15078
15079# A literal string matcher.
15080FGREP=$lt_FGREP
15081
15082# A BSD- or MS-compatible name lister.
15083NM=$lt_NM
15084
15085# Whether we need soft or hard links.
15086LN_S=$lt_LN_S
15087
15088# What is the maximum length of a command?
15089max_cmd_len=$max_cmd_len
15090
15091# Object file suffix (normally "o").
15092objext=$ac_objext
15093
15094# Executable file suffix (normally "").
15095exeext=$exeext
15096
15097# whether the shell understands "unset".
15098lt_unset=$lt_unset
15099
15100# turn spaces into newlines.
15101SP2NL=$lt_lt_SP2NL
15102
15103# turn newlines into spaces.
15104NL2SP=$lt_lt_NL2SP
15105
15106# convert \$build file names to \$host format.
15107to_host_file_cmd=$lt_cv_to_host_file_cmd
15108
15109# convert \$build files to toolchain format.
15110to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15111
15112# An object symbol dumper.
15113OBJDUMP=$lt_OBJDUMP
15114
15115# Method to check whether dependent libraries are shared objects.
15116deplibs_check_method=$lt_deplibs_check_method
15117
15118# Command to use when deplibs_check_method = "file_magic".
15119file_magic_cmd=$lt_file_magic_cmd
15120
15121# How to find potential files when deplibs_check_method = "file_magic".
15122file_magic_glob=$lt_file_magic_glob
15123
15124# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15125want_nocaseglob=$lt_want_nocaseglob
15126
15127# DLL creation program.
15128DLLTOOL=$lt_DLLTOOL
15129
15130# Command to associate shared and link libraries.
15131sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15132
15133# The archiver.
15134AR=$lt_AR
15135
15136# Flags to create an archive.
15137AR_FLAGS=$lt_AR_FLAGS
15138
15139# How to feed a file listing to the archiver.
15140archiver_list_spec=$lt_archiver_list_spec
15141
15142# A symbol stripping program.
15143STRIP=$lt_STRIP
15144
15145# Commands used to install an old-style archive.
15146RANLIB=$lt_RANLIB
15147old_postinstall_cmds=$lt_old_postinstall_cmds
15148old_postuninstall_cmds=$lt_old_postuninstall_cmds
15149
15150# Whether to use a lock for old archive extraction.
15151lock_old_archive_extraction=$lock_old_archive_extraction
15152
15153# A C compiler.
15154LTCC=$lt_CC
15155
15156# LTCC compiler flags.
15157LTCFLAGS=$lt_CFLAGS
15158
15159# Take the output of nm and produce a listing of raw symbols and C names.
15160global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15161
15162# Transform the output of nm in a proper C declaration.
15163global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15164
15165# Transform the output of nm in a C name address pair.
15166global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15167
15168# Transform the output of nm in a C name address pair when lib prefix is needed.
15169global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15170
15171# Specify filename containing input files for \$NM.
15172nm_file_list_spec=$lt_nm_file_list_spec
15173
15174# The root where to search for dependent libraries,and in which our libraries should be installed.
15175lt_sysroot=$lt_sysroot
15176
15177# The name of the directory that contains temporary libtool files.
15178objdir=$objdir
15179
15180# Used to examine libraries when file_magic_cmd begins with "file".
15181MAGIC_CMD=$MAGIC_CMD
15182
15183# Must we lock files when doing compilation?
15184need_locks=$lt_need_locks
15185
15186# Manifest tool.
15187MANIFEST_TOOL=$lt_MANIFEST_TOOL
15188
15189# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15190DSYMUTIL=$lt_DSYMUTIL
15191
15192# Tool to change global to local symbols on Mac OS X.
15193NMEDIT=$lt_NMEDIT
15194
15195# Tool to manipulate fat objects and archives on Mac OS X.
15196LIPO=$lt_LIPO
15197
15198# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15199OTOOL=$lt_OTOOL
15200
15201# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15202OTOOL64=$lt_OTOOL64
15203
15204# Old archive suffix (normally "a").
15205libext=$libext
15206
15207# Shared library suffix (normally ".so").
15208shrext_cmds=$lt_shrext_cmds
15209
15210# The commands to extract the exported symbol list from a shared archive.
15211extract_expsyms_cmds=$lt_extract_expsyms_cmds
15212
15213# Variables whose values should be saved in libtool wrapper scripts and
15214# restored at link time.
15215variables_saved_for_relink=$lt_variables_saved_for_relink
15216
15217# Do we need the "lib" prefix for modules?
15218need_lib_prefix=$need_lib_prefix
15219
15220# Do we need a version for libraries?
15221need_version=$need_version
15222
15223# Library versioning type.
15224version_type=$version_type
15225
15226# Shared library runtime path variable.
15227runpath_var=$runpath_var
15228
15229# Shared library path variable.
15230shlibpath_var=$shlibpath_var
15231
15232# Is shlibpath searched before the hard-coded library search path?
15233shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15234
15235# Format of library name prefix.
15236libname_spec=$lt_libname_spec
15237
15238# List of archive names.  First name is the real one, the rest are links.
15239# The last name is the one that the linker finds with -lNAME
15240library_names_spec=$lt_library_names_spec
15241
15242# The coded name of the library, if different from the real name.
15243soname_spec=$lt_soname_spec
15244
15245# Permission mode override for installation of shared libraries.
15246install_override_mode=$lt_install_override_mode
15247
15248# Command to use after installation of a shared archive.
15249postinstall_cmds=$lt_postinstall_cmds
15250
15251# Command to use after uninstallation of a shared archive.
15252postuninstall_cmds=$lt_postuninstall_cmds
15253
15254# Commands used to finish a libtool library installation in a directory.
15255finish_cmds=$lt_finish_cmds
15256
15257# As "finish_cmds", except a single script fragment to be evaled but
15258# not shown.
15259finish_eval=$lt_finish_eval
15260
15261# Whether we should hardcode library paths into libraries.
15262hardcode_into_libs=$hardcode_into_libs
15263
15264# Compile-time system search path for libraries.
15265sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15266
15267# Run-time system search path for libraries.
15268sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15269
15270# Whether dlopen is supported.
15271dlopen_support=$enable_dlopen
15272
15273# Whether dlopen of programs is supported.
15274dlopen_self=$enable_dlopen_self
15275
15276# Whether dlopen of statically linked programs is supported.
15277dlopen_self_static=$enable_dlopen_self_static
15278
15279# Commands to strip libraries.
15280old_striplib=$lt_old_striplib
15281striplib=$lt_striplib
15282
15283
15284# The linker used to build libraries.
15285LD=$lt_LD
15286
15287# How to create reloadable object files.
15288reload_flag=$lt_reload_flag
15289reload_cmds=$lt_reload_cmds
15290
15291# Commands used to build an old-style archive.
15292old_archive_cmds=$lt_old_archive_cmds
15293
15294# A language specific compiler.
15295CC=$lt_compiler
15296
15297# Is the compiler the GNU compiler?
15298with_gcc=$GCC
15299
15300# Compiler flag to turn off builtin functions.
15301no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15302
15303# Additional compiler flags for building library objects.
15304pic_flag=$lt_lt_prog_compiler_pic
15305
15306# How to pass a linker flag through the compiler.
15307wl=$lt_lt_prog_compiler_wl
15308
15309# Compiler flag to prevent dynamic linking.
15310link_static_flag=$lt_lt_prog_compiler_static
15311
15312# Does compiler simultaneously support -c and -o options?
15313compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15314
15315# Whether or not to add -lc for building shared libraries.
15316build_libtool_need_lc=$archive_cmds_need_lc
15317
15318# Whether or not to disallow shared libs when runtime libs are static.
15319allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15320
15321# Compiler flag to allow reflexive dlopens.
15322export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15323
15324# Compiler flag to generate shared objects directly from archives.
15325whole_archive_flag_spec=$lt_whole_archive_flag_spec
15326
15327# Whether the compiler copes with passing no objects directly.
15328compiler_needs_object=$lt_compiler_needs_object
15329
15330# Create an old-style archive from a shared archive.
15331old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15332
15333# Create a temporary old-style archive to link instead of a shared archive.
15334old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15335
15336# Commands used to build a shared archive.
15337archive_cmds=$lt_archive_cmds
15338archive_expsym_cmds=$lt_archive_expsym_cmds
15339
15340# Commands used to build a loadable module if different from building
15341# a shared archive.
15342module_cmds=$lt_module_cmds
15343module_expsym_cmds=$lt_module_expsym_cmds
15344
15345# Whether we are building with GNU ld or not.
15346with_gnu_ld=$lt_with_gnu_ld
15347
15348# Flag that allows shared libraries with undefined symbols to be built.
15349allow_undefined_flag=$lt_allow_undefined_flag
15350
15351# Flag that enforces no undefined symbols.
15352no_undefined_flag=$lt_no_undefined_flag
15353
15354# Flag to hardcode \$libdir into a binary during linking.
15355# This must work even if \$libdir does not exist
15356hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15357
15358# Whether we need a single "-rpath" flag with a separated argument.
15359hardcode_libdir_separator=$lt_hardcode_libdir_separator
15360
15361# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15362# DIR into the resulting binary.
15363hardcode_direct=$hardcode_direct
15364
15365# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15366# DIR into the resulting binary and the resulting library dependency is
15367# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15368# library is relocated.
15369hardcode_direct_absolute=$hardcode_direct_absolute
15370
15371# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15372# into the resulting binary.
15373hardcode_minus_L=$hardcode_minus_L
15374
15375# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15376# into the resulting binary.
15377hardcode_shlibpath_var=$hardcode_shlibpath_var
15378
15379# Set to "yes" if building a shared library automatically hardcodes DIR
15380# into the library and all subsequent libraries and executables linked
15381# against it.
15382hardcode_automatic=$hardcode_automatic
15383
15384# Set to yes if linker adds runtime paths of dependent libraries
15385# to runtime path list.
15386inherit_rpath=$inherit_rpath
15387
15388# Whether libtool must link a program against all its dependency libraries.
15389link_all_deplibs=$link_all_deplibs
15390
15391# Set to "yes" if exported symbols are required.
15392always_export_symbols=$always_export_symbols
15393
15394# The commands to list exported symbols.
15395export_symbols_cmds=$lt_export_symbols_cmds
15396
15397# Symbols that should not be listed in the preloaded symbols.
15398exclude_expsyms=$lt_exclude_expsyms
15399
15400# Symbols that must always be exported.
15401include_expsyms=$lt_include_expsyms
15402
15403# Commands necessary for linking programs (against libraries) with templates.
15404prelink_cmds=$lt_prelink_cmds
15405
15406# Commands necessary for finishing linking programs.
15407postlink_cmds=$lt_postlink_cmds
15408
15409# Specify filename containing input files.
15410file_list_spec=$lt_file_list_spec
15411
15412# How to hardcode a shared library path into an executable.
15413hardcode_action=$hardcode_action
15414
15415# ### END LIBTOOL CONFIG
15416
15417_LT_EOF
15418
15419  case $host_os in
15420  aix3*)
15421    cat <<\_LT_EOF >> "$cfgfile"
15422# AIX sometimes has problems with the GCC collect2 program.  For some
15423# reason, if we set the COLLECT_NAMES environment variable, the problems
15424# vanish in a puff of smoke.
15425if test "X${COLLECT_NAMES+set}" != Xset; then
15426  COLLECT_NAMES=
15427  export COLLECT_NAMES
15428fi
15429_LT_EOF
15430    ;;
15431  esac
15432
15433
15434ltmain="$ac_aux_dir/ltmain.sh"
15435
15436
15437  # We use sed instead of cat because bash on DJGPP gets confused if
15438  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15439  # text mode, it properly converts lines to CR/LF.  This bash problem
15440  # is reportedly fixed, but why not run on old versions too?
15441  sed '$q' "$ltmain" >> "$cfgfile" \
15442     || (rm -f "$cfgfile"; exit 1)
15443
15444  if test x"$xsi_shell" = xyes; then
15445  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15446func_dirname ()\
15447{\
15448\    case ${1} in\
15449\      */*) func_dirname_result="${1%/*}${2}" ;;\
15450\      *  ) func_dirname_result="${3}" ;;\
15451\    esac\
15452} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15453  && mv -f "$cfgfile.tmp" "$cfgfile" \
15454    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15455test 0 -eq $? || _lt_function_replace_fail=:
15456
15457
15458  sed -e '/^func_basename ()$/,/^} # func_basename /c\
15459func_basename ()\
15460{\
15461\    func_basename_result="${1##*/}"\
15462} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15463  && mv -f "$cfgfile.tmp" "$cfgfile" \
15464    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15465test 0 -eq $? || _lt_function_replace_fail=:
15466
15467
15468  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15469func_dirname_and_basename ()\
15470{\
15471\    case ${1} in\
15472\      */*) func_dirname_result="${1%/*}${2}" ;;\
15473\      *  ) func_dirname_result="${3}" ;;\
15474\    esac\
15475\    func_basename_result="${1##*/}"\
15476} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15477  && mv -f "$cfgfile.tmp" "$cfgfile" \
15478    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15479test 0 -eq $? || _lt_function_replace_fail=:
15480
15481
15482  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15483func_stripname ()\
15484{\
15485\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15486\    # positional parameters, so assign one to ordinary parameter first.\
15487\    func_stripname_result=${3}\
15488\    func_stripname_result=${func_stripname_result#"${1}"}\
15489\    func_stripname_result=${func_stripname_result%"${2}"}\
15490} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15491  && mv -f "$cfgfile.tmp" "$cfgfile" \
15492    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15493test 0 -eq $? || _lt_function_replace_fail=:
15494
15495
15496  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15497func_split_long_opt ()\
15498{\
15499\    func_split_long_opt_name=${1%%=*}\
15500\    func_split_long_opt_arg=${1#*=}\
15501} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15502  && mv -f "$cfgfile.tmp" "$cfgfile" \
15503    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15504test 0 -eq $? || _lt_function_replace_fail=:
15505
15506
15507  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15508func_split_short_opt ()\
15509{\
15510\    func_split_short_opt_arg=${1#??}\
15511\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15512} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15513  && mv -f "$cfgfile.tmp" "$cfgfile" \
15514    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15515test 0 -eq $? || _lt_function_replace_fail=:
15516
15517
15518  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15519func_lo2o ()\
15520{\
15521\    case ${1} in\
15522\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15523\      *)    func_lo2o_result=${1} ;;\
15524\    esac\
15525} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15526  && mv -f "$cfgfile.tmp" "$cfgfile" \
15527    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15528test 0 -eq $? || _lt_function_replace_fail=:
15529
15530
15531  sed -e '/^func_xform ()$/,/^} # func_xform /c\
15532func_xform ()\
15533{\
15534    func_xform_result=${1%.*}.lo\
15535} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15536  && mv -f "$cfgfile.tmp" "$cfgfile" \
15537    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15538test 0 -eq $? || _lt_function_replace_fail=:
15539
15540
15541  sed -e '/^func_arith ()$/,/^} # func_arith /c\
15542func_arith ()\
15543{\
15544    func_arith_result=$(( $* ))\
15545} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15546  && mv -f "$cfgfile.tmp" "$cfgfile" \
15547    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15548test 0 -eq $? || _lt_function_replace_fail=:
15549
15550
15551  sed -e '/^func_len ()$/,/^} # func_len /c\
15552func_len ()\
15553{\
15554    func_len_result=${#1}\
15555} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15556  && mv -f "$cfgfile.tmp" "$cfgfile" \
15557    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15558test 0 -eq $? || _lt_function_replace_fail=:
15559
15560fi
15561
15562if test x"$lt_shell_append" = xyes; then
15563  sed -e '/^func_append ()$/,/^} # func_append /c\
15564func_append ()\
15565{\
15566    eval "${1}+=\\${2}"\
15567} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15568  && mv -f "$cfgfile.tmp" "$cfgfile" \
15569    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15570test 0 -eq $? || _lt_function_replace_fail=:
15571
15572
15573  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15574func_append_quoted ()\
15575{\
15576\    func_quote_for_eval "${2}"\
15577\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15578} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15579  && mv -f "$cfgfile.tmp" "$cfgfile" \
15580    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15581test 0 -eq $? || _lt_function_replace_fail=:
15582
15583
15584  # Save a `func_append' function call where possible by direct use of '+='
15585  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15586    && mv -f "$cfgfile.tmp" "$cfgfile" \
15587      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15588  test 0 -eq $? || _lt_function_replace_fail=:
15589else
15590  # Save a `func_append' function call even when '+=' is not available
15591  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15592    && mv -f "$cfgfile.tmp" "$cfgfile" \
15593      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15594  test 0 -eq $? || _lt_function_replace_fail=:
15595fi
15596
15597if test x"$_lt_function_replace_fail" = x":"; then
15598  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15599$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15600fi
15601
15602
15603   mv -f "$cfgfile" "$ofile" ||
15604    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15605  chmod +x "$ofile"
15606
15607 ;;
15608    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15609  # Older Autoconf quotes --file arguments for eval, but not when files
15610  # are listed without --file.  Let's play safe and only enable the eval
15611  # if we detect the quoting.
15612  case $CONFIG_FILES in
15613  *\'*) eval set x "$CONFIG_FILES" ;;
15614  *)   set x $CONFIG_FILES ;;
15615  esac
15616  shift
15617  for mf
15618  do
15619    # Strip MF so we end up with the name of the file.
15620    mf=`echo "$mf" | sed -e 's/:.*$//'`
15621    # Check whether this is an Automake generated Makefile or not.
15622    # We used to match only the files named 'Makefile.in', but
15623    # some people rename them; so instead we look at the file content.
15624    # Grep'ing the first line is not enough: some people post-process
15625    # each Makefile.in and add a new line on top of each file to say so.
15626    # Grep'ing the whole file is not good either: AIX grep has a line
15627    # limit of 2048, but all sed's we know have understand at least 4000.
15628    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15629      dirpart=`$as_dirname -- "$mf" ||
15630$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15631	 X"$mf" : 'X\(//\)[^/]' \| \
15632	 X"$mf" : 'X\(//\)$' \| \
15633	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15634$as_echo X"$mf" |
15635    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15636	    s//\1/
15637	    q
15638	  }
15639	  /^X\(\/\/\)[^/].*/{
15640	    s//\1/
15641	    q
15642	  }
15643	  /^X\(\/\/\)$/{
15644	    s//\1/
15645	    q
15646	  }
15647	  /^X\(\/\).*/{
15648	    s//\1/
15649	    q
15650	  }
15651	  s/.*/./; q'`
15652    else
15653      continue
15654    fi
15655    # Extract the definition of DEPDIR, am__include, and am__quote
15656    # from the Makefile without running 'make'.
15657    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15658    test -z "$DEPDIR" && continue
15659    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15660    test -z "$am__include" && continue
15661    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15662    # Find all dependency output files, they are included files with
15663    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15664    # simplest approach to changing $(DEPDIR) to its actual value in the
15665    # expansion.
15666    for file in `sed -n "
15667      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15668	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15669      # Make sure the directory exists.
15670      test -f "$dirpart/$file" && continue
15671      fdir=`$as_dirname -- "$file" ||
15672$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15673	 X"$file" : 'X\(//\)[^/]' \| \
15674	 X"$file" : 'X\(//\)$' \| \
15675	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15676$as_echo X"$file" |
15677    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15678	    s//\1/
15679	    q
15680	  }
15681	  /^X\(\/\/\)[^/].*/{
15682	    s//\1/
15683	    q
15684	  }
15685	  /^X\(\/\/\)$/{
15686	    s//\1/
15687	    q
15688	  }
15689	  /^X\(\/\).*/{
15690	    s//\1/
15691	    q
15692	  }
15693	  s/.*/./; q'`
15694      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15695      # echo "creating $dirpart/$file"
15696      echo '# dummy' > "$dirpart/$file"
15697    done
15698  done
15699}
15700 ;;
15701
15702  esac
15703done # for ac_tag
15704
15705
15706as_fn_exit 0
15707_ACEOF
15708ac_clean_files=$ac_clean_files_save
15709
15710test $ac_write_fail = 0 ||
15711  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15712
15713
15714# configure is writing to config.log, and then calls config.status.
15715# config.status does its own redirection, appending to config.log.
15716# Unfortunately, on DOS this fails, as config.log is still kept open
15717# by configure, so config.status won't be able to write to it; its
15718# output is simply discarded.  So we exec the FD to /dev/null,
15719# effectively closing config.log, so it can be properly (re)opened and
15720# appended to by config.status.  When coming back to configure, we
15721# need to make the FD available again.
15722if test "$no_create" != yes; then
15723  ac_cs_success=:
15724  ac_config_status_args=
15725  test "$silent" = yes &&
15726    ac_config_status_args="$ac_config_status_args --quiet"
15727  exec 5>/dev/null
15728  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15729  exec 5>>config.log
15730  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15731  # would make configure fail if this is the last instruction.
15732  $ac_cs_success || as_fn_exit 1
15733fi
15734if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15735  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15736$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15737fi
15738
15739
15740{ $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
15741
15742    Version:        ${VERSION} (${MAJOR_VERSION}:${MINOR_VERSION}:${PATCH_VERSION}), shared $LT_CURRENT:$LT_REVISION:$LT_AGE
15743    Host type:      ${host}
15744    Install prefix: ${prefix}
15745    C compiler:     ${CC}
15746    CFLAGS:         ${CFLAGS}
15747    LDFLAGS:        ${LDFLAGS}
15748    LIBS:           ${LIBS}
15749    CPPFLAGS:       ${CPPFLAGS}
15750    C preprocessor: ${CPP}
15751    Library types:  Shared=${enable_shared}, Static=${enable_static}
15752    Libexpat:       ${have_libexpat} ${EXPAT_CFLAGS} ${EXPAT_LIBS}
15753    Libxml2:        ${have_libxml2} ${XML_CPPFLAGS} ${XML_LIBS}
15754    CUnit:          ${have_cunit} ${CUNIT_CFLAGS} ${CUNIT_LIBS}
15755" >&5
15756$as_echo "$as_me: summary of build options:
15757
15758    Version:        ${VERSION} (${MAJOR_VERSION}:${MINOR_VERSION}:${PATCH_VERSION}), shared $LT_CURRENT:$LT_REVISION:$LT_AGE
15759    Host type:      ${host}
15760    Install prefix: ${prefix}
15761    C compiler:     ${CC}
15762    CFLAGS:         ${CFLAGS}
15763    LDFLAGS:        ${LDFLAGS}
15764    LIBS:           ${LIBS}
15765    CPPFLAGS:       ${CPPFLAGS}
15766    C preprocessor: ${CPP}
15767    Library types:  Shared=${enable_shared}, Static=${enable_static}
15768    Libexpat:       ${have_libexpat} ${EXPAT_CFLAGS} ${EXPAT_LIBS}
15769    Libxml2:        ${have_libxml2} ${XML_CPPFLAGS} ${XML_LIBS}
15770    CUnit:          ${have_cunit} ${CUNIT_CFLAGS} ${CUNIT_LIBS}
15771" >&6;}
15772